# $Id: PKGBUILD 31338 2009-03-25 20:01:40Z eric $ # Maintainer: Hugo Doria pkgname=ssmtp pkgver=2.62 pkgrel=4 pkgdesc="Extremely simple MTA to get mail off the system to a mailhub" arch=('i686' 'x86_64') license=('GPL') depends=('openssl') source=(http://ftp.debian.org/debian/pool/main/s/ssmtp/${pkgname}_${pkgver}.orig.tar.gz) md5sums=('257ac04e62ab7e3616e220333a1140cb') backup=('etc/ssmtp/ssmtp.conf' 'etc/ssmtp/revaliases') conflicts=('exim') provides=('smtp-forwarder') url="http://packages.debian.org/stable/mail/ssmtp" options=('!makeflags' '!emptydirs') ## if you build in chroot make sure the chroots fully qualified hostname id the same as in your real root system ## build() { cd ${srcdir}/${pkgname} ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --enable-md5auth --enable-ssl || return 1 make || return 1 yes | make prefix=${pkgdir}/usr mandir=${pkgdir}/usr/share/man/man8 SSMTPCONFDIR=${pkgdir}/etc/ssmtp install || return 1 install -m644 ssmtp.conf ${pkgdir}/etc/ssmtp/ || return 1 install -D -m644 ssmtp.conf.5 ${pkgdir}/usr/share/man/man5/ssmtp.conf.5 || return 1 ln -s ../sbin/ssmtp ${pkgdir}/usr/sbin/sendmail ln -s ../sbin/ssmtp ${pkgdir}/usr/sbin/newaliases ln -s ../sbin/ssmtp ${pkgdir}/usr/sbin/mailq }