# Contributor: Stuart Cardall # Contributor: Ash Berlin-Taylor # Contributor: Valery Kartel # Contributor: Ɓukasz Jendrysik # Contributor: Jesse Young # Contributor: Celeste # Maintainer: sev pkgname=exim-openldap _pkgname=exim provides=$_pkgname pkgver=4.97.1 pkgrel=0 pkgdesc="Replacement package for exim with built-in OpenLDAP support" url="https://www.exim.org/" arch="all" license="GPL-2.0-or-later" options="!check suid" pkgusers="$_pkgname" pkggroups="$_pkgname mail" depends="ca-certificates exim-openrc" makedepends="bash tdb-dev gawk libidn-dev libspf2-dev linux-headers mariadb-connector-c-dev openssl-dev>3 pcre2-dev perl perl-file-fcntllock libpq-dev sqlite-dev openldap-dev " install="$pkgname.pre-install" source="https://ftp.exim.org/pub/exim/exim4/exim-$pkgver.tar.xz bounce-charset.patch dnsdb-multi-chunk.patch exim.Makefile exim.logrotate " builddir="$srcdir/$_pkgname-$pkgver" # secfixes: # 4.97.1-r0: # - CVE-2023-51766 # 4.96.2-r0: # - CVE-2023-42117 # - CVE-2023-42119 # 4.96.1-r0: # - CVE-2023-42114 # - CVE-2023-42115 # - CVE-2023-42116 # 4.94.2-r0: # - CVE-2021-27216 # - CVE-2020-28007 # - CVE-2020-28008 # - CVE-2020-28009 # - CVE-2020-28010 # - CVE-2020-28011 # - CVE-2020-28012 # - CVE-2020-28013 # - CVE-2020-28014 # - CVE-2020-28015 # - CVE-2020-28016 # - CVE-2020-28017 # - CVE-2020-28018 # - CVE-2020-28019 # - CVE-2020-28020 # - CVE-2020-28021 # - CVE-2020-28022 # - CVE-2020-28023 # - CVE-2020-28024 # - CVE-2020-28025 # - CVE-2020-28026 # 4.93-r1: # - CVE-2020-12783 # 4.92.2-r1: # - CVE-2019-16928 # 4.92.2-r0: # - CVE-2019-15846 # 4.92.1-r0: # - CVE-2019-13917 # 4.92-r0: # - CVE-2019-10149 # 4.89-r5: # - CVE-2017-1000369 # 4.89-r7: # - CVE-2017-16943 # 4.89.1-r0: # - CVE-2017-16944 # 4.90.1-r0: # - CVE-2018-6789 prepare() { default_prepare cp "$srcdir"/$_pkgname.Makefile Local/Makefile sed -i \ -e 's/-lnsl//g' \ -e 's/^HAVE_ICONV.*$//' \ OS/Makefile-Linux } build() { export CFLAGS="$CFLAGS -DNO_EXECINFO" make makefile make } package() { install -m750 -D -g mail -d "$pkgdir"/etc/mail make DESTDIR="$pkgdir" INSTALL_ARG="-no_symlink -no_chown exim" install cd "$pkgdir"/usr/sbin mv exim-${pkgver%.*}* exim chmod u+s exim local i; for i in mailq rmail rsmtp runq sendmail newaliases; do ln -s exim $i done install -Dm644 "$srcdir"/$_pkgname.logrotate "$pkgdir"/etc/logrotate.d/$_pkgname # Fix clamav local socket path, Add variant to spamd address sed -i \ -e 's~# av_scanner = clamd:/tmp/clamd~# av_scanner = clamd:/run/clamav/clamd.sock~' \ -e '/# spamd_address = 127.0.0.1 783/a# spamd_address = 127.0.0.1 11333 variant=rspamd' \ "$pkgdir"/etc/$_pkgname/$_pkgname.conf # Create subdirs for logs and extensions install -dm750 -o $_pkgname -g mail "$pkgdir"/var/log/$_pkgname mkdir -p "$pkgdir"/usr/lib/$_pkgname } sha512sums=" dc9f6a114e64ac826489edff88d50a24195b64714428e691c10a7bfb119b3ebb6455bf80cbb34dfd0a4e2e44cbde72effb009357a8e0a6065e512fe32092e3ed exim-4.96.2.tar.xz 691df92954f015711398350963ea321d143127bc731a985bcacc5364c71b6df84b6c21a2e8dc3cc2048fcd3dd02def3dc8015f4d84dd672f23d5a41348e72dc7 bounce-charset.patch c1d430ab5175ba24eacd1b0c2586eb543045ff0bb71f73425ed290320463daa7cb710d1c61610a4c4c21591ed7204392c9cb4f69271e0b83082da59fa6a1352e exim.Makefile 28e748693a6a72d9943fa9c342ff041fe650fa6977f468dee127e845e6c2a91872ce33fb6f5698838906bde3ed92de7a91cdb0349cedc40b806261867e8c06cb exim.logrotate "