source: packages/mail/xmail/Makefile @ 17424

Last change on this file since 17424 was 17424, checked in by florian, 7 years ago

[package] update xmail to 1.26 (#5761)

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2007-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=xmail
11PKG_VERSION:=1.26
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.xmailserver.org/
16PKG_MD5SUM:=26d35c2fc104d79ebb6397c7dece5b15
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/xmail
21  SECTION:=mail
22  CATEGORY:=Mail
23  DEPENDS:=+uclibcxx +libopenssl +libpthread
24  TITLE:=advanced, fast and reliable ESMTP/POP3 mail server
25  URL:=http://www.xmailserver.org/
26endef
27
28define Package/xmail/description
29 XMail is an Internet mail server featuring an SMTP, POP3 and finger server.
30 It's incredibly easy to set up and has lots of features including :
31 multiple domains, virtual users and spam protection.
32endef
33
34define Build/Compile
35        CFLAGS="$(TARGET_CFLAGS)" \
36        $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
37                $(TARGET_CONFIGURE_OPTS) \
38                LD="\$$$$(CC)" \
39                CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
40                LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -lcrypto -lssl -luClibc++ -ldl -lm -lpthread" \
41                all
42        tar -cjf $(PKG_BUILD_DIR)/MailRoot.tar.bz2 -C $(PKG_BUILD_DIR)/MailRoot --exclude bin .
43endef
44
45define Package/xmail/install
46        $(INSTALL_DIR) $(1)/usr/bin/
47        $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(1)/usr/bin/
48        $(INSTALL_DIR) $(1)/etc
49        $(INSTALL_DATA) $(PKG_BUILD_DIR)/MailRoot.tar.bz2 $(1)/etc/
50        $(INSTALL_DIR) $(1)/etc/config
51        $(INSTALL_DATA) ./files/xmail.config $(1)/etc/config/xmail
52        $(INSTALL_DIR) $(1)/etc/init.d/
53        $(INSTALL_BIN) ./files/xmail.init $(1)/etc/init.d/xmail
54endef
55
56$(eval $(call BuildPackage,xmail))
Note: See TracBrowser for help on using the repository browser.