Date: Tue, 26 Oct 2004 10:37:20 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "Loren M. Lang" <lorenl@alzatex.com> Cc: FreeBSD Mailing list <freebsd-questions@freebsd.org> Subject: Re: Creating Packages Message-ID: <20041026093720.GD11508@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20041026074508.GE6513@alzatex.com> References: <20041026074508.GE6513@alzatex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--jCrbxBqMcLqd4mOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 26, 2004 at 12:45:08AM -0700, Loren M. Lang wrote: > I'm trying to figure out the best way to create a package from an > already installed port.=20 Easy. pkg_create -b pkg-name -- read pkg_create(1) for details. > I looked through the makefiles to see how ports does the package > creation. It looks like it compiles pkg_create with a very long list of > arguments including references to file in /var/db/pkg, but it also > references files created in the work directory when it built the port, > but that's already been deleted so I can't use that. Yes -- the ports have to do some processing to generate all of the data that's then stashed in /var/db/pkg. However, once that's in place, pkg_create can just use it straight away to build the pkg. =20 > Also, I would like to be able to build a package from a compiled port > without installing it first, is that possible or easy? This is unfortunately not really feasible. As things are, you've got to install the files etc. belonging to the port into their final locations before you can generate a package from it. The way the package building cluster deals with this problem is to build each port in a dedicated chroot -- see http://pointyhat.freebsd.org/errorlogs/ for a description. That might be something you can adapt to your situation. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --jCrbxBqMcLqd4mOl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBfhrQiD657aJF7eIRAvyxAJ4gt+dnB1IirlGKV5uCfPBGfgYwxgCgjnd3 XhxjDKKTasV83mtCPzlfrkY= =ipzz -----END PGP SIGNATURE----- --jCrbxBqMcLqd4mOl--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041026093720.GD11508>