[OpenWrt-Devel] [PATCH] New package: mailsend. A tool that allows to send emails without the need to install an smtp server. Supports ssl.

giovanni.distasi at unina.it giovanni.distasi at unina.it
Wed Aug 20 15:37:10 EDT 2014


From: Giovanni Di Stasi <giovanni.distasi at unina.it>

---
 net/mailsend/Makefile              | 48 ++++++++++++++++++++++++++++++++++++++
 net/mailsend/patches/000-configure | 11 +++++++++
 2 files changed, 59 insertions(+)
 create mode 100644 net/mailsend/Makefile
 create mode 100644 net/mailsend/patches/000-configure

diff --git a/net/mailsend/Makefile b/net/mailsend/Makefile
new file mode 100644
index 0000000..34e6a2f
--- /dev/null
+++ b/net/mailsend/Makefile
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2006-2012 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=mailsend
+PKG_VERSION:=1.17b14
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/muquit/mailsend/releases/download/1.17b14/
+PKG_MD5SUM:=a147cf32ee3e6562e49b4fec1dd0ea64
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/mailsend
+	SECTION:=utils
+	CATEGORY:=Utilities
+	TITLE:=mailsend
+	DEPENDS:=+libopenssl
+	URL:=https://github.com/muquit/mailsend
+endef
+
+define Build/Configure
+  $(call Build/Configure/Default, --with-openssl=/home/giovanni/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/openssl-1.0.1h)
+endef
+
+define Package/mailsend/description
+	Mailsend is an utility that allows to send email without the need of a stmp server. It supports ssl emails (as gmail).
+endef
+
+define Build/Compile
+	$(MAKE) -C $(PKG_BUILD_DIR)
+endef
+
+define Package/mailsend/install
+	$(INSTALL_DIR) $(1)/usr/bin
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/mailsend $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,mailsend))
+
diff --git a/net/mailsend/patches/000-configure b/net/mailsend/patches/000-configure
new file mode 100644
index 0000000..b393f23
--- /dev/null
+++ b/net/mailsend/patches/000-configure
@@ -0,0 +1,11 @@
+--- a/configure	2013-10-14 17:37:39.000000000 +0200
++++ b/configure	2014-08-19 23:33:58.494405062 +0200
+@@ -5685,7 +5685,7 @@
+             fi
+         fi
+         if test -z "$openssl_cv_libraries"; then
+-            openssl_cv_libraries=$openssl_cv_dir/lib
++            openssl_cv_libraries=$openssl_cv_dir
+             if test -d "$openssl_cv_libraries"; then
+                 OPENSSL_LIBS="-L$openssl_cv_libraries -lssl -lcrypto"
+             fi
-- 
2.0.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list