]> git.sev.monster Git - aports.git/blame - testing/exim-openldap/APKBUILD
exim-openldap: new package
[aports.git] / testing / exim-openldap / APKBUILD
CommitLineData
127c213f 1# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
2# Contributor: Ash Berlin-Taylor <ash.berlin@gmail.com>
3# Contributor: Valery Kartel <valery.kartel@gmail.com>
4# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
5# Contributor: Jesse Young <jlyo@jlyo.org>
6# Maintainer: Jesse Young <jlyo@jlyo.org>
7pkgname=exim-openldap
8_pkgname=exim
9provides=$_pkgname
10pkgver=4.95
11pkgrel=1
12pkgdesc="Replacement package for exim with built-in OpenLDAP support"
13url="https://www.exim.org/"
14arch="all"
15license="GPL-2.0-or-later"
16options="!check suid"
17pkgusers="$_pkgname"
18pkggroups="$_pkgname mail"
19depends="ca-certificates exim-openrc"
20makedepends="bash tdb-dev gawk libidn-dev libspf2-dev linux-headers
21 mariadb-connector-c-dev openssl1.1-compat-dev pcre-dev perl libpq-dev sqlite-dev
22 openldap-dev
23 "
24install="$pkgname.pre-install"
25source="https://ftp.exim.org/pub/exim/exim4/exim-$pkgver.tar.xz
26 bounce-charset.patch
27 exim.Makefile
28 exim.logrotate
29 "
30builddir="$srcdir/$_pkgname-$pkgver"
31
32# secfixes:
33# 4.94.2-r0:
34# - CVE-2021-27216
35# - CVE-2020-28007
36# - CVE-2020-28008
37# - CVE-2020-28009
38# - CVE-2020-28010
39# - CVE-2020-28011
40# - CVE-2020-28012
41# - CVE-2020-28013
42# - CVE-2020-28014
43# - CVE-2020-28015
44# - CVE-2020-28016
45# - CVE-2020-28017
46# - CVE-2020-28018
47# - CVE-2020-28019
48# - CVE-2020-28020
49# - CVE-2020-28021
50# - CVE-2020-28022
51# - CVE-2020-28023
52# - CVE-2020-28024
53# - CVE-2020-28025
54# - CVE-2020-28026
55# 4.93-r1:
56# - CVE-2020-12783
57# 4.92.2-r1:
58# - CVE-2019-16928
59# 4.92.2-r0:
60# - CVE-2019-15846
61# 4.92.1-r0:
62# - CVE-2019-13917
63# 4.92-r0:
64# - CVE-2019-10149
65# 4.89-r5:
66# - CVE-2017-1000369
67# 4.89-r7:
68# - CVE-2017-16943
69# 4.89.1-r0:
70# - CVE-2017-16944
71# 4.90.1-r0:
72# - CVE-2018-6789
73
74prepare() {
75 default_prepare
76
77 cp "$srcdir"/$_pkgname.Makefile Local/Makefile
78 sed -i \
79 -e 's/-lnsl//g' \
80 -e 's/^HAVE_ICONV.*$//' \
81 OS/Makefile-Linux
82}
83
84build() {
85 make makefile
86 make
87}
88
89package() {
90 install -m750 -D -g mail -d "$pkgdir"/etc/mail
91 make DESTDIR="$pkgdir" INSTALL_ARG="-no_symlink -no_chown exim" install
92 cd "$pkgdir"/usr/sbin
93 mv exim-${pkgver%.*}* exim
94 chmod u+s exim
95 local i; for i in mailq rmail rsmtp runq sendmail newaliases; do
96 ln -s exim $i
97 done
98 install -Dm644 "$srcdir"/$_pkgname.logrotate "$pkgdir"/etc/logrotate.d/$_pkgname
99 # Fix clamav local socket path, Add variant to spamd address
100 sed -i \
101 -e 's~# av_scanner = clamd:/tmp/clamd~# av_scanner = clamd:/run/clamav/clamd.sock~' \
102 -e '/# spamd_address = 127.0.0.1 783/a# spamd_address = 127.0.0.1 11333 variant=rspamd' \
103 "$pkgdir"/etc/$_pkgname/$_pkgname.conf
104 # Create subdirs for logs and extensions
105 install -dm750 -o $_pkgname -g mail "$pkgdir"/var/log/$_pkgname
106 mkdir -p "$pkgdir"/usr/lib/$_pkgname
107}
108
109sha512sums="
11093d09c20d99f27da5edbe3e6dc7d25aa4548faa2b67ca26f2cc0b4aeaf58398dd468e0263714fcf0df97531f05d16fcd3f1f0e9d0656ead7858a66b248a44a65 exim-4.95.tar.xz
111691df92954f015711398350963ea321d143127bc731a985bcacc5364c71b6df84b6c21a2e8dc3cc2048fcd3dd02def3dc8015f4d84dd672f23d5a41348e72dc7 bounce-charset.patch
1124d2a33d2d9399c2d9485155585a180f1314fdc6f0ea164f3ebd74dbafa0b968f0edfbdd6d6ed7cdb4bc63696073b66f25e03317cc304192457e40fa30a12e207 exim.Makefile
11328e748693a6a72d9943fa9c342ff041fe650fa6977f468dee127e845e6c2a91872ce33fb6f5698838906bde3ed92de7a91cdb0349cedc40b806261867e8c06cb exim.logrotate
114"
This page took 0.049019 seconds and 4 git commands to generate.