#
-# Copyright (C) 2007-2009 OpenWrt.org
+# Copyright (C) 2007-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=xmail
PKG_VERSION:=1.26
-PKG_RELEASE:=1
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.xmailserver.org/
PKG_MD5SUM:=26d35c2fc104d79ebb6397c7dece5b15
+include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/xmail
SECTION:=mail
CATEGORY:=Mail
- DEPENDS:=+uclibcxx +libopenssl +libpthread
+ DEPENDS:=+libopenssl +libpthread $(CXX_DEPENDS)
TITLE:=advanced, fast and reliable ESMTP/POP3 mail server
URL:=http://www.xmailserver.org/
endef
CFLAGS="$(TARGET_CFLAGS)" \
$(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
$(TARGET_CONFIGURE_OPTS) \
- LD="\$$$$(CC)" \
- CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
- LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -lcrypto -lssl -luClibc++ -ldl -lm -lpthread" \
+ LD="$(TARGET_CXX)" \
all
tar -cjf $(PKG_BUILD_DIR)/MailRoot.tar.bz2 -C $(PKG_BUILD_DIR)/MailRoot --exclude bin .
endef
$(INSTALL_BIN) ./files/xmail.init $(1)/etc/init.d/xmail
endef
+define Package/xmail/conffiles
+/etc/config/xmail
+endef
+
$(eval $(call BuildPackage,xmail))