1 # Maintainer: Thore Bödecker <foxxx0@archlinux.org>
2 # Contributor: Sergej Pupykin <arch+pub@sergej.pp.ru>
3 # Contributor: Arthur Țițeică arthur.titeica/gmail/com
4 # Contributor: Hao Zhang <theivorytower [at] gmail [dot] com>
9 _tarball_folder="OpenDMARC-rel-${pkgname}-${pkgver//./-}"
10 pkgdesc="Free open source software implementation of the DMARC specification"
12 url="https://github.com/trusteddomainproject/OpenDMARC"
14 depends=('smtp-server' 'libspf2' 'libbsd' 'libidn' 'perl-json')
15 makedepends=('libmilter')
16 optdepends=('opendbx: acts as a middleware layer between OpenDMARC and a SQL backend of choice'
17 'python: run opendmarc scripts at /usr/share/doc/opendmarc'
18 'perl: run opendmarc scripts at /usr/share/doc/opendmarc'
19 'perl-switch: generate DMARC reports'
20 'perl-dbd-mysql: generate DMARC reports'
21 'perl-libwww: generate DMARC reports')
22 backup=('etc/opendmarc/opendmarc.conf')
23 source=("https://github.com/trusteddomainproject/OpenDMARC/archive/rel-${pkgname}-${pkgver//./-}.tar.gz"
24 "https://salsa.debian.org/kitterman/opendmarc/-/raw/debian/master/debian/patches/arcseal-segfaults.patch"
28 sha512sums=('415278c6c09460379538ad10ea4033815a677ddad138b8a07609c287360d1739acdba5d1fe07d0e35764850af8a141c0c70a9311254104b93d2c1bbc8b6f7a69'
29 '7edfabc51f0b0a4217739ccf485786842d9fbcbf86f53efe4ef4fd1cb76020472073918e64a5b40869522f4d7e4b7b1c68e531cc8d17d58777ccdbc152ff183e'
30 '738de0cd286dd30713f32034f9ecf9009b6f64038c573c9f8aedaf10df8293bb9eec9d19492a03a2ebf2d2960289bdf48be9b1eb25395dbe9a490f7e3b25cb34'
31 '2753ad4477b499947ca07bb385ad0e10f327efa61a9059884091ead8e8e2bd65793436053d5a9c734e4c0676b7823982083ea7b35fae967eeacaeafb6226ff20'
32 'fbd5e81ded35281e3a63b4858a368033fa27696dee22a5dcf52e3e04b0762476e1ffa6edb489cf76612f3b4ffaee0fce586ab97d1da9805a089bbaf3487c907b')
35 cd "${srcdir}/${_tarball_folder}"
37 touch docs/Makefile.in
38 patch -p1 <../arcseal-segfaults.patch
42 cd "${srcdir}/${_tarball_folder}"
43 # export LDFLAGS="${LDFLAGS//,--as-needed}"
44 test -x configure || autoreconf -v -i
45 ./configure --prefix=/usr \
48 --sysconfdir="/etc/${pkgname}" \
50 --with-spf2-include=/usr/include/spf2 \
51 --with-spf2-lib=/usr/lib/
56 cd "${srcdir}/${_tarball_folder}"
61 cd "${srcdir}/${_tarball_folder}"
62 make DESTDIR="${pkgdir}/" install
64 install -D -m640 -o 335 -g 12 "${srcdir}/opendmarc.conf" "${pkgdir}/etc/${pkgname}/opendmarc.conf"
66 install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
67 rm "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
69 install -D -m644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
71 install -D -m644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"