From owner-freebsd-questions@FreeBSD.ORG Tue Oct 26 09:37:31 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1619216A4CE for ; Tue, 26 Oct 2004 09:37:31 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B1E43D1D for ; Tue, 26 Oct 2004 09:37:30 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i9Q9bKTn047999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Oct 2004 10:37:20 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i9Q9bKbD047998; Tue, 26 Oct 2004 10:37:20 +0100 (BST) (envelope-from matthew) Date: Tue, 26 Oct 2004 10:37:20 +0100 From: Matthew Seaman To: "Loren M. Lang" Message-ID: <20041026093720.GD11508@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "Loren M. Lang" , FreeBSD Mailing list References: <20041026074508.GE6513@alzatex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jCrbxBqMcLqd4mOl" Content-Disposition: inline In-Reply-To: <20041026074508.GE6513@alzatex.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Tue, 26 Oct 2004 10:37:20 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Mailing list Subject: Re: Creating Packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 09:37:31 -0000 --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--