I just discovered
Enter
pkg_create -b
today. I'm very happy because I've been trying to maintain a set of packages for my installed ports by setting PACKAGES and doing portupgrade -ap
and make package
. This approach was OK, but I ended up with a package repository that contained packages for a lot of old versions. Enter
pkg_create -b
. Now I can use the following shell script to obtain a set of package files for all my installed ports:
Code:
#!/bin/sh
for pkg in `pkg_info -E '*'`
do
pkg_create -b $pkg
echo $pkg package complete.
done