snort3: improve date filtering in report
[feed/packages.git] / mail / emailrelay / Makefile
1 #
2 # Copyright (C) 2006-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=emailrelay
11 PKG_VERSION:=2.4.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
15 PKG_SOURCE_URL:=@SF/emailrelay/$(PKG_VERSION)
16 PKG_HASH:=cff8cf5bff19fd1721cefdbd6207da67af01d2b1b4a51d147c33f4429a79766e
17
18 PKG_MAINTAINER:=Federico Di Marco <fededim@gmail.com>
19 PKG_LICENSE:=GPL-3.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_CONFIG_DEPENDS:=CONFIG_EMAILRELAY_SUPPORT_VERBOSE_DBG CONFIG_EMAILRELAY_SSL
23 PKG_BUILD_FLAGS:=gc-sections lto
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/emailrelay
28 SECTION:=mail
29 CATEGORY:=Mail
30 DEPENDS:=+EMAILRELAY_SSL:libopenssl +libstdcpp
31 TITLE:=A simple SMTP proxy and MTA
32 URL:=http://emailrelay.sourceforge.net/
33 MENU:=1
34 endef
35
36
37 define Package/emailrelay/config
38 config EMAILRELAY_SUPPORT_VERBOSE_DBG
39 bool "Enable support for extended logging"
40 depends on PACKAGE_emailrelay
41 default n
42 help
43 Enables support for extended logging (must also be explicitely enabled by using command line switch --debug when starting emailrelay)
44
45 config EMAILRELAY_SSL
46 bool "Enable support for OpenSSL"
47 depends on PACKAGE_emailrelay
48 default y
49 select PACKAGE_libopenssl
50 help
51 Builds the package with OpenSSL support (SSMTP is supported).
52 endef
53
54
55
56 define Package/emailrelay/description
57 Emailrelay is a simple SMTP proxy and store-and-forward message transfer agent (MTA).
58
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
64 server on request.
65 endef
66
67
68 define Package/emailrelay/conffiles
69 /etc/config/emailrelay
70 /etc/emailrelay.auth
71 endef
72
73
74 CONFIGURE_ARGS += \
75 --without-doxygen \
76 --without-man2html \
77 --without-mbedtls \
78 --without-pam \
79 --disable-bsd \
80 --disable-gui \
81 --disable-mac \
82 --disable-testing \
83 --disable-windows
84
85 ifeq ($(CONFIG_EMAILRELAY_SSL),y)
86 CONFIGURE_ARGS += \
87 --with-openssl
88 else
89 CONFIGURE_ARGS += \
90 --without-openssl
91 endif
92
93 ifeq ($(CONFIG_EMAILRELAY_SUPPORT_VERBOSE_DBG),y)
94 CONFIGURE_ARGS += \
95 --enable-debug=yes
96 endif
97
98 TARGET_CXXFLAGS += -Wl,--as-needed
99
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)
112 endef
113
114
115 $(eval $(call BuildPackage,emailrelay))