Making sample files easier
Warren Block
wblock at wonkity.com
Sat Aug 31 02:10:57 UTC 2013
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?
More information about the freebsd-ports
mailing list