Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19354 - New ntop 2.2 released
Summary: New ntop 2.2 released
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Daniel Ahlberg (RETIRED)
URL: http://www.ntop.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-15 06:02 UTC by Jesse Adelman
Modified: 2003-05-04 10:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ntop-2.2.ebuild (ntop-2.2.ebuild,2.64 KB, text/plain)
2003-04-15 07:11 UTC, Rigo
Details
ebuild/init.d/conf.d/digest files (ntop.tar.gz,1.61 KB, application/x-gzip-compressed)
2003-04-17 08:28 UTC, Ross Dougherty
Details
fixed ntop-init (ntop-init,287 bytes, text/plain)
2003-04-17 18:35 UTC, Ross Dougherty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Adelman 2003-04-15 06:02:53 UTC
Would love to have an ebuild.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
ntp and intop verks.

Thanks!
Comment 1 Rigo 2003-04-15 07:11:56 UTC
Created attachment 10675 [details]
ntop-2.2.ebuild

diff -ur ntop-2.2.ebuild ntop-2.0.99_rc2-r2.ebuild
--- ntop-2.2.ebuild	2003-04-15 11:28:26.000000000 +0200
+++ ntop-2.0.99_rc2-r2.ebuild	2003-04-15 11:10:55.000000000 +0200
@@ -4,9 +4,9 @@
  
 IUSE="ssl readline mysql"
  
-S=${WORKDIR}/${P}/${PN}
+S=${WORKDIR}/RC2/ntop
 DESCRIPTION="ntop is a unix tool that shows network usage like top"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+SRC_URI="http://luca.ntop.org/${P/_/-}.tgz"
 HOMEPAGE="http://www.ntop.org/ntop.html"
  
 SLOT="0"
@@ -25,7 +25,6 @@
  
  
 src_compile() {
-	cd ${S}
	local myconf
	if [ -z "`use ssl`" ] ; then
		myconf="--disable-ssl"
@@ -50,7 +49,7 @@
	./configure || die "gdchart configure problem"
  
	# subtree #1
-	cd gd-1.8.3/libpng-1.2.4
+	cd gd-1.8.3/libpng-1.2.1
	make -f scripts/makefile.linux || die "libpng compile problem"
  
	# subtree #2
Comment 2 Rigo 2003-04-15 07:13:05 UTC
Enjoy :)
Comment 3 Rigo 2003-04-15 07:15:12 UTC
<SNIP reason="more correct">
diff -ur ntop-2.0.99_rc2-r2.ebuild ntop-2.2.ebuild
--- ntop-2.0.99_rc2-r2.ebuild   2003-04-15 11:10:55.000000000 +0200
+++ ntop-2.2.ebuild     2003-04-15 11:28:26.000000000 +0200
@@ -4,9 +4,9 @@
  
 IUSE="ssl readline mysql"
  
-S=${WORKDIR}/RC2/ntop
+S=${WORKDIR}/${P}/${PN}
 DESCRIPTION="ntop is a unix tool that shows network usage like top"
-SRC_URI="http://luca.ntop.org/${P/_/-}.tgz"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
 HOMEPAGE="http://www.ntop.org/ntop.html"
  
 SLOT="0"
@@ -25,6 +25,7 @@
  
  
 src_compile() {
+       cd ${S}
        local myconf
        if [ -z "`use ssl`" ] ; then
                myconf="--disable-ssl"
@@ -49,7 +50,7 @@
        ./configure || die "gdchart configure problem"
  
        # subtree #1
-       cd gd-1.8.3/libpng-1.2.1
+       cd gd-1.8.3/libpng-1.2.4
        make -f scripts/makefile.linux || die "libpng compile problem"
  
        # subtree #2
</SNIP>
Comment 4 Ross Dougherty 2003-04-17 08:28:09 UTC
Created attachment 10779 [details]
ebuild/init.d/conf.d/digest files

Changes:
1. Removed now redundant mysql USE support
2. Enabled tcpd USE support again
NOTE: If "--with-tcpwrap" is set it refuses to compile on 2 of my Gentoo
systems but would compile fine on a Red Hat 8.0 system. Turns out it is only
happy with tcp-wrappers-7.6-r5 which is currently masked. Maybe tcpd support
should be removed again if this is committed? I don't know.
3. Added ncurses USE support
4. Removed if statement for ssl USE support
-	if [ -z "`use ssl`" ] ; then
-		myconf="--disable-ssl"
-	else
-		cp configure configure.orig
-		sed -e "s:/usr/local/ssl:/usr:" configure.orig > configure
-		export CFLAGS="$CFLAGS -I/usr/include/openssl"
-	fi
This doesn
Comment 5 Ross Dougherty 2003-04-17 08:28:09 UTC
Created attachment 10779 [details]
ebuild/init.d/conf.d/digest files

Changes:
1. Removed now redundant mysql USE support
2. Enabled tcpd USE support again
NOTE: If "--with-tcpwrap" is set it refuses to compile on 2 of my Gentoo
systems but would compile fine on a Red Hat 8.0 system. Turns out it is only
happy with tcp-wrappers-7.6-r5 which is currently masked. Maybe tcpd support
should be removed again if this is committed? I don't know.
3. Added ncurses USE support
4. Removed if statement for ssl USE support
-	if [ -z "`use ssl`" ] ; then
-		myconf="--disable-ssl"
-	else
-		cp configure configure.orig
-		sed -e "s:/usr/local/ssl:/usr:" configure.orig > configure
-		export CFLAGS="$CFLAGS -I/usr/include/openssl"
-	fi
This doesn?t seem to be needed.
5. Changed USE lines from the superseded enable/disable to with/without
6. Removed the patch for ntop
-	patch -p0 -i ${FILESDIR}/tcpwrap.patch
What?s it for? Still needed?
7. Removed
-	mv Makefile Makefile.orig
-	sed 's/man_MANS = ntop.8 intop\/intop.1//g' Makefile.orig > Makefile
What?s it for? Doesn?t seem to have any affect
8. Simplified make install line
9. Removed now redundant ntop-rules.8 from
-	doman ntop-rules.8 ntop.8
10. Added a init script and conf.d options file

I think that?s about it.
Comment 6 Ross Dougherty 2003-04-17 18:35:12 UTC
Created attachment 10804 [details]
fixed ntop-init

--- ntop-init.old	2003-04-17 21:40:05.000000000 +1000
+++ ntop-init	2003-04-18 08:25:21.000000000 +1000
@@ -1,7 +1,7 @@
 #!/sbin/runscript

 depend() {
-	 net
+	need net
 }

 start() {
Comment 7 Daniel Ahlberg (RETIRED) gentoo-dev 2003-05-04 10:31:48 UTC
Commited, thanks for the contribution!