[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)

2014-06-04 Thread Gaetan Bisson
Date: Wednesday, June 4, 2014 @ 11:08:39
  Author: bisson
Revision: 112593

add Resart=always: authoritative DNS is important

Modified:
  nsd/trunk/PKGBUILD
  nsd/trunk/service

--+
 PKGBUILD |2 +-
 service  |1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-06-04 07:22:28 UTC (rev 112592)
+++ PKGBUILD2014-06-04 09:08:39 UTC (rev 112593)
@@ -17,7 +17,7 @@
 'service')
 sha1sums=('8e5d53fd59c102854470b9b17f54cc1e7dc854b6'
   '7ad2b8da961a893095eede8963cf8026b13186a1'
-  '3dbe300d834a32c9a339a6c76c58f5c240239e9b')
+  'f09a10e90b375410e742fff1fb10631541357c67')
 
 install=install
 

Modified: service
===
--- service 2014-06-04 07:22:28 UTC (rev 112592)
+++ service 2014-06-04 09:08:39 UTC (rev 112593)
@@ -7,6 +7,7 @@
 ExecStart=/usr/bin/nsd -d -c /etc/nsd/nsd.conf
 ExecReload=/bin/kill -HUP $MAINPID
 ExecStop=/bin/kill -TERM $MAINPID
+Restart=always
 
 [Install]
 WantedBy=multi-user.target



[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



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

2013-10-31 Thread Gaetan Bisson
Date: Thursday, October 31, 2013 @ 17:24:38
  Author: bisson
Revision: 100047

upstream update

Modified:
  nsd/trunk/PKGBUILD
  nsd/trunk/service

--+
 PKGBUILD |   10 +-
 service  |7 +++
 2 files changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-10-31 16:12:50 UTC (rev 100046)
+++ PKGBUILD2013-10-31 16:24:38 UTC (rev 100047)
@@ -4,18 +4,18 @@
 # Contributor: Roberto Alsina 
 
 pkgname=nsd
-pkgver=3.2.16
+pkgver=4.0.0
 pkgrel=1
 pkgdesc='Authoritative only, high performance and simple DNS server'
 url='http://www.nlnetlabs.nl/nsd/'
 license=('BSD')
-depends=('openssl')
+arch=('i686' 'x86_64')
+depends=('openssl' 'libevent')
 makedepends=('flex')
-arch=('i686' 'x86_64')
 
source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz";
 'service')
-sha1sums=('cb95efa819902799365691a0a7ddb3690a97df88'
-  'f35ecb887e86ae0a54ac70aef5a7577fc8761877')
+sha1sums=('b3ebd669be8e830f62062d12be55242ca41da369'
+  '9957762b810374c4eaa1461169f3c848b50466fe')
 
 install=install
 

Modified: service
===
--- service 2013-10-31 16:12:50 UTC (rev 100046)
+++ service 2013-10-31 16:24:38 UTC (rev 100047)
@@ -3,11 +3,10 @@
 After=network.target
 
 [Service]
-Type=forking
 PIDFile=/run/nsd.pid
-ExecStart=/usr/bin/nsdc start
-ExecReload=/usr/bin/nsdc reload
-ExecStop=/usr/bin/nsdc stop
+ExecStart=/usr/bin/nsd -c /etc/nsd/nsd.conf
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStop=/bin/kill -TERM $MAINPID
 
 [Install]
 WantedBy=multi-user.target



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

2013-05-14 Thread Gaetan Bisson
Date: Tuesday, May 14, 2013 @ 14:53:25
  Author: bisson
Revision: 90837

move binaries to /usr/bin

Modified:
  nsd/trunk/PKGBUILD
  nsd/trunk/service

--+
 PKGBUILD |   12 
 service  |6 +++---
 2 files changed, 7 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-14 12:51:36 UTC (rev 90836)
+++ PKGBUILD2013-05-14 12:53:25 UTC (rev 90837)
@@ -5,7 +5,7 @@
 
 pkgname=nsd
 pkgver=3.2.15
-pkgrel=1
+pkgrel=2
 pkgdesc='Authoritative only, high performance and simple DNS server'
 url='http://www.nlnetlabs.nl/nsd/'
 license=('BSD')
@@ -15,29 +15,25 @@
 
source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz";
 'service')
 sha1sums=('e31a81ab7877422b34e1f163f9509cd93f395664'
-  '1cfa2d7254139be50f11753d4e07281ed2af36eb')
+  'f35ecb887e86ae0a54ac70aef5a7577fc8761877')
 
 install=install
 
 build() {
cd "${srcdir}/${pkgname}-${pkgver}"
-
./configure \
--prefix=/ \
-   --exec-prefix=/usr \
+   --sbindir=/usr/bin \
--datarootdir=/usr/share \
--with-pidfile=/run/nsd.pid \
-   --enable-ratelimit \
-
+   --enable-ratelimit
make
 }
 
 package() {
cd "${srcdir}/${pkgname}-${pkgver}"
-
make DESTDIR="${pkgdir}" install
install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/nsd.service
-
rm doc/differences.pdf
install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}"
install -m644 doc/* "${pkgdir}"/usr/share/doc/"${pkgname}"

Modified: service
===
--- service 2013-05-14 12:51:36 UTC (rev 90836)
+++ service 2013-05-14 12:53:25 UTC (rev 90837)
@@ -5,9 +5,9 @@
 [Service]
 Type=forking
 PIDFile=/run/nsd.pid
-ExecStart=/usr/sbin/nsdc start
-ExecReload=/usr/sbin/nsdc reload
-ExecStop=/usr/sbin/nsdc stop
+ExecStart=/usr/bin/nsdc start
+ExecReload=/usr/bin/nsdc reload
+ExecStop=/usr/bin/nsdc stop
 
 [Install]
 WantedBy=multi-user.target