summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-30 03:56:48 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-30 03:56:48 +0000
commit0ca108ae2fe1fed492a9f4a6233e253191d3b510 (patch)
tree078cd9be98df6f0575708be624c2e63ce7bfc256 /net-analyzer
parentAnother manifest signing attempt (diff)
downloadhistorical-0ca108ae2fe1fed492a9f4a6233e253191d3b510.tar.gz
historical-0ca108ae2fe1fed492a9f4a6233e253191d3b510.tar.bz2
historical-0ca108ae2fe1fed492a9f4a6233e253191d3b510.zip
Version bump #111389 by Eric Brown. Also fix up dependencies #111557 by Carsten Lohrke, broken configure option passing #113819 by Henrik Sankala, and uclibc support #117082 by Natanael Copa.
Package-Manager: portage-2.1_pre2
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/ntop/ChangeLog12
-rw-r--r--net-analyzer/ntop/Manifest23
-rw-r--r--net-analyzer/ntop/files/digest-ntop-3.21
-rw-r--r--net-analyzer/ntop/files/ntop-3.2-build.patch223
-rw-r--r--net-analyzer/ntop/files/ntop-confd1
-rw-r--r--net-analyzer/ntop/ntop-3.2.ebuild78
6 files changed, 331 insertions, 7 deletions
diff --git a/net-analyzer/ntop/ChangeLog b/net-analyzer/ntop/ChangeLog
index f1eccd8b852f..37800f0655e3 100644
--- a/net-analyzer/ntop/ChangeLog
+++ b/net-analyzer/ntop/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-analyzer/ntop
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntop/ChangeLog,v 1.40 2005/09/15 11:47:42 r3pek Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntop/ChangeLog,v 1.41 2005/12/30 03:56:48 vapier Exp $
+
+*ntop-3.2 (30 Dec 2005)
+
+ 30 Dec 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/ntop-3.2-build.patch, files/ntop-confd, +ntop-3.2.ebuild:
+ Version bump #111389 by Eric Brown. Also fix up dependencies #111557 by
+ Carsten Lohrke, broken configure option passing #113819 by Henrik Sankala,
+ and uclibc support #117082 by Natanael Copa.
15 Sep 2005; Carlos Silva <r3pek@gentoo.org> ntop-3.0.ebuild:
Marking ntop-3.0 ~x86 since it have some memory leak problems
diff --git a/net-analyzer/ntop/Manifest b/net-analyzer/ntop/Manifest
index a93e49f8d4a5..bd5e61f45a43 100644
--- a/net-analyzer/ntop/Manifest
+++ b/net-analyzer/ntop/Manifest
@@ -1,9 +1,22 @@
-MD5 4ab5248f4a98565130768d8ba364e49f ntop-3.1.ebuild 2398
-MD5 4b12b27ca78a348c26a2633be176bb19 ntop-3.0.ebuild 1599
-MD5 5706dc8aefb8838cf76c6ce0055d449c ChangeLog 4999
-MD5 846e7479e3e9df4363f2721b7fb47320 metadata.xml 233
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 114936e6e047692090926cabf1df87f0 ChangeLog 5341
MD5 35c576fac5bd8cbf0da850ccc00dd924 files/digest-ntop-3.0 58
MD5 bb970d07a76d2b939ec08c2796519021 files/digest-ntop-3.1 58
-MD5 a9cad5851ac81cbd8589f60287f3e497 files/ntop-confd 131
+MD5 7a846588a225f1493025737d4bbfb844 files/digest-ntop-3.2 58
MD5 d1e896708a98eaca02f55c44ae517768 files/globals-core.c.diff 536
+MD5 0a1a07f655a6454b160dac679d2c0fde files/ntop-3.2-build.patch 8743
+MD5 43a9167b2aa1fc1db92721d7e4bfeb09 files/ntop-confd 168
MD5 9e6b1e20779d7fb6699c956adf6b8b05 files/ntop-init 294
+MD5 846e7479e3e9df4363f2721b7fb47320 metadata.xml 233
+MD5 4b12b27ca78a348c26a2633be176bb19 ntop-3.0.ebuild 1599
+MD5 4ab5248f4a98565130768d8ba364e49f ntop-3.1.ebuild 2398
+MD5 01c250e02b69cd8bccde11382d0ef74e ntop-3.2.ebuild 1983
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDtLAh2+ySkm8kpY0RAoXhAJ4jTn3wvOLzuHCPF5IwBu1X/20tRQCaA6a9
+0eaUoMStAU7W6d4t/JUP9UQ=
+=lAzs
+-----END PGP SIGNATURE-----
diff --git a/net-analyzer/ntop/files/digest-ntop-3.2 b/net-analyzer/ntop/files/digest-ntop-3.2
new file mode 100644
index 000000000000..8d0407f10052
--- /dev/null
+++ b/net-analyzer/ntop/files/digest-ntop-3.2
@@ -0,0 +1 @@
+MD5 cd29a876b34a7dd76555e9acd8f160bb ntop-3.2.tgz 3910593
diff --git a/net-analyzer/ntop/files/ntop-3.2-build.patch b/net-analyzer/ntop/files/ntop-3.2-build.patch
new file mode 100644
index 000000000000..8539b3a98168
--- /dev/null
+++ b/net-analyzer/ntop/files/ntop-3.2-build.patch
@@ -0,0 +1,223 @@
+cleanup autotools
+
+--- plugins/Makefile.am
++++ plugins/Makefile.am
+@@ -101,96 +101,31 @@ libxmldumpPlugin_la_CFLAGS = $(AM_CFLAGS
+ # by default ntop looks for plugins in the plugins/ subdirectory
+ #
+
++%Plugin.so$(EXEEXT): .libs/lib%Plugin.so
++ $(LN_S) $< $@
+
+-.libs/libicmpPlugin.so@SO_VERSION_PATCH@:
+- @if test -f libicmpPlugin_la-icmpPlugin.o; then \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libicmpPlugin.so@SO_VERSION_PATCH@ libicmpPlugin_la-icmpPlugin.o; \
+- else \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libicmpPlugin.so@SO_VERSION_PATCH@ icmpPlugin.o; \
+- fi
+-
+-icmpPlugin.so$(EXEEXT): .libs/libicmpPlugin.so@SO_VERSION_PATCH@
+- @$(LN_S) .libs/libicmpPlugin.so icmpPlugin.so
+-
+-.libs/liblastSeenPlugin.so@SO_VERSION_PATCH@:
+- @if test -f liblastSeenPlugin_la-lastSeenPlugin.o; then \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/liblastSeenPlugin.so@SO_VERSION_PATCH@ liblastSeenPlugin_la-lastSeenPlugin.o; \
+- else \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/liblastSeenPlugin.so@SO_VERSION_PATCH@ lastSeenPlugin.o; \
+- fi
+-
+-lastSeenPlugin.so$(EXEEXT): .libs/liblastSeenPlugin.so@SO_VERSION_PATCH@
+- @$(LN_S) .libs/liblastSeenPlugin.so lastSeenPlugin.so
+-
+-.libs/libnetflowPlugin.so@SO_VERSION_PATCH@:
+- @if test -f libnetflowPlugin_la-netflowPlugin.o; then \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libnetflowPlugin.so@SO_VERSION_PATCH@ libnetflowPlugin_la-netflowPlugin.o; \
+- else \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libnetflowPlugin.so@SO_VERSION_PATCH@ netflowPlugin.o; \
+- fi
+-
+-netflowPlugin.so$(EXEEXT): .libs/libnetflowPlugin.so@SO_VERSION_PATCH@
+- @$(LN_S) .libs/libnetflowPlugin.so netflowPlugin.so
+-
+-.libs/libpdaPlugin.so@SO_VERSION_PATCH@:
+- @if test -f libpdaPlugin_la-pdaPlugin.o; then \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libpdaPlugin.so@SO_VERSION_PATCH@ libpdaPlugin_la-pdaPlugin.o; \
+- else \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libpdaPlugin.so@SO_VERSION_PATCH@ pdaPlugin.o; \
+- fi
+-
+-pdaPlugin.so$(EXEEXT): .libs/libpdaPlugin.so@SO_VERSION_PATCH@
+- @$(LN_S) .libs/libpdaPlugin.so pdaPlugin.so
+-
+-.libs/librrdPlugin.so@SO_VERSION_PATCH@:
+- @if test -f librrdPlugin_la-rrdPlugin.o; then \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/librrdPlugin.so@SO_VERSION_PATCH@ librrdPlugin_la-rrdPlugin.o; \
+- else \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/librrdPlugin.so@SO_VERSION_PATCH@ rrdPlugin.o; \
+- fi
+-
+-rrdPlugin.so$(EXEEXT): .libs/librrdPlugin.so@SO_VERSION_PATCH@
+- @$(LN_S) .libs/librrdPlugin.so rrdPlugin.so
+-
+-.libs/libsnmpPlugin.so@SO_VERSION_PATCH@:
+- @if test -f libsnmpPlugin_la-snmpPlugin.o; then \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libsnmpPlugin.so@SO_VERSION_PATCH@ libsnmpPlugin_la-snmpPlugin.o; \
+- else \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libsnmpPlugin.so@SO_VERSION_PATCH@ snmpPlugin.o; \
+- fi
+-
+-snmpPlugin.so$(EXEEXT): .libs/libsnmpPlugin.so@SO_VERSION_PATCH@
+- @$(LN_S) .libs/libsnmpPlugin.so snmpPlugin.so
+-
+-.libs/libsflowPlugin.so@SO_VERSION_PATCH@:
+- @if test -f libsflowPlugin_la-sflowPlugin.o; then \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libsflowPlugin.so@SO_VERSION_PATCH@ libsflowPlugin_la-sflowPlugin.o; \
+- else \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libsflowPlugin.so@SO_VERSION_PATCH@ sflowPlugin.o; \
+- fi
+-
+-sflowPlugin.so$(EXEEXT): .libs/libsflowPlugin.so@SO_VERSION_PATCH@
+- @$(LN_S) .libs/libsflowPlugin.so sflowPlugin.so
+-
+-.libs/libxmldumpPlugin.so@SO_VERSION_PATCH@:
+- @if test -f libxmldumpPlugin_la-xmldumpPlugin.o; then \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libxmldumpPlugin.so@SO_VERSION_PATCH@ libxmldumpPlugin_la-xmldumpPlugin.o; \
+- else \
+- $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libxmldumpPlugin.so@SO_VERSION_PATCH@ xmldumpPlugin.o; \
+- fi
++# Need to make sure autotools doesn't insert rules for us
++icmpPlugin.so$(EXEEXT): .libs/libicmpPlugin.so
++lastSeenPlugin.so$(EXEEXT): .libs/liblastSeenPlugin.so
++netflowPlugin.so$(EXEEXT): .libs/libnetflowPlugin.so
++pdaPlugin.so$(EXEEXT): .libs/libpdaPlugin.so
++rrdPlugin.so$(EXEEXT): .libs/librrdPlugin.so
++snmpPlugin.so$(EXEEXT): .libs/libsnmpPlugin.so
++sflowPlugin.so$(EXEEXT): .libs/libsflowPlugin.so
++xmldumpPlugin.so$(EXEEXT): .libs/libxmldumpPlugin.so
+
+-xmldumpPlugin.so$(EXEEXT): .libs/libxmldumpPlugin.so@SO_VERSION_PATCH@
+- @$(LN_S) .libs/libxmldumpPlugin.so xmldumpPlugin.so
++#
++# Create symlinks for the plugins
++#
+
+ install-data-local:
+- @$(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir);
+- @for file in $(noinst_PROGRAMS); do \
+- cp -p $$file $(DESTDIR)$(plugindir)/$$file; \
+- done
+-# remove installed libraries
+- @for file in $(lib_LTLIBRARIES); do \
+- rm -f $(DESTDIR)$(libdir)/$$file; \
+- done
++ for file in $(lib_LTLIBRARIES); do \
++ rm -f $(DESTDIR)$(libdir)/$$file; \
++ done
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir)
++ for file in $(noinst_PROGRAMS) ; do \
++ $(LN_S) $(libdir)/lib$$file $(DESTDIR)$(plugindir)/$$file ; \
++ done
+
+ #
+ # Special stuff for xml auto-generation of code from the "doc":
+--- configure.in
++++ configure.in
+@@ -180,7 +180,7 @@
+ dnl> Test before we use it, below
+ AC_ARG_ENABLE(iknowbetter,
+ [ --enable-iknowbetter Override WILLFAIL],
+- ac_willfailoverride="yes",
++ ac_willfailoverride="$enableval",
+ ac_willfailoverride="no")
+
+ AC_ARG_ENABLE(void,
+@@ -665,63 +665,63 @@
+
+ AC_ARG_WITH(ssl,
+ [ --without-ssl disable HTPPS support [[default=enabled]]],
+- ac_disable_openssl="yes",
++ ac_disable_openssl="$withval",
+ ac_disable_openssl="no")
+
+ AC_ARG_WITH(zlib,
+ [ --without-zlib disable zlib [[default=enabled]]],
+- ac_disable_zlib="yes",
++ ac_disable_zlib="$withval",
+ ac_disable_zlib="no")
+
+ AC_ARG_ENABLE(sslv3,
+ [ --enable-sslv3 enable ssl v3 support [[default=disabled]]],
+- ac_enable_sslv3="yes",
++ ac_enable_sslv3="$enableval",
+ ac_enable_sslv3="no")
+
+ AC_ARG_ENABLE(sslwatchdog,
+ [ --enable-sslwatchdog enable Watchdog for ssl hangups [[default=disabled]]],
+- ac_enable_sslwatchdog="yes",
++ ac_enable_sslwatchdog="$enableval",
+ ac_enable_sslwatchdog="no")
+
+ AC_ARG_WITH(tcpwrap,
+ [ --with-tcpwrap enable use of TCP Wrapper [[default=disabled]]],
+- ac_enable_tcpwrap="yes",
++ ac_enable_tcpwrap="$withval",
+ ac_enable_tcpwrap="no")
+
+ AC_ARG_ENABLE(plugins,
+ [ --disable-plugins disable compilation of plugins [[default=enabled]]],
+- ac_disable_plugins="yes",
++ ac_disable_plugins="$enableval",
+ ac_disable_plugins="no")
+
+ AC_ARG_ENABLE( static-plugins,
+ [ --enable-static-plugins Enable static linked plugins [sntop, default=dynamic]]],
+- ac_enable_static_plugins="yes",
+- ac_enable_static_plugins="no")
++ ac_enable_static_plugins="$enableval",
++ ac_enable_static_plugins="no")
+
+ AC_ARG_ENABLE(ignoresigpipe,
+ [ --enable-ignoresigpipe Ignore SIGPIPE errors [[default=do not ignore]]],
+- ac_enable_ignoresigpipe="yes",
++ ac_enable_ignoresigpipe="$enableval",
+ ac_enable_ignoresigpipe="no")
+
+ AC_ARG_ENABLE(snmp,
+ [ --disable-snmp Disable SNMP support [[default=disable]]],
+- ac_disable_snmp="no",
++ ac_disable_snmp="$enableval",
+ ac_disable_snmp="yes")
+
+ AC_ARG_ENABLE(i18n,
+ [ --enable-i18n Enable (limited) internationalization [[default=disabled]]],
+- ac_enable_i18n="yes",
++ ac_enable_i18n="$enableval",
+ ac_enable_i18n="no")
+
+ AC_ARG_ENABLE(jumbo-frames,
+ [ --enable-jumbo-frames Enable Jumbo (9K) Ethernet frames [[default=disabled]]],
+- ac_enable_jumbo-frames="yes",
++ ac_enable_jumbo-frames="$enableval",
+ ac_enable_jumbo-frames="no")
+
+ AC_ARG_ENABLE(ipv6,
+ [ --disable-ipv6 use IPv6 [[default=enabled]]],
+- ac_disable_ipv6="yes",
+- ac_disable_ipv6="no")
++ ac_disable_ipv6="$enableval",
++ ac_disable_ipv6="no")
+
+ dnl>
+ dnl> Define the "WITH"s for package root directories ... deal with these later...
+@@ -1011,11 +1011,6 @@
+ LOCALEDIR="/usr/lib/locale"
+ fi
+
+-dnl> Add /usr/local/
+-CFLAGS="${CFLAGS} -I/usr/local/include"
+-CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
+-LDFLAGS="${LDFLAGS} -L/usr/local/lib"
+-
+
+
+ echo
diff --git a/net-analyzer/ntop/files/ntop-confd b/net-analyzer/ntop/files/ntop-confd
index 56197eccad6e..b941d2ba0dec 100644
--- a/net-analyzer/ntop/files/ntop-confd
+++ b/net-analyzer/ntop/files/ntop-confd
@@ -2,3 +2,4 @@
# Set preferred options here
#NTOP_OPTS="--http-server 3000 --https-server 0 --interface eth0"
+NTOP_OPTS="-u ntop -P /var/lib/ntop"
diff --git a/net-analyzer/ntop/ntop-3.2.ebuild b/net-analyzer/ntop/ntop-3.2.ebuild
new file mode 100644
index 000000000000..d8d089021cfa
--- /dev/null
+++ b/net-analyzer/ntop/ntop-3.2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntop/ntop-3.2.ebuild,v 1.1 2005/12/30 03:56:48 vapier Exp $
+
+inherit eutils autotools
+
+DESCRIPTION="tool that shows network usage like top"
+HOMEPAGE="http://www.ntop.org/ntop.html"
+SRC_URI="mirror://sourceforge/ntop/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ipv6 nls snmp ssl tcpd zlib"
+
+DEPEND="sys-apps/gawk
+ >=sys-devel/libtool-1.4
+ >=sys-libs/gdbm-1.8.0
+ virtual/libpcap
+ >=media-libs/gd-2.0.22
+ >=media-libs/libpng-1.2.5
+ snmp? ( net-analyzer/net-snmp )
+ ssl? ( >=dev-libs/openssl-0.9.6 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6-r4 )
+ zlib? ( sys-libs/zlib )"
+
+# Needed by xmldumpPlugin - couldn't get it to work
+# dev-libs/gdome2
+# >=dev-libs/glib-2"
+
+pkg_setup() {
+ enewgroup ntop
+ enewuser ntop -1 -1 /var/lib/ntop ntop
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/globals-core.c.diff
+ epatch "${FILESDIR}"/${P}-build.patch
+ eautoreconf
+}
+
+src_compile() {
+ # force disable xmldumpPlugin
+ export \
+ ac_cv_header_glib_h=no \
+ ac_cv_header_glibconfig_h=no \
+ ac_cv_header_gdome_h=no \
+ ac_cv_lib_glib_g_date_julian=no \
+ ac_cv_lib_xml2_xmlCheckVersion=no \
+ ac_cv_lib_gdome_gdome_di_saveDocToFile=no
+
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable nls i18n) \
+ $(use_enable snmp) \
+ $(use_with ssl) $(use_enable ssl sslv3) $(use_enable sslwatchdog) \
+ $(use_with tcpd) \
+ $(use_with zlib) \
+ || die "configure problem"
+ emake || die "compile problem"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install problem"
+
+ chown -R ntop:ntop "${D}"/usr/share/ntop
+ keepdir /var/lib/ntop
+ fowners ntop:ntop /var/lib/ntop
+ fperms 750 /var/lib/ntop
+
+ dodoc AUTHORS CONTENTS ChangeLog MANIFESTO NEWS
+ dodoc PORTING README SUPPORT_NTOP.txt THANKS $(find docs -type f)
+
+ newinitd "${FILESDIR}"/ntop-init ntop
+ newconfd "${FILESDIR}"/ntop-confd ntop
+}