Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2013 20:10:50 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        ports@FreeBSD.org
Subject:   Making sample files easier
Message-ID:  <alpine.BSF.2.00.1308301858460.3091@wonkity.com>

next in thread | raw e-mail | index | archive | help
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1308301858460.3091>