1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

- Update to 3.1

Notes:
    - IPv6 support is disabled
    - now startup script prompts for admin password, if unset.
This commit is contained in:
Clement Laforet 2005-01-16 11:13:37 +00:00
parent 5de6b175d7
commit 83a39eb793
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126571
7 changed files with 51 additions and 67 deletions

View File

@ -6,9 +6,8 @@
#
PORTNAME= ntop
PORTVERSION= 3.0
PORTREVISION= 1
CATEGORIES= net ipv6
PORTVERSION= 3.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/pre/}
@ -22,6 +21,7 @@ LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
png.5:${PORTSDIR}/graphics/png
DBDIR?= /var/db
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GETOPT_LONG=yes
USE_GMAKE= yes
@ -38,6 +38,8 @@ CONFIGURE_ARGS= --localstatedir=${DBDIR} \
--with-gd-root=${LOCALBASE} \
--with-libpng-root=${LOCALBASE} \
--with-zlib-root=/usr
# we currently disable IPv6
CONFIGURE_ARGS+=--disable-ipv6
MAN8= ntop.8
@ -94,8 +96,8 @@ post-install:
@${MKDIR} ${DBDIR}/ntop
@${CHOWN} -R nobody:nobody ${DBDIR}/ntop
@${RMDIR} ${PREFIX}/lib/plugins
@${SED} -e "s#%%PREFIX%%#${PREFIX}#g" ${FILESDIR}/ntop.sh > \
${WRKDIR}/ntop.sh
@${SED} -e "s#%%PREFIX%%#${PREFIX}#g;s#%%DBDIR%%#${DBDIR}#g" \
${FILESDIR}/ntop.sh > ${WRKDIR}/ntop.sh
@${INSTALL_DATA} ${WRKDIR}/ntop.sh ${PREFIX}/etc/rc.d
@${SED} "s,%%LOCALBASE%%,${LOCALBASE},g" < ${PKGMESSAGE}

View File

@ -1,2 +1,2 @@
MD5 (ntop-3.0.tgz) = 1ec6055c75f1acbb5d5600492481ef85
SIZE (ntop-3.0.tgz) = 2990872
MD5 (ntop-3.1.tgz) = 1c9b4097c2e464b84f2fe8f6626d2b06
SIZE (ntop-3.1.tgz) = 3286596

View File

@ -28,7 +28,7 @@ additional_args=''
# End of user-configurable variables
#----------------------------------------------------------------------
args='-d -L --set-pcap-nonblocking'
args='-d -L --set-pcap-nonblocking --skip-version-check'
[ ! -z $interfaces ] && args="$args -i $interfaces"
[ ! -z $http_port ] && args="$args -w $http_port"
@ -39,6 +39,17 @@ args='-d -L --set-pcap-nonblocking'
case "$1" in
start)
# is it the first time we run ntop
[ ! -e %%DBDIR%%/ntop/ntop_pw.db ] && {
# just in case...
[ ! -d %%DBDIR%%/ntop ] && {
echo "Reinstalling database directory"
mkdir -p %%DBDIR%%/ntop
chown -R $userid:$userid %%DBDIR%%/ntop
}
%%PREFIX%%/bin/ntop -u $userid -A || exit 1
echo "Now we can start ntop!"
}
if [ -d $logdir ]; then
touch ${logdir}/ntop.access.log
chown $userid ${logdir}/ntop.access.log

View File

@ -1,6 +1,6 @@
--- configure.orig Sun Mar 21 23:45:17 2004
+++ configure Tue Mar 23 14:37:28 2004
@@ -4898,7 +4898,7 @@
--- configure.orig Tue Dec 21 05:07:24 2004
+++ configure Sun Jan 16 10:19:25 2005
@@ -5173,7 +5173,7 @@
exit 1
;;
*1\.3\.[45]\-freebsd\-ports*)
@ -9,7 +9,7 @@
echo "*"
echo "* Fasten your seat belt and good luck! If you are injured, the"
echo "* development team will disavow any knowledge of your intentions."
@@ -20276,13 +20276,13 @@
@@ -22928,13 +22928,13 @@
@ -25,9 +25,9 @@
-LIBS="-lglib $LIBS"
+LIBS="-lglib-2.0 $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
@@ -20297,11 +20297,11 @@
_ACEOF
@@ -22948,11 +22948,11 @@
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
@ -41,29 +41,7 @@
;
return 0;
}
@@ -20318,24 +20318,24 @@
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_glib_g_date_julian=yes
+ ac_cv_lib_glib_g_date_new_julian=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_lib_glib_g_date_julian=no
+ac_cv_lib_glib_g_date_new_julian=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_glib_g_date_julian" >&5
-echo "${ECHO_T}$ac_cv_lib_glib_g_date_julian" >&6
-if test $ac_cv_lib_glib_g_date_julian = yes; then
+echo "$as_me:$LINENO: result: $ac_cv_lib_glib_g_date_new_julian" >&5
+echo "${ECHO_T}$ac_cv_lib_glib_g_date_new_julian" >&6
+if test $ac_cv_lib_glib_g_date_new_julian = yes; then
cat >>confdefs.h <<_ACEOF
@@ -22997,7 +22997,7 @@
#define HAVE_LIBGLIB 1
_ACEOF
@ -72,7 +50,7 @@
fi
@@ -24989,7 +24989,7 @@
@@ -28604,7 +28604,7 @@
test ".${ac_cv_header_glibconfig_h}" = ".yes" &&
test ".${ac_cv_header_xmlversion_h}" = ".yes" &&
test ".${ac_cv_header_gdome_h}" = ".yes" &&
@ -81,7 +59,7 @@
test ".${ac_cv_lib_xml2_xmlCheckVersion}" = ".yes" &&
test ".${ac_cv_lib_gdome_gdome_di_saveDocToFile}" = ".yes"; then
echo "$as_me:$LINENO: result: ok" >&5
@@ -25008,7 +25008,7 @@
@@ -28623,7 +28623,7 @@
echo "* gdome.h...${ac_cv_header_gdome_h}"
echo "* libgdome.so or libgdome.a...${ac_cv_lib_gdome_gdome_di_saveDocToFile}"
echo "* glib.h...${ac_cv_header_glib_h}"

View File

@ -1,12 +1,12 @@
--- util.c.orig Thu Oct 28 03:00:09 2004
+++ util.c Thu Oct 28 02:58:27 2004
@@ -453,7 +453,8 @@
--- util.c.orig Thu Dec 16 20:13:26 2004
+++ util.c Sun Jan 16 12:05:04 2005
@@ -494,7 +494,8 @@
if(!strcmp(ii->name,device))
if(iface_if_getinfo(ii) & IFACE_INFO_UP) {
/* Allocate memory for IPv6 addresses*/
- count = iface_if_addrcount(ii, AF_INET6);
+ if ((count = iface_if_addrcount(ii, AF_INET6)) == 0)
+ return NULL;
+ return NULL;
if(count == 0) break;
addrs = (NtopIfaceAddr *)calloc(count, sizeof(NtopIfaceAddr));
addr_pos = 0;
for(ia = iface_getaddr_first(ii, AF_INET6) ; ia ;

View File

@ -2,17 +2,7 @@
ntop has been installed, but is not quite ready to be used yet!
You need to set an administrator password for ntop before it may be used.
As root, execute the following command to set this password:
# ntop -A
ntop may now be started. The recommended method to do so is via the
installed startup script. As root, execute the following command:
# sh %%LOCALBASE%%/etc/rc.d/ntop.sh
The recommended way to change startup flags for ntop is to edit this
startup script.
Just run startup script to be prompted for the password.
Note that the installed startup script will NOT be execute at system
startup by default. If you wish ntop to start when your system boots,
@ -25,5 +15,6 @@ In the past, ntop has been the subject of repeated security vulner-
abilities, particularly relating to its web interface. It is strongly
suggested that you protect your ntop web interface via packet filters
or TCP wrappers.
IPv6 isn't currently supported by the port.
----------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
@exec mkdir -p %%DBDIR%%/ntop
bin/ntop
etc/ntop/etter.passive.os.fp.gz
etc/ntop/etter.finger.os.gz
etc/ntop/ntop-cert.pem
etc/ntop/oui.txt.gz
etc/ntop/p2c.opt.table.gz
@ -13,12 +13,11 @@ lib/libicmpPlugin.so
lib/liblastSeenPlugin-%%SHLIB%%.so
lib/liblastSeenPlugin.a
lib/liblastSeenPlugin.so
lib/libmyrrd-%%SHLIB%%.so
lib/libmyrrd.a
lib/libnetflowPlugin-%%SHLIB%%.so
lib/libnetflowPlugin.a
lib/libnetflowPlugin.so
lib/libnfsPlugin-%%SHLIB%%.so
lib/libnfsPlugin.a
lib/libnfsPlugin.so
lib/libntop-%%SHLIB%%.so
lib/libntop.a
lib/libntop.so
@ -34,19 +33,29 @@ lib/librrdPlugin.so
lib/libsflowPlugin-%%SHLIB%%.so
lib/libsflowPlugin.a
lib/libsflowPlugin.so
lib/libsnmpPlugin-%%SHLIB%%.so
lib/libsnmpPlugin.a
lib/libxmldumpPlugin-%%SHLIB%%.so
lib/libxmldumpPlugin.a
lib/libxmldumpPlugin.so
lib/ntop/plugins/icmpPlugin.so
lib/ntop/plugins/lastSeenPlugin.so
lib/ntop/plugins/netflowPlugin.so
lib/ntop/plugins/nfsPlugin.so
lib/ntop/plugins/pdaPlugin.so
lib/ntop/plugins/rrdPlugin.so
lib/ntop/plugins/sflowPlugin.so
lib/ntop/plugins/snmpPlugin.so
lib/ntop/plugins/xmldumpPlugin.so
@dirrm lib/ntop/plugins
@dirrm lib/ntop
%%DATADIR%%/html/JSCookMenu.js
%%DATADIR%%/html/theme.js
%%DATADIR%%/html/arrow.gif
%%DATADIR%%/html/blank.gif
%%DATADIR%%/html/ntop_logo.gif
%%DATADIR%%/html/spacer.gif
%%DATADIR%%/html/theme.css
%%DATADIR%%/html/statsicons/flags/local.gif
%%DATADIR%%/html/About.html
%%DATADIR%%/html/Admin.html
%%DATADIR%%/html/All.html
@ -103,13 +112,6 @@ lib/ntop/plugins/xmldumpPlugin.so
%%DATADIR%%/html/help.png
%%DATADIR%%/html/hostSortNote.html
%%DATADIR%%/html/index.html
%%DATADIR%%/html/index_inner.html
%%DATADIR%%/html/index_inner_w3c.html
%%DATADIR%%/html/index_left.html
%%DATADIR%%/html/index_left_w3c.html
%%DATADIR%%/html/index_top.html
%%DATADIR%%/html/index_top_w3c.html
%%DATADIR%%/html/index_w3c.html
%%DATADIR%%/html/info.gif
%%DATADIR%%/html/initiator.gif
%%DATADIR%%/html/lock.png