From owner-freebsd-small@FreeBSD.ORG Wed Jun 14 07:42:36 2006 Return-Path: X-Original-To: freebsd-small@freebsd.org Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D46516A479 for ; Wed, 14 Jun 2006 07:42:36 +0000 (UTC) (envelope-from small1@jamcotimes.com) Received: from courageux.cnchost.com (courageux.cnchost.com [207.155.248.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C76A43D5F for ; Wed, 14 Jun 2006 07:42:36 +0000 (GMT) (envelope-from small1@jamcotimes.com) Received: (www@localhost) by courageux.cnchost.com id DAA07263; Wed, 14 Jun 2006 03:42:35 -0400 (EDT) [ConcentricHost SMTP Relay 1.17] Message-ID: <200606140742.DAA07263@courageux.cnchost.com> Errors-To: From: Jeff S To: Date: Wed, 14 Jun 2006 03:42:35 -0400 (EDT) In-Reply-To: <200606091006.GAA04258@courageux.cnchost.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: adding ports (and apps) to NanoBSD X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeff S List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 07:42:36 -0000 ---- Ben Kelly 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? >=20 > > Any suggestions? >=20 > I don't know if its proper or not, but I ended up using a=20 > customize function like this: >=20 > CONF_ROOT=3D"/home/bkelly/nanobsd/net4801-vpn" >=20 > cust_install_packages () ( > PACKAGE_LIST=3D`ls ${CONF_ROOT}/packages/*` > cd ${NANO_WORLDDIR} > for p in ${PACKAGE_LIST} > do > cat ${p} | pkg_add -C . - > done > ) >=20 > customize_cmd 'cust_install_packages' >=20 > I then just stick whatever packages I want into the ${CONF_ROOT}/packages= =20 > 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