From 377720b203f2f22609da0429ec866ba671fc2da0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 31 Aug 2011 10:54:52 -0700 Subject: 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. --- cnf/make.globals | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cnf/make.globals') 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" -- cgit v1.2.3-1-g7c22