aboutsummaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2014-04-12 03:39:02 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2014-04-12 03:39:02 +0000
commit4070b125519e180a901b0c14d163885f3c375957 (patch)
treeb5235113da17195fc36663198e7440dd31ce2cc8 /CHANGES
parent94e8164d5caa4db62a43b41aa03103b9c65dc4cf (diff)
downloadports-4070b125519e180a901b0c14d163885f3c375957.tar.gz
ports-4070b125519e180a901b0c14d163885f3c375957.zip
- 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 we have been moving towards more logic in pkg-plist where possible and less magical macros. Though this thinking does clash with autoplist ideas. We may still want CONF_FILES, which just drops a list of @sample entries into the plist anyway. - Add a Keywords/pkg_install.awk and hook it into generate-plist. This is for pkg_install compatibility since it does not know how to read Keywords/sample.yaml. This file gives us a strategy to implement more keywords before pkg_install is EOL. Keywords are documented here: https://github.com/freebsd/pkg/commit/bffc31420b1fd6146a43c9abcd45109dd901198a - This needs to be documented in PH and portlint support added still. PR: ports/157168 [1] Discussed with: bapt Reviewed by: bapt Requested by: many With hat: portmgr
Notes
Notes: svn path=/head/; revision=351064
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES17
1 files changed, 17 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 775711b976cd..87135b4c8c95 100644
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,23 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
+20140411:
+AUTHOR: bdrewery@FreeBSD.org
+
+ A new plist keyword has been added, @sample. It accepts a file (must end in
+ .sample):
+
+ @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
+
20140312:
AUTHOR: bapt@FreeBSD.org