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_HASH
:=cff8cf5bff19fd1721cefdbd6207da67af01d2b1b4a51d147c33f4429a79766e
18 PKG_MAINTAINER
:=Federico Di Marco
<fededim@gmail.com
>
19 PKG_LICENSE
:=GPL-3.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
22 PKG_CONFIG_DEPENDS
:=CONFIG_EMAILRELAY_SUPPORT_VERBOSE_DBG CONFIG_EMAILRELAY_SSL
23 PKG_BUILD_FLAGS
:=gc-sections lto
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/emailrelay
30 DEPENDS
:=+EMAILRELAY_SSL
:libopenssl
+libstdcpp
31 TITLE
:=A simple SMTP proxy and MTA
32 URL
:=http
://emailrelay.sourceforge.net
/
37 define Package
/emailrelay
/config
38 config EMAILRELAY_SUPPORT_VERBOSE_DBG
39 bool
"Enable support for extended logging"
40 depends on PACKAGE_emailrelay
43 Enables support for extended logging
(must also be explicitely enabled by using command line switch
--debug when starting emailrelay
)
46 bool
"Enable support for OpenSSL"
47 depends on PACKAGE_emailrelay
49 select PACKAGE_libopenssl
51 Builds the package with OpenSSL support
(SSMTP is supported
).
56 define Package
/emailrelay
/description
57 Emailrelay is a simple SMTP proxy and store-and-forward message transfer agent
(MTA
).
59 When running
as a proxy
all e-mail messages can be passed through
60 a user-defined program
, such
as a spam
filter, which can drop
,
61 re-address or edit messages
as they pass through. When running
62 as a store-and-forward MTA incoming messages are stored in a
63 local spool directory
, and then forwarded to the next SMTP
68 define Package
/emailrelay
/conffiles
69 /etc
/config
/emailrelay
85 ifeq ($(CONFIG_EMAILRELAY_SSL
),y
)
93 ifeq ($(CONFIG_EMAILRELAY_SUPPORT_VERBOSE_DBG
),y
)
98 TARGET_CXXFLAGS
+= -Wl
,--as-needed
100 define Package
/emailrelay
/install
101 $(INSTALL_DIR
) $(1)/usr
/bin
102 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay
$(1)/usr
/bin
/
103 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay-filter-copy
$(1)/usr
/bin
/
104 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay-passwd
$(1)/usr
/bin
/
105 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay-submit
$(1)/usr
/bin
/
106 $(INSTALL_DIR
) $(1)/etc
107 $(INSTALL_DATA
) files
/$(PKG_NAME
).auth
$(1)/etc
/
108 $(INSTALL_DIR
) $(1)/etc
/config
109 $(INSTALL_CONF
) files
/$(PKG_NAME
).config
$(1)/etc
/config
/$(PKG_NAME
)
110 $(INSTALL_DIR
) $(1)/etc
/init.d
111 $(INSTALL_BIN
) files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
115 $(eval
$(call BuildPackage
,emailrelay
))