diff options
author | bapt <bapt@FreeBSD.org> | 2016-04-10 17:41:20 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-04-10 17:41:20 +0800 |
commit | e6f6de9eda32357c9abf6b7451d6e570ec471dc5 (patch) | |
tree | ddd48c8dd0547513d274e8520fa0d565ab5646c3 /security | |
parent | f68b16d446bedbae5041b2bf2fbafd363d96a511 (diff) | |
download | freebsd-ports-gnome-e6f6de9eda32357c9abf6b7451d6e570ec471dc5.tar.gz freebsd-ports-gnome-e6f6de9eda32357c9abf6b7451d6e570ec471dc5.tar.zst freebsd-ports-gnome-e6f6de9eda32357c9abf6b7451d6e570ec471dc5.zip |
Convert to @sample
Diffstat (limited to 'security')
-rw-r--r-- | security/broccoli/pkg-plist | 4 | ||||
-rw-r--r-- | security/john/pkg-plist | 4 | ||||
-rw-r--r-- | security/scanhill/pkg-plist | 4 | ||||
-rw-r--r-- | security/snort/pkg-plist | 40 | ||||
-rw-r--r-- | security/trousers/pkg-plist | 10 |
5 files changed, 14 insertions, 48 deletions
diff --git a/security/broccoli/pkg-plist b/security/broccoli/pkg-plist index 359c8ac37830..e81a95469ea1 100644 --- a/security/broccoli/pkg-plist +++ b/security/broccoli/pkg-plist @@ -1,7 +1,5 @@ bin/broccoli-config -@unexec cmp -s %D/etc/broccoli.conf.example %D/etc/broccoli.conf && rm -f %D/etc/broccoli.conf || true -etc/broccoli.conf.example -@exec test -f %D/etc/broccoli.conf || cp -p %D/etc/broccoli.conf.example %D/etc/broccoli.conf +@sample etc/broccoli.conf.example etc/broccoli.conf include/broccoli.h lib/libbroccoli.a lib/libbroccoli.so diff --git a/security/john/pkg-plist b/security/john/pkg-plist index 557410507863..d7207edcfd59 100644 --- a/security/john/pkg-plist +++ b/security/john/pkg-plist @@ -1,9 +1,7 @@ bin/john bin/unshadow bin/xtract -@unexec if cmp -s %D/etc/john.conf %D/etc/john.conf.default; then rm -f %D/etc/john.conf; fi -etc/john.conf.default -@exec [ -f %B/john.conf ] || cp %B/%f %B/john.conf +@sample etc/john.conf.default etc/john.conf %%DATADIR%%/all.chr %%DATADIR%%/alnum.chr %%DATADIR%%/alpha.chr diff --git a/security/scanhill/pkg-plist b/security/scanhill/pkg-plist index 1ce54800e5c1..8f533f64748c 100644 --- a/security/scanhill/pkg-plist +++ b/security/scanhill/pkg-plist @@ -1,4 +1,2 @@ bin/scanhill -@unexec if cmp -s %D/etc/scanhill.conf-dist %D/etc/scanhill.conf; then rm -f %D/etc/scanhill.conf; fi -etc/scanhill.conf-dist -@exec [ -f %B/scanhill.conf ] || cp -f %B/%f %B/scanhill.conf +@sample etc/scanhill.conf-dist etc/scanhill.conf diff --git a/security/snort/pkg-plist b/security/snort/pkg-plist index 7a6dd93976d4..e7499fb78c6e 100644 --- a/security/snort/pkg-plist +++ b/security/snort/pkg-plist @@ -4,36 +4,16 @@ bin/u2boat bin/u2spewfoo %%APPID%%bin/u2openappid %%APPID%%bin/u2streamer -@unexec if cmp -s %D/etc/snort/classification.config-sample %D/etc/snort/classification.config; then rm -f %D/etc/snort/classification.config; fi -etc/snort/classification.config-sample -@exec if [ ! -f %D/etc/snort/classification.config ] ; then cp -p %D/%F %B/classification.config; fi -@unexec if cmp -s %D/etc/snort/gen-msg.map-sample %D/etc/snort/gen-msg.map; then rm -f %D/etc/snort/gen-msg.map; fi -etc/snort/gen-msg.map-sample -@exec if [ ! -f %D/etc/snort/gen-msg.map ] ; then cp -p %D/%F %B/gen-msg.map; fi -@unexec if cmp -s %D/etc/snort/preproc_rules/decoder.rules %D/etc/snort/preproc_rules/decoder.rules; then rm -f %D/etc/snort/preproc_rules/decoder.rules;fi -etc/snort/preproc_rules/decoder.rules-sample -@exec if [ ! -f %D/etc/snort/preproc_rules/decoder.rules ] ; then cp -p %D/%F %B/decoder.rules; fi -@unexec if cmp -s %D/etc/snort/preproc_rules/preprocessor.rules %D/etc/snort/preproc_rules/preprocessor.rules; then rm -f %D/etc/snort/preproc_rules/preprocessor.rules;fi -etc/snort/preproc_rules/preprocessor.rules-sample -@exec if [ ! -f %D/etc/snort/preproc_rules/preprocessor.rules ] ; then cp -p %D/%F %B/preprocessor.rules; fi -@unexec if cmp -s %D/etc/snort/preproc_rules/sensitive-data.rules %D/etc/snort/preproc_rules/sensitive-data.rules; then rm -f %D/etc/snort/preproc_rules/sensitive-data.rules;fi -etc/snort/preproc_rules/sensitive-data.rules-sample -@exec if [ ! -f %D/etc/snort/preproc_rules/decoder.rules ] ; then cp -p %D/%F %B/; fi -@unexec if cmp -s %D/etc/snort/reference.config-sample %D/etc/snort/reference.config; then rm -f %D/etc/snort/reference.config; fi -etc/snort/reference.config-sample -@exec if [ ! -f %D/etc/snort/reference.config ] ; then cp -p %D/%F %B/reference.config; fi -@unexec if cmp -s %D/etc/snort/snort.conf-sample %D/etc/snort/snort.conf; then rm -f %D/etc/snort/snort.conf; fi -etc/snort/snort.conf-sample -@exec if [ ! -f %D/etc/snort/snort.conf ] ; then cp -p %D/%F %B/snort.conf; fi -@unexec if cmp -s %D/etc/snort/threshold.conf-sample %D/etc/snort/threshold.conf; then rm -f %D/etc/snort/threshold.conf; fi -etc/snort/threshold.conf-sample -@exec if [ ! -f %D/etc/snort/threshold.conf ] ; then cp -p %D/%F %B/threshold.conf; fi -@unexec if cmp -s %D/etc/snort/unicode.map-sample %D/etc/snort/unicode.map; then rm -f %D/etc/snort/unicode.map; fi -etc/snort/unicode.map-sample -@exec if [ ! -f %D/etc/snort/unicode.map ] ; then cp -p %D/%F %B/unicode.map; fi -@unexec if cmp -s %D/etc/snort/file_magic.conf-sample %D/etc/snort/file_magic.conf; then rm -f %D/etc/snort/file_magic.conf; fi -etc/snort/file_magic.conf-sample -@exec if [ ! -f %D/etc/snort/file_magic.conf ] ; then cp -p %D/%F %B/file_magic.conf; fi +@sample etc/snort/classification.config-sample etc/snort/classification.config +@sample etc/snort/gen-msg.map-sample etc/snort/gen-msg.map +@sample etc/snort/preproc_rules/decoder.rules-sample etc/snort/preproc_rules/decoder.rules +@sample etc/snort/preproc_rules/preprocessor.rules-sample etc/snort/preproc_rules/preprocessor.rules +@sample etc/snort/preproc_rules/sensitive-data.rules-sample etc/snort/preproc_rules/sensitive-data.rules +@sample etc/snort/reference.config-sample etc/snort/reference.config +@sample etc/snort/snort.conf-sample etc/snort/snort.conf +@sample etc/snort/threshold.conf-sample etc/snort/threshold.conf +@sample etc/snort/unicode.map-sample etc/snort/unicode.map +@sample etc/snort/file_magic.conf-sample etc/snort/file_magic.conf include/snort/dynamic_output/bitop.h include/snort/dynamic_output/ipv6_port.h include/snort/dynamic_output/obfuscation.h diff --git a/security/trousers/pkg-plist b/security/trousers/pkg-plist index 5206c977de30..c70c820f5325 100644 --- a/security/trousers/pkg-plist +++ b/security/trousers/pkg-plist @@ -119,13 +119,5 @@ man/man3/Tspi_TPM_StirRandom.3.gz man/man3/Tspi_TPM_TakeOwnership.3.gz man/man5/tcsd.conf.5.gz man/man8/tcsd.8.gz -@unexec cmp -s %D/etc/tcsd.conf %D/etc/tcsd.conf.dist && rm -f %D/etc/tcsd.conf || true -@owner _tss -@group _tss -@mode 0600 -etc/tcsd.conf.dist -@exec [ -f %D/etc/tcsd.conf ] || cp -p %D/etc/tcsd.conf.dist %D/etc/tcsd.conf -@owner -@group -@mode +@sample(_tss,_tss,0600) etc/tcsd.conf.dist etc/tcsd.conf @dir(_tss,_tss,0700) var/lib/tpm |