[arch-commits] Commit in nsd/trunk (PKGBUILD service tmpfiles.d)

2017-12-17 Thread Gaƫtan Bisson via arch-commits
Date: Sunday, December 17, 2017 @ 18:51:28
  Author: bisson
Revision: 274660

better use of systemd-tmpfiles.d features

Modified:
  nsd/trunk/PKGBUILD
  nsd/trunk/service
  nsd/trunk/tmpfiles.d

+
 PKGBUILD   |   11 +--
 service|1 -
 tmpfiles.d |1 +
 3 files changed, 6 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-12-17 18:45:28 UTC (rev 274659)
+++ PKGBUILD2017-12-17 18:51:28 UTC (rev 274660)
@@ -5,7 +5,7 @@
 
 pkgname=nsd
 pkgver=4.1.19
-pkgrel=2
+pkgrel=3
 pkgdesc='Authoritative only, high performance and simple DNS server'
 url='https://www.nlnetlabs.nl/nsd/'
 license=('BSD')
@@ -15,13 +15,13 @@
 validpgpkeys=('EDFAA3F2CA4E6EB05681AF8E9F6F1C2D7E045F8D')
 
source=("https://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc}
 'tmpfiles.d'
-   'sysusers.d'
+'sysusers.d'
 'service')
 sha256sums=('b0782cb9b57416888d488b6460b071cd85ecb5f99381865b3a7f93dddf9e02c5'
 'SKIP'
-'8e72816177069d6b82306c4b61ca4d0eefd2a77a31ea79c50635eea5aecf8c5b'
-   '6490660d5d4b3e28e16d73e50e35a786a4114991739fac461ebc60465c79'
-'ba87a4cd10395e13ffd34f42714cfd98d3818b35aa96240e28523837d109a1df')
+'0be5badb996297150da49b4c655d801bfba76fd8d7785e0899184c130630fe66'
+'6490660d5d4b3e28e16d73e50e35a786a4114991739fac461ebc60465c79'
+'5ec7616df32c29ddec25a6ec772db5053e234410cf1042f2945d0f554b1f9b65')
 
 build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -41,7 +41,6 @@
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
rmdir "${pkgdir}"/{tmp,run/{nsd,}}
-   chmod 700 "${pkgdir}"/var/db/nsd
 
rm doc/differences.pdf
install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}"

Modified: service
===
--- service 2017-12-17 18:45:28 UTC (rev 274659)
+++ service 2017-12-17 18:51:28 UTC (rev 274660)
@@ -4,7 +4,6 @@
 
 [Service]
 PIDFile=/run/nsd/nsd.pid
-ExecStartPre=/usr/bin/chown nsd:nsd /var/db/nsd
 ExecStart=/usr/bin/nsd -d -c /etc/nsd/nsd.conf
 ExecReload=/bin/kill -HUP $MAINPID
 ExecStop=/bin/kill -TERM $MAINPID

Modified: tmpfiles.d
===
--- tmpfiles.d  2017-12-17 18:45:28 UTC (rev 274659)
+++ tmpfiles.d  2017-12-17 18:51:28 UTC (rev 274660)
@@ -1 +1,2 @@
 d /run/nsd 0755 nsd nsd
+z /var/db/nsd 0700 nsd nsd


[arch-commits] Commit in nsd/trunk (PKGBUILD service tmpfiles.d)

2013-11-01 Thread Gaetan Bisson
Date: Saturday, November 2, 2013 @ 00:51:47
  Author: bisson
Revision: 100216

fix nsd.pid ownership issue

Added:
  nsd/trunk/tmpfiles.d
Modified:
  nsd/trunk/PKGBUILD
  nsd/trunk/service

+
 PKGBUILD   |   11 ---
 service|2 +-
 tmpfiles.d |1 +
 3 files changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-11-01 21:20:51 UTC (rev 100215)
+++ PKGBUILD2013-11-01 23:51:47 UTC (rev 100216)
@@ -5,7 +5,7 @@
 
 pkgname=nsd
 pkgver=4.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Authoritative only, high performance and simple DNS server'
 url='http://www.nlnetlabs.nl/nsd/'
 license=('BSD')
@@ -13,9 +13,11 @@
 depends=('openssl' 'libevent')
 makedepends=('flex')
 
source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz";
+'tmpfiles.d'
 'service')
 sha1sums=('b3ebd669be8e830f62062d12be55242ca41da369'
-  '9957762b810374c4eaa1461169f3c848b50466fe')
+  '7ad2b8da961a893095eede8963cf8026b13186a1'
+  '491bf9c6e63644f7d6c81d3b16138f0d87706aa0')
 
 install=install
 
@@ -25,7 +27,7 @@
--prefix=/ \
--sbindir=/usr/bin \
--datarootdir=/usr/share \
-   --with-pidfile=/run/nsd.pid \
+   --with-pidfile=/run/nsd/nsd.pid \
--enable-ratelimit
make
 }
@@ -33,7 +35,10 @@
 package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
+   install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/nsd
install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/nsd.service
+   rmdir "${pkgdir}"/{tmp,run/{nsd,}}
+
rm doc/differences.pdf
install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}"
install -m644 doc/* "${pkgdir}"/usr/share/doc/"${pkgname}"

Modified: service
===
--- service 2013-11-01 21:20:51 UTC (rev 100215)
+++ service 2013-11-01 23:51:47 UTC (rev 100216)
@@ -3,7 +3,7 @@
 After=network.target
 
 [Service]
-PIDFile=/run/nsd.pid
+PIDFile=/run/nsd/nsd.pid
 ExecStart=/usr/bin/nsd -c /etc/nsd/nsd.conf
 ExecReload=/bin/kill -HUP $MAINPID
 ExecStop=/bin/kill -TERM $MAINPID

Added: tmpfiles.d
===
--- tmpfiles.d  (rev 0)
+++ tmpfiles.d  2013-11-01 23:51:47 UTC (rev 100216)
@@ -0,0 +1 @@
+d /run/nsd 0755 nsd nsd