On Wed, Oct 01, 2003 at 05:11:53PM -0400, [EMAIL PROTECTED] wrote:
>  I want to distribute my software as a FreeBSD package. I have been through
> the porters handbook, but it soes not give comprehensive info about how to
> build packages. 

Create a port for your package, as described in the porter's handbook.
You can keep the port directory anywhere in your filesystem -- doesn't
have to be in with all of the other ports.  One of the standard
targets provided by the ports system is 'make package' which does
exactly what you want.

Even better, if you're prepared to release source code for your
software, submit the port to the FreeBSD project and have it included
in the standard collection.
 
> Is there a good doc on how to do that. Also what is the difference between
> .tbz and .tgz packages. Are they compatible ? 

The only difference is the compression algorithm used.  'tbz' is the
latest thing, and uses the more effective bzip2 compression.
pkg_add(1) on older 4.x where x < 7 (I think) won't be able to
understand .tbz packages.  It's pretty trivial to decompress and
recompress with an alternate compression though:

    # bzcat pkgname.tbz | gzip -c > pkgname.tgz

        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: pgp00000.pgp
Description: PGP signature

Reply via email to