Subject: scripts for rebuilding all interesting packages
To: None <pkgsrc-users@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: pkgsrc-users
Date: 01/20/2007 12:37:32
Periodically, I like to rebuild all of my packages.  I can use
'pkg_info -u -Q PKGPATH' and pkg_comp to do the builds; the question
is how to do the installation.

The problem is that package names are often different from the build
directory name in PKGPATH.  For example, I have to go to www/firefox2
to build the browser, but it's installed as firefox-2.0.0.1.  I
could run 'pkg_info -u', but of course the version numbers are likely
to be wrong.  I don't want to simply install every tarball in the
pkg_comp output directory, because that would mess up 'pkg_info -u'
for next time.

This time, I manually matched `basename $i`-*tgz for every entry in
the pkg_info -u output.  I hand-corrected the few that matched
multiple files -- about three of them, I believe -- and those that
didn't match any, such as firefox2 and openoffice2-bin.  I would like
a better solution.  Any ideas?


		--Steve Bellovin, http://www.cs.columbia.edu/~smb