[arch-commits] Commit in ssmtp/repos/community-x86_64 (8 files)
David Runge
dvzrv at archlinux.org
Mon Mar 12 22:07:51 UTC 2018
Date: Monday, March 12, 2018 @ 22:07:49
Author: dvzrv
Revision: 306599
archrelease: copy trunk to community-x86_64
Added:
ssmtp/repos/community-x86_64/PKGBUILD
(from rev 306598, ssmtp/trunk/PKGBUILD)
ssmtp/repos/community-x86_64/build-idempotency.patch
(from rev 306598, ssmtp/trunk/build-idempotency.patch)
ssmtp/repos/community-x86_64/opessl_crypto.patch
(from rev 306598, ssmtp/trunk/opessl_crypto.patch)
ssmtp/repos/community-x86_64/ssmtp.install
(from rev 306598, ssmtp/trunk/ssmtp.install)
Deleted:
ssmtp/repos/community-x86_64/PKGBUILD
ssmtp/repos/community-x86_64/build-idempotency.patch
ssmtp/repos/community-x86_64/opessl_crypto.patch
ssmtp/repos/community-x86_64/ssmtp.install
-------------------------+
PKGBUILD | 137 +++++++++++++++++++++++-----------------------
build-idempotency.patch | 26 ++++----
opessl_crypto.patch | 42 +++++++-------
ssmtp.install | 31 ++++++----
4 files changed, 122 insertions(+), 114 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-03-12 22:07:34 UTC (rev 306598)
+++ PKGBUILD 2018-03-12 22:07:49 UTC (rev 306599)
@@ -1,67 +0,0 @@
-# $Id$
-# Maintainer: David Runge <dave at sleepmap.de>
-
-pkgname=ssmtp
-pkgver=2.64
-pkgrel=11
-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')
-install=${pkgname}.install
-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}
-}
Copied: ssmtp/repos/community-x86_64/PKGBUILD (from rev 306598, ssmtp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-03-12 22:07:49 UTC (rev 306599)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: David Runge <dave at sleepmap.de>
+
+pkgname=ssmtp
+pkgver=2.64
+pkgrel=12
+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')
+install=${pkgname}.install
+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 -cR mail "${pkgdir}/etc/${pkgname}" \
+ "${pkgdir}/usr/bin/"{${pkgname},sendmail,newaliases,mailq}
+ # allow access to configuration folder
+ chmod -c 750 "${pkgdir}/etc/${pkgname}"
+ # allow only root:mail rw:r access to configurations
+ chmod -c 640 "${pkgdir}/etc/${pkgname}/"*
+ # setgid executables
+ chmod -c 2755 "${pkgdir}/usr/bin/"{${pkgname},sendmail,newaliases,mailq}
+}
Deleted: build-idempotency.patch
===================================================================
--- build-idempotency.patch 2018-03-12 22:07:34 UTC (rev 306598)
+++ build-idempotency.patch 2018-03-12 22:07:49 UTC (rev 306599)
@@ -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 306598, ssmtp/trunk/build-idempotency.patch)
===================================================================
--- build-idempotency.patch (rev 0)
+++ build-idempotency.patch 2018-03-12 22:07:49 UTC (rev 306599)
@@ -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-12 22:07:34 UTC (rev 306598)
+++ opessl_crypto.patch 2018-03-12 22:07:49 UTC (rev 306599)
@@ -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 306598, ssmtp/trunk/opessl_crypto.patch)
===================================================================
--- opessl_crypto.patch (rev 0)
+++ opessl_crypto.patch 2018-03-12 22:07:49 UTC (rev 306599)
@@ -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=""
+
Deleted: ssmtp.install
===================================================================
--- ssmtp.install 2018-03-12 22:07:34 UTC (rev 306598)
+++ ssmtp.install 2018-03-12 22:07:49 UTC (rev 306599)
@@ -1,13 +0,0 @@
-post_upgrade() {
- # if upgrading from 2.64-9 or 2.64-11, make sure to set permissions and setgid
- if [ $(vercmp $2 "2.64-9") -eq 0 ] || [ $(vercmp $2 "2.64-10") -eq 0 ]; then
- # set ownership and permissions for configuration and exectuables
- # FS#57787
- echo "Running post_upgrade function to fix FS#57787"
- chgrp -cR mail /etc/ssmtp \
- /usr/bin/{ssmtp,sendmail,newaliases,mailq}
- chmod -cR 640 /etc/ssmtp
- # setgid executables
- chmod -c 2755 /usr/bin/{ssmtp,sendmail,newaliases,mailq}
- fi
-}
Copied: ssmtp/repos/community-x86_64/ssmtp.install (from rev 306598, ssmtp/trunk/ssmtp.install)
===================================================================
--- ssmtp.install (rev 0)
+++ ssmtp.install 2018-03-12 22:07:49 UTC (rev 306599)
@@ -0,0 +1,18 @@
+post_upgrade() {
+ # if upgrading from 2.64-9 or 2.64-11, make sure to set permissions and setgid
+ if [ $(vercmp $2 "2.64-11") -le 0 ]; then
+ # set ownership and permissions for configuration and exectuables
+ # FS#57787
+ echo "Running post_upgrade function to fix FS#57787"
+ chgrp -cR mail /etc/ssmtp \
+ /usr/bin/{ssmtp,sendmail,newaliases,mailq}
+ # unset unneded sticky bit
+ chmod -cR g-s /etc/ssmtp
+ # allow access to directory
+ chmod -c 750 /etc/ssmtp
+ # allow only root:mail rw to configs
+ chmod -c 640 /etc/ssmtp/*
+ # setgid executables
+ chmod -c 2755 /usr/bin/{ssmtp,sendmail,newaliases,mailq}
+ fi
+}
More information about the arch-commits
mailing list