The rrdtool thing was a temporary item - you should be using the real rrd
rpm (oh, they still haven't posted one - he he he - take it up with Tobi -
as the source patch is in rrd 1.0.42).  This is also ntop 2.2 only - with
2.2.1+ Luca has that myrrd stuff...

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Kenneth Porter
Sent: Friday, July 25, 2003 7:45 PM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop] Bug in ntop.spec


Just finished building the ntop-2.2c SRPM from sourceforge on Red Hat 8.0
and ran into similar issues. Patch for the spec file inline:

--- ntop.spec   2003-07-04 14:52:22.000000000 -0400
+++ ntop.spec.new       2003-07-25 19:23:15.000000000 -0400
@@ -3,7 +3,7 @@
 Summary: ntop shows the network usage
 Name: ntop
 Version: 2.2c
-Release: 0
+Release: 0kp
 Source: ntop-2.2c.tgz
 Source1: ntop.init
 Source2: ntop.logrotate
@@ -60,6 +60,8 @@

 %prep
 %setup -q -c ${NAME}${VERSION}
+cd ntop
+%patch1

 %build
 unset RPM_OPT_FLAGS
@@ -69,7 +71,7 @@
 mv ntop/ntop/* ntop
 rmdir ntop/ntop
 # Patches
-patch -p0 < ../../SOURCES/version.patch
+#patch -p0 < ../../SOURCES/version.patch
 #patch -p0 < ../../SOURCES/makefile_am.patch
 # First, build static libraries - use the new buildAll script
 cd gdchart0.94c
@@ -80,9 +82,9 @@
 # %automake
 # %autoconf
 %configure --enable-optimize  --bindir=%{_bindir}
--datadir=%{ntoproot}/share \
-     --with-pcap-include=/usr/include/pcap \
      --enable-sslv3 \
      --enable-i18n
+#     --with-pcap-include=/usr/include/pcap
 make faq.html
 make ntop.txt
 make ntop.html
@@ -98,10 +100,10 @@
 make install DESTDIR=$RPM_BUILD_ROOT
 make install-data-local DESTDIR=$RPM_BUILD_ROOT

-mv -f $RPM_BUILD_ROOT/usr/bin/i386-redhat-linux-ntop \
-      $RPM_BUILD_ROOT/usr/bin/ntop
-mv -f $RPM_BUILD_ROOT/usr/share/man/man8/i386-redhat-linux-ntop.8 \
-      $RPM_BUILD_ROOT/usr/share/man/man8/ntop.8
+#mv -f $RPM_BUILD_ROOT/usr/bin/i386-redhat-linux-ntop \
+#      $RPM_BUILD_ROOT/usr/bin/ntop
+#mv -f $RPM_BUILD_ROOT/usr/share/man/man8/i386-redhat-linux-ntop.8 \
+#      $RPM_BUILD_ROOT/usr/share/man/man8/ntop.8

 install -c -m0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntop
 install -c -m0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to