From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 14:21:54 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 8C8EE1065670 for ; Wed, 3 Sep 2008 14:21:54 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 441C48FC16 for ; Wed, 3 Sep 2008 14:21:54 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KatEy-0005LV-OC for freebsd-questions@freebsd.org; Wed, 03 Sep 2008 14:21:48 +0000 Received: from 213.27.232.70 ([213.27.232.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2008 14:21:48 +0000 Received: from matiassurdi by 213.27.232.70 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2008 14:21:48 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Matias Surdi Date: Wed, 03 Sep 2008 16:21:59 +0200 Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 213.27.232.70 User-Agent: Thunderbird 2.0.0.16 (X11/20080724) In-Reply-To: Sender: news Subject: Re: pkg_create X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 14:21:54 -0000 Ivan Voras 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. > > Though it's theoretically possible, don't use pkg_create on a bunch of > files you scattered on the file system to create a package. a) it's hard > to do right by hand and b) you'll probably create an incorrect package. > > What you can do (and this is much easier) is write a port for your > application(s), see > http://www.freebsd.org/doc/en/books/porters-handbook/ and then create a > binary package from that port using "make package". > > (You do not need to submit the port or your source to anyone but you > must have it on your computer to create the package). > Thanks, this will do the job.