From owner-freebsd-questions@FreeBSD.ORG Fri Jan 11 16:42:43 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3C480425 for ; Fri, 11 Jan 2013 16:42:43 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id DF476659 for ; Fri, 11 Jan 2013 16:42:42 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tthh2-0003ME-B7 for freebsd-questions@freebsd.org; Fri, 11 Jan 2013 17:42:56 +0100 Received: from cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com ([86.21.186.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Jan 2013 17:42:56 +0100 Received: from walterhurry by cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Jan 2013 17:42:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Walter Hurry Subject: Re: pkgng - Symlinks created by portupgrade? Date: Fri, 11 Jan 2013 16:42:27 +0000 (UTC) Lines: 42 Message-ID: References: <50EDBCEB.7030403@infracaninophile.co.uk> <50F034E0.1080004@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2013 16:42:43 -0000 On Fri, 11 Jan 2013 15:50:56 +0000, Matthew Seaman wrote: > On 11/01/2013 15:18, Walter Hurry wrote: >> On Thu, 10 Jan 2013 01:50:34 +0000, Walter Hurry wrote: >> >>> Thank you yet again, Matthew. As always, you are a fount of knowledge. >>> >>> The guidance on LATEST_LINK has helped a great deal. I still have a >>> further question or two though; I shall follow up within a day or two. >> >> Just one further question: Is there a reason why 'pkg create' doesn't >> generate synonyms this way, even when the output directory is set to >> /usr/ >> ports/packages/All? > > Yes. 'pkg create' may be used to create arbitrary packages outside the > context of ports, so it doesn't want to assume the LATEST_LINK layout. > (All you need is an appropriate MANIFEST file... or a previously > installed package on your system.) > > Like I said, for the purpose of generating a pkgng repo, this whole > question of directory structure is pretty much immaterial: pkgng doesn't > care. Any sort of directory structure containing .txz package tarballs > will do. (Usually putting all the pkgs together in one big directory is > what happens.) > > The LATEST_LINK layout is aimed at people logging into a ftp server and > hunting through the directory tree for the packages they want. Most > pkgng repos won't let you login like that, nor will all of them > necessarily let you get a directory listing, other than the data you can > extract from repo.sqlite. > > As for special casing things when writing to ${PORTSDIR}/packages/All -- > no one has seen fit to write the code to do that. If you think this > sort of functionality would be useful, well, we always like to get pull > requests. I would point out though that there is already perfectly good > code in bsd.port.mk et al to do this sort of thing, which you can access > by 'make package'. > Thanks for the comprehensive explanation, Matthew. It's no big deal; I was just curious. Yes, I was aware that pkg repo ignores symlinks - it says so in 'man pkg-repo'.