From 72e462453a7567a1d3d7172d682a5e65724e8d89 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 2 Mar 2017 06:45:37 +0100 Subject: [PATCH] pkg: split @shadow and @sample syntax, slight differences Can't guarantee this is the final state, but opnsense-bootstrap stopping over lingering repository information without the finger- prints in place is not very helpful either. Now we have a working copy of the file we need, it is already reconfigured after install and it now also reverts FreeBSD.conf back to its required state--which is off--to prevent problems. --- Keywords/shadow.ucl | 3 ++- Mk/tree.mk | 9 +++++++++ plist | 6 +++--- .../repos/{FreeBSD.conf.sample => FreeBSD.conf.shadow} | 0 .../{origin.conf.sample.in => origin.conf.shadow.in} | 0 5 files changed, 14 insertions(+), 4 deletions(-) rename src/etc/pkg/repos/{FreeBSD.conf.sample => FreeBSD.conf.shadow} (100%) rename src/etc/pkg/repos/{origin.conf.sample.in => origin.conf.shadow.in} (100%) diff --git a/Keywords/shadow.ucl b/Keywords/shadow.ucl index 874f0796b..e2b0995b4 100644 --- a/Keywords/shadow.ucl +++ b/Keywords/shadow.ucl @@ -9,7 +9,7 @@ # Where file1 is considered as a sample file and file2 the target file # # This will install the somefile.conf.sample and automatically copy to -# somefile.conf if it doesn't exist. On deinstall it will be kept. +# somefile.conf if it doesn't exist. On deinstall it will be removed. # # This replaces the old pattern: # @unexec if cmp -s %D/etc/pkgtools.conf %D/etc/pkgtools.conf.sample; then rm -f %D/etc/pkgtools.conf; fi @@ -51,4 +51,5 @@ pre-deinstall: <