2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=1.26-pre06
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.xmailserver.org
/
16 PKG_MD5SUM
:=b54ada0c3257b7b00e6edd05018fd9db
18 include $(INCLUDE_DIR
)/package.mk
23 DEPENDS
:=+uclibcxx
+libopenssl
+libpthread
24 TITLE
:=advanced
, fast and reliable ESMTP
/POP3 mail server
25 URL
:=http
://www.xmailserver.org
/
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.
35 CFLAGS="$(TARGET_CFLAGS)" \
36 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
37 $(TARGET_CONFIGURE_OPTS) \
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" \
42 tar -cjf $(PKG_BUILD_DIR)/MailRoot.tar.bz2 -C $(PKG_BUILD_DIR)/MailRoot --exclude bin .
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
56 $(eval $(call BuildPackage,xmail))