Download and install the pkgsrc contents:
ftp ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc.tar.gz tar -zxf pkgsrc.tar.gz -C /usr
Build package vulnerability database:
/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities
PATH="/usr/pkg/sbin:$PATH" export PATH
This will take a long time.
cd /usr/pkgsrc make search
find /usr/pkgsrc/ -type d -mindepth 2 -maxdepth 2 | grep -v CVS | cut -d "/" -f 4- > pkgsrc
make show-options
make deinstall
Add to /etc/mk.conf
:
PKG_OPTIONS.apache22 = apache-mpm-worker -apache-mpm-prefork suexec
Add to /etc/mk.conf
:
ACCEPTABLE_LICENSES+= vim-license
echo ALLOW_VULNERABLE_PACKAGES=1 >> /etc/mk.conf
make clean-depends