2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-src.
tar.gz
15 PKG_SOURCE_URL
:=@SF
/emailrelay
/$(PKG_VERSION
)
16 PKG_MD5SUM
:=0892fbf993407c6b5a16f96e23299b62
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/uclibc
++.mk
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/emailrelay
/Default
26 SUBMENU
:=Web Servers
/Proxies
28 DEPENDS
:=$(CXX_DEPENDS
)
29 TITLE
:=A simple SMTP proxy and MTA
30 URL
:=http
://emailrelay.sourceforge.net
/
31 MAINTAINER
:= Federico Di Marco
<fededim@gmail.com
>
35 define Package
/emailrelay
36 $(call Package
/emailrelay
/Default
)
37 TITLE
+= (with OpenSSL support
)
42 define Package
/emailrelay-nossl
43 $(call Package
/emailrelay
/Default
)
44 TITLE
+= (no SSL support
)
50 define Package
/emailrelay
/Default
/description
51 Emailrelay is a simple SMTP proxy and store-and-forward message transfer agent
(MTA
).
53 When running
as a proxy
all e-mail messages can be passed through
54 a user-defined program
, such
as a spam
filter, which can drop
,
55 re-address or edit messages
as they pass through. When running
56 as a store-and-forward MTA incoming messages are stored in a
57 local spool directory
, and then forwarded to the next SMTP
62 define Package
/emailrelay
/description
63 $(call Package
/emailrelay
/Default
/description
)
65 This package is built with OpenSSL support
(SSMTP is supported
).
68 define Package
/emailrelay-nossl
/description
69 $(call Package
/emailrelay
/Default
/description
)
71 This package is built without SSL support
(no SSMTP
)
75 define Package
/emailrelay
/conffiles
79 define Package
/emailrelay-nossl
/conffiles
84 CXXFLAGS
="$$$$CXXFLAGS -fno-rtti"
86 ifeq ($(BUILD_VARIANT
),ssl
)
91 ifeq ($(BUILD_VARIANT
),nossl
)
96 define Package
/emailrelay
/install
97 $(INSTALL_DIR
) $(1)/usr
/bin
98 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay
$(1)/usr
/bin
/
99 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay-filter-copy
$(1)/usr
/bin
/
100 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay-passwd
$(1)/usr
/bin
/
101 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay-poke
$(1)/usr
/bin
/
102 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay-submit
$(1)/usr
/bin
/
103 $(INSTALL_DIR
) $(1)/etc
104 $(INSTALL_DATA
) files
/$(PKG_NAME
).auth
$(1)/etc
/
105 $(INSTALL_DIR
) $(1)/etc
/init.d
106 $(INSTALL_BIN
) files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
109 Package
/emailrelay-nossl
/install = $(Package
/emailrelay
/install)
112 $(eval
$(call BuildPackage
,emailrelay
))
113 $(eval
$(call BuildPackage
,emailrelay-nossl
))