%define ntoproot /usr Summary: ntop shows the network usage Name: ntop Version: 2.1.52 Release: 0 Source: ntop-2.1.52.tgz Source1: ntop.init Source2: ntop.logrotate Source3: FAQ Source4: 1STRUN.txt Source5: BUILD-NTOP.txt Patch1: version.patch Copyright: GPL Group: Applications/System BuildPrereq: glibc, glibc-devel, gcc, cpp, gawk, autoconf, automake, openssl, openssl-devel, gdbm, gdbm-devel, libpcap Requires: glibc, openssl, gdbm, ncurses, libpcap, chkconfig Buildroot: %{_tmppath}/%{name}-root Prereq: /sbin/chkconfig, /sbin/ldconfig %description ntop is a network and traffic analyzer that provides a wealth of information on various networking hosts and protocols. ntop is primarily accessed via a built-in web interface. Optionally, data may be stored into a database for analysis or extracted from the web server in formats suitable for manipulation in perl or php. See 1STRUN.txt for the 1st time startup procedure! See FAQ for answers to questions and BUILD-NTOP.txt for howto build from source. ntop 2.1.52 is a DEVELOPMENT release, from the ntop cvs tree at cvs.ntop.org. This version is compiled WITH SSLv3. IgnoreSIGPIPE and SSLWATCHDOG are not compiled but may be selected at run times. Note that the command line version, intop, is unsupported. And is NOT included in this rpm - if you want it you will have to build from source! This version is compiled on a Pentium III, under RedHat 7.3 using User Mode Linux. %prep %setup -q -c ${NAME}${VERSION} %build unset RPM_OPT_FLAGS %undefine optflags # Adjust the .tgz format to what we expect for build... mv ntop-2.1.52/* . # Patches patch -p0 < ../../SOURCES/version.patch # First, build static libraries - use the new buildAll script cd gdchart0.94c ./buildAll.sh cd ../ntop # Now, configure and build ntop %configure --enable-optimize --bindir=%{_bindir} --datadir=%{ntoproot}/share/ntop --enable-sslv3 make faq.html make ntop.txt make ntop.html make %install cd ntop mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d \ $RPM_BUILD_ROOT/%{_bindir} \ $RPM_BUILD_ROOT/etc/logrotate.d make install DESTDIR=$RPM_BUILD_ROOT cp $RPM_BUILD_ROOT/usr/bin/i386-redhat-linux-ntop \ $RPM_BUILD_ROOT/usr/bin/ntop cp $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 %pre g=`cat /etc/group | grep ^ntop:` if test ".${g}" = "."; then /usr/sbin/groupadd -r ntop 2>/dev/null || : fi u=`cat /etc/passwd | grep ^ntop:` if test ".${u}" = "."; then /usr/sbin/useradd -s /bin/false -c "ntop server user" \ -d %{ntoproot}/share/ntop -M -r 2>/dev/null || : fi %post if test -f /etc/init.d/ntop; then /sbin/chkconfig --add ntop /sbin/ldconfig /sbin/service ntop condrestart > /dev/null 2>&1 fi %preun if [ "$1" = "0" ]; then /sbin/service ntop stop > /dev/null 2>&1 /sbin/chkconfig --del ntop fi %postun if [ "$1" -ge "1" ]; then /sbin/service ntop condrestart > /dev/null 2>&1 fi /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc ntop/AUTHORS %doc ntop/CONTENTS %doc ntop/MANIFESTO %doc ntop/COPYING %doc ntop/ChangeLog %doc ntop/docs/FAQ %doc ntop/docs/HACKING %doc ntop/docs/KNOWN_BUGS %doc ntop/docs/TODO %doc ntop/docs/1STRUN.txt %doc ntop/NEWS %doc ntop/PORTING %doc ntop/README %doc ntop/SUPPORT_NTOP.txt %doc ntop/THANKS %config %{_sysconfdir}/rc.d/init.d/ntop %config %{_sysconfdir}/logrotate.d/ntop %{_bindir}/ntop %{_datadir}/%{name} %{_mandir}/man8/ntop.8.gz %{_libdir}/ntop %{_libdir}/plugins %{_libdir}/libntop* %{_libdir}/libicmpPlugin* %changelog * Wed Dec 04 2002 Burton M. Strauss III - v2.1.52 * Sun Nov 24 2002 Burton M. Strauss III - v2.1.51-1 (new tigger/ur-tigger) * Fri Nov 1 2002 Burton M. Strauss III - v2.1.51 * Tue Sep 20 2002 Burton M. Strauss III - v2.1.3 * Tue Jul 30 2002 Burton M. Strauss III - v2.1.2a (not released) - added chkconfig to requires list - - rearranged patches - - Added creation of ntop user * Thu Jul 25 2002 Burton M. Strauss III - v2.1.2 * Thu Jul 11 2002 Burton M. Strauss III - v2.1 * Thu Jul 03 2002 Burton M. Strauss III - Updated to RC3 * Thu Jun 20 2002 Burton M. Strauss III - Updated to RC2A - unofficial post RC2 build. * Tue Jun 04 2002 Burton M. Strauss III - Updated to RC2 * Fri May 17 2002 Burton M. Strauss III - Updated to RC1 * Mon May 13 2002 Burton M. Strauss III - Updated for 2.0.99 - beta - from 13May2002 snapshot * Fri Nov 23 2001 Hal Burgiss - Updated for 2.0 beta. * Thu Oct 11 2001 Hal Burgiss - Updated for 2.0 pre-release snapshots. Many changes.