From 2b178e6de10207fddf2d7bf1d90100c5662afbe7 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 3 Jan 2013 14:24:29 +0100 Subject: msmtp: new package Signed-off-by: Michael Olbrich --- rules/msmtp.in | 36 +++++++++++++++++++++++++++++++ rules/msmtp.make | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 rules/msmtp.in create mode 100644 rules/msmtp.make 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 +# +# 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 ") + @$(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 -- cgit v1.2.3