diff options
Diffstat (limited to 'community/unbound')
-rw-r--r-- | community/unbound/PKGBUILD | 9 | ||||
-rw-r--r-- | community/unbound/unbound.service | 11 |
2 files changed, 17 insertions, 3 deletions
diff --git a/community/unbound/PKGBUILD b/community/unbound/PKGBUILD index 28ec60ae2..82ba69b5f 100644 --- a/community/unbound/PKGBUILD +++ b/community/unbound/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 71115 2012-05-24 13:42:42Z bisson $ +# $Id: PKGBUILD 71901 2012-06-03 05:58:48Z bisson $ # Maintainer: Gaetan Bisson <bisson@archlinux.org> # Contributor: Hisato Tatekura <hisato_tatekura@excentrics.net> # Contributor: Massimiliano Torromeo <massimiliano DOT torromeo AT google mail service> pkgname=unbound pkgver=1.4.17 -pkgrel=1 +pkgrel=2 pkgdesc='Validating, recursive, and caching DNS resolver' url='http://unbound.net/' license=('custom:BSD') @@ -16,9 +16,11 @@ makedepends=('expat') optdepends=('expat: unbound-anchor') backup=('etc/unbound/unbound.conf') source=("http://unbound.net/downloads/${pkgname}-${pkgver}.tar.gz" + 'unbound.service' 'unbound.conf' 'rc.d') sha1sums=('fea4d812c03af4737ef671ac30b7b7400d346516' + '5bc313cd978e4d6efe8c13600e838c70629be477' '5d473ec2943fd85367cdb653fcd58e186f07383f' 'dc96e772f467b32555df21d16fdb15e98194c228') @@ -34,7 +36,7 @@ build() { --enable-static=no \ --disable-rpath \ --with-conf-file=/etc/unbound/unbound.conf \ - --with-pidfile=/var/run/unbound.pid \ + --with-pidfile=/run/unbound.pid \ make } @@ -48,4 +50,5 @@ package() { install -D -m755 ../rc.d "${pkgdir}/etc/rc.d/${pkgname}" install -D -m644 ../unbound.conf "${pkgdir}/etc/unbound/unbound.conf" install -D -m644 doc/example.conf.in "${pkgdir}/etc/unbound/unbound.conf.example" + install -D -m644 ../unbound.service "${pkgdir}/usr/lib/systemd/system/unbound.service" } diff --git a/community/unbound/unbound.service b/community/unbound/unbound.service new file mode 100644 index 000000000..8b3c9576b --- /dev/null +++ b/community/unbound/unbound.service @@ -0,0 +1,11 @@ +[Unit] +Description=Unbound DNS Resolver + +[Service] +PIDFile=/run/unbound.pid +ExecStart=/usr/sbin/unbound -d +ExecReload=/bin/kill -HUP $MAINPID +Restart=always + +[Install] +WantedBy=multi-user.target |