From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 11:01:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EC7B1065672 for ; Wed, 3 Sep 2008 11:01:17 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id B5F9F8FC12 for ; Wed, 3 Sep 2008 11:01:16 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Wed, 3 Sep 2008 13:01:14 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m83B1EEl007988; Wed, 3 Sep 2008 13:01:14 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Wed, 3 Sep 2008 13:01:14 +0200 From: Matthias Apitz To: Manolis Kiagias Message-ID: <20080903110114.GA7293@rebelion.Sisis.de> References: <48BE6B99.6090609@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <48BE6B99.6090609@gmail.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 03 Sep 2008 11:01:14.0866 (UTC) FILETIME=[62255D20:01C90DB4] Cc: Matias Surdi , freebsd-questions@freebsd.org Subject: Re: pkg_create X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 11:01:17 -0000 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; hih matthias -- 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 - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda.