DragonFly BSD
DragonFly users List (threaded) for 2011-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: work directories

From: Pierre Abbat <phma@xxxxxxxxxxxxx>
Date: Sat, 3 Dec 2011 21:54:37 -0500

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 

# 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 

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


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

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]