liburcu: moved to github
[openwrt.org/packages.git] / mail / xmail / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# Copyright (C) 2007-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=xmail
PKG_VERSION:=1.27
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.xmailserver.org/
PKG_MD5SUM:=73c9d95012709d7b11511dfb6dd6ab3d
 
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
 
define Package/xmail
  SECTION:=mail
  CATEGORY:=Mail
  DEPENDS:=+libopenssl +libpthread $(CXX_DEPENDS)
  TITLE:=advanced, fast and reliable ESMTP/POP3 mail server
  URL:=http://www.xmailserver.org/
endef
 
define Package/xmail/description
 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 :
 multiple domains, virtual users and spam protection.
endef
 
define Build/Compile
        CFLAGS="$(TARGET_CFLAGS)" \
        $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
                $(TARGET_CONFIGURE_OPTS) \
                LD="$(TARGET_CXX)" \
                all
        tar -cjf $(PKG_BUILD_DIR)/MailRoot.tar.bz2 -C $(PKG_BUILD_DIR)/MailRoot --exclude bin .
endef
 
define Package/xmail/install
        $(INSTALL_DIR) $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/{CtrlClnt,MkUsers,XMCrypt,XMail,sendmail} $(1)/usr/bin/
        $(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
endef
 
define Package/xmail/conffiles
/etc/config/xmail
endef
 
$(eval $(call BuildPackage,xmail))
 
comments