From owner-freebsd-ports@FreeBSD.ORG Fri Jan 13 14:46:59 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B39D106566B for ; Fri, 13 Jan 2012 14:46:59 +0000 (UTC) (envelope-from freebsd-ports@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 16EBA8FC15 for ; Fri, 13 Jan 2012 14:46:59 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.179]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id B76625C26 for ; Sat, 14 Jan 2012 00:59:28 +1000 (EST) Message-ID: <4F104303.6050701@herveybayaustralia.com.au> Date: Sat, 14 Jan 2012 00:43:15 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4F0E395B.6020201@herveybayaustralia.com.au> <4F0E4D20.405@missouri.edu> <4F0E5809.4020700@herveybayaustralia.com.au> <4F0E5A92.2050607@missouri.edu> <4F0E5E1E.20904@herveybayaustralia.com.au> <4F0E60B6.4040904@missouri.edu> <20120112062705.GA63861@dormouse.experts-exchange.com> <4F0F60CB.6090601@herveybayaustralia.com.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: unassociated shell command X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2012 14:46:59 -0000 On 01/13/12 17:20, Chris Rees wrote: > On 12 January 2012 22:38, Da Rock > wrote: >> On 01/13/12 07:30, Chris Rees wrote: >>> Also, no, you shouldn't (can't) set Make variables inside a target, as >>> covered before. >>> >>> However... instead of >>> >>> .if defined(NOPORTDOCS) >>> PLIST_SUB etc etc >>> >>> stuff, just remove all the PORTDOCS lines from pkg-plist, and use the >>> magic variable PORTDOCS: >>> >>> PORTDOCS= * >>> >>> :) >> I must be a little slow this morning... I don't get it. How does that work? >> >> I would like to point out also that the docs are 30/70 nss and pam related >> respectively. So if I install without pam then the pam docs are not >> installed. >> > > From Porter's Handbook: > > If a directory is listed in PORTDOCS or matched by a glob pattern from > this variable, the entire subtree of contained files and directories > will be registered in the final packing list. > > Basically, PORTDOCS=* is the same as including find `make -V DOCSDIR` > in the pkg-plist, without the plist bloat and complication. > > http://www.freebsd.org/doc/en/books/porters-handbook/book.html#INSTALL-DOCUMENTATION Thats fantastic! Thanks for pointing it out (again, might have saved some headaches earlier...); I read that handbook front to back, but its not always obvious that 2 and 2 go together unless someone points it out :) Ports looking better than ever now- very lean.