Subject: Re: Location of packages
To: Jeff Woolley <jwoolley@scc.net>
From: Frederick Bruckman <fb@enteract.com>
List: port-mac68k
Date: 08/07/1999 18:08:39
On Sat, 7 Aug 1999, Jeff Woolley wrote:

> Another packages related question.
> 
> Can you use SUP on pkgsrc if you originally downloaded and untarred 
> pkgsrc.tar.gz?
> 
> Or do  you have to start with SUP?

You can, more or less. The central problem to be aware of is that sup
can only delete files that it thinks it downloaded. The "patch-sums"
were introduced to keep obsolete patches from foiling a build, but you
still could end up with a completely obsolete package. There's also
the CVS directories, which are instantly wrong, and the README.html's,
which are not updated, either.

One clever solution is to pre-build /usr/sup/current/last.pkgsrc from
your existing files, so "sup -o" can then clean all that out.

find pkgsrc ! -path pkgsrc/distfiles\* ! -path \*work\* | sort 
  >/usr/sup/current/last.pkgsrc
sup -sovm

You could protect the README.html's the same way the "work"
directories are protected, if you prefer.