Hi @ports,
i wrote a little script to keep the ports on my 5.7-stable machine up to
date. The script updates the port sources, runs "out-of-date" and feeds
the output to dpb to rebuild all outdated packages. These are then
installed via pkg_add -u:
# cd /usr/ports
# /usr/bin/cvs -d ${CVSROOT} -q up -rOPENBSD_$V -Pd
# /usr/ports/infrastructure/bin/out-of-date -x 2>/dev/null |
/usr/bin/tee ${PORTS}
# /usr/ports/infrastructure/bin/dpb -c -x -P ${PORTS}
# PKG_PATH=/usr/ports/packages/$(uname -m)/all /usr/sbin/pkg_add -u
To save time, i added
FETCH_PACKAGES=Yes
to /etc/mk.conf to avoid building ports that are already available as
packages.
The setting works when PKG_PATH is set, which it isn't, because
"installpath" was already set at install time in /etc/pkg.conf.
I thought that would be enough, but neither "make install" nor dpb seem to
care about pkg.conf and only fetch packages if "the real" PKG_PATH is set.
Is this intended, currently unimplemented or am i doing it wrong?
Best,
Nils
Here are my config files:
$ cat /etc/mk.conf
FETCH_PACKAGES=Yes
SIGNING_PARAMETERS=-s signify -s /etc/signify/my-pkg.sec
$ cat /etc/pkg.conf
installpath =
http://ftp.halifax.rwth-aachen.de/openbsd/5.7/packages/amd64/
dmesg:
OpenBSD 5.7-stable (GENERIC) #0: Fri May 8 07:45:53 CEST 2015
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC