blob: 908d0345fa0755d75c0b21bfb0c4ef0285daff6b (
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
74
75
76
77
78
79
80
81
|
# Contributor: Jesse Young <jlyo@jlyo.org>
# Maintainer: Jesse Young <jlyo@jlyo.org>
pkgname=exim
pkgver=4.77
pkgrel=0
pkgdesc="A Message Transfer Agent"
url="http://www.exim.org/"
arch="all"
license="GPL"
depends="openssl"
depends_dev="db-dev pcre-dev openssl-dev"
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="ftp://mirrors.24-7-solutions.net/pub/exim/ftp/exim/exim4/exim-$pkgver.tar.bz2
exim.Makefile
exim.confd
exim.initd
exim.logrotate
aliases"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
# apply patches here
cp "$srcdir/$pkgname.Makefile" Local/Makefile
sed -e 's/^LIBS = -lnsl/LIBS =/g' \
-e 's/^HAVE_ICONV=yes/#HAVE_ICONV=yes/' \
-i OS/Makefile-Linux
}
build() {
cd "$_builddir"
make makefile
make || {
cd build-Linux-*
sh ../scripts/Configure-config.h "make"
} && make || return 1
}
package() {
cd "$_builddir"
install -D -m644 ../${pkgname}.logrotate ${pkgdir}/etc/logrotate.d/${pkgname}
install -D -m644 doc/exim.8 ${pkgdir}/usr/share/man/man8/exim.8
mkdir -p ${pkgdir}/var/spool/exim/db ${pkgdir}/etc/mail \
${pkgdir}/var/log/exim ${pkgdir}/usr/lib \
${pkgdir}/var/log/exim ${pkgdir}/usr/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 -m 0755 "$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
# remove the 2 lines below (and this) if there is no init.d script
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="5d746275f2cc85845567f9d5eb84a57a exim-4.77.tar.bz2
7dfc9ed9307db655c8aec33b9618608d exim.Makefile
f442b68d435598831bab8536ade071b8 exim.confd
2f6d768039d74caf433345cace4bc540 exim.initd
2f40248d23ad1a9d0c25ab6474ff6900 exim.logrotate
4874006f0585253ddab027d441009757 aliases"
|