Bug 19354 - New ntop 2.2 released
|
Bug#:
19354
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: All
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: aliz@gentoo.org
|
Reported By: jesse@boldandbusted.com
|
|
Component: Ebuilds
|
|
|
URL:
http://www.ntop.org/
|
|
Summary: New ntop 2.2 released
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-04-15 06:02 0000
|
Would love to have an ebuild.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Expected Results:
ntp and intop verks.
Thanks!
Created an attachment (id=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
<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>
Created an attachment (id=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
Created an attachment (id=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 doesnt 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
Whats it for? Still needed?
7. Removed
- mv Makefile Makefile.orig
- sed 's/man_MANS = ntop.8 intop\/intop.1//g' Makefile.orig > Makefile
Whats it for? Doesnt 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 thats about it.
Created an attachment (id=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() {
Commited, thanks for the contribution!