summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-04-13 10:02:39 -0400
committerMike Gilbert <floppym@gentoo.org>2019-04-13 10:17:16 -0400
commit9830c2263498a6c9c4beabbefeb3533b372e9fc0 (patch)
tree2fdbbe5d9563b90f87b8cd17e98c7cc5e86ca9c9 /sys-apps
parentdev-ruby/ruby-glib2: amd64 stable wrt bug #683244 (diff)
downloadgentoo-9830c2263498a6c9c4beabbefeb3533b372e9fc0.tar.gz
gentoo-9830c2263498a6c9c4beabbefeb3533b372e9fc0.tar.bz2
gentoo-9830c2263498a6c9c4beabbefeb3533b372e9fc0.zip
sys-apps/man-db: add /var/cache/man to SANDBOX_PREDICT
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>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/man-db/man-db-2.8.5-r1.ebuild (renamed from sys-apps/man-db/man-db-2.8.5.ebuild)7
-rw-r--r--sys-apps/man-db/man-db-9999.ebuild7
2 files changed, 14 insertions, 0 deletions
diff --git a/sys-apps/man-db/man-db-2.8.5.ebuild b/sys-apps/man-db/man-db-2.8.5-r1.ebuild
index 6935f3bcada..7c43b7e40d5 100644
--- a/sys-apps/man-db/man-db-2.8.5.ebuild
+++ b/sys-apps/man-db/man-db-2.8.5-r1.ebuild
@@ -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() {
diff --git a/sys-apps/man-db/man-db-9999.ebuild b/sys-apps/man-db/man-db-9999.ebuild
index 6935f3bcada..7c43b7e40d5 100644
--- a/sys-apps/man-db/man-db-9999.ebuild
+++ b/sys-apps/man-db/man-db-9999.ebuild
@@ -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() {