summaryrefslogtreecommitdiffstats
path: root/cnf
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-31 10:54:52 -0700
committerZac Medico <zmedico@gentoo.org>2011-08-31 10:54:52 -0700
commit377720b203f2f22609da0429ec866ba671fc2da0 (patch)
tree8b9ac95dae13c1b30273c3966f0481ea59eba314 /cnf
parent10344709eeba075dc3954889f7f08e309bf33251 (diff)
downloadportage-377720b203f2f22609da0429ec866ba671fc2da0.tar.gz
portage-377720b203f2f22609da0429ec866ba671fc2da0.tar.bz2
portage-377720b203f2f22609da0429ec866ba671fc2da0.zip
Add FEATURES=clean-logs support.
Enable automatic execution of the command specified by the PORT_LOGDIR_CLEAN variable. The default PORT_LOGDIR_CLEAN setting will remove all files from PORT_LOGDIR that were last modified at least 7 days ago.
Diffstat (limited to 'cnf')
-rw-r--r--cnf/make.globals3
1 files changed, 3 insertions, 0 deletions
diff --git a/cnf/make.globals b/cnf/make.globals
index 2892d5089..fcd0b41da 100644
--- a/cnf/make.globals
+++ b/cnf/make.globals
@@ -101,6 +101,9 @@ PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
# message should be produced.
PORTAGE_SYNC_STALE="30"
+# Executed before emerge exit if FEATURES=clean-logs is enabled.
+PORT_LOGDIR_CLEAN="find \"\${PORT_LOGDIR}\" -type f ! -name \"summary.log*\" -mtime +7 -delete"
+
# Minimal CONFIG_PROTECT
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d"