blob: 2678ea80e13578d10b4b6a2980b28bbe9231cafe (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# $Id: PKGBUILD 71941 2012-06-03 21:58:45Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=exim
pkgver=4.80
pkgrel=1
pkgdesc="Message Transfer Agent"
arch=('x86_64' 'i686')
url='http://www.exim.org/'
license=('GPL')
backup=(etc/mail/aliases etc/mail/exim.conf etc/logrotate.d/exim etc/conf.d/exim)
install=exim.install
depends=('db' 'pcre' 'pam' 'openssl' 'libldap')
provides=('smtp-server')
conflicts=('smtp-server')
options=('!makeflags')
source=("http://mirror.switch.ch/ftp/mirror/exim/exim/exim4/exim-$pkgver.tar.bz2"
aliases
exim
exim.logrotate
exim.conf.d
exim.Makefile)
sha256sums=('787b6defd37fa75311737bcfc42e9e2b2cc62c5d027eed35bb7d800b2d9a0984'
'932c9149b6809c70e94c1256e28325d197bbf80d27322793e217d4b692d49c5a'
'48457622b22de9721efe9f143a88e5f5ce833b792d2e757237b6cdb74a1708e6'
'7f1408f9c5d905968e665941f5c5efcf9da53e7a0bbef6c66220343bc2ae994b'
'0209c701f8696a9628d43c1684105eadd35d1caba199b94e3a54a4d26cecff01'
'7d1e062c907a06293eee40a3139f70c74a055374b234fb8c431ea68362bdda55')
build() {
cd "$srcdir/$pkgname-$pkgver"
cp "$srcdir/$pkgname.Makefile" Local/Makefile
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm0644 ../exim.logrotate "${pkgdir}/etc/logrotate.d/exim"
install -Dm0644 ../exim.conf.d "${pkgdir}/etc/conf.d/exim"
install -Dm0644 doc/exim.8 "${pkgdir}/usr/share/man/man8/exim.8"
install -Dm0755 ../exim "${pkgdir}/etc/rc.d/exim"
mkdir -p "${pkgdir}/var/spool/exim/db" "${pkgdir}/etc/mail" \
"${pkgdir}/var/log/exim" "${pkgdir}/usr"/{lib,sbin}
chmod 770 "${pkgdir}/var/spool/exim" "${pkgdir}/var/spool/exim/db" "${pkgdir}/var/log/exim"
cd build-Linux-*
for i in exicyclog exim_checkaccess exim_dumpdb exim_lock exim_tidydb exipick exiqsumm exigrep \
exim_dbmbuild exim exim_fixdb eximstats exinext exiqgrep exiwhat; do
install -m0755 "$i" "$pkgdir/usr/sbin"
done
cd "$srcdir/exim-$pkgver/src"
sed -e "s|/etc/aliases|/etc/mail/aliases|g" -e "s|SYSTEM_ALIASES_FILE|/etc/mail/aliases|g" \
configure.default > "$pkgdir/etc/mail/exim.conf"
cp "$srcdir/aliases" "$pkgdir/etc/mail"
cd "$pkgdir/usr/sbin"
for i in mailq rmail rsmtp runq sendmail; do
ln -s exim "$i"
done
# fhs compliancy
ln -s ../sbin/exim ../lib/sendmail
mkdir -p "$pkgdir/etc/rc.d"
cp "$srcdir/exim" "$pkgdir/etc/rc.d"
}
|