Date: Wed, 14 Jun 2006 03:42:35 -0400 (EDT) From: Jeff S <small1@jamcotimes.com> To: <freebsd-small@freebsd.org> Subject: Re: adding ports (and apps) to NanoBSD Message-ID: <200606140742.DAA07263@courageux.cnchost.com> In-Reply-To: <200606091006.GAA04258@courageux.cnchost.com>
next in thread | previous in thread | raw e-mail | index | archive | help
---- Ben Kelly <bkelly@vadev.org> wrote:
>
> On Friday 09 June 2006 6:06 am, Jeff S wrote:
> > I installed NanoBSD on a DamnSmallMachine (VIA C3 Nehemiah
> > and IDE flash disk). I like the architecture and it booted
> > on the first try. Well done!
> >
> > What's the "proper" way to add ports and apps?
>
> > Any suggestions?
>
> I don't know if its proper or not, but I ended up using a
> customize function like this:
>
> CONF_ROOT="/home/bkelly/nanobsd/net4801-vpn"
>
> cust_install_packages () (
> PACKAGE_LIST=`ls ${CONF_ROOT}/packages/*`
> cd ${NANO_WORLDDIR}
> for p in ${PACKAGE_LIST}
> do
> cat ${p} | pkg_add -C . -
> done
> )
>
> customize_cmd 'cust_install_packages'
>
> I then just stick whatever packages I want into the ${CONF_ROOT}/packages
> directory and they get added during the build process.
Thanks Ben.
I just found the following message, where PHK published his
nanobsd myconf file.
http://lists.freebsd.org/pipermail/freebsd-current/2005-October/056974.html
Here's his way of installing ports.
phk_pkg () (
mkdir -p ${NANO_WORLDDIR}/Pkg
cp /usr/src/tools/tools/nanobsd/Pkg/* ${NANO_WORLDDIR}/Pkg
chroot ${NANO_WORLDDIR} sh -c 'pkg_add -v Pkg/*'
rm -rf ${NANO_WORLDDIR}/Pkg
)
customize_cmd phk_pkg
Jeff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606140742.DAA07263>
