summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity/bind
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2016-03-22 13:36:19 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-24 21:44:27 +0000
commit6c76c9e5bb4f4bf6adfac7ccece03d7dcdea7f3d (patch)
treeaacc4c16508ad1cca030de32a08b01875155db55 /meta/recipes-connectivity/bind
parent92c6b896e3b11283e2c313e6a2ac3497a99a13a0 (diff)
downloadopenembedded-core-6c76c9e5bb4f4bf6adfac7ccece03d7dcdea7f3d.tar.gz
openembedded-core-6c76c9e5bb4f4bf6adfac7ccece03d7dcdea7f3d.tar.bz2
openembedded-core-6c76c9e5bb4f4bf6adfac7ccece03d7dcdea7f3d.zip
bind: /var/cache/bind
Change the ownership of /var/cache/bind to bind rather than root. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-connectivity/bind')
-rw-r--r--meta/recipes-connectivity/bind/bind_9.10.3-P3.bb5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-connectivity/bind/bind_9.10.3-P3.bb b/meta/recipes-connectivity/bind/bind_9.10.3-P3.bb
index da414c00da..fa057d52cf 100644
--- a/meta/recipes-connectivity/bind/bind_9.10.3-P3.bb
+++ b/meta/recipes-connectivity/bind/bind_9.10.3-P3.bb
@@ -42,7 +42,7 @@ PACKAGECONFIG[readline] = "--with-readline=-lreadline,,readline"
PACKAGECONFIG[libedit] = "--with-readline=-ledit,,libedit"
USERADD_PACKAGES = "${PN}"
-USERADD_PARAM_${PN} = "--system --home /var/cache/bind --no-create-home \
+USERADD_PARAM_${PN} = "--system --home ${localstatedir}/cache/bind --no-create-home \
--user-group bind"
INITSCRIPT_NAME = "bind"
@@ -72,7 +72,7 @@ do_install_append() {
rm "${D}${mandir}/man1/nslookup.1"
rmdir "${D}${localstatedir}/run"
rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
- install -d "${D}${localstatedir}/cache/bind"
+ install -d -o bind "${D}${localstatedir}/cache/bind"
install -d "${D}${sysconfdir}/bind"
install -d "${D}${sysconfdir}/init.d"
install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/"
@@ -80,7 +80,6 @@ do_install_append() {
sed -i -e '1s,#!.*python,#! /usr/bin/env python,' ${D}${sbindir}/dnssec-coverage ${D}${sbindir}/dnssec-checkds
# Install systemd related files
- install -d ${D}${localstatedir}/cache/bind
install -d ${D}${sbindir}
install -m 755 ${WORKDIR}/generate-rndc-key.sh ${D}${sbindir}
install -d ${D}${systemd_unitdir}/system