New portmaster with -o and other fixes

John Marshall John.Marshall at riverwillow.com.au
Wed Feb 28 12:55:46 UTC 2007


Doug Barton wrote:
>   New Feature
>   ===========
>   --clean-distfiles[-all] options to check /usr/ports/distfiles for
>   stale stuff, and either offer to delete them or delete them all
>   without prompting.

Thanks for this New Feature Doug! It's almost exactly what I have been 
meaning to ask for. A couple of enhancement requests...

1. Could it please use DISTDIR if defined in /etc/make.conf
2. Could it please have an option to clean distfiles for ALL (rather 
than just installed) ports (cf. 'portsclean -D' and 'portsclean -DD')

rwsrv05# portmaster -h
portmaster version 1.14

rwsrv05# portmaster --clean-distfiles-all
===>>> Gathering distinfo list for installed ports
===>>> Checking for stale distfiles
find: /usr/ports/distfiles: No such file or directory

rwsrv05# portsclean -D
Detecting unreferenced distfiles...
[Updating ... done]
Delete /kits/distfiles/firefox-2.0.0.1-source.tar.bz2
Delete /kits/distfiles/gd-2.0.33.tar.gz
Delete /kits/distfiles/gnome/intltool-0.35.4.tar.bz2
Delete /kits/distfiles/gnome2/GConf-2.16.0.tar.bz2
Delete /kits/distfiles/gnome2/libIDL-0.8.7.tar.bz2
Delete /kits/distfiles/nspr-4.6.4.tar.gz
Delete /kits/distfiles/pciids-20070123.tar.bz2
Delete /kits/distfiles/xterm-223.tgz

rwsrv05# grep distfiles /etc/make.conf
DISTDIR=        /kits/distfiles

Thanks again.

John Marshall.


More information about the freebsd-ports mailing list