1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Simplify plist by using @sample and @dir

This commit is contained in:
Baptiste Daroussin 2014-10-31 15:40:37 +00:00
parent b89b72de26
commit 59c2e79395
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371859

View File

@ -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