Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2003 08:32:35 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        "akanwar@digitarchy.com" <akanwar@digitarchy.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: creating a package
Message-ID:  <20031002073235.GA10711@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <29950-220031031211153866@M2W045.mail2web.com>
References:  <29950-220031031211153866@M2W045.mail2web.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 01, 2003 at 05:11:53PM -0400, akanwar@digitarchy.com wrote:


>  I want to distribute my software as a FreeBSD package. I have been throu=
gh
> the porters handbook, but it soes not give comprehensive info about how to
> build packages.=20

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.
=20
> Is there a good doc on how to do that. Also what is the difference between
> .tbz and .tgz packages. Are they compatible ?=20

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

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

--/9DWx/yDrRhgMJTb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/e9STdtESqEQa7a0RAvYDAJ9+F8hlO9aCDVOzTuKXDecJiriNWgCfYQGl
TN5ciOLL6r/N7ngSXX0xgHU=
=pTTb
-----END PGP SIGNATURE-----

--/9DWx/yDrRhgMJTb--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031002073235.GA10711>