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