Date: Sunday, March 11, 2018 @ 14:55:15 Author: dvzrv Revision: 306177
archrelease: copy trunk to community-x86_64 Added: ssmtp/repos/community-x86_64/PKGBUILD (from rev 306176, ssmtp/trunk/PKGBUILD) ssmtp/repos/community-x86_64/build-idempotency.patch (from rev 306176, ssmtp/trunk/build-idempotency.patch) ssmtp/repos/community-x86_64/opessl_crypto.patch (from rev 306176, ssmtp/trunk/opessl_crypto.patch) Deleted: ssmtp/repos/community-x86_64/PKGBUILD ssmtp/repos/community-x86_64/build-idempotency.patch ssmtp/repos/community-x86_64/opessl_crypto.patch -------------------------+ PKGBUILD | 122 ++++++++++++++++++++++++---------------------- build-idempotency.patch | 26 ++++----- opessl_crypto.patch | 42 +++++++-------- 3 files changed, 100 insertions(+), 90 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-03-11 14:55:03 UTC (rev 306176) +++ PKGBUILD 2018-03-11 14:55:15 UTC (rev 306177) @@ -1,56 +0,0 @@ -# $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/PKGBUILD (from rev 306176, ssmtp/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-03-11 14:55:15 UTC (rev 306177) @@ -0,0 +1,66 @@ +# $Id$ +# Maintainer: David Runge <d...@sleepmap.de> + +pkgname=ssmtp +pkgver=2.64 +pkgrel=10 +pkgdesc="Extremely simple MTA to get mail off the system to a mailhub" +arch=('x86_64') +license=('GPL') +url="https://tracker.debian.org/pkg/ssmtp" +depends=('openssl' 'inetutils') +conflicts=('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') +sha512sums=('911752e744420adf58552b9cf3a6e558d8b39103e5ad33a9ed4429b9a3a2091f7674aac11fe9bbd66747a61cdabe6bd638b80efcaadc86b057c12e2e235cca72' + '841fae386d155d989bb7202a2010107c5742ccff423aed50613d4ec7eb82a23cfa4818f08dc248d28c8db8569a27e3722181ad1282903cc93b8a1bfd9381ef75' + 'f66a5b344cd0da8d7be116a634a73681372628447a4d566024b3ccdad4092fe54b2b6ff529575cf340a09f62d55debe680d136c24739901606c7a2551037fddc') + +prepare() { + cd "${pkgname}-${pkgver}" + patch -p1 -i "${srcdir}/opessl_crypto.patch" + patch -p1 -i "${srcdir}/build-idempotency.patch" + autoreconf -vfi +} + +build() { + cd "${pkgname}-${pkgver}" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --enable-md5auth \ + --enable-ssl\ + --enable-inet6 + make +} + +package() { + cd "${pkgname}-${pkgver}" + # auto-answer inputs + yes | make prefix="${pkgdir}/usr" \ + mandir="${pkgdir}/usr/share/man/man8" \ + etcdir="${pkgdir}/etc" install + + # man + install -vDm644 "${pkgname}.conf.5" \ + "${pkgdir}/usr/share/man/man5/${pkgname}.conf.5" + + # don't use /usr/sbin + mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin" + # symlinks for smtp-forwarder + ln -sv ssmtp "${pkgdir}/usr/bin/sendmail" + ln -sv ssmtp "${pkgdir}/usr/bin/newaliases" + ln -sv ssmtp "${pkgdir}/usr/bin/mailq" + + # set ownership and permissions for configuration and exectuables + # FS#57787 + chgrp -R mail "${pkgdir}/etc/${pkgname}" \ + "${pkgdir}/usr/bin/"{${pkgname},sendmail,newaliases,mailq} + chmod -R 640 "${pkgdir}/etc/${pkgname}" + # setgid executables + chmod 2755 "${pkgdir}/usr/bin/"{${pkgname},sendmail,newaliases,mailq} +} Deleted: build-idempotency.patch =================================================================== --- build-idempotency.patch 2018-03-11 14:55:03 UTC (rev 306176) +++ build-idempotency.patch 2018-03-11 14:55:15 UTC (rev 306177) @@ -1,13 +0,0 @@ -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/build-idempotency.patch (from rev 306176, ssmtp/trunk/build-idempotency.patch) =================================================================== --- build-idempotency.patch (rev 0) +++ build-idempotency.patch 2018-03-11 14:55:15 UTC (rev 306177) @@ -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 Deleted: opessl_crypto.patch =================================================================== --- opessl_crypto.patch 2018-03-11 14:55:03 UTC (rev 306176) +++ opessl_crypto.patch 2018-03-11 14:55:15 UTC (rev 306177) @@ -1,21 +0,0 @@ -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="" - Copied: ssmtp/repos/community-x86_64/opessl_crypto.patch (from rev 306176, ssmtp/trunk/opessl_crypto.patch) =================================================================== --- opessl_crypto.patch (rev 0) +++ opessl_crypto.patch 2018-03-11 14:55:15 UTC (rev 306177) @@ -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="" +