[arch-commits] Commit in nsd/repos (10 files)
Jelle van der Waa
jelle at archlinux.org
Thu Mar 16 18:29:50 UTC 2017
Date: Thursday, March 16, 2017 @ 18:29:50
Author: jelle
Revision: 216787
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
nsd/repos/community-staging-i686/
nsd/repos/community-staging-i686/PKGBUILD
(from rev 216786, nsd/trunk/PKGBUILD)
nsd/repos/community-staging-i686/install
(from rev 216786, nsd/trunk/install)
nsd/repos/community-staging-i686/service
(from rev 216786, nsd/trunk/service)
nsd/repos/community-staging-i686/tmpfiles.d
(from rev 216786, nsd/trunk/tmpfiles.d)
nsd/repos/community-staging-x86_64/
nsd/repos/community-staging-x86_64/PKGBUILD
(from rev 216786, nsd/trunk/PKGBUILD)
nsd/repos/community-staging-x86_64/install
(from rev 216786, nsd/trunk/install)
nsd/repos/community-staging-x86_64/service
(from rev 216786, nsd/trunk/service)
nsd/repos/community-staging-x86_64/tmpfiles.d
(from rev 216786, nsd/trunk/tmpfiles.d)
-------------------------------------+
community-staging-i686/PKGBUILD | 51 ++++++++++++++++++++++++++++++++++
community-staging-i686/install | 11 +++++++
community-staging-i686/service | 13 ++++++++
community-staging-i686/tmpfiles.d | 1
community-staging-x86_64/PKGBUILD | 51 ++++++++++++++++++++++++++++++++++
community-staging-x86_64/install | 11 +++++++
community-staging-x86_64/service | 13 ++++++++
community-staging-x86_64/tmpfiles.d | 1
8 files changed, 152 insertions(+)
Copied: nsd/repos/community-staging-i686/PKGBUILD (from rev 216786, nsd/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-03-16 18:29:50 UTC (rev 216787)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Roberto Alsina <ralsina at kde.org>
+
+pkgname=nsd
+pkgver=4.1.15
+pkgrel=2
+pkgdesc='Authoritative only, high performance and simple DNS server'
+url='https://www.nlnetlabs.nl/nsd/'
+license=('BSD')
+arch=('i686' 'x86_64')
+depends=('openssl' 'libevent')
+makedepends=('flex')
+validpgpkeys=('EDFAA3F2CA4E6EB05681AF8E9F6F1C2D7E045F8D')
+source=("https://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc}
+ 'tmpfiles.d'
+ 'service')
+sha256sums=('494a862cfcd26a525a4bf06306eb7ab0387b34678ac6d37767507438e3a23a4b'
+ 'SKIP'
+ '8e72816177069d6b82306c4b61ca4d0eefd2a77a31ea79c50635eea5aecf8c5b'
+ '5ec7616df32c29ddec25a6ec772db5053e234410cf1042f2945d0f554b1f9b65')
+
+install=install
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/ \
+ --sbindir=/usr/bin \
+ --datarootdir=/usr/share \
+ --with-pidfile=/run/nsd/nsd.pid \
+ --enable-ratelimit \
+ --enable-relro-now \
+ --enable-pie \
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/nsd.conf
+ 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}"
+ ln -s ../../doc/"${pkgname}"/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}
Copied: nsd/repos/community-staging-i686/install (from rev 216786, nsd/trunk/install)
===================================================================
--- community-staging-i686/install (rev 0)
+++ community-staging-i686/install 2017-03-16 18:29:50 UTC (rev 216787)
@@ -0,0 +1,11 @@
+post_upgrade() {
+ usr/bin/systemd-tmpfiles --create nsd.conf || true
+}
+
+post_install() {
+ getent group nsd &>/dev/null || groupadd -r nsd >/dev/null
+ getent passwd nsd &>/dev/null || useradd -r -g nsd -d /dev/null -s /bin/false -c nsd nsd >/dev/null
+ chown nsd:nsd /var/db/nsd
+ chmod 700 /var/db/nsd
+ post_upgrade
+}
Copied: nsd/repos/community-staging-i686/service (from rev 216786, nsd/trunk/service)
===================================================================
--- community-staging-i686/service (rev 0)
+++ community-staging-i686/service 2017-03-16 18:29:50 UTC (rev 216787)
@@ -0,0 +1,13 @@
+[Unit]
+Description=NSD Name Server Daemon
+After=network.target
+
+[Service]
+PIDFile=/run/nsd/nsd.pid
+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
Copied: nsd/repos/community-staging-i686/tmpfiles.d (from rev 216786, nsd/trunk/tmpfiles.d)
===================================================================
--- community-staging-i686/tmpfiles.d (rev 0)
+++ community-staging-i686/tmpfiles.d 2017-03-16 18:29:50 UTC (rev 216787)
@@ -0,0 +1 @@
+d /run/nsd 0755 nsd nsd
Copied: nsd/repos/community-staging-x86_64/PKGBUILD (from rev 216786, nsd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-03-16 18:29:50 UTC (rev 216787)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Roberto Alsina <ralsina at kde.org>
+
+pkgname=nsd
+pkgver=4.1.15
+pkgrel=2
+pkgdesc='Authoritative only, high performance and simple DNS server'
+url='https://www.nlnetlabs.nl/nsd/'
+license=('BSD')
+arch=('i686' 'x86_64')
+depends=('openssl' 'libevent')
+makedepends=('flex')
+validpgpkeys=('EDFAA3F2CA4E6EB05681AF8E9F6F1C2D7E045F8D')
+source=("https://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc}
+ 'tmpfiles.d'
+ 'service')
+sha256sums=('494a862cfcd26a525a4bf06306eb7ab0387b34678ac6d37767507438e3a23a4b'
+ 'SKIP'
+ '8e72816177069d6b82306c4b61ca4d0eefd2a77a31ea79c50635eea5aecf8c5b'
+ '5ec7616df32c29ddec25a6ec772db5053e234410cf1042f2945d0f554b1f9b65')
+
+install=install
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/ \
+ --sbindir=/usr/bin \
+ --datarootdir=/usr/share \
+ --with-pidfile=/run/nsd/nsd.pid \
+ --enable-ratelimit \
+ --enable-relro-now \
+ --enable-pie \
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/nsd.conf
+ 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}"
+ ln -s ../../doc/"${pkgname}"/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}
Copied: nsd/repos/community-staging-x86_64/install (from rev 216786, nsd/trunk/install)
===================================================================
--- community-staging-x86_64/install (rev 0)
+++ community-staging-x86_64/install 2017-03-16 18:29:50 UTC (rev 216787)
@@ -0,0 +1,11 @@
+post_upgrade() {
+ usr/bin/systemd-tmpfiles --create nsd.conf || true
+}
+
+post_install() {
+ getent group nsd &>/dev/null || groupadd -r nsd >/dev/null
+ getent passwd nsd &>/dev/null || useradd -r -g nsd -d /dev/null -s /bin/false -c nsd nsd >/dev/null
+ chown nsd:nsd /var/db/nsd
+ chmod 700 /var/db/nsd
+ post_upgrade
+}
Copied: nsd/repos/community-staging-x86_64/service (from rev 216786, nsd/trunk/service)
===================================================================
--- community-staging-x86_64/service (rev 0)
+++ community-staging-x86_64/service 2017-03-16 18:29:50 UTC (rev 216787)
@@ -0,0 +1,13 @@
+[Unit]
+Description=NSD Name Server Daemon
+After=network.target
+
+[Service]
+PIDFile=/run/nsd/nsd.pid
+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
Copied: nsd/repos/community-staging-x86_64/tmpfiles.d (from rev 216786, nsd/trunk/tmpfiles.d)
===================================================================
--- community-staging-x86_64/tmpfiles.d (rev 0)
+++ community-staging-x86_64/tmpfiles.d 2017-03-16 18:29:50 UTC (rev 216787)
@@ -0,0 +1 @@
+d /run/nsd 0755 nsd nsd
More information about the arch-commits
mailing list