2007-05-20 14:10:46 +00:00
|
|
|
#
|
2013-04-06 22:57:17 +00:00
|
|
|
# Copyright (C) 2007-2013 OpenWrt.org
|
2007-05-20 14:10:46 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xmail
|
2014-02-05 23:00:23 +00:00
|
|
|
PKG_VERSION:=1.27
|
|
|
|
PKG_RELEASE:=1
|
2007-05-20 14:10:46 +00:00
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-05-20 14:10:46 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.xmailserver.org/
|
2014-02-05 23:00:23 +00:00
|
|
|
PKG_MD5SUM:=73c9d95012709d7b11511dfb6dd6ab3d
|
2007-05-20 14:10:46 +00:00
|
|
|
|
2012-06-14 20:26:28 +00:00
|
|
|
include $(INCLUDE_DIR)/uclibc++.mk
|
2007-05-20 14:10:46 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/xmail
|
2008-05-03 02:42:43 +00:00
|
|
|
SECTION:=mail
|
|
|
|
CATEGORY:=Mail
|
2012-06-14 20:26:28 +00:00
|
|
|
DEPENDS:=+libopenssl +libpthread $(CXX_DEPENDS)
|
2007-05-20 14:10:46 +00:00
|
|
|
TITLE:=advanced, fast and reliable ESMTP/POP3 mail server
|
|
|
|
URL:=http://www.xmailserver.org/
|
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
define Package/xmail/description
|
2014-03-27 07:03:39 +00:00
|
|
|
XMail is an Internet mail server featuring an SMTP, POP3 and finger server.
|
|
|
|
It's incredibly easy to set up and has lots of features including :
|
2007-09-03 15:58:55 +00:00
|
|
|
multiple domains, virtual users and spam protection.
|
|
|
|
endef
|
|
|
|
|
2007-05-20 14:10:46 +00:00
|
|
|
define Build/Compile
|
2007-09-03 15:58:55 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2007-05-20 14:10:46 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2012-06-14 20:26:28 +00:00
|
|
|
LD="$(TARGET_CXX)" \
|
2007-09-03 15:58:55 +00:00
|
|
|
all
|
2008-07-28 20:21:01 +00:00
|
|
|
tar -cjf $(PKG_BUILD_DIR)/MailRoot.tar.bz2 -C $(PKG_BUILD_DIR)/MailRoot --exclude bin .
|
2007-05-20 14:10:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xmail/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
2014-02-05 23:00:23 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/{CtrlClnt,MkUsers,XMCrypt,XMail,sendmail} $(1)/usr/bin/
|
2008-07-28 20:21:01 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/MailRoot.tar.bz2 $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/xmail.config $(1)/etc/config/xmail
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) ./files/xmail.init $(1)/etc/init.d/xmail
|
2007-05-20 14:10:46 +00:00
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/xmail/conffiles
|
|
|
|
/etc/config/xmail
|
|
|
|
endef
|
|
|
|
|
2007-05-20 14:10:46 +00:00
|
|
|
$(eval $(call BuildPackage,xmail))
|