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>
12 pkgdesc="Replacement package for exim with built-in OpenLDAP support"
13 url="https://www.exim.org/"
15 license="GPL-2.0-or-later"
18 pkggroups="$_pkgname mail"
19 depends="ca-certificates exim-openrc"
20 makedepends="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
24 install="$pkgname.pre-install"
25 source="https://ftp.exim.org/pub/exim/exim4/exim-$pkgver.tar.xz
30 builddir="$srcdir/$_pkgname-$pkgver"
77 cp "$srcdir"/$_pkgname.Makefile Local/Makefile
80 -e 's/^HAVE_ICONV.*$//' \
90 install -m750 -D -g mail -d "$pkgdir"/etc/mail
91 make DESTDIR="$pkgdir" INSTALL_ARG="-no_symlink -no_chown exim" install
93 mv exim-${pkgver%.*}* exim
95 local i; for i in mailq rmail rsmtp runq sendmail newaliases; do
98 install -Dm644 "$srcdir"/$_pkgname.logrotate "$pkgdir"/etc/logrotate.d/$_pkgname
99 # Fix clamav local socket path, Add variant to spamd address
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
110 93d09c20d99f27da5edbe3e6dc7d25aa4548faa2b67ca26f2cc0b4aeaf58398dd468e0263714fcf0df97531f05d16fcd3f1f0e9d0656ead7858a66b248a44a65 exim-4.95.tar.xz
111 691df92954f015711398350963ea321d143127bc731a985bcacc5364c71b6df84b6c21a2e8dc3cc2048fcd3dd02def3dc8015f4d84dd672f23d5a41348e72dc7 bounce-charset.patch
112 4d2a33d2d9399c2d9485155585a180f1314fdc6f0ea164f3ebd74dbafa0b968f0edfbdd6d6ed7cdb4bc63696073b66f25e03317cc304192457e40fa30a12e207 exim.Makefile
113 28e748693a6a72d9943fa9c342ff041fe650fa6977f468dee127e845e6c2a91872ce33fb6f5698838906bde3ed92de7a91cdb0349cedc40b806261867e8c06cb exim.logrotate