[arch-commits] Commit in ssmtp/repos (6 files)

Tom Gundersen tomegun at nymeria.archlinux.org
Thu May 30 08:11:53 EDT 2013


    Date: Thursday, May 30, 2013 @ 14:11:53
  Author: tomegun
Revision: 186643

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  ssmtp/repos/staging-i686/
  ssmtp/repos/staging-i686/PKGBUILD
    (from rev 186642, ssmtp/trunk/PKGBUILD)
  ssmtp/repos/staging-i686/opessl_crypto.patch
    (from rev 186642, ssmtp/trunk/opessl_crypto.patch)
  ssmtp/repos/staging-x86_64/
  ssmtp/repos/staging-x86_64/PKGBUILD
    (from rev 186642, ssmtp/trunk/PKGBUILD)
  ssmtp/repos/staging-x86_64/opessl_crypto.patch
    (from rev 186642, ssmtp/trunk/opessl_crypto.patch)

------------------------------------+
 staging-i686/PKGBUILD              |   46 +++++++++++++++++++++++++++++++++++
 staging-i686/opessl_crypto.patch   |   21 +++++++++++++++
 staging-x86_64/PKGBUILD            |   46 +++++++++++++++++++++++++++++++++++
 staging-x86_64/opessl_crypto.patch |   21 +++++++++++++++
 4 files changed, 134 insertions(+)

Copied: ssmtp/repos/staging-i686/PKGBUILD (from rev 186642, ssmtp/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2013-05-30 12:11:53 UTC (rev 186643)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer:
+
+pkgname=ssmtp
+pkgver=2.64
+pkgrel=4
+pkgdesc="Extremely simple MTA to get mail off the system to a mailhub"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://packages.debian.org/stable/mail/ssmtp"
+depends=('openssl' 'inetutils')
+conflicts=('exim')
+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')
+md5sums=('65b4e0df4934a6cd08c506cabcbe584f'
+         'aeb4ed09a26eefea9a5f6ac755c4dff0')
+
+## if you build in chroot, make sure the chroots fully qualified hostname is the same as in your real root system ##
+
+build() {
+   cd "${srcdir}/${pkgname}-${pkgver}"
+   patch -p1 -i "${srcdir}/opessl_crypto.patch"
+   autoreconf
+   ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --mandir=/usr/share/man \
+    --enable-md5auth --enable-ssl
+   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/staging-i686/opessl_crypto.patch (from rev 186642, ssmtp/trunk/opessl_crypto.patch)
===================================================================
--- staging-i686/opessl_crypto.patch	                        (rev 0)
+++ staging-i686/opessl_crypto.patch	2013-05-30 12:11:53 UTC (rev 186643)
@@ -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=""
+ 

Copied: ssmtp/repos/staging-x86_64/PKGBUILD (from rev 186642, ssmtp/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2013-05-30 12:11:53 UTC (rev 186643)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer:
+
+pkgname=ssmtp
+pkgver=2.64
+pkgrel=4
+pkgdesc="Extremely simple MTA to get mail off the system to a mailhub"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://packages.debian.org/stable/mail/ssmtp"
+depends=('openssl' 'inetutils')
+conflicts=('exim')
+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')
+md5sums=('65b4e0df4934a6cd08c506cabcbe584f'
+         'aeb4ed09a26eefea9a5f6ac755c4dff0')
+
+## if you build in chroot, make sure the chroots fully qualified hostname is the same as in your real root system ##
+
+build() {
+   cd "${srcdir}/${pkgname}-${pkgver}"
+   patch -p1 -i "${srcdir}/opessl_crypto.patch"
+   autoreconf
+   ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --mandir=/usr/share/man \
+    --enable-md5auth --enable-ssl
+   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/staging-x86_64/opessl_crypto.patch (from rev 186642, ssmtp/trunk/opessl_crypto.patch)
===================================================================
--- staging-x86_64/opessl_crypto.patch	                        (rev 0)
+++ staging-x86_64/opessl_crypto.patch	2013-05-30 12:11:53 UTC (rev 186643)
@@ -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