Date: Mon, 26 May 2014 20:06:27 +0100 From: Chris Rees <crees@bayofrum.net> To: Bryan Drewery <bdrewery@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r351064 - in head: . Keywords Mk Message-ID: <538390B3.6090107@bayofrum.net> In-Reply-To: <201404120339.s3C3d2Sq009758@svn.freebsd.org> References: <201404120339.s3C3d2Sq009758@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?538390B3.6090107>