--- unbound/PKGBUILD +++ unbound/PKGBUILD @@ -28,6 +28,11 @@ '2746aede36b1f57efdcc370b7643ce31ff9e6acb9a1f62705987b07eaed866a3' 'ddc0ead682c5035cdd3a29d4ab12936a73573c82c27f14026998a378de56f418') +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + sed -i -e 's/^Type=notify/Type=simple/' contrib/unbound.service.in +} + build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure \ @@ -46,7 +51,7 @@ --with-conf-file=/etc/unbound/unbound.conf \ --with-pidfile=/run/unbound.pid \ --with-rootkey-file=/etc/trusted-key.key \ - --with-libevent \ + --with-libevent make } @@ -57,7 +62,7 @@ install -Dm644 doc/example.conf.in "${pkgdir}/etc/unbound/unbound.conf.example" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 ../sysusers.d "${pkgdir}/usr/lib/sysusers.d/unbound.conf" - install -Dm644 ../service "${pkgdir}/usr/lib/systemd/system/unbound.service" + install -Dm644 contrib/unbound.service "${pkgdir}/usr/lib/systemd/system/unbound.service" install -Dm644 ../conf "${pkgdir}/etc/unbound/unbound.conf" # Trust anchor file available from within unbound's chroot.