Commit 955e3791 authored by Nico Schottelius's avatar Nico Schottelius Committed by Kevin Daudt

main/bind: add support for "reload"

- Implement function in init script
- Generate key on post-install

Closes !540
parent 058a07c4
......@@ -2,6 +2,7 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: ungleich <alpinelinux@ungleich.ch>
# Maintainer:
pkgname=bind
pkgver=9.14.4
......@@ -9,7 +10,7 @@ _ver=${pkgver%_p*}
_p=${pkgver#*_p}
_major=${pkgver%%.*}
[ "$_p" != "$pkgver" ] && _ver="${_ver}-P$_p"
pkgrel=2
pkgrel=3
pkgdesc="The ISC DNS server"
url="https://www.isc.org"
arch="all"
......@@ -40,7 +41,7 @@ makedepends="
$_py3deps
python3-dev
"
install="$pkgname.pre-install"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-openrc
${pkgname}-${_root_keys_upstream}:root_keys:noarch
py3-$pkgname:_py3 $pkgname-dnssec-tools:_dnssec_tools
......@@ -253,7 +254,7 @@ gpgfingerprints="
sha512sums="f5f4dc9b6a1d60838b59ce57ad37dc1e51fa26719aa203405a73850780f06bdc6ecea71c762efd464f946bdcce5a7c324de98caea36d2fe2781cce116fcd4932 bind-9.14.4.tar.gz
2b32d1e7f62cd1e01bb4fdd92d15460bc14761b933d5acc463a91f5ecd4773d7477c757c5dd2738e8e433693592cf3f623ffc142241861c91848f01aa84640d6 bind.plugindir.patch
7167dccdb2833643dfdb92994373d2cc087e52ba23b51bd68bd322ff9aca6744f01fa9d8a4b9cd8c4ce471755a85c03ec956ec0d8a1d4fae02124ddbed6841f6 bind.so_bsdcompat.patch
ca779f52a0a96d774bbc4dbb4e62d136f483ce528693ac73b844435be73500d8495bfddce34534825b5f6fa3197601e3175918a076428bab52bbc33c509a816e named.initd
53db80f7ee4902f42fb1d0bc959242bcb6f20d95256bda99ce2c206af8b4703c7f72bb26d026c633f70451b84a37c3946b210951e34dd5d6620b181cd0183de4 named.initd
127bdcc0b5079961f0951344bc3fad547450c81aee2149eac8c41a8c0c973ea0ffe3f956684c6fcb735a29c43d2ff48c153b6a71a0f15757819a72c492488ddf named.confd
d2f61d02d7829af51faf14fbe2bafe8bc90087e6b6697c6275a269ebbddcaa14a234fff5c41da793e945e8ff1de3de0858a40334e0d24289eab98df4bb721ac5 named.conf.authoritative
3aba9763cfaf0880a89fd01202f41406b465547296ce91373eb999ea7719040bc1ac4e47b0de025a8060f693d3d88774a20d09a43fa7ac6aa43989b58b5ee8fe named.conf.recursive
......
#!/bin/sh
# Generate key required for reload to work -> creates /etc/bind/rndc.key
if ! [ -f /etc/bind/rndc.key ]; then
rndc-confgen -a
chown named:named /etc/bind/rndc.key
fi
......@@ -82,3 +82,10 @@ stop() {
eend $?
}
reload() {
checkconfig
ebegin "Reloading $name"
rndc reload
eend $?
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment