1 # Maintainer: Florian "Bluewind" Pritz <flo@xssn.at>
5 pkgdesc="Spamassassin Proxy Daemon"
7 url="https://www.worlddesign.com/index.cfm/page/software/open-source/spampd.htm"
9 depends=('perl' 'perl-net-server' 'spamassassin')
10 source=("$pkgname-$pkgver.tar.gz::https://github.com/mpaperno/spampd/archive/$pkgver.tar.gz"
12 sha256sums=('91e60f10745ea4f9c27b9e57619a1bf246ab9a88ea1b88c4f39f8af607e2dbae'
13 '2bd1612761b07e6a613331b6448d4e0609c69aaf451707ddba1e1d9e1c0a35b6')
16 cd "$srcdir/$pkgname-$pkgver"
18 pod2man spampd.pl | gzip -n -c > spampd.8.gz
22 cd "$srcdir/$pkgname-$pkgver"
24 install -Dm755 spampd.pl "$pkgdir/usr/bin/spampd"
25 install -Dm644 spampd.8.gz "$pkgdir/usr/share/man/man8/spampd.8.gz"
26 install -Dm644 "$srcdir/spampd.service" "$pkgdir/usr/lib/systemd/system/spampd.service"
28 printf "u spampd - - /var/lib/spampd\n" | install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/spampd.conf"
29 printf "d /run/spampd 0700 spampd spampd -\n" | install -Dm644 /dev/stdin "$pkgdir/usr/lib/tmpfiles.d/spampd.conf"
32 # vim:set ts=2 sw=2 et: