Matthias Apitz matthias.apitz at
Wed Sep 3 11:01:17 UTC 2008

El día Wednesday, September 03, 2008 a las 01:48:57PM +0300, Manolis Kiagias escribió:

> Matias Surdi wrote:
> >I've a directory tree structure in /usr/local from wich I'd like to 
> >create a package.
> >
> >How are pkg_create arguments supposed to be?
> >
> >Where can I find an example?
> >
> >I've read the manpage, but an example would be really usefull.
> >
> >Thanks for your help again.
> >
> pkg_create can create packages from your installed ports (or packages), 
> it will not create a mega-package of all your system, if thats is what 
> you are looking for. Of course, you can instruct pkg_create to create 
> packages for *all* your installed programs.
> Typical use is something like:
> pkg_create -Rb foo-1.2.3_4


I've until now only used the above mentioned form to create package
files from installed packages to installe them into another computer;

but, if I understand the man-page of pkg_create(1) correctly, one can
also create with this packages from the files in the file system;

create a package with 'pkg_create -Rb foo-1.2.3_4' and have a look into
the resulting tar file foo-1.2.3_4.tbz; this will give you an idea of
what you must provide on the command line for building a package from
certain files; this is what I would start with;



Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at> - w
We should all learn from the peoples of The Netherlands, France and Ireland.
Aprendamos todos de los pueblos de Holanda, Francia e Irlanda.

More information about the freebsd-questions mailing list