2 # Copyright (C) 2007 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_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE_URL
:=http
://www.xmailserver.org
/
17 PKG_MD5SUM
:=106730bdbaa4fda9e90a7c22df024114
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
28 DEPENDS
:=+uclibcxx
+libopenssl
29 TITLE
:=advanced
, fast and reliable ESMTP
/POP3 mail server
31 XMail is an Internet mail server featuring an SMTP
, POP3 and finger server.
\\\
32 It
's incredibly easy to set up and has lots of features including : \\\
33 multiple domains, virtual users and spam protection.
34 URL:=http://www.xmailserver.org/
37 define Build/Configure
38 $(CP) ./files/SysMachine.h $(PKG_BUILD_DIR)/
42 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
43 $(TARGET_CONFIGURE_OPTS) \
44 LDFLAGS="$(EXTRA_LDFLAGS) -luClibc++ -lssl -lm -lpthread -lcrypto -ldl" \
45 WITH_SSL_INCLUDE="$(STAGING_DIR)/usr/include" \
46 WITH_SSL_LIB="$(STAGING_DIR)/usr/lib" \
47 CPPFLAGS="$(TARGET_CFLAGS)" \
48 CXX="$(TARGET_CROSS)g++"
51 define Package/xmail/install
52 $(INSTALL_DIR) $(1)/usr/bin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/var/MailRoot/
55 $(CP) $(PKG_BUILD_DIR)/MailRoot $(1)/var/
58 $(eval $(call BuildPackage,xmail))