packages/ushare: add /etc/config/ushare to conffiles define
[openwrt/svn-archive/archive.git] / mail / xmail / Makefile
1 #
2 # Copyright (C) 2007-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xmail
11 PKG_VERSION:=1.26
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.xmailserver.org/
16 PKG_MD5SUM:=26d35c2fc104d79ebb6397c7dece5b15
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/xmail
21 SECTION:=mail
22 CATEGORY:=Mail
23 DEPENDS:=+uclibcxx +libopenssl +libpthread
24 TITLE:=advanced, fast and reliable ESMTP/POP3 mail server
25 URL:=http://www.xmailserver.org/
26 endef
27
28 define Package/xmail/description
29 XMail is an Internet mail server featuring an SMTP, POP3 and finger server.
30 It's incredibly easy to set up and has lots of features including :
31 multiple domains, virtual users and spam protection.
32 endef
33
34 define Build/Compile
35 CFLAGS="$(TARGET_CFLAGS)" \
36 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
37 $(TARGET_CONFIGURE_OPTS) \
38 LD="\$$$$(CC)" \
39 CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
40 LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -lcrypto -lssl -luClibc++ -ldl -lm -lpthread $(LIBGCC_S)" \
41 all
42 tar -cjf $(PKG_BUILD_DIR)/MailRoot.tar.bz2 -C $(PKG_BUILD_DIR)/MailRoot --exclude bin .
43 endef
44
45 define Package/xmail/install
46 $(INSTALL_DIR) $(1)/usr/bin/
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(1)/usr/bin/
48 $(INSTALL_DIR) $(1)/etc
49 $(INSTALL_DATA) $(PKG_BUILD_DIR)/MailRoot.tar.bz2 $(1)/etc/
50 $(INSTALL_DIR) $(1)/etc/config
51 $(INSTALL_DATA) ./files/xmail.config $(1)/etc/config/xmail
52 $(INSTALL_DIR) $(1)/etc/init.d/
53 $(INSTALL_BIN) ./files/xmail.init $(1)/etc/init.d/xmail
54 endef
55
56 $(eval $(call BuildPackage,xmail))