diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2004-09-18 19:47:15 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2004-09-18 19:47:15 +0000 |
commit | 8c5e7f38093d1f8926930a86ccf7bcd519e6f6c7 (patch) | |
tree | 92c504b20f671c808ab458aa22e2de8e109655c3 /app-admin/tmpwatch/files | |
parent | remove outdated commetn (Manifest recommit) (diff) | |
download | gentoo-2-8c5e7f38093d1f8926930a86ccf7bcd519e6f6c7.tar.gz gentoo-2-8c5e7f38093d1f8926930a86ccf7bcd519e6f6c7.tar.bz2 gentoo-2-8c5e7f38093d1f8926930a86ccf7bcd519e6f6c7.zip |
Version bump; Fixed outdated HOMEPAGE/SRC_URI and cleaned up ebuild. Added cron script (disabled by default) to close bug #54443. Updated metadata info.
Diffstat (limited to 'app-admin/tmpwatch/files')
-rw-r--r-- | app-admin/tmpwatch/files/digest-tmpwatch-2.9.1.1 | 1 | ||||
-rw-r--r-- | app-admin/tmpwatch/files/tmpwatch.cron | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/app-admin/tmpwatch/files/digest-tmpwatch-2.9.1.1 b/app-admin/tmpwatch/files/digest-tmpwatch-2.9.1.1 new file mode 100644 index 000000000000..a3bfd495f4e9 --- /dev/null +++ b/app-admin/tmpwatch/files/digest-tmpwatch-2.9.1.1 @@ -0,0 +1 @@ +MD5 c38fa653afe8eba067b5651ba86a6673 tmpwatch-2.9.1-1.src.rpm 21813 diff --git a/app-admin/tmpwatch/files/tmpwatch.cron b/app-admin/tmpwatch/files/tmpwatch.cron new file mode 100644 index 000000000000..467d37311c55 --- /dev/null +++ b/app-admin/tmpwatch/files/tmpwatch.cron @@ -0,0 +1,42 @@ +#!/bin/sh +# $Header: /var/cvsroot/gentoo-x86/app-admin/tmpwatch/files/tmpwatch.cron,v 1.1 2004/09/18 19:47:15 ka0ttic Exp $ +# vim: ft=sh + +# This cron script contains several (commented out) examples. You may use +# them as is, by uncommenting them, or modify them to suit your needs. Read +# tmpwatch(8) for more information on tmpwatch parameters. + +### Variables ### + +TMPWATCH="/usr/sbin/tmpwatch" +#PORTAGE_TMPDIR="$(portageq envvar PORTAGE_TMP_DIR)/portage" +#DISTDIR="$(portageq distdir)" + +### EXAMPLES ### + +# NOTE: if you have noatime in /etc/fstab for any partitions you plan on +# running tmpwatch on, you should obviously change any of the examples that +# use atime (-u|--atime). Those that don't specify anything, default to +# atime. + +# NOTE2: the time value is in HOURS! + +# Delete everything in /tmp that haven't been accessed in a week (>=168 hrs). +# +# if [[ -d /tmp ]]; then +# ${TMPWATCH} --atime 168 /tmp +# fi + +# Delete everything in PORTAGE_TMPDIR that hasn't been modified in 2 weeks. +# +# if [[ -d ${PORTAGE_TMPDIR:-/var/tmp/portage} ]]; then +# ${TMPWATCH} --mtime --all 336 ${PORTAGE_TMPDIR:-/var/tmp/portage} +# fi + +# Delete everything in DISTDIR that hasn't been accessed in 6 months (going +# by 30 day months) +# +# if [[ -d ${DISTDIR:-/usr/portage/distfiles} ]]; then +# ${TMPWATCH} --atime --fuser 4320 ${DISTDIR:-/usr/portage/distfiles} +# fi + |