FreeBSD packaging

Gergely CZUCZY phoemix at harmless.hu
Mon Jan 21 05:49:47 PST 2008


On Mon, Jan 21, 2008 at 01:23:20PM +0000, Matthew Seaman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
> 
> navneet Upadhyay wrote:
> > Hi,
> > 
> > We have our product on RHEL(almost all versions), we are planning to support
> > it on *FreeBSD*.
> > We were successfull in building the binaries. Now we have to make a
> > setup(RPM sort of thing).
> > By visiting sites i cam to know that pkg_create will do it for me. But i am
> > unable to create a package as per my needs. I have gone through many
> > documents on freeBSD.org, my needs are :
> > 
> > 1. I have around 8 executables which should go to various directories as
> > part of installation , and around 15 config file which go to config
> > directory as part of installation.
> > 
> > 2. I have around 4 script files which should be executed as part of
> > installation after the files are transferred to the respective folders.
> > 
> > 
> >   Can somebody provide me some information on how to achieve it.
> > 
> > I am not looking at Ports.
> 
> I suggest you reconsider use of the ports system, as that is the canonical
> way to create installer packages on FreeBSD.  You can create a port privately 
> - -- it doesn't have to be submitted to the FreeBSD ports system.  Just follow
> the instructions in the Porter's Handbook for creating the port -- so long
> as it has it's own little sub directory to contain the Makefile, pkg-descr 
> and so forth, it can be kept virtually anywhere in your filesystem.  It will
> pick up dependencies from the standard ports tree quite happily.
Agreed.

Read the porters' handbook[1], and create a port for it. I suggest having a
local category for it. You can create a category in the ports system with the
mkdir(1) command, like ``mkdir /usr/ports/mycategory''. This way all the ports
updating utilities (csup, portsnap) will leave your port alone. Once you have
the port for this piece of software of yours, you can create a package anytime
by typing "make package". The ports framework is pretty nice and easy to use,
I have also managed to make a port and some packages of some of my own piece of
software.

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/

Sincerely,

Gergely Czuczy
mailto: gergely.czuczy at harmless.hu

-- 
Weenies test. Geniuses solve problems that arise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 2161 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080121/25391e06/attachment.pgp


More information about the freebsd-ports mailing list