blob: 8971d39775b21256ba7cb00a54743224b13ee492 (
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
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Jesse Young <jlyo@jlyo.org>
# Maintainer: Jesse Young <jlyo@jlyo.org>
pkgname=exim
pkgver=4.85
pkgrel=1
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-dnsdb $pkgname-passwd $pkgname-sqlite $pkgname-mysql $pkgname-postgresql $pkgname-utils $pkgname-scripts $pkgname-doc"
source="ftp://exim.inode.at/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" \
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
}
dnsdb() {
pkgdesc="dnsdb support for exim"
depends="exim"
_inst_lookup dnsdb
}
passwd() {
pkgdesc="passwd support for exim"
depends="exim"
_inst_lookup passwd
}
_inst_lookup() {
install -D -m755 "$_builddir"/build-Linux-*/lookups/$1.so "$subpkgdir"/usr/lib/exim/$1.so
}
md5sums="ebae28762b6f125726283dc9434e8709 exim-4.85.tar.bz2
950c23ffa293dd50a50fc12664f62566 exim.Makefile
f442b68d435598831bab8536ade071b8 exim.confd
90299d636a780e7585796a4b4ad45858 exim.initd
2aeee003b9526472608bdc4194fb95de exim.logrotate
a58ceadf9f3fa8b06bbadb01bc731dc8 exim.pre-install"
sha256sums="13211f2bbc5400d095a9b4be075eb1347e0d98676fdfe4be8a3b4d56281daaa4 exim-4.85.tar.bz2
43ec8f9f24017eec90225678dcc13181cb7831a403773eb92b7400d396d94077 exim.Makefile
668f912565a59926957090c6143f669f0e9de2cf441507d3c05fcd046865b401 exim.confd
4efe727a597a35a1f1e4e4731f769a9789d979a70ea916714d6bbae67151d42f exim.initd
71aa7865eea47bb65737cf65e01a73054f34d2feab23d5905619ca1c079041d6 exim.logrotate
3470a7f2860b0c01549577edf446fc13cdcf3e10e1b52875eee666017227db03 exim.pre-install"
sha512sums="2c5846528ee98e4aff5dbabe49dfa5ba6753fa64154b9671a7849db8a17773917fe13bcb9e5f732c43d7479debfadd8012b8650823eb12504a6b1b28be456161 exim-4.85.tar.bz2
2329ab156a663c33094f675fb50763123d4f92e402e55ae1d8c21394b14b25b2c05b6bce78dd6a59e623b355304a4523928ec00a6140acd8402712b6508952c8 exim.Makefile
24bae5bba1b41e59247cd7089c3f9ffcc5f4b26c3da1b21f755724a7ee5c99a05e324437c965ae86170056cc63b9bcdc41f624a747ab31b887d69cff620f2155 exim.confd
4ba91019a63cf35cad827ef9d77e0fca6453c88c7f834da3cf5a8e251b558f61ec74eb05ad25f1c8cbbbe78c11a09924fb2fa955b69816b3e61d2f32798a7467 exim.initd
b5d197c7da4318d2040395fe7eb9046442604a695530fc861594d0cb38e6ad7f5e56ac1204639c18ac93a005f56ea3d8054ac5c823c54c4cc21fd77266080407 exim.logrotate
6b6e85f392cd338602653b86f88daedf90a735e04f9bbcbac83df357ec881f436a74aedd91db21bd1e2e510eedea39587ae473efa7be9b75c6e2efe0472cf28d exim.pre-install"
|