[arch-commits] Commit in ssmtp/trunk (PKGBUILD build-idempotency.patch)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Thu May 5 13:37:03 UTC 2016


    Date: Thursday, May 5, 2016 @ 15:37:03
  Author: bpiotrowski
Revision: 266942

upgpkg: ssmtp 2.64-8

hardcode hostname to localhost.localdomain (FS#48477)

Added:
  ssmtp/trunk/build-idempotency.patch
Modified:
  ssmtp/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |   11 ++++++-----
 build-idempotency.patch |   13 +++++++++++++
 2 files changed, 19 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-05-05 12:59:42 UTC (rev 266941)
+++ PKGBUILD	2016-05-05 13:37:03 UTC (rev 266942)
@@ -3,7 +3,7 @@
 
 pkgname=ssmtp
 pkgver=2.64
-pkgrel=7
+pkgrel=8
 pkgdesc="Extremely simple MTA to get mail off the system to a mailhub"
 arch=('i686' 'x86_64')
 license=('GPL')
@@ -14,16 +14,17 @@
 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')
+        'opessl_crypto.patch'
+        'build-idempotency.patch')
 md5sums=('65b4e0df4934a6cd08c506cabcbe584f'
-         'aeb4ed09a26eefea9a5f6ac755c4dff0')
+         'aeb4ed09a26eefea9a5f6ac755c4dff0'
+         '589925d042ab01bd692ba68cb25d404f')
 
-## if you build in chroot, make sure the chroots fully qualified hostname is the same as in your real root system ##
-
 prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 
   patch -p1 -i "${srcdir}/opessl_crypto.patch"
+  patch -p1 -i "${srcdir}/build-idempotency.patch"
 }
 
 build() {

Added: build-idempotency.patch
===================================================================
--- build-idempotency.patch	                        (rev 0)
+++ build-idempotency.patch	2016-05-05 13:37:03 UTC (rev 266942)
@@ -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



More information about the arch-commits mailing list