2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.xmailserver.org/
17 PKG_MD5SUM:=106730bdbaa4fda9e90a7c22df024114
19 include $(INCLUDE_DIR)/package.mk
24 DEPENDS:=+uclibcxx +libopenssl
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.
35 define Build/Configure
36 $(CP) ./files/SysMachine.h $(PKG_BUILD_DIR)/
40 CFLAGS="$(TARGET_CFLAGS)" \
41 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
42 $(TARGET_CONFIGURE_OPTS) \
44 CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
45 LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -lcrypto -lssl -luClibc++ -ldl -lm -lpthread" \
49 define Package/xmail/install
50 $(INSTALL_DIR) $(1)/usr/bin/
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(1)/usr/bin/
52 $(INSTALL_DIR) $(1)/var/MailRoot/
53 $(CP) $(PKG_BUILD_DIR)/MailRoot $(1)/var/
56 $(eval $(call BuildPackage,xmail))