Would love to have an ebuild. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: ntp and intop verks. Thanks!
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
Enjoy :)
<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 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
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.
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() {
Commited, thanks for the contribution!