2 # Copyright (C) 2007-2013 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.xmailserver.org
/
16 PKG_MD5SUM
:=73c9d95012709d7b11511dfb6dd6ab3d
18 include $(INCLUDE_DIR
)/uclibc
++.mk
19 include $(INCLUDE_DIR
)/package.mk
24 DEPENDS
:=+libopenssl
+libpthread
$(CXX_DEPENDS
)
25 TITLE
:=advanced
, fast and reliable ESMTP
/POP3 mail server
26 URL
:=http
://www.xmailserver.org
/
29 define Package
/xmail
/description
30 XMail is an Internet mail server featuring an SMTP
, POP3 and finger server.
31 It
's incredibly easy to set up and has lots of features including :
32 multiple domains, virtual users and spam protection.
36 CFLAGS="$(TARGET_CFLAGS)" \
37 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
38 $(TARGET_CONFIGURE_OPTS) \
41 tar -cjf $(PKG_BUILD_DIR)/MailRoot.tar.bz2 -C $(PKG_BUILD_DIR)/MailRoot --exclude bin .
44 define Package/xmail/install
45 $(INSTALL_DIR) $(1)/usr/bin/
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/{CtrlClnt,MkUsers,XMCrypt,XMail,sendmail} $(1)/usr/bin/
47 $(INSTALL_DIR) $(1)/etc
48 $(INSTALL_DATA) $(PKG_BUILD_DIR)/MailRoot.tar.bz2 $(1)/etc/
49 $(INSTALL_DIR) $(1)/etc/config
50 $(INSTALL_DATA) ./files/xmail.config $(1)/etc/config/xmail
51 $(INSTALL_DIR) $(1)/etc/init.d/
52 $(INSTALL_BIN) ./files/xmail.init $(1)/etc/init.d/xmail
55 define Package/xmail/conffiles
59 $(eval $(call BuildPackage,xmail))