On Wed, Feb 13, 2002 at 12:34:19AM -0500, Rich Lafferty <[EMAIL PROTECTED]> wrote: > > Ah, I see the problem. The spec file (is that yours, Charlie, or did > it come with ntop?) bypasses "make install" completely -- but "make > install" is installing ntop from SRCDIR/.libs/ntop, which is an ntop > perversion of an autoconf perversion. :-( SRCDIR/ntop is part of the > build process, not ntop itself. Dumb dumb dumb.
And easily fixed -- the RPM built correctly but didn't include %{_bindir}/* in its %files section. This should have been fine, because the spec file called configure with --bindir=%{_sbindir}, except RPM appears to include its own --bindir option, and ours is ignored. :-( I'm still not 100% confident in my RPM-fu, so I'll let Charlie update his contrib RPM instead of producing one myself. The patch appended below my sig will get things working for the impatient, but it doesn't put ntop and intop in /usr/sbin as was originally intended. (This makes it "less broken", not necessarily "fixed"; I didn't test to see that ntop actually worked as expected, just that it installed correctly.) -Rich -- ------------------------------ Rich Lafferty --------------------------- Technical Support Engineer, Network Server Solutions Group Mitel Networks, Ottawa, ON (613) 751-4404 ---------------------------- [EMAIL PROTECTED] ------------------------ --- orig/SPECS/ntop.spec Fri Nov 23 22:02:23 2001 +++ richl/SPECS/ntop.spec Wed Feb 13 01:23:10 2002 @@ -1,7 +1,7 @@ Summary: ntop shows the network usage Name: ntop Version: 2.0 -Release: 1BETA +Release: 1BETArl #Source: http://snapshot.ntop.org/tgz/ntop-current.tgz Source: http://snapshot.ntop.org/tgz/ntop-2.0-pre.tgz Source1: ntop.init @@ -24,14 +24,13 @@ unset RPM_OPT_FLAGS %undefine optflags # ntop craps out here with gcc2.96-98 and full optimization! -%configure --enable-optimize --bindir=%{_sbindir} +%configure --enable-optimize make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d \ $RPM_BUILD_ROOT/var/ntop \ - $RPM_BUILD_ROOT/%{_sbindir} \ $RPM_BUILD_ROOT/etc/logrotate.d # the Makefile ignores this for some reason... @@ -40,9 +39,7 @@ install -c -m0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntop install -c -m0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/ntop install -c -m0644 ntop-rules.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8 -install -c -m0755 ntop $RPM_BUILD_ROOT/%{_sbindir} -install -c -m0755 intop/intop $RPM_BUILD_ROOT/%{_sbindir} -rm -f $RPM_BUILD_ROOT%{_sbindir}/{ntop-cert.pem,ntop-config} +rm -f $RPM_BUILD_ROOT%{_bindir}/{ntop-cert.pem,ntop-config} %post /sbin/chkconfig --add ntop @@ -72,7 +69,7 @@ %config %{_sysconfdir}/rc.d/init.d/ntop %config %{_sysconfdir}/logrotate.d/ntop %dir /var/ntop -%{_sbindir}/* +%{_bindir}/* %{_mandir}/*/* %{_libdir}/*.so.* %{_datadir}/%{name} --- orig/SOURCES/ntop.init Fri Nov 23 22:02:23 2001 +++ richl/SOURCES/ntop.init Wed Feb 13 01:13:08 2002 @@ -9,7 +9,7 @@ # Source networking configuration. . /etc/sysconfig/network -prog="/usr/sbin/ntop" +prog="/usr/bin/ntop" name=ntop # Check that networking is up. -- Please report bugs to [EMAIL PROTECTED] Please mail [EMAIL PROTECTED] (only) to discuss security issues Support for registered customers and partners to [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org