Subject: Re: PLIST generation
To: Roland Illig <rillig@NetBSD.org>
From: Johnny C. Lam <jlam@pkgsrc.org>
List: tech-pkg
Date: 10/25/2007 14:02:36
Roland Illig wrote:
> Johnny C. Lam wrote:
>> Module Name: pkgsrc
>> Committed By: jlam
>> Date: Thu Oct 25 16:46:14 UTC 2007
>>
>> Modified Files:
>> pkgsrc/mk/plist: plist.mk
>>
>> Log Message:
>> Allow packages to have no PLIST files whatsoever. If such a package also
>> does not set GENERATE_PLIST, then automatically generate a PLIST that
>> says:
>> @comment ${PKGNAME} has no files.
>
> There should be some targets {pre,do,post}-plist that can be overridden
> by packages. Currently, this work is mostly done in the post-install
> stage, which triggers some pkglint warnings (for example, cp(1) or
> sed(1) should not be used in {pre,do,post}-install).
I haven't looked into this, but I think those packages you are
describing should probably be setting GENERATE_PLIST appropriately
instead of adding that code to a post-install target.
Cheers,
-- Johnny C. Lam