summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rorvick <chris@rorvick.com>2017-05-24 09:13:43 -0500
committerPatrice Clement <monsieurp@gentoo.org>2017-12-04 23:51:51 +0100
commit4a5cc66b00ea2a305b725ba6a21d89e140c12a7d (patch)
tree462a73b44a104881be06f511b61f701e4c1006ea /net-misc/cfengine
parentnet-misc/cfengine: add masterfiles. (diff)
downloadgentoo-4a5cc66b00ea2a305b725ba6a21d89e140c12a7d.tar.gz
gentoo-4a5cc66b00ea2a305b725ba6a21d89e140c12a7d.tar.bz2
gentoo-4a5cc66b00ea2a305b725ba6a21d89e140c12a7d.zip
net-misc/cfengine: protect masterfiles.
Files in /var/cfengine/masterfiles are really configuration. Add this directory to CONFIG_PROTECT.
Diffstat (limited to 'net-misc/cfengine')
-rw-r--r--net-misc/cfengine/cfengine-3.6.2.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/net-misc/cfengine/cfengine-3.6.2.ebuild b/net-misc/cfengine/cfengine-3.6.2.ebuild
index eb302d86ac28..75f021ada089 100644
--- a/net-misc/cfengine/cfengine-3.6.2.ebuild
+++ b/net-misc/cfengine/cfengine-3.6.2.ebuild
@@ -110,6 +110,9 @@ src_install() {
insinto /var/cfengine
doins -r "${WORKDIR}/masterfiles"
fi
+
+ dodir /etc/env.d
+ echo 'CONFIG_PROTECT=/var/cfengine/masterfiles' >"${ED}/etc/env.d/99${PN}" || die
}
pkg_postinst() {