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
:=869a3e2d053237d7f63784acc25e748af2dbf2d9b9c5c48e4a5269d4e4b5bda0
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_CONFIG_DEPENDS
:=CONFIG_EMAILRELAY_SUPPORT_VERBOSE_DBG CONFIG_EMAILRELAY_SSL
23 #include $(INCLUDE_DIR)/uclibc++.mk # $(CXX_DEPENDS)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/emailrelay
29 DEPENDS
:=+EMAILRELAY_SSL
:libopenssl
+libstdcpp
30 TITLE
:=A simple SMTP proxy and MTA
31 URL
:=http
://emailrelay.sourceforge.net
/
32 MAINTAINER
:=Federico Di Marco
<fededim@gmail.com
>
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
78 CXXFLAGS
="$$$$CXXFLAGS -fno-rtti"
81 ifeq ($(CONFIG_EMAILRELAY_SSL
),y
)
90 ifeq ($(CONFIG_EMAILRELAY_SUPPORT_VERBOSE_DBG
),y
)
95 ifeq ($(CONFIG_OPENSSL_WITH_SSL3
),y
)
97 CXXFLAGS
="$$$$CXXFLAGS -DSSL3_SUPPORT"
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-poke
$(1)/usr
/bin
/
106 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/main
/emailrelay-submit
$(1)/usr
/bin
/
107 $(INSTALL_DIR
) $(1)/tmp
/spool
108 $(INSTALL_DIR
) $(1)/tmp
/spool
/emailrelay
109 $(INSTALL_DIR
) $(1)/etc
110 $(INSTALL_DATA
) files
/$(PKG_NAME
).auth
$(1)/etc
/
111 $(INSTALL_DIR
) $(1)/etc
/init.d
112 $(INSTALL_BIN
) files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
116 $(eval
$(call BuildPackage
,emailrelay
))