net-dns/nsd: Remove unneeded files in FILESDIR

The init.d, conf.d, and tmpfiles.d files in FILESDIR are part
of upstream now, in the contrib/ folder in the source, so these
copies are no longer needed.

Signed-off-by: Joshua Kinard <kumba@gentoo.org>
This commit is contained in:
Joshua Kinard
2025-01-20 16:49:38 -05:00
parent d6764c266b
commit fd0936ef93
3 changed files with 0 additions and 69 deletions

View File

@@ -1,16 +0,0 @@
# /etc/conf.d/nsd
# NSD_ARGS is set by default to run in the foreground (-d) and to not
# create its own PID file (-P ''), as we let OpenRC handle that instead.
# It is recommended to keep these defaults and append additional flags
# to them.
NSD_ARGS="-d -P ''"
# NSD_CONFBASE sets the base configuration directory for nsd's
# configuration and, by default, uses the standard '/etc/nsd' path.
NSD_CONFBASE="/etc/nsd"
# NSD_CONFNAME sets the first part of the nsd config file name to be that
# of the calling service script name. This allows you to create symlinks
# that point at '/etc/init.d/nsd' for different instances of nsd.
NSD_CONFNAME="${RC_SVCNAME}.conf"

View File

@@ -1,52 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="NSD is an authoritative-only, high performance, open source name server"
extra_commands="configtest"
extra_started_commands="reload"
# These can be overridden in /etc/conf.d/nsd if necessary.
NSD_ARGS="${NSD_ARGS:--d -P ''}"
NSD_CONFBASE="${NSD_CONFBASE:-/etc/nsd}"
NSD_CONFNAME="${NSD_CONFNAME:-${RC_SVCNAME}.conf}"
# The conf.d defaults shipped with nsd-4.9.1+ will run it in the foreground
# and tell it not to create a PID file, as we allow OpenRC to handle those
# details.
config_file="${NSD_CONFBASE}/${NSD_CONFNAME}"
checkconf="/usr/sbin/nsd-checkconf"
command="/usr/sbin/nsd"
command_args="-c ${config_file} ${NSD_ARGS}"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
required_files="${config_file}"
depend() {
use logger
}
checkconfig() {
if ! "${checkconf}" "${config_file}"; then
eerror "You have errors in your configfile (${config_file})"
return $?
fi
return 0
}
configtest() {
ebegin "Checking ${RC_SVCNAME} configuration"
checkconfig
eend $?
}
start_pre() {
checkconfig || return $?
}
reload() {
checkconfig || return $?
ebegin "Reloading config and zone files"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}

View File

@@ -1 +0,0 @@
d /run/nsd 0750 nsd nsd