On Thu, Nov 04, 2004 at 04:15:16PM +0100, Gert Cuykens wrote:
> On Thu, 4 Nov 2004 13:52:11 +0000, Matthew Seaman
> <[EMAIL PROTECTED]> 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/...

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

-- 
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

Attachment: pgp5YlaCX2eOW.pgp
Description: PGP signature

Reply via email to