Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net/ntop/Makefile,v retrieving revision 1.78 diff -u -u -r1.78 Makefile --- Makefile 9 Sep 2009 19:19:12 -0000 1.78 +++ Makefile 17 Sep 2009 21:44:14 -0000 @@ -6,17 +6,17 @@ # PORTNAME= ntop -PORTVERSION= 3.3.9 -PORTREVISION= 2 +PORTVERSION= 3.3.10 CATEGORIES= net -MASTER_SITES= SF +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= scjamorim@bsd.com.br COMMENT= Network monitoring tool with command line and web interfaces BUILD_DEPENDS= rrdtool>=1.2:${PORTSDIR}/databases/rrdtool \ geoiplookup:${PORTSDIR}/net/GeoIP -LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm +LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm \ + event-1.4:${PORTSDIR}/devel/libevent RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz \ ${LOCALBASE}/lib/X11/fonts/URW/a010013l.afm:${PORTSDIR}/x11-fonts/urwfonts @@ -25,6 +25,7 @@ MAKE_JOBS_SAFE= yes USE_AUTOTOOLS= libtool:22 automake:19 autoconf:262 USE_GNOME= libxml2 +USE_LUA= 5.1 USE_GMAKE= yes USE_OPENSSL= yes GNU_CONFIGURE= yes @@ -44,7 +45,7 @@ PKGDEINSTALL= ${WRKDIR}/pkg-deinstall SUB_FILES= pkg-deinstall SUB_LIST= DBDIR=${DBDIR} -USE_RC_SUBR= ntop.sh +USE_RC_SUBR= ntop ## ## Available knobs: Index: distinfo =================================================================== RCS file: /home/ncvs/ports/net/ntop/distinfo,v retrieving revision 1.16 diff -u -u -r1.16 distinfo --- distinfo 7 Jun 2009 17:16:58 -0000 1.16 +++ distinfo 17 Sep 2009 21:44:14 -0000 @@ -1,3 +1,3 @@ -MD5 (ntop-3.3.9.tar.gz) = 0c22038e0f2aa003110437b5a5d5a6a5 -SHA256 (ntop-3.3.9.tar.gz) = 606c027d02cdaab7de87475bef8be168e9f18329c2215ac21a518766aa8a331f -SIZE (ntop-3.3.9.tar.gz) = 4955257 +MD5 (ntop-3.3.10.tar.gz) = 6e2ffa90d5f935c8f03d88a5dd19a866 +SHA256 (ntop-3.3.10.tar.gz) = aa18ba3acb564d707521deaa2655f61f5b617d98d4fb5a014553f3fa123f123a +SIZE (ntop-3.3.10.tar.gz) = 3235500 Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/net/ntop/pkg-plist,v retrieving revision 1.15 diff -u -u -r1.15 pkg-plist --- pkg-plist 2 Aug 2009 19:35:02 -0000 1.15 +++ pkg-plist 17 Sep 2009 21:44:15 -0000 @@ -1,5 +1,4 @@ bin/ntop -etc/ntop/etter.finger.os.gz etc/ntop/ntop-cert.pem etc/ntop/oui.txt.gz etc/ntop/specialMAC.txt.gz @@ -19,10 +18,6 @@ lib/libntopreport.so lib/libntopreport.a lib/libntopreport.la -lib/libpdaPlugin-%%PORTVERSION%%.so -lib/libpdaPlugin.so -lib/libremotePlugin-%%PORTVERSION%%.so -lib/libremotePlugin.so lib/librrdPlugin-%%PORTVERSION%%.so lib/librrdPlugin.so lib/libsflowPlugin-%%PORTVERSION%%.so @@ -31,8 +26,6 @@ lib/ntop/plugins/icmpPlugin.so lib/ntop/plugins/lastSeenPlugin.so lib/ntop/plugins/netflowPlugin.so -lib/ntop/plugins/pdaPlugin.so -lib/ntop/plugins/remotePlugin.so lib/ntop/plugins/rrdPlugin.so lib/ntop/plugins/sflowPlugin.so %%DATADIR%%/perl/report/basic.xml @@ -67,9 +60,6 @@ %%DATADIR%%/html/Risk_medium.gif %%DATADIR%%/html/Risk_unknown.gif %%DATADIR%%/html/antenna.gif -%%DATADIR%%/html/arrow_down.gif -%%DATADIR%%/html/arrow_up.gif -%%DATADIR%%/html/back.gif %%DATADIR%%/html/bg_line.gif %%DATADIR%%/html/black.gif %%DATADIR%%/html/bottom_corner.gif @@ -94,9 +84,6 @@ %%DATADIR%%/html/expanded.gif %%DATADIR%%/html/faq.html %%DATADIR%%/html/favicon.ico -%%DATADIR%%/html/fback.gif -%%DATADIR%%/html/fforward.gif -%%DATADIR%%/html/forward.gif %%DATADIR%%/html/functions.js %%DATADIR%%/html/gauge.jpg %%DATADIR%%/html/gaugeR.jpg @@ -362,6 +349,14 @@ %%DATADIR%%/html/statsicons/os/os2.gif %%DATADIR%%/html/statsicons/os/sun.gif %%DATADIR%%/html/statsicons/os/windows.gif +%%DATADIR%%/html/arrow_down.png +%%DATADIR%%/html/arrow_up.png +%%DATADIR%%/html/back.png +%%DATADIR%%/html/bit_off.png +%%DATADIR%%/html/bit_on.png +%%DATADIR%%/html/fback.png +%%DATADIR%%/html/fforward.png +%%DATADIR%%/html/forward.png %%DATADIR%%/html/style.css %%DATADIR%%/html/switch.gif %%DATADIR%%/html/upload.gif Index: files/ntop.in =================================================================== RCS file: files/ntop.in diff -N files/ntop.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/ntop.in 17 Sep 2009 21:44:15 -0000 @@ -0,0 +1,37 @@ +#!/bin/sh +# +# $FreeBSD: ports/net/ntop/files/ntop.sh.in,v 1.3 2009/08/02 19:35:02 mezz Exp $ +# +# PROVIDE: ntop +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable ntop: +# +# ntop_enable (bool): Set it to "YES" to enable ntop +# Default is "NO". +# ntop_flags (flags): Set extra flags to ntop +# Default is "-d --use-syslog=daemon". see ntop(8). +# + +. %%RC_SUBR%% + +name=ntop +rcvar=${name}_enable + +load_rc_config $name + +: ${ntop_enable="NO"} +: ${ntop_flags="-d --use-syslog=daemon"} + +command=%%PREFIX%%/bin/ntop +start_precmd="${name}_checkpw" + +ntop_checkpw() +{ + if [ ! -f %%DBDIR%%/ntop/ntop_pw.db ]; then + err 1 "Please set admin password for ntop. Run '%%PREFIX%%/bin/ntop -u nobody -A'" + fi +} + +run_rc_command "$1" Index: files/ntop.sh.in =================================================================== RCS file: files/ntop.sh.in diff -N files/ntop.sh.in --- files/ntop.sh.in 2 Aug 2009 19:35:02 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,37 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/net/ntop/files/ntop.sh.in,v 1.3 2009/08/02 19:35:02 mezz Exp $ -# -# PROVIDE: ntop -# REQUIRE: DAEMON -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf to enable ntop: -# -# ntop_enable (bool): Set it to "YES" to enable ntop -# Default is "NO". -# ntop_flags (flags): Set extra flags to ntop -# Default is "-d --use-syslog=daemon". see ntop(8). -# - -. %%RC_SUBR%% - -name=ntop -rcvar=${name}_enable - -load_rc_config $name - -: ${ntop_enable="NO"} -: ${ntop_flags="-d --use-syslog=daemon"} - -command=%%PREFIX%%/bin/ntop -start_precmd="${name}_checkpw" - -ntop_checkpw() -{ - if [ ! -f %%DBDIR%%/ntop/ntop_pw.db ]; then - err 1 "Please set admin password for ntop. Run '%%PREFIX%%/bin/ntop -u nobody -A'" - fi -} - -run_rc_command "$1" Index: files/patch-Makefile.am =================================================================== RCS file: /home/ncvs/ports/net/ntop/files/patch-Makefile.am,v retrieving revision 1.5 diff -u -u -r1.5 patch-Makefile.am --- files/patch-Makefile.am 7 Jun 2009 17:16:58 -0000 1.5 +++ files/patch-Makefile.am 17 Sep 2009 21:44:15 -0000 @@ -1,5 +1,5 @@ ---- Makefile.am.orig 2008-12-03 17:00:22.000000000 -0500 -+++ Makefile.am 2009-06-02 14:27:56.863148713 -0400 +--- Makefile.am.orig 2009-04-17 17:27:57.000000000 -0300 ++++ Makefile.am 2009-09-15 13:07:19.000000000 -0300 @@ -76,9 +76,7 @@ NTOPDATA = ntop-cert.pem \ $(ETTER_PASSIVE) \ @@ -20,8 +20,8 @@ @mkdir -p $(DESTDIR)/$(CFG_DBFILE_DIR) @echo "" -@@ -336,7 +332,6 @@ - +@@ -341,7 +337,6 @@ + chcon -t textrel_shlib_t $(DESTDIR)$(libdir)/*ntop*.so install-data-local: ntop.txt ntop.html faq.html - @$(top_srcdir)/mkinstalldirs $(DESTDIR)/$(libdir)/plugins; Index: files/patch-autogen.sh =================================================================== RCS file: /home/ncvs/ports/net/ntop/files/patch-autogen.sh,v retrieving revision 1.1 diff -u -u -r1.1 patch-autogen.sh --- files/patch-autogen.sh 7 Jun 2009 17:16:58 -0000 1.1 +++ files/patch-autogen.sh 17 Sep 2009 21:44:15 -0000 @@ -1,5 +1,5 @@ ---- autogen.sh.orig 2009-06-02 10:26:46.731977294 -0400 -+++ autogen.sh 2009-06-02 10:27:02.866983000 -0400 +--- autogen.sh.orig 2009-09-15 11:33:11.000000000 -0300 ++++ autogen.sh 2009-09-15 11:34:06.000000000 -0300 @@ -244,16 +244,6 @@ GNU_OR_DIE=0 } Index: files/patch-configure.in =================================================================== RCS file: /home/ncvs/ports/net/ntop/files/patch-configure.in,v retrieving revision 1.7 diff -u -u -r1.7 patch-configure.in --- files/patch-configure.in 7 Jun 2009 17:16:58 -0000 1.7 +++ files/patch-configure.in 17 Sep 2009 21:44:15 -0000 @@ -1,7 +1,7 @@ ---- configure.in.orig 2008-12-03 17:00:22.000000000 -0500 -+++ configure.in 2009-06-02 13:28:01.067367126 -0400 -@@ -573,8 +573,8 @@ - dnl> +--- configure.in.orig 2009-09-15 11:37:06.000000000 -0300 ++++ configure.in 2009-09-15 11:45:13.000000000 -0300 +@@ -621,8 +621,8 @@ + else if test ".${PCAP_ROOT}" != .; then if test -d $PCAP_ROOT && - test -r $PCAP_ROOT/libpcap.a && @@ -11,7 +11,35 @@ PCAP_ROOT=`cd ${PCAP_ROOT} && pwd` CORELIBS="${CORELIBS} -L$PCAP_ROOT -lpcap" INCS="${INCS} -I$PCAP_ROOT" -@@ -1886,40 +1886,7 @@ +@@ -1650,27 +1650,6 @@ + fi + + 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 +-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} " +-INCS="${INCS} -I${LUA_LIB_DIR}" +-AC_DEFINE_UNQUOTED(HAVE_LUA, 1, [LUA is supported]) +- +-dnl> + dnl> SCTP - RFC 3286 + dnl> + AC_MSG_CHECKING([sctp]) +@@ -1962,40 +1941,7 @@ }'` fi @@ -20,14 +48,14 @@ - echo "GeoIP already present on this machine" -else - wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz -- tar xvfz GeoIP.tar.gz -- GEO_DIR=`find $PWD -type d -name "GeoIP-*"` -- cd $GEO_DIR; ./configure; make; cd .. -- # OSX Fix -- GEO_DYLIB="$GEO_DIR/libGeoIP/.libs/libGeoIP.dylib" -- if test -f $GEO_DYLIB; then -- ln -s $GEO_DYLIB . -- fi +-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 @@ -48,7 +76,7 @@ -GEO_DIR=`find $PWD -type d -name "GeoIP-*"` -GEO_IP="$GEO_DIR/libGeoIP/" -CFLAGS="$CFLAGS -I$GEO_IP" --LDFLAGS="$LDFLAGS -L$GEO_IP.libs/ -lGeoIP" +-LDFLAGS="-L$GEO_IP.libs/ -lGeoIP $LDFLAGS" +LDFLAGS="$LDFLAGS -lGeoIP" dnl> NTOPCONFIGDEBUG_SETTINGS([precet]) Index: files/patch-plugins_netflowPlugin.c =================================================================== RCS file: files/patch-plugins_netflowPlugin.c diff -N files/patch-plugins_netflowPlugin.c --- files/patch-plugins_netflowPlugin.c 22 Jun 2009 22:59:07 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ ---- plugins/netflowPlugin.c.orig 2009-06-22 14:00:56.000000000 -0400 -+++ plugins/netflowPlugin.c 2009-06-22 14:01:10.000000000 -0400 -@@ -28,7 +28,7 @@ - static void* netflowUtilsLoop(void* _deviceId); - #endif - --#define DEBUG_FLOWS -+//#define DEBUG_FLOWS - - #define CONST_NETFLOW_STATISTICS_HTML "statistics.html" -