From owner-freebsd-questions@FreeBSD.ORG Thu Nov 4 19:39:57 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 2425616A4CE for ; Thu, 4 Nov 2004 19:39:57 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D001043D4C for ; Thu, 4 Nov 2004 19:39:55 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])iA4Jdgem037733 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 4 Nov 2004 19:39:42 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)iA4JdgfN037732; Thu, 4 Nov 2004 19:39:42 GMT (envelope-from matthew) Date: Thu, 4 Nov 2004 19:39:42 +0000 From: Matthew Seaman To: Gert Cuykens Message-ID: <20041104193942.GB37079@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Gert Cuykens , freebsd-questions@freebsd.org References: <20041104135211.GB4296@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1UWUbFP1cBYEclgG" Content-Disposition: inline In-Reply-To: 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]); Thu, 04 Nov 2004 19:39:42 +0000 (GMT) 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-questions@freebsd.org Subject: Re: pkg_create 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: Thu, 04 Nov 2004 19:39:57 -0000 --1UWUbFP1cBYEclgG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 04, 2004 at 04:15:16PM +0100, Gert Cuykens wrote: > On Thu, 4 Nov 2004 13:52:11 +0000, Matthew Seaman > wrote: > > On Thu, Nov 04, 2004 at 02:17:55PM +0100, Gert Cuykens wrote: > > > When you do make install in a ports application /usr/ports/... > > > Does it create a pkg in /var/db/pkg/... ? > >=20 > > No. The stuff that gets stored in /var/db/pkg is *part* of what's > > required to make a package -- given that, and an installed port you can= use > >=20 > > # pkg_create -b pkg-name > >=20 > > to generate a complete package. The contents of /var/db/pkg serve to > > document all of the files belonging to the package, their checksums, > > various scripts used to install or deinstall the package, what the > > package depends on, etc. > >=20 > > > And do you use pkg_create like this pkg_create pkgname > > > /var/db/pkg/... or like this pkg_create pkgname /usr/ports/... > > > > > > Whats the difference between /var/db/pkg/... and /usr/ports/pakages/= ... ? > >=20 > > No -- you shouldn't output anything to /var/db/pkg, except for what > > pkg_add(1) etc. produce automatically. Packages you create for later > > installation elsewhere can be profitably saved under > > /usr/ports/packages which lets other package management tools find > > them automatically. > >=20 > > Cheers, > >=20 > > 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 > >=20 >=20 > So a complete pakage is /var/db/pkg/... and /usr/ports/distfiles/... > put together with pkg_create in /usr/ports/pakages/... Not quite. There's a lot of compilation and stuff that has to happen first, and the contents of /var/db/pkg are derived from the pkg-plist file and several other sources from when the port was compiled and installed. The pkg-plist file, or the dynamic methods of generating it used in some ports provides the basis for the +CONTENTS file under /var/db/pkg/${PKGNAME}. 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 --1UWUbFP1cBYEclgG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBioV+iD657aJF7eIRAonZAKCh9Dd+SH7akDCTFtsx9KPVie1mlwCePyhV qmbr92QocaWL3NlR46ENnXo= =VpFB -----END PGP SIGNATURE----- --1UWUbFP1cBYEclgG--