blob: ac9cbcf75d6ed108191830a314e30ae46bdc0960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $Id: PKGBUILD 194362 2013-09-14 19:32:55Z pierre $
# Maintainer:
pkgname=ssmtp
pkgver=2.64
pkgrel=5
pkgdesc="Extremely simple MTA to get mail off the system to a mailhub"
arch=('i686' 'x86_64' 'mips64el')
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')
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
}
|