From owner-freebsd-questions@FreeBSD.ORG Thu Nov 4 15:15:26 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 012DC16A4CE for ; Thu, 4 Nov 2004 15:15:26 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95BE243D49 for ; Thu, 4 Nov 2004 15:15:25 +0000 (GMT) (envelope-from gert.cuykens@gmail.com) Received: by rproxy.gmail.com with SMTP id g11so179755rne for ; Thu, 04 Nov 2004 07:15:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=ItBkvyHpxt5s831h8wzWgNeLPCA++FCCbZeKhjn/FpoWofkTob3HJZkD1/SlMuSMEsnoTt42QcQvDWyrlqYUq82jtc+5DrksKVyn3X+ZMmZgbsvcgGk5Tqqfc3Jw+RfHx7zRYzFqfLRWWd/3dWuTTgRX9osKAO1bMfbzm/oUZTM= Received: by 10.38.158.11 with SMTP id g11mr1544629rne; Thu, 04 Nov 2004 07:15:16 -0800 (PST) Received: by 10.38.72.65 with HTTP; Thu, 4 Nov 2004 07:15:16 -0800 (PST) Message-ID: Date: Thu, 4 Nov 2004 16:15:16 +0100 From: Gert Cuykens To: Matthew Seaman , Gert Cuykens , freebsd-questions@freebsd.org In-Reply-To: <20041104135211.GB4296@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041104135211.GB4296@happy-idiot-talk.infracaninophile.co.uk> Subject: Re: pkg_create X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gert Cuykens List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Nov 2004 15:15:26 -0000 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/... ? > > 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 > > # pkg_create -b pkg-name > > 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. > > > 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/... ? > > 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. > > Cheers, > > Matthew > > -- > 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 > So a complete pakage is /var/db/pkg/... and /usr/ports/distfiles/... put together with pkg_create in /usr/ports/pakages/...