mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-01 01:00:03 +01:00
98 lines
2.8 KiB
Diff
98 lines
2.8 KiB
Diff
--- ntop-3.3.10.orig/configure.in 2009-11-27 23:36:09.000000000 -0200
|
|
+++ ntop-3.3.10/configure.in 2009-11-28 10:16:33.000000000 -0200
|
|
@@ -1652,21 +1652,12 @@
|
|
dnl>
|
|
dnl> Lua - http://www.lua.org
|
|
dnl>
|
|
-LUA_VERSION=lua-5.1.4
|
|
-if test -f "$LUA_VERSION.tar.gz"; then
|
|
- echo "Lua already present on this machine"
|
|
-else
|
|
- wget http://www.lua.org/ftp/$LUA_VERSION.tar.gz
|
|
+LUA_TEST=$(which lua > /dev/null 2> /dev/null ; echo $?)
|
|
+if test $LUA_TEST -ne 0 ; then
|
|
+ echo "*** Lua not installed ***"
|
|
+ exit 1
|
|
fi
|
|
-
|
|
-tar xvfz $LUA_VERSION.tar.gz
|
|
-cat $LUA_VERSION/src/Makefile | sed -e s,'MYCFLAGS=-DLUA_USE_POSIX',' MYCFLAGS="-fPIC -DLUA_USE_POSIX"',g > /tmp/lua.temp
|
|
-cat /tmp/lua.temp > $LUA_VERSION/src/Makefile
|
|
-#rm -f /tmp/lua.temp
|
|
-cd $LUA_VERSION; make posix; cd ..
|
|
-
|
|
-LUA_LIB_DIR=$PWD/$LUA_VERSION"/src"
|
|
-LIBS="-L${LUA_LIB_DIR} -llua ${LIBS} "
|
|
+LIBS="-llua ${LIBS} "
|
|
INCS="${INCS} -I${LUA_LIB_DIR}"
|
|
AC_DEFINE_UNQUOTED(HAVE_LUA, 1, [LUA is supported])
|
|
|
|
@@ -1963,39 +1954,13 @@
|
|
fi
|
|
|
|
dnl> GeoIP (http://www.maxmind.com/)
|
|
-if test -f "GeoIP.tar.gz"; then
|
|
- echo "GeoIP already present on this machine"
|
|
-else
|
|
- wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
|
|
-fi
|
|
-tar xvfz GeoIP.tar.gz
|
|
-GEO_DIR=`find $PWD -type d -name "GeoIP-*"`
|
|
-cd $GEO_DIR; ./configure --prefix=${prefix}; make; cd ..
|
|
-# OSX Fix
|
|
-GEO_DYLIB="$GEO_DIR/libGeoIP/.libs/libGeoIP.dylib"
|
|
-if test -f $GEO_DYLIB; then
|
|
- ln -s $GEO_DYLIB .
|
|
-fi
|
|
-
|
|
-if test -f "GeoLiteCity.dat"; then
|
|
- echo "GeoLiteCity.dat already present"
|
|
-else
|
|
- wget http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
|
|
- gunzip GeoLiteCity.dat.gz
|
|
-fi
|
|
-
|
|
-if test -f "GeoIPASNum.dat"; then
|
|
- echo "GeoIPASNum.dat already present"
|
|
-else
|
|
- wget http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
|
|
- gunzip GeoIPASNum.dat.gz
|
|
+GEOIP_TEST=$(ldconfig -p | grep libGeoIP.so > /dev/null 2> /dev/null ; echo $?)
|
|
+if test $GEOIP_TEST -ne 0 ; then
|
|
+ echo "*** GeoIP not installed ***"
|
|
+ exit 1
|
|
fi
|
|
|
|
-
|
|
-GEO_DIR=`find $PWD -type d -name "GeoIP-*"`
|
|
-GEO_IP="$GEO_DIR/libGeoIP/"
|
|
-CFLAGS="$CFLAGS -I$GEO_IP"
|
|
-LDFLAGS="-L$GEO_IP.libs/ -lGeoIP $LDFLAGS"
|
|
+LDFLAGS="-lGeoIP $LDFLAGS"
|
|
|
|
dnl> NTOPCONFIGDEBUG_SETTINGS([precet])
|
|
|
|
--- ntop-3.3.10.orig/Makefile.am 2009-11-28 12:08:37.000000000 -0200
|
|
+++ ntop-3.3.10/Makefile.am 2009-11-28 14:20:56.000000000 -0200
|
|
@@ -74,11 +74,8 @@
|
|
ETTER_PASSIVE_DOWNLOAD_PARMS = "rev=HEAD"
|
|
|
|
NTOPDATA = ntop-cert.pem \
|
|
- $(ETTER_PASSIVE) \
|
|
oui.txt.gz \
|
|
- specialMAC.txt.gz \
|
|
- GeoIPASNum.dat \
|
|
- GeoLiteCity.dat
|
|
+ specialMAC.txt.gz
|
|
|
|
NTOPHTML = html html/*.js html/*.html html/*.gif html/*.jpg html/*.ico html/*.png \
|
|
html/*.css html/*.dtd \
|
|
@@ -270,8 +267,6 @@
|
|
|
|
install: install-recursive
|
|
|
|
- cd @GEO_DIR@; make install
|
|
-
|
|
@mkdir -p $(DESTDIR)/$(CFG_DBFILE_DIR)
|
|
|
|
@echo ""
|