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

Reply via email to