blob: 7aad8b7bb9e490008977079494943908a44eb831 (
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Contributor: Jesse Young <jlyo@jlyo.org>
# Maintainer: Jesse Young <jlyo@jlyo.org>
pkgname=exim
pkgver=4.82
pkgrel=0
pkgdesc="A Message Transfer Agent"
url="http://www.exim.org/"
arch="all"
license="GPL2"
depends="openssl"
depends_dev="db-dev pcre-dev openssl-dev"
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="ftp://exim.inode.at/exim/exim4/$pkgname-$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"
# do not build parallel
export MAKEFLAGS=-j1
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="feb933baa4db773c2ef76b794c60b647 exim-4.82.tar.bz2
7dfc9ed9307db655c8aec33b9618608d exim.Makefile
f442b68d435598831bab8536ade071b8 exim.confd
55923aa95e8445eb9390485435c63084 exim.initd
281ad020d1df8c6ed0f4ecb53c0fce63 exim.logrotate
eaec7a2a5f49b768fa168415ef0105fb aliases"
sha256sums="46dedfb6ced2aa4a1eddc5d8ce46a790a961508bd389faa2e215302ae80d91cf exim-4.82.tar.bz2
3a57b01e89cf0d00b6fff92edfcd31402bd07b569a3a642b323417e0db025727 exim.Makefile
668f912565a59926957090c6143f669f0e9de2cf441507d3c05fcd046865b401 exim.confd
e9123cd5f4d062931006b2b485479b7f30e07a85f23c19476df243943f296f7b exim.initd
8c8e074b3ba2e99b83e89e8f20105846a19263ad63997def70f41ffb3835bc8e exim.logrotate
f2943990feb2ddfb93e8b0816ef914e7057cb5d48a093901881e970b1002ab8a aliases"
sha512sums="3f65d99e737a524c5ca84bd912193774418134d77f38868258890945c559f3890af470723da7e88a601af3bd4e8055302db59c455381dc26d573d38b64e2f2ca exim-4.82.tar.bz2
f2fea5d347b1570c664df0a4b298d2eef8efbb23dce91e24fe4ac5929d052f645fe0fdd4032820fdb44f713ef0ef39f96b915179d690b1209801c41f0040f721 exim.Makefile
24bae5bba1b41e59247cd7089c3f9ffcc5f4b26c3da1b21f755724a7ee5c99a05e324437c965ae86170056cc63b9bcdc41f624a747ab31b887d69cff620f2155 exim.confd
e6659a9b81d34a80ad2c44594ba9a491f7be5bbdb6968736fb22f314e04e4ac9be9fd3e6541ebdf6a31a287b524f5484124fa19c1a1ddc52d8455d80a6f0f8d8 exim.initd
079986bc315cfcf58de0d321de4b036c8322212ef2e3cc9601d086040ec5c6a29e0073627f5d0ea7673c9efbcc8144457617ec97c47cb64f5ad6157f67eab67d exim.logrotate
9cc0fe81b2110aecdd3d494650d051f773c2c83611692c4e5d365b89dcddd08b16af5b8f5f4ac3e3f553c36198846a05793d8fd01113f62d2ab761f555409201 aliases"
|