From owner-freebsd-ports@FreeBSD.ORG Thu Mar 14 07:37:03 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C8CBAD4E for ; Thu, 14 Mar 2013 07:37:03 +0000 (UTC) (envelope-from ari@ish.com.au) Received: from fish.ish.com.au (eth5921.nsw.adsl.internode.on.net [59.167.240.32]) by mx1.freebsd.org (Postfix) with ESMTP id 5CF59958 for ; Thu, 14 Mar 2013 07:37:02 +0000 (UTC) Received: from ip-136.ish.com.au ([203.29.62.136]:52907) by fish.ish.com.au with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1UG2gL-0005nB-05; Thu, 14 Mar 2013 18:34:33 +1100 X-CTCH-RefID: str=0001.0A150201.51417D89.00EB:SCFSTAT15613948, ss=1, re=-4.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 Message-ID: <51417D87.8030901@ish.com.au> Date: Thu, 14 Mar 2013 18:34:31 +1100 From: Aristedes Maniatis User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20100101 Thunderbird/20.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: pkg MANIFEST documentation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 07:37:03 -0000 I am trying to create a package without first having a port, but I'm finding it really hard. Firstly, the pkg MANIFEST format isn't well documented. For example: 1. What is the syntax of "deps" when I want to depend on Java, but not specify the version? I've tried this: deps: javavmwrapper: {origin: java/javavmwrapper} but this is ignored with a warning. 2. Everything under "files:" and "directories:" appears to have full paths from root. If that is the case, how does the system adjust to a user's own choice of prefix? And what is the point of the "prefix:" option earlier in the MANIFEST? 3. I see packages with this syntax: directories: /var/db/something: y What does the "y" mean? Secondly, I am confused by the tar packaging itself. It appears that my package only works if I build it using tar Pf packge.tar / Is the correct way to chroot to a folder, assemble all the files relative to root and then tar in this way? Again, why doesn't pkg cope with relative tar pathing? Isn't that the whole point of 'prefix'? Thanks Ari -- --------------------------> Aristedes Maniatis ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A