net-dns/knot: Version bump
Package-Manager: portage-2.2.26
This commit is contained in:
parent
1ea4c4df4c
commit
ea53492bd0
8 changed files with 315 additions and 0 deletions
15
net-dns/knot/files/1.6.3-dont-create-extra-directories.patch
Normal file
15
net-dns/knot/files/1.6.3-dont-create-extra-directories.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
--- src/Makefile.in.orig 2015-05-03 16:34:53.177934984 +0200
|
||||
+++ src/Makefile.in 2015-05-03 16:35:11.481325329 +0200
|
||||
@@ -2712,12 +2712,6 @@
|
||||
uninstall-sbinPROGRAMS
|
||||
|
||||
|
||||
-# Create storage and run-time directories
|
||||
-install-data-hook:
|
||||
- $(INSTALL) -d $(DESTDIR)/@config_dir@
|
||||
- $(INSTALL) -d $(DESTDIR)/@run_dir@
|
||||
- $(INSTALL) -d $(DESTDIR)/@storage_dir@
|
||||
-
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
15
net-dns/knot/files/2.0.2-dont-create-extra-directories.patch
Normal file
15
net-dns/knot/files/2.0.2-dont-create-extra-directories.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
--- src/Makefile.in.orig 2015-05-10 20:59:26.854079700 +0200
|
||||
+++ src/Makefile.in 2015-05-10 21:00:01.870857369 +0200
|
||||
@@ -3401,12 +3401,6 @@
|
||||
uninstall-pkgconfigDATA uninstall-sbinPROGRAMS
|
||||
|
||||
|
||||
-# Create storage and run-time directories
|
||||
-@HAVE_DAEMON_TRUE@install-data-hook:
|
||||
-@HAVE_DAEMON_TRUE@ $(INSTALL) -d $(DESTDIR)/@config_dir@
|
||||
-@HAVE_DAEMON_TRUE@ $(INSTALL) -d $(DESTDIR)/@run_dir@
|
||||
-@HAVE_DAEMON_TRUE@ $(INSTALL) -d $(DESTDIR)/@storage_dir@
|
||||
-
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
42
net-dns/knot/files/knot.init
Normal file
42
net-dns/knot/files/knot.init
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
command=/usr/sbin/knotd
|
||||
command_args="-d"
|
||||
pidfile=/var/run/knot/knot.pid
|
||||
required_files=/etc/knot/knot.conf
|
||||
extra_started_commands="reload"
|
||||
description_reload="Reload configuration and changed zones."
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
checkpath -d -m 0750 -o knot:knot /var/run/knot/ /var/lib/knot/
|
||||
|
||||
ebegin "Starting knot"
|
||||
start-stop-daemon --start \
|
||||
--pidfile $pidfile --exec $command -- $command_args
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stoping knot"
|
||||
/usr/sbin/knotc stop >/dev/null 2>&1
|
||||
# In case remote control is not working
|
||||
if [ "$?" != 0 ]; then
|
||||
if [ -f $pidfile ]; then
|
||||
start-stop-daemon --stop --pidfile $pidfile
|
||||
fi
|
||||
fi
|
||||
ewend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading knot"
|
||||
/usr/sbin/knotc reload >/dev/null
|
||||
eend $?
|
||||
}
|
||||
14
net-dns/knot/files/knot.service
Normal file
14
net-dns/knot/files/knot.service
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Knot high-performance DNS Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/knotd
|
||||
ExecReload=/usr/sbin/knotc reload
|
||||
ExecStop=/usr/sbin/knotc stop
|
||||
PrivateTmp=true
|
||||
RuntimeDirectory=knot
|
||||
RuntimeDirectoryMode=750
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue