I was rebuilding my Wireless Access Point NanoBSD build and I had to add a package with many dependencies.
An easier way to do it is to use pkg-fetch(8) to download the needed files and their dependencies, and the dependency of dependencies.
For my Access Point I use dns/dnsmasq and it has layers of dependencies. So here is my command:
Notice that I have changed my config file to put packages into the build folder.
That way I can build i386 and amd64 packages with each build using its own package sets.
So with this setting I changed in my config to have separate Pkg folders for each config directory:
NANO_PACKAGE_DIR=${NANO_SRC}/${NANO_TOOLS}/${NANO_NAME}/Pkg
Ok now to download the packages:
This command downloads package.txz and dnsmasq.txz plus all dependencies to the /usr/src/tools/tools/nanobsd/wap-amd64/Pkg/All directory.
From there you can copy them up from the Pkg/All directory up to the /Pkg directory.
An easier way to do it is to use pkg-fetch(8) to download the needed files and their dependencies, and the dependency of dependencies.
For my Access Point I use dns/dnsmasq and it has layers of dependencies. So here is my command:
cd /usr/src/tools/tools/nanobsd/wap-amd64/Pkg
Notice that I have changed my config file to put packages into the build folder.
That way I can build i386 and amd64 packages with each build using its own package sets.
So with this setting I changed in my config to have separate Pkg folders for each config directory:
NANO_PACKAGE_DIR=${NANO_SRC}/${NANO_TOOLS}/${NANO_NAME}/Pkg
Ok now to download the packages:
pkg fetch -o ./ -d pkg dnsmasq
This command downloads package.txz and dnsmasq.txz plus all dependencies to the /usr/src/tools/tools/nanobsd/wap-amd64/Pkg/All directory.
From there you can copy them up from the Pkg/All directory up to the /Pkg directory.