diff options
author | bapt <bapt@FreeBSD.org> | 2014-10-31 23:40:37 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-10-31 23:40:37 +0800 |
commit | 71cab24c91c62a844100a70dccec902148ad0802 (patch) | |
tree | 448389eb32b6f5972e90454864a48cffb7a3c9c9 /security | |
parent | ace0c86e9ea9d033dc666a909bb8553819594e8d (diff) | |
download | freebsd-ports-gnome-71cab24c91c62a844100a70dccec902148ad0802.tar.gz freebsd-ports-gnome-71cab24c91c62a844100a70dccec902148ad0802.tar.zst freebsd-ports-gnome-71cab24c91c62a844100a70dccec902148ad0802.zip |
Simplify plist by using @sample and @dir
Diffstat (limited to 'security')
-rw-r--r-- | security/suricata/pkg-plist | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/security/suricata/pkg-plist b/security/suricata/pkg-plist index 4b3224876955..8fd918f4c1f8 100644 --- a/security/suricata/pkg-plist +++ b/security/suricata/pkg-plist @@ -28,17 +28,7 @@ bin/suricata %%DOCSDIR%%/Ubuntu_Installation.txt %%DOCSDIR%%/Ubuntu_Installation_from_GIT.txt %%DOCSDIR%%/Windows.txt -@unexec if cmp -s %D/etc/suricata/suricata.yaml-sample %D/etc/suricata/suricata.yaml; then rm -f %D/etc/suricata/suricata.yaml; fi -etc/suricata/suricata.yaml-sample -@exec if [ ! -f %D/etc/suricata/suricata.yaml ] ; then cp -p %D/%F %B/suricata.yaml; fi -@unexec if cmp -s %D/etc/suricata/classification.config-sample %D/etc/suricata/classification.config; then rm -f %D/etc/suricata/classification.config; fi -etc/suricata/classification.config-sample -@exec if [ ! -f %D/etc/suricata/classification.config ] ; then cp -p %D/%F %B/classification.config; fi -@unexec if cmp -s %D/etc/suricata/reference.config-sample %D/etc/suricata/reference.config; then rm -f %D/etc/suricata/reference.config; fi -etc/suricata/reference.config-sample -@exec if [ ! -f %D/etc/suricata/reference.config ] ; then cp -p %D/%F %B/reference.config; fi -@dirrmtry etc/suricata/rules -@exec mkdir -p %D/etc/suricata/rules -@dirrmtry etc/suricata -@unexec if [ -d %D/%%ETCDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf ${PKG_PREFIX}/etc/suricata`` to remove any configuration files left."; fi -@dirrm %%DOCSDIR%% +@sample etc/suricata/suricata.yaml-sample +@sample etc/suricata/classification.config-sample +@sample etc/suricata/reference.config-sample +@dir etc/suricata/rules |