[arch-commits] Commit in ssmtp/repos (4 files)
Antonio Rojas
arojas at archlinux.org
Sun Dec 24 10:20:31 UTC 2017
Date: Sunday, December 24, 2017 @ 10:20:30
Author: arojas
Revision: 275746
archrelease: copy trunk to community-x86_64
Added:
ssmtp/repos/community-x86_64/
ssmtp/repos/community-x86_64/PKGBUILD
(from rev 275745, ssmtp/trunk/PKGBUILD)
ssmtp/repos/community-x86_64/build-idempotency.patch
(from rev 275745, ssmtp/trunk/build-idempotency.patch)
ssmtp/repos/community-x86_64/opessl_crypto.patch
(from rev 275745, ssmtp/trunk/opessl_crypto.patch)
-------------------------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++
build-idempotency.patch | 13 ++++++++++
opessl_crypto.patch | 21 +++++++++++++++++
3 files changed, 90 insertions(+)
Copied: ssmtp/repos/community-x86_64/PKGBUILD (from rev 275745, ssmtp/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2017-12-24 10:20:30 UTC (rev 275746)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer:
+
+pkgname=ssmtp
+pkgver=2.64
+pkgrel=9
+pkgdesc="Extremely simple MTA to get mail off the system to a mailhub"
+arch=('x86_64')
+license=('GPL')
+url="http://packages.debian.org/stable/mail/ssmtp"
+depends=('openssl' 'inetutils')
+conflicts=('exim' 'smtp-forwarder')
+provides=('smtp-forwarder')
+backup=('etc/ssmtp/ssmtp.conf' 'etc/ssmtp/revaliases')
+options=('!makeflags' '!emptydirs')
+source=("http://ftp.debian.org/debian/pool/main/s/ssmtp/${pkgname}_${pkgver}.orig.tar.bz2"
+ 'opessl_crypto.patch'
+ 'build-idempotency.patch')
+md5sums=('65b4e0df4934a6cd08c506cabcbe584f'
+ 'aeb4ed09a26eefea9a5f6ac755c4dff0'
+ '589925d042ab01bd692ba68cb25d404f')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -p1 -i "${srcdir}/opessl_crypto.patch"
+ patch -p1 -i "${srcdir}/build-idempotency.patch"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ autoreconf
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --enable-md5auth \
+ --enable-ssl\
+ --enable-inet6
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ yes | make prefix="${pkgdir}/usr" mandir="${pkgdir}/usr/share/man/man8" etcdir="${pkgdir}/etc" install
+
+ install -D -m644 ssmtp.conf.5 "${pkgdir}/usr/share/man/man5/ssmtp.conf.5"
+
+ ln -s ssmtp "${pkgdir}/usr/sbin/sendmail"
+ ln -s ssmtp "${pkgdir}/usr/sbin/newaliases"
+ ln -s ssmtp "${pkgdir}/usr/sbin/mailq"
+ # usrmove
+ cd "$pkgdir"
+ mv usr/sbin usr/bin
+}
Copied: ssmtp/repos/community-x86_64/build-idempotency.patch (from rev 275745, ssmtp/trunk/build-idempotency.patch)
===================================================================
--- community-x86_64/build-idempotency.patch (rev 0)
+++ community-x86_64/build-idempotency.patch 2017-12-24 10:20:30 UTC (rev 275746)
@@ -0,0 +1,13 @@
+diff --git a/generate_config b/generate_config
+index a16efd4..cf29461 100755
+--- a/generate_config
++++ b/generate_config
+@@ -56,7 +56,7 @@ mailhub=mail
+ # Where will the mail seem to come from?
+ #rewriteDomain=`echo -n $mailname`
+ # The full hostname
+-hostname=`hostname --fqdn`
++hostname=localhost.localdomain
+ EOF
+
+ echo
Copied: ssmtp/repos/community-x86_64/opessl_crypto.patch (from rev 275745, ssmtp/trunk/opessl_crypto.patch)
===================================================================
--- community-x86_64/opessl_crypto.patch (rev 0)
+++ community-x86_64/opessl_crypto.patch 2017-12-24 10:20:30 UTC (rev 275746)
@@ -0,0 +1,21 @@
+Fix linking error:
+
+Undefined symbols:
+ "_X509_free", referenced from:
+ _smtp_open in ssmtp.o
+ld: symbol(s) not found
+
+
+Index: ssmtp-2.64/configure.in
+===================================================================
+--- ssmtp-2.64.orig/configure.in
++++ ssmtp-2.64/configure.in
+@@ -52,7 +52,7 @@ AC_ARG_ENABLE(ssl,
+ [ --enable-ssl support for secure connection to mail server])
+ if test x$enableval = xyes ; then
+ AC_DEFINE(HAVE_SSL)
+- LIBS="$LIBS -lssl"
++ LIBS="$LIBS -lssl -lcrypto"
+ fi
+ enableval=""
+
More information about the arch-commits
mailing list