Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2008 14:29:08 +0100
From:      Gergely CZUCZY <phoemix@harmless.hu>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        navneet Upadhyay <navneet.upadhyay@gmail.com>, freebsd ports <freebsd-ports@freebsd.org>
Subject:   Re: FreeBSD packaging
Message-ID:  <20080121132908.GA69774@harmless.hu>
In-Reply-To: <47949CC8.2080900@infracaninophile.co.uk>
References:  <1563a4fd0801210056q317105f8y3a8b094f9611d07e@mail.gmail.com> <47949CC8.2080900@infracaninophile.co.uk>

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

--jRHKVT23PllUwdXP
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 21, 2008 at 01:23:20PM +0000, Matthew Seaman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>=20
> navneet Upadhyay wrote:
> > Hi,
> >=20
> > We have our product on RHEL(almost all versions), we are planning to su=
pport
> > 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 :
> >=20
> > 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.
> >=20
> > 2. I have around 4 script files which should be executed as part of
> > installation after the files are transferred to the respective folders.
> >=20
> >=20
> >   Can somebody provide me some information on how to achieve it.
> >=20
> > I am not looking at Ports.
>=20
> 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 priva=
tely=20
> - -- it doesn't have to be submitted to the FreeBSD ports system.  Just f=
ollow
> 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-desc=
r=20
> and so forth, it can be kept virtually anywhere in your filesystem.  It w=
ill
> 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 t=
he
mkdir(1) command, like ``mkdir /usr/ports/mycategory''. This way all the po=
rts
updating utilities (csup, portsnap) will leave your port alone. Once you ha=
ve
the port for this piece of software of yours, you can create a package anyt=
ime
by typing "make package". The ports framework is pretty nice and easy to us=
e,
I have also managed to make a port and some packages of some of my own piec=
e of
software.

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

Sincerely,

Gergely Czuczy
mailto: gergely.czuczy@harmless.hu

--=20
Weenies test. Geniuses solve problems that arise.

--jRHKVT23PllUwdXP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

owFtVs+LJEUWbhUPJngQvIgID1F6eqwfXT2/ekpqdHqmbVvsmWZ6REREozJfVQaV
GZFGRFaZHvXiQVAWQcFdEW8eBA/eRPEuetjLevOwu3/A3vam34us6qlRm6azOjLi
e9/73vde1IcP3rdx70M/f/3Nq0+9/7dP7/nqgX+Pz5Z1CGbaLZWba9MdbG8Puhcv
X7p0vnu+e+7y7qV0zIOL57LBzlgdfPTZE9esCWxC93ZT8ZACvxX6VaG0eZrSXDnP
YVSHSXc3We27rn1lvQ7amiFpU2jDp+9uO2X8hF1336Q202Y6pDdrGzjrVk6boMYF
J8lNQ0fWdOgFZWhn0KGd7e1dUoG2B8Odc8Od7eMjemobPx06UiHkvKATViU2Lxyg
hskV6srP3v7B4Q06Pjimk8ODG/vX6Wj/5OTqwX58iU3PK58P6dbh8f7R9cHF7eTK
aAd/yKi5YQ70UqWyvFHNHVQc0R15thuv0MtMuZoz2dpR5WxWp4GsoVvP7794RhWl
9YFUUdCcnYcYfqtDCyblmKCfMciegiVfj5Kqsi5ESB0Rzj7nmPdOrp/treIsGMd8
nabs/aQGqDY0rnWRRZScaayNcpp9j27YhcSJzIBfqhmCRhzUqq7O3IJ+HvHITnAS
57faKHsNzbXUDYh4sCdNqSoFY2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etIu4ImbQ+wvWQFPRuUqL1gHBqE8hGrY7y8Wi55cOWOf
yZXTx13UZ/P6Sye9w5Obu7sXLncHffGU7y9t1l25rJ8kJxqyOoyHTpIcsJviE117
u07fbpJS6SLYIU3b5V4al5/FV6oSneF7eZ0k3a402cvMRuqJKxmWO8A/mHcwlS2Q
P0Yu7rNyOedwg3nwf++Z++7fkO9uq+99D9377W8bn38xuvDKd19+9J+9T37dePfv
D9t//fjLIxv/eOz//736w0/2n1uPfv/x7Sc/KN753/fj3wE=
=94VI
-----END PGP SIGNATURE-----

--jRHKVT23PllUwdXP--



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