summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2017-02-17 00:47:39 +0100
committerLars Wendler <polynomial-c@gentoo.org>2017-02-17 00:49:34 +0100
commit6b00ee80fe0fa7c5ec2bc008235bb0b1b4631112 (patch)
treea97f9c56e59269c0e4e5d4a790722c03c0bb2135 /net-dns/nsd/files
parentnet-dns/nsd: Bump to version 4.1.15 (diff)
downloadgentoo-6b00ee80fe0fa7c5ec2bc008235bb0b1b4631112.tar.gz
gentoo-6b00ee80fe0fa7c5ec2bc008235bb0b1b4631112.tar.bz2
gentoo-6b00ee80fe0fa7c5ec2bc008235bb0b1b4631112.zip
net-dns/nsd: Removed old.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-dns/nsd/files')
-rw-r--r--net-dns/nsd/files/nsd3-patch.cron9
-rw-r--r--net-dns/nsd/files/nsd3.initd-r166
2 files changed, 0 insertions, 75 deletions
diff --git a/net-dns/nsd/files/nsd3-patch.cron b/net-dns/nsd/files/nsd3-patch.cron
deleted file mode 100644
index ec27e4e95d4b..000000000000
--- a/net-dns/nsd/files/nsd3-patch.cron
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-# Cron job: merge zone transfer changes back to zone files
-# Needed for nsd3 only
-
-/etc/init.d/nsd --quiet status && /etc/init.d/nsd patch >/dev/null
diff --git a/net-dns/nsd/files/nsd3.initd-r1 b/net-dns/nsd/files/nsd3.initd-r1
deleted file mode 100644
index 76db09d63a3b..000000000000
--- a/net-dns/nsd/files/nsd3.initd-r1
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-description="NSD is an authoritative-only, high performance, open source name server"
-extra_commands="configtest patch"
-
-# these can be overridden in /etc/conf.d/nsd if necessary
-NSD_CONFIG="${NSD_CONFIG:-/etc/nsd/nsd.conf}"
-NSD_BINARY="${NSD_BINARY:-/usr/sbin/nsd}"
-NSD_CHECKCONF="${NSD_CHECKCONF:-/usr/sbin/nsd-checkconf}"
-NSDC_BINARY="${NSDC_BINARY:-/usr/sbin/nsdc}"
-
-depend() {
- need net
- use logger
-}
-
-configtest() {
- ebegin "Checking ${SVCNAME} configuration"
- checkconfig
- eend $?
-}
-
-checkconfig() {
- if ! test -e "${NSD_CONFIG}"; then
- eerror "You need to create an appropriate config file."
- eerror "An example can be found in /etc/nsd/nsd.conf.sample"
- return 1
- elif ! "${NSD_CHECKCONF}" "${NSD_CONFIG}"; then
- eerror "You have errors in your configfile (${NSD_CONFIG})"
- return $?
- fi
- return 0
-}
-
-patch() {
- local difffile=$(${NSD_CHECKCONF} -o difffile "${NSD_CONFIG}")
- if ! test -s "${difffile}"; then
- # no difffile found or difffile empty, so no patching required
- return 0
- fi
- ebegin "Patching NSD zone files"
- "${NSDC_BINARY}" patch >/dev/null
- eend $?
-}
-
-start() {
- ebegin "Starting NSD"
- checkconfig || return $?
- local pidfile=$("${NSD_CHECKCONF}" -o pidfile "${NSD_CONFIG}")
- checkpath --directory --owner nsd:nsd $(dirname "${pidfile}")
- start-stop-daemon --start --pidfile "${pidfile}" \
- --exec "${NSD_BINARY}" -- -c "${NSD_CONFIG}"
- eend $?
-}
-
-stop() {
- ebegin "Stopping NSD"
- checkconfig || return $?
- local pidfile=$("${NSD_CHECKCONF}" -o pidfile "${NSD_CONFIG}")
- patch || return $?
- start-stop-daemon --stop --pidfile "${pidfile}"
- eend $?
-}