|
@@ -0,0 +1,118 @@
|
|
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:=1.9
|
|
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_MD5SUM:=0892fbf993407c6b5a16f96e23299b62
|
|
17
|
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
18
|
+PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
19
|
+PKG_CAT :=zcat
|
|
20
|
+
|
|
21
|
+include $(INCLUDE_DIR)/uclibc++.mk
|
|
22
|
+include $(INCLUDE_DIR)/package.mk
|
|
23
|
+
|
|
24
|
+define Package/emailrelay/Default
|
|
25
|
+ SECTION:=net
|
|
26
|
+ SUBMENU:=Web Servers/Proxies
|
|
27
|
+ CATEGORY:=Network
|
|
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>
|
|
32
|
+endef
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+define Package/emailrelay
|
|
36
|
+$(call Package/emailrelay/Default)
|
|
37
|
+ TITLE+= (with OpenSSL support)
|
|
38
|
+ DEPENDS+=+libopenssl
|
|
39
|
+ VARIANT:=ssl
|
|
40
|
+endef
|
|
41
|
+
|
|
42
|
+define Package/emailrelay-nossl
|
|
43
|
+$(call Package/emailrelay/Default)
|
|
44
|
+ TITLE+= (no SSL support)
|
|
45
|
+ VARIANT:=nossl
|
|
46
|
+endef
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+define Package/emailrelay/Default/description
|
|
51
|
+ Emailrelay is a simple SMTP proxy and store-and-forward message transfer agent (MTA).
|
|
52
|
+
|
|
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
|
|
58
|
+ server on request.
|
|
59
|
+endef
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+define Package/emailrelay/description
|
|
63
|
+$(call Package/emailrelay/Default/description)
|
|
64
|
+
|
|
65
|
+ This package is built with OpenSSL support (SSMTP is supported).
|
|
66
|
+endef
|
|
67
|
+
|
|
68
|
+define Package/emailrelay-nossl/description
|
|
69
|
+$(call Package/emailrelay/Default/description)
|
|
70
|
+
|
|
71
|
+ This package is built without SSL support (no SSMTP)
|
|
72
|
+endef
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+define Package/emailrelay/conffiles
|
|
76
|
+/etc/emailrelay.auth
|
|
77
|
+endef
|
|
78
|
+
|
|
79
|
+define Package/emailrelay-nossl/conffiles
|
|
80
|
+/etc/emailrelay.auth
|
|
81
|
+endef
|
|
82
|
+
|
|
83
|
+CONFIGURE_VARS += \
|
|
84
|
+ CXXFLAGS="$$$$CXXFLAGS -fno-rtti"
|
|
85
|
+
|
|
86
|
+ifeq ($(BUILD_VARIANT),ssl)
|
|
87
|
+ CONFIGURE_ARGS += \
|
|
88
|
+ --with-openssl
|
|
89
|
+endif
|
|
90
|
+
|
|
91
|
+ifeq ($(BUILD_VARIANT),nossl)
|
|
92
|
+ CONFIGURE_ARGS += \
|
|
93
|
+ --with-openssl=no
|
|
94
|
+endif
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+#define Build/Configure
|
|
98
|
+# $(call Build/Configure/Default,--with-openssl)
|
|
99
|
+# endef
|
|
100
|
+
|
|
101
|
+define Package/emailrelay/install
|
|
102
|
+ $(INSTALL_DIR) $(1)/usr/bin
|
|
103
|
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/main/emailrelay $(1)/usr/bin/
|
|
104
|
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/main/emailrelay-filter-copy $(1)/usr/bin/
|
|
105
|
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/main/emailrelay-passwd $(1)/usr/bin/
|
|
106
|
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/main/emailrelay-poke $(1)/usr/bin/
|
|
107
|
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/main/emailrelay-submit $(1)/usr/bin/
|
|
108
|
+ $(INSTALL_DIR) $(1)/etc
|
|
109
|
+ $(INSTALL_DATA) files/$(PKG_NAME).auth $(1)/etc/
|
|
110
|
+ $(INSTALL_DIR) $(1)/etc/init.d
|
|
111
|
+ $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
|
112
|
+endef
|
|
113
|
+
|
|
114
|
+Package/emailrelay-nossl/install = $(Package/emailrelay/install)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+$(eval $(call BuildPackage,emailrelay))
|
|
118
|
+$(eval $(call BuildPackage,emailrelay-nossl))
|