aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/bind/bind_9.8.1.bbappend
blob: 069aa84c4747db5f7e1bf94e4e6c8e4029fc5e2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
PR .= ".2"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI += "file://volatiles.04_bind"

do_install_append() {
	install -d ${D}${sysconfdir}/default/volatiles
	install -m 0644 ${WORKDIR}/volatiles.04_bind ${D}${sysconfdir}/default/volatiles/volatiles.04_bind

	sed -i '/^\s*\/usr\/sbin\/rndc-confgen/a\
	    [ -x /sbin/restorecon ] && /sbin/restorecon /etc/bind/rndc.key' ${D}${sysconfdir}/init.d/bind
}