summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/msmtp.in36
-rw-r--r--rules/msmtp.make65
2 files changed, 101 insertions, 0 deletions
diff --git a/rules/msmtp.in b/rules/msmtp.in
new file mode 100644
index 000000000..8c5a801df
--- /dev/null
+++ b/rules/msmtp.in
@@ -0,0 +1,36 @@
+## SECTION=networking
+
+menuconfig MSMTP
+ tristate
+ select OPENSSL if MSMTP_OPENSSL
+ select GNUTLS if MSMTP_GNUTLS
+ prompt "msmtp "
+ help
+ light SMTP client with support for server profiles
+
+if MSMTP
+
+choice
+ prompt "SSL Support"
+
+config MSMTP_NOSSL
+ bool
+ prompt "none"
+
+config MSMTP_OPENSSL
+ bool
+ prompt "OpenSSL"
+
+config MSMTP_GNUTLS
+ bool
+ prompt "GnuTLS"
+
+endchoice
+
+config MSMTP_SSL
+ string
+ default "no" if MSMTP_NOSSL
+ default "openssl" if MSMTP_OPENSSL
+ default "gnutls" if MSMTP_GNUTLS
+
+endif
diff --git a/rules/msmtp.make b/rules/msmtp.make
new file mode 100644
index 000000000..3f94a33d4
--- /dev/null
+++ b/rules/msmtp.make
@@ -0,0 +1,65 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_MSMTP) += msmtp
+
+#
+# Paths and names
+#
+MSMTP_VERSION := 1.4.30
+MSMTP_MD5 := 4d32724a2b03f07aa6d4ea9d49367ad3
+MSMTP := msmtp-$(MSMTP_VERSION)
+MSMTP_SUFFIX := tar.bz2
+MSMTP_URL := $(call ptx/mirror, SF, msmtp/$(MSMTP).$(MSMTP_SUFFIX))
+MSMTP_SOURCE := $(SRCDIR)/$(MSMTP).$(MSMTP_SUFFIX)
+MSMTP_DIR := $(BUILDDIR)/$(MSMTP)
+MSMTP_LICENSE := GPLv3
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+MSMTP_CONF_TOOL := autoconf
+MSMTP_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ $(GLOBAL_LARGE_FILE_OPTION) \
+ --disable-nls \
+ --disable-rpath \
+ --with-ssl=$(PTXCONF_MSMTP_SSL) \
+ --without-libgsasl \
+ --without-libidn \
+ --without-gnome-keyring
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/msmtp.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, msmtp)
+ @$(call install_fixup, msmtp,PRIORITY,optional)
+ @$(call install_fixup, msmtp,SECTION,base)
+ @$(call install_fixup, msmtp,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, msmtp,DESCRIPTION,missing)
+
+ @$(call install_copy, msmtp, 0, 0, 0755, -, /usr/bin/msmtp)
+
+ @$(call install_finish, msmtp)
+
+ @$(call touch)
+
+# vim: syntax=make