Making sample files easier

Bryan Drewery bdrewery at FreeBSD.org
Sat Aug 31 02:33:44 UTC 2013


On 8/30/2013 9:10 PM, Warren Block wrote:
> Sample files, like sample configuration files, are supposed to be
> installed if there is no identical file present.  If a user-modified
> version is present, the sample file should not overwrite it, nor should
> that user-modified file be removed on deinstall.  But unmodified sample
> files should be removed on deinstall.
> 
> The logic to do this is confusing, full of double negatives and multiple
> conditionals.  The plist has to be modified.  It ends up being scripted
> in the Makefile or elsewhere, inconsistently.
> 
> Is there any reason a standard SAMPLE_FILES= can't be used?  Define
> files that are samples there, and let a system Makefile handle it
> consistently and make things easier for the port maintainer and the user.
> 
> Maybe something like this is planned?

Sure, makes sense to me. Someone just needs to implement it.

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130830/0fc0c3f6/attachment.sig>


More information about the freebsd-ports mailing list