Browse Source

snort: fixed hardcoded path in snort.conf

stable/0.2
Christian Wiese 14 years ago
parent
commit
101b7bf89e
  1. 7
      security/snort/snort.conf

7
security/snort/snort.conf

@ -69,6 +69,13 @@ snort_preconf()
{
# Comply with FHS for /var/opt/
sed -i "s,/var/log/snort,${localstatedir}/log," src/snort.h
# fix etc/snort.conf
sed -i \
-e "s;dynamicpreprocessor directory \/usr\/local/lib\/snort_dynamicpreprocessor;dynamicpreprocessor directory $libdir\/snort_dynamicpreprocessor;" \
-e "s;dynamicengine \/usr\/local/lib\/snort_dynamicengine;dynamicengine $libdir\/snort_dynamicengine;" \
-e "s;dynamicdetection directory \/usr\/local/lib\/snort_dynamicrules;dynamicpreprocessor directory $libdir\/snort_dynamicrules;" \
etc/snort.conf
}
snort_postmake()

Loading…
Cancel
Save