Your message dated Mon, 23 Feb 2026 09:48:13 +0000 with message-id <[email protected]> and subject line Bug#1123081: Removed package(s) from unstable has caused the Debian Bug report #818436, regarding webalizer: In daily cron job remove "usage files" older than N days to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 818436: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818436 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: webalizer Version: 2.23.08-1+b1 Severity: wishlist Tags: patch The webalizer daily cron job can be easily modified to remove any generated "usage" files older than MAX_DAY_AGE in order to prevent perpetual growth without other intervention of the output directory. If MAX_DAY_AGE is not set or is set to 0, then no files are deleted. I also suggest using the linked variable name OUTPUT_DIR rather than OUTDIR to match the parameer name in the configuration file, and also to use sed with an exact match, rather than the heavier awk pattern matching, to extract the value from the configuration file. ------------------<snip><start of patch><snip>-------------------------------- --- webalizer.ORIG 2014-03-01 16:47:08.000000000 +0100 +++ webalizer 2014-03-01 16:47:08.000000000 +0100 @@ -9,6 +9,8 @@ WEBALIZER=/usr/bin/webalizer WEBALIZER_CONFDIR=/etc/webalizer +MAX_DAY_AGE=32 + [ -x ${WEBALIZER} ] || exit 0; [ -d ${WEBALIZER_CONFDIR} ] || exit 0; @@ -25,13 +27,15 @@ [ -r "${LOGFILE}" ] || continue; # there was a output ? - OUTDIR=`awk '$1 ~ /^OutputDir$/ {print $2}' $i`; + + OUTPUT_DIR=$(sed -ne 's|OutputDir[[:space:]]*||p' "${i}") + # exists something ? - [ "${OUTDIR}" != "" ] || continue; + [ "${OUTPUT_DIR}" != "" ] || continue; # its a directory ? - [ -d ${OUTDIR} ] || continue; + [ -d ${OUTPUT_DIR} ] || continue; # its writable ? - [ -w ${OUTDIR} ] || continue; + [ -w ${OUTPUT_DIR} ] || continue; # Run Really quietly, exit with status code if !0 ${WEBALIZER} -c ${i} -Q || continue; @@ -50,6 +54,14 @@ ${WEBALIZER} -c ${i} -Q ${NLOGFILE}; RET=$?; fi; + + if [ -n "${MAX_DAY_AGE}" ] + then + test ${MAX_DAY_AGE} -gt 0 && \ + find "${OUTPUT_DIR}" -maxdepth 1 -type f -mtime +${MAX_DAY_AGE} \ + -name \*usage_\* -exec rm -f {} \; + fi + done; # exit with webalizer's exit code ---------------------------<snip><End of patch><snip>---------------------
--- End Message ---
--- Begin Message ---Version: 2.23.08-3.3+rm Dear submitter, as the package webalizer has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/1123081 The version of this package that was in Debian prior to this removal can still be found using https://snapshot.debian.org/. Please note that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]. Debian distribution maintenance software pp. Thorsten Alteholz (the ftpmaster behind the curtain)
--- End Message ---

