@ -25,28 +25,12 @@ if [ $prefix_auto = 1 ] ; then
set_confopt
fi
#No clean install dir checks in ROCK yet.
# postgresql support
if [ -n "$pkg_postgresql_prefix" ] ; then
var_append extraconfopt " " "--with-postgresql=$pkg_postgrsql_prefix"
fi
# mysql support
if [ -n "$pkg_mysql_prefix" ] ; then
var_append extraconfopt " " "--with-mysql=$pkg_mysql_prefix"
fi
pkginstalled postgresql && var_append extraconfopt " " "--with-postgresql=/opt/postgresql"
# openSSL support
ssldir=""
if [ -r /opt/openssl/include/crypto.h ] ; then
ssldir=/opt/openssl
elif [ -r /usr/include/openssl/crypto.h ]; then
ssldir=/usr/
elif [ -r /usr/local/include/openssl/crypto.h ]; then
ssldir=/usr/local/
fi
if [ "$ssldir" != "" ] ; then
var_append extraconfopt " " "--with-openssl=$ssldir"
fi
# mysql support
pkginstalled mysql && var_append extraconfopt " " "--with-mysql=/opt/mysql"
# FlexResp feature
# NOTE: At time of writing, FlexResp:
@ -78,20 +62,11 @@ snort_postmake()
# For security reasons this directory should not be world-readable
mkdir -p $root/$prefix/var
mkdir -p $root/$prefix/etc
cp -r etc/* $root/$prefix/etc/
cp -r rules $root/$prefix/etc/
cp -f r etc/* $root/$prefix/etc/
cp -f r rules $root/$prefix/etc/
# THIS IS DANGEROUS - IT MIGHT AFFECT OTHER PACKAFES FILES !!!
# FIS THIS PROPERLY!
# mv /opt/snort/etc/etc/* /opt/snort/etc/
# rm -rf /opt/snort/etc/etc/
sed -i 's/\.\.\/rules/.\/rules/' $root/$prefix/etc/snort.conf
# THIS IS DANGEROUS - IT MIGHT AFFECT OTHER PACKAGES FILES !!!
# Remove Makefiles (left from build)
# rm -f $root/$prefix/*/Makefile*
# rm -f $root/$prefix/*/*/Makefile*
# Create a SysV init script for snort
install_init snort $confdir/snort.init
}