]>
Commit | Line | Data |
---|---|---|
0669aec0 | 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> | |
f64bbe98 | 6 | # Contributor: Celeste <cielesti@protonmail.com> |
7 | # Maintainer: sev <sev+alpine@sev.monster> | |
0669aec0 | 8 | pkgname=exim-openldap |
9 | _pkgname=exim | |
10 | provides=$_pkgname | |
f64bbe98 | 11 | pkgver=4.97.1 |
12 | pkgrel=0 | |
0669aec0 | 13 | pkgdesc="Replacement package for exim with built-in OpenLDAP support" |
14 | url="https://www.exim.org/" | |
15 | arch="all" | |
16 | license="GPL-2.0-or-later" | |
17 | options="!check suid" | |
18 | pkgusers="$_pkgname" | |
19 | pkggroups="$_pkgname mail" | |
20 | depends="ca-certificates exim-openrc" | |
21 | makedepends="bash tdb-dev gawk libidn-dev libspf2-dev linux-headers | |
f64bbe98 | 22 | mariadb-connector-c-dev openssl-dev>3 pcre2-dev perl |
23 | perl-file-fcntllock libpq-dev sqlite-dev | |
0669aec0 | 24 | openldap-dev |
25 | " | |
26 | install="$pkgname.pre-install" | |
27 | source="https://ftp.exim.org/pub/exim/exim4/exim-$pkgver.tar.xz | |
28 | bounce-charset.patch | |
f64bbe98 | 29 | dnsdb-multi-chunk.patch |
0669aec0 | 30 | exim.Makefile |
31 | exim.logrotate | |
32 | " | |
33 | builddir="$srcdir/$_pkgname-$pkgver" | |
34 | ||
35 | # secfixes: | |
f64bbe98 | 36 | # 4.97.1-r0: |
37 | # - CVE-2023-51766 | |
38 | # 4.96.2-r0: | |
39 | # - CVE-2023-42117 | |
40 | # - CVE-2023-42119 | |
41 | # 4.96.1-r0: | |
42 | # - CVE-2023-42114 | |
43 | # - CVE-2023-42115 | |
44 | # - CVE-2023-42116 | |
0669aec0 | 45 | # 4.94.2-r0: |
46 | # - CVE-2021-27216 | |
47 | # - CVE-2020-28007 | |
48 | # - CVE-2020-28008 | |
49 | # - CVE-2020-28009 | |
50 | # - CVE-2020-28010 | |
51 | # - CVE-2020-28011 | |
52 | # - CVE-2020-28012 | |
53 | # - CVE-2020-28013 | |
54 | # - CVE-2020-28014 | |
55 | # - CVE-2020-28015 | |
56 | # - CVE-2020-28016 | |
57 | # - CVE-2020-28017 | |
58 | # - CVE-2020-28018 | |
59 | # - CVE-2020-28019 | |
60 | # - CVE-2020-28020 | |
61 | # - CVE-2020-28021 | |
62 | # - CVE-2020-28022 | |
63 | # - CVE-2020-28023 | |
64 | # - CVE-2020-28024 | |
65 | # - CVE-2020-28025 | |
66 | # - CVE-2020-28026 | |
67 | # 4.93-r1: | |
68 | # - CVE-2020-12783 | |
69 | # 4.92.2-r1: | |
70 | # - CVE-2019-16928 | |
71 | # 4.92.2-r0: | |
72 | # - CVE-2019-15846 | |
73 | # 4.92.1-r0: | |
74 | # - CVE-2019-13917 | |
75 | # 4.92-r0: | |
76 | # - CVE-2019-10149 | |
77 | # 4.89-r5: | |
78 | # - CVE-2017-1000369 | |
79 | # 4.89-r7: | |
80 | # - CVE-2017-16943 | |
81 | # 4.89.1-r0: | |
82 | # - CVE-2017-16944 | |
83 | # 4.90.1-r0: | |
84 | # - CVE-2018-6789 | |
85 | ||
86 | prepare() { | |
87 | default_prepare | |
88 | ||
89 | cp "$srcdir"/$_pkgname.Makefile Local/Makefile | |
90 | sed -i \ | |
91 | -e 's/-lnsl//g' \ | |
92 | -e 's/^HAVE_ICONV.*$//' \ | |
93 | OS/Makefile-Linux | |
94 | } | |
95 | ||
96 | build() { | |
f64bbe98 | 97 | export CFLAGS="$CFLAGS -DNO_EXECINFO" |
0669aec0 | 98 | make makefile |
99 | make | |
100 | } | |
101 | ||
102 | package() { | |
103 | install -m750 -D -g mail -d "$pkgdir"/etc/mail | |
104 | make DESTDIR="$pkgdir" INSTALL_ARG="-no_symlink -no_chown exim" install | |
105 | cd "$pkgdir"/usr/sbin | |
106 | mv exim-${pkgver%.*}* exim | |
107 | chmod u+s exim | |
108 | local i; for i in mailq rmail rsmtp runq sendmail newaliases; do | |
109 | ln -s exim $i | |
110 | done | |
111 | install -Dm644 "$srcdir"/$_pkgname.logrotate "$pkgdir"/etc/logrotate.d/$_pkgname | |
112 | # Fix clamav local socket path, Add variant to spamd address | |
113 | sed -i \ | |
114 | -e 's~# av_scanner = clamd:/tmp/clamd~# av_scanner = clamd:/run/clamav/clamd.sock~' \ | |
115 | -e '/# spamd_address = 127.0.0.1 783/a# spamd_address = 127.0.0.1 11333 variant=rspamd' \ | |
116 | "$pkgdir"/etc/$_pkgname/$_pkgname.conf | |
117 | # Create subdirs for logs and extensions | |
118 | install -dm750 -o $_pkgname -g mail "$pkgdir"/var/log/$_pkgname | |
119 | mkdir -p "$pkgdir"/usr/lib/$_pkgname | |
120 | } | |
121 | ||
122 | sha512sums=" | |
f64bbe98 | 123 | dc9f6a114e64ac826489edff88d50a24195b64714428e691c10a7bfb119b3ebb6455bf80cbb34dfd0a4e2e44cbde72effb009357a8e0a6065e512fe32092e3ed exim-4.96.2.tar.xz |
0669aec0 | 124 | 691df92954f015711398350963ea321d143127bc731a985bcacc5364c71b6df84b6c21a2e8dc3cc2048fcd3dd02def3dc8015f4d84dd672f23d5a41348e72dc7 bounce-charset.patch |
f64bbe98 | 125 | c1d430ab5175ba24eacd1b0c2586eb543045ff0bb71f73425ed290320463daa7cb710d1c61610a4c4c21591ed7204392c9cb4f69271e0b83082da59fa6a1352e exim.Makefile |
0669aec0 | 126 | 28e748693a6a72d9943fa9c342ff041fe650fa6977f468dee127e845e6c2a91872ce33fb6f5698838906bde3ed92de7a91cdb0349cedc40b806261867e8c06cb exim.logrotate |
127 | " |