svn commit: r351064 - in head: . Keywords Mk

Chris Rees crees at bayofrum.net
Mon May 26 19:15:26 UTC 2014


Bryan Drewery wrote:
> Author: bdrewery
> Date: Sat Apr 12 03:39:02 2014
> New Revision: 351064
> URL: http://svnweb.freebsd.org/changeset/ports/351064
> QAT: https://qat.redports.org/buildarchive/r351064/
>
> Log:
>    - Add a @sample plist keyword
>    
>      It accepts a file (must end in .sample, this is not configurable):
>    
>        @sample file.conf.sample
>    
>      This will install file.conf.sample and copy it to file.conf. The file.conf
>      will be removed if it matches file.conf.sample on deinstall.
>    
>      This replaces older patterns of:
>    
>        @unexec if cmp -s %D/etc/pkgtools.conf %D/etc/pkgtools.conf.sample; then rm -f %D/etc/pkgtools.conf; fi
>        etc/pkgtools.conf.sample
>        @exec [ -f %B/pkgtools.conf ] || cp %B/%f %B/pkgtools.conf
>    
>      [1] This somewhat obsoletes work in ports/157168 which added CONF_FILES,
>

... but this is a much better solution.  Thanks very much for working on 
this-- would you now like me to close ports/157168? :)

Chris

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the svn-ports-all mailing list