mirror of
https://git.freebsd.org/ports.git
synced 2025-06-16 18:20:33 -04:00
security/ossec-hids-local: upgrade 3.1.0 -> 3.3.0 security/ossec-hids-local-config: upgrade 3.1.0 -> 3.3.0 - Added LUA option. Bundled Lua support is no longer compiled in by default PR: 237632 Submitted by: Dominik Lisiak <dominik.lisiak@bemsoft.pl> (maintainer) Relnotes: https://github.com/ossec/ossec-hids/releases/tag/3.3.0 https://github.com/ossec/ossec-hids/releases/tag/3.2.0
19 lines
478 B
Bash
19 lines
478 B
Bash
#!/bin/sh
|
|
|
|
ossec_home="%%OSSEC_HOME%%"
|
|
fw_drop="%%FW_DROP%%"
|
|
|
|
ar_bin_dir="${ossec_home}/active-response/bin"
|
|
ossec_conf="${ossec_home}/etc/ossec.conf"
|
|
agent_conf="${ossec_home}/etc/shared/agent.conf"
|
|
|
|
if [ "$2" == "DEINSTALL" ]; then
|
|
rm -f "${ossec_conf}"
|
|
rm -f "${agent_conf}"
|
|
|
|
if [ -n "${fw_drop}" ]; then
|
|
if [ "${ar_bin_dir}/${fw_drop}" -ef "${ar_bin_dir}/firewall-drop.sh" ]; then
|
|
rm -f "${ar_bin_dir}/firewall-drop.sh"
|
|
fi
|
|
fi
|
|
fi
|