From 67db4cf68dbdb364c4dee1599294d7701f3c3b0a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 5 Jun 2012 00:01:46 +0000 Subject: Tue Jun 5 00:01:46 UTC 2012 --- community/unbound/PKGBUILD | 9 ++++++--- community/unbound/unbound.service | 11 +++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 community/unbound/unbound.service (limited to 'community/unbound') diff --git a/community/unbound/PKGBUILD b/community/unbound/PKGBUILD index ec9fd8e13..a5c51c984 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 # Contributor: Hisato Tatekura # Contributor: Massimiliano Torromeo 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 -- cgit v1.2.3-54-g00ecf