blob: e5a72bfb24829abcadc55ed5c6e81b85425fa56f (
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Jesse Young <jlyo@jlyo.org>
# Maintainer: Jesse Young <jlyo@jlyo.org>
pkgname=exim
pkgver=4.86
pkgrel=0
pkgdesc="A Message Transfer Agent"
url="http://www.exim.org/"
arch="all"
license="GPL2"
options="suid"
depends=
pkgusers="mail"
pkggroups="mail"
depends_dev="db-dev pcre-dev openssl-dev libspf2-dev mariadb-dev postgresql-dev sqlite-dev"
makedepends="bash gawk perl $depends_dev"
install="exim.pre-install"
subpackages="$pkgname-cdb $pkgname-dbmdb $pkgname-dnsdb $pkgname-dsearch $pkgname-lsearch $pkgname-passwd $pkgname-sqlite $pkgname-mysql $pkgname-postgresql $pkgname-utils $pkgname-scripts $pkgname-doc"
source="ftp://ftp.exim.org/pub/exim/exim4/$pkgname-$pkgver.tar.bz2
exim.Makefile
exim.confd
exim.initd
exim.logrotate
exim.pre-install"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
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 || return 1
make -j1 || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" INSTALL_ARG="-no_symlink -no_chown exim" install || return 1
install -D -m644 doc/exim.8 "$pkgdir"/usr/share/man/man8/exim.8
cd "$pkgdir"/usr/sbin
mv exim-${pkgver}-* exim
chmod u+s exim
for i in mailq rmail rsmtp runq sendmail newaliases; do
ln -s exim $i
done
install -m644 -D "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m750 -D -g mail -d "$pkgdir"/usr/lib/exim
install -m750 -D -o mail -d "$pkgdir"/var/log/exim
}
scripts() {
pkgdesc="exim scripts"
depends="exim perl"
arch="noarch"
cd "$_builddir"
make DESTDIR="$subpkgdir" \
INSTALL_ARG="exicyclog exim_checkaccess eximstats exiqgrep exigrep exinext exiqsumm exipick exiwhat convert4r3 convert4r4" \
install || return 1
rm -fr "$subpkgdir"/etc
}
utils() {
pkgdesc="exim utils"
depends="exim"
cd "$_builddir"
make DESTDIR="$subpkgdir" \
INSTALL_ARG="exim_dbmbuild exim_dumpdb exim_tidydb exim_fixdb exim_lock" \
install || return 1
rm -fr "$subpkgdir"/etc
}
sqlite() {
pkgdesc="sqlite support for exim"
depends="exim"
_inst_lookup sqlite
}
mysql() {
pkgdesc="mysql support for exim"
depends="exim"
_inst_lookup mysql
}
postgresql() {
pkgdesc="postgresql support for exim"
depends="exim"
_inst_lookup pgsql
}
cdb() {
pkgdesc="cdb support for exim"
depends="exim"
_inst_lookup cdb
}
dbmdb() {
pkgdesc="dbmdb support for exim"
depends="exim"
_inst_lookup dbmdb
}
dnsdb() {
pkgdesc="dnsdb support for exim"
depends="exim"
_inst_lookup dnsdb
}
passwd() {
pkgdesc="passwd support for exim"
depends="exim"
_inst_lookup passwd
}
lsearch() {
pkgdesc="lsearch support for exim"
depends="exim"
_inst_lookup lsearch
}
dsearch() {
pkgdesc="dsearch support for exim"
depends="exim"
_inst_lookup dsearch
}
_inst_lookup() {
install -D -m755 "$_builddir"/build-Linux-*/lookups/$1.so "$subpkgdir"/usr/lib/exim/$1.so
}
md5sums="797f248ef3e0c0e2f178e915f88fc4e9 exim-4.86.tar.bz2
0be1e158f62e640207434fd5cfabc4cd exim.Makefile
f442b68d435598831bab8536ade071b8 exim.confd
e0fa6d1083540e714842e4b1a55d4ada exim.initd
2aeee003b9526472608bdc4194fb95de exim.logrotate
a58ceadf9f3fa8b06bbadb01bc731dc8 exim.pre-install"
sha256sums="f1ccf2ce2ea51b7fbbf160e7e0e41d24ca401cf44a185128ad99ea04635fc456 exim-4.86.tar.bz2
05c4fb0c655a4129340fe7f93cabb6566fc68e1bd8b1f81a3f57ceffcf8276cb exim.Makefile
668f912565a59926957090c6143f669f0e9de2cf441507d3c05fcd046865b401 exim.confd
d94efedd5b36d40dc7a0b87dcc6acc01ab2886799e8b7d71a86aa81d2e01b02c exim.initd
71aa7865eea47bb65737cf65e01a73054f34d2feab23d5905619ca1c079041d6 exim.logrotate
3470a7f2860b0c01549577edf446fc13cdcf3e10e1b52875eee666017227db03 exim.pre-install"
sha512sums="0b90cd1b4d99bbb976336ccf9c2c3375f453a74bb306f1b0215f7ecca80fbda83cf5cc38c502516c2903c5d753f1f559c534fc4f4b1b32ee3300db86de6610ab exim-4.86.tar.bz2
ff4aa735c9050a7a848c6eb2be5ec38685d3f4bf4bbc005616bf3321f0d98895071e423bc590a551ffd895315e2e91446f6bc9c665aa78a52d9016ef14b8b13f exim.Makefile
24bae5bba1b41e59247cd7089c3f9ffcc5f4b26c3da1b21f755724a7ee5c99a05e324437c965ae86170056cc63b9bcdc41f624a747ab31b887d69cff620f2155 exim.confd
5a656df7b15f8007114e1788bff15e87d4b113e2b46a46da24b94f8e8d5997f06d921086ea3d75761ca126829159784d3ef859d6b90a6bfcf5ec1fb370a0df11 exim.initd
b5d197c7da4318d2040395fe7eb9046442604a695530fc861594d0cb38e6ad7f5e56ac1204639c18ac93a005f56ea3d8054ac5c823c54c4cc21fd77266080407 exim.logrotate
6b6e85f392cd338602653b86f88daedf90a735e04f9bbcbac83df357ec881f436a74aedd91db21bd1e2e510eedea39587ae473efa7be9b75c6e2efe0472cf28d exim.pre-install"
|