From e8b46c50df884e4625091ca0d56f2f70ecfc7536 Mon Sep 17 00:00:00 2001 From: its-pointless Date: Sat, 7 Apr 2018 08:55:00 +1000 Subject: [PATCH] msmtp (#2310) --- packages/libgsasl/build.sh | 7 +++++++ packages/msmtp/build.sh | 14 ++++++++++++++ packages/msmtp/makefile.am.patch | 12 ++++++++++++ packages/msmtp/msmtp.c.patch | 10 ++++++++++ 4 files changed, 43 insertions(+) create mode 100644 packages/libgsasl/build.sh create mode 100644 packages/msmtp/build.sh create mode 100644 packages/msmtp/makefile.am.patch create mode 100644 packages/msmtp/msmtp.c.patch diff --git a/packages/libgsasl/build.sh b/packages/libgsasl/build.sh new file mode 100644 index 000000000..fc6d22c46 --- /dev/null +++ b/packages/libgsasl/build.sh @@ -0,0 +1,7 @@ +TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gsasl +TERMUX_PKG_DESCRIPTION="GNU SASL library" +TERMUX_PKG_VERSION=1.8.0 +TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/gsasl/libgsasl-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=3adfb49f9c92a719dea855fd1840d698cde55d4648d332a69032ba8bea207720 +TERMUX_PKG_REVISION=1 +TERMUX_PKG_DEPENDS="libidn" diff --git a/packages/msmtp/build.sh b/packages/msmtp/build.sh new file mode 100644 index 000000000..43878ed28 --- /dev/null +++ b/packages/msmtp/build.sh @@ -0,0 +1,14 @@ +TERMUX_PKG_HOMEPAGE=http://msmtp.sourceforge.net +TERMUX_PKG_DESCRIPTION="light SMTP client" +TERMUX_PKG_VERSION=1.6.6 +TERMUX_PKG_SRCURL=https://sourceforge.net/projects/msmtp/files/msmtp/1.6.6/msmtp-1.6.6.tar.xz +TERMUX_PKG_SHA256=da15db1f62bd0201fce5310adb89c86188be91cd745b7cb3b62b81a501e7fb5e +#TERMUX_PKG_BUILD_IN_SRC=yes +#TERMUX_PKG_EXTRA_CONFIGURE_ARGS="" +#TERMUX_PKG_HOSTBUILD=true +TERMUX_PKG_DEPENDS="libgnutls, libidn" +termux_step_pre_configure () { + LDFLAGS=" -llog" + cp $TERMUX_SCRIPTDIR/packages/alpine/getpass* src/ + autoreconf -if +} diff --git a/packages/msmtp/makefile.am.patch b/packages/msmtp/makefile.am.patch new file mode 100644 index 000000000..ea2e630b3 --- /dev/null +++ b/packages/msmtp/makefile.am.patch @@ -0,0 +1,12 @@ +--- ../cache/msmtp-1.6.6/src/Makefile.am 2014-11-30 22:26:00.000000000 +0000 ++++ ./src/Makefile.am 2018-01-24 00:22:11.210726100 +0000 +@@ -12,7 +12,8 @@ + tools.c tools.h \ + xalloc.c xalloc.h \ + gettext.h \ +- aliases.c aliases.h ++ aliases.c aliases.h \ ++ getpass.c getpass.h + + if HAVE_TLS + msmtp_SOURCES += tls.c tls.h diff --git a/packages/msmtp/msmtp.c.patch b/packages/msmtp/msmtp.c.patch new file mode 100644 index 000000000..849934a25 --- /dev/null +++ b/packages/msmtp/msmtp.c.patch @@ -0,0 +1,10 @@ +--- ../cache/msmtp-1.6.6/src/msmtp.c 2016-11-14 19:44:01.000000000 +0000 ++++ ./src/msmtp.c 2018-01-24 00:14:54.940709798 +0000 +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + extern char *optarg; + extern int optind; + #include