sys-apps/man-db: add /var/cache/man to SANDBOX_PREDICT
authorMike Gilbert <floppym@gentoo.org>
Sat, 13 Apr 2019 14:02:39 +0000 (10:02 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 13 Apr 2019 14:17:16 +0000 (10:17 -0400)
Closes: https://bugs.gentoo.org/675478
Package-Manager: Portage-2.3.62_p4, Repoman-2.3.12_p87
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
sys-apps/man-db/man-db-2.8.5-r1.ebuild [moved from sys-apps/man-db/man-db-2.8.5.ebuild with 96% similarity]
sys-apps/man-db/man-db-9999.ebuild

similarity index 96%
rename from sys-apps/man-db/man-db-2.8.5.ebuild
rename to sys-apps/man-db/man-db-2.8.5-r1.ebuild
index 6935f3bcadaf36e03fb7a72c1dbbc78f5b06a88f..7c43b7e40d5d64b63eebb6dfab027a122cd50253 100644 (file)
@@ -73,6 +73,10 @@ src_configure() {
        sed -i \
                -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \
                src/man_db.conf || die
+
+       cat > 15man-db <<-EOF || die
+       SANDBOX_PREDICT="/var/cache/man"
+       EOF
 }
 
 src_install() {
@@ -82,6 +86,9 @@ src_install() {
 
        exeinto /etc/cron.daily
        newexe "${FILESDIR}"/man-db.cron-r1 man-db #289884
+
+       insinto /etc/sandbox.d
+       doins 15man-db
 }
 
 pkg_preinst() {
index 6935f3bcadaf36e03fb7a72c1dbbc78f5b06a88f..7c43b7e40d5d64b63eebb6dfab027a122cd50253 100644 (file)
@@ -73,6 +73,10 @@ src_configure() {
        sed -i \
                -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \
                src/man_db.conf || die
+
+       cat > 15man-db <<-EOF || die
+       SANDBOX_PREDICT="/var/cache/man"
+       EOF
 }
 
 src_install() {
@@ -82,6 +86,9 @@ src_install() {
 
        exeinto /etc/cron.daily
        newexe "${FILESDIR}"/man-db.cron-r1 man-db #289884
+
+       insinto /etc/sandbox.d
+       doins 15man-db
 }
 
 pkg_preinst() {