Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 19354
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Daniel Ahlberg (RETIRED) <aliz@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jesse Adelman <jesse@boldandbusted.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ntop-2.2.ebuild ntop-2.2.ebuild text/plain Rigo 2003-04-15 07:11 0000 2.64 KB Details
ntop.tar.gz ebuild/init.d/conf.d/digest files application/x-gzip-compressed Ross Dougherty 2003-04-17 08:28 0000 1.61 KB Details
ntop-init fixed ntop-init text/plain Ross Dougherty 2003-04-17 18:35 0000 287 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 19354 depends on: Show dependency tree
Bug 19354 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   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!

------- Comment #1 From Rigo 2003-04-15 07:11:56 0000 -------
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

------- Comment #2 From Rigo 2003-04-15 07:13:05 0000 -------
Enjoy :)

------- Comment #3 From Rigo 2003-04-15 07:15:12 0000 -------
<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 From Ross Dougherty 2003-04-17 08:28:09 0000 -------
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

------- Comment #5 From Ross Dougherty 2003-04-17 08:28:09 0000 -------
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’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 From Ross Dougherty 2003-04-17 18:35:12 0000 -------
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() {

------- Comment #7 From Daniel Ahlberg (RETIRED) 2003-05-04 10:31:48 0000 -------
Commited, thanks for the contribution!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug