work directories

Pierre Abbat phma at phma.optus.nu
Sat Dec 3 18:58:18 PST 2011


On Saturday 03 December 2011 21:03:53 Jeremy C. Reed wrote:
> On Sat, 3 Dec 2011, Pierre Abbat wrote:
> > I have 8.9 GB in /usr/pkgsrc/*/*/work/. What's the proper way to get
> > rid of old files in these directories?
>
> I often use rm. I normally use: make clean clean-depends (but it is
> slower).
>
> Also have a look at pkgsrc/pkgtools/pkgclean

That works, but I'd like something I can run periodically, and I don't want to 
remove a work directory in the middle of a build. My /etc/periodic.conf is 
this:

# 110.clean-tmps
daily_clean_tmps_enable="YES"                           # Delete stuff daily
daily_clean_tmps_dirs="/tmp /var/db/pkgin/cache /usr/pkgsrc/distfiles"  # 
Delete under here
daily_clean_tmps_dirs="$daily_clean_tmps_dirs /usr/obj"
daily_clean_tmps_days="30"                              # If not accessed for
daily_clean_tmps_ignore=".X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix"
daily_clean_tmps_ignore="$daily_clean_tmps_ignore quota.user 
quota.group .cvsignore"
                                                        # Don't delete these
daily_clean_tmps_verbose="YES"                          # Mention files 
deleted

If I added "/usr/pkgsrc/*/*/work" to daily_clean_tmps_dirs, would that work?

Pierre

-- 
I believe in Yellow when I'm in Sweden and in Black when I'm in Wales.





More information about the Users mailing list