📄 ntop.spec
字号:
%define ntoproot /usrSummary: ntop shows the network usageName: ntopVersion: 3.0pre2_mdkRelease: 0Source: ntop-3.0pre2.tgzSource1: ntop.initSource2: ntop.logrotateSource3: ntop.conf.sampleSource4: 1STRUN.txtSource5: FAQPatch1: version.patchPatch2: regex.patchCopyright: GPLGroup: Applications/SystemBuildPrereq: glibc, glibc-devel, gcc, gcc-cpp, gawk, autoconf, automake, binutils, openssl, gdbm, gdbm-devel, libpcap, zlib-develRequires: glibc, openssl, gdbm, libpcap, chkconfigBuildroot: %{_tmppath}/%{name}-rootPrereq: /sbin/chkconfig, /sbin/ldconfig%descriptionntop is a network and traffic analyzer that provides a wealth of information onvarious 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.ntop 3.0pre2 is a TEST release, from the ntop cvs tree at cvs.ntop.org.Our intention is to release this or something much like it as ntop 3.0in a short period of time.At this time, docs/FAQ has been extensively re-written, but ChangeLog andPORTING have not.For those upgrading from 2.2, note: gdchart is gone - replaced by a small, focused, internal graphics creator, graph.c. We still use the gd library. This version is compiled with a frozen, captive version of rrdtool, called myrrd. It is compiled and linked automatically. The so-called 'large population model' for rrd data files is now standard. There is a script at SourceForge in the user contributed area to help convert - but backup your data FIRST. The netflow Plugin no longer acts as a probe (that is sending netflow packets to another device).This version is compiled WITH SSLv3.This version is compiled WITHOUT --enable-xmldump (dump.xml handler)This version is compiled WITH --enable-i18n.SSLWATCHDOG is not compiled but may be selected at run time.Note that the command line version, intop, is gone.This version is compiled on a Pentium III, under Mandrake 9.2YOU MUST SETUP A PASSWORD BEFORE RUNNING NTOP - see 1STRUN.txt in /usr/share/doc/ntop-<release>Please send problem reports (using the automatically generated form if at all possible)(Click on the 'bug' icon on the About tab) to the ntop mailing list.%prep%setup -q -c ${NAME}${VERSION}%buildunset RPM_OPT_FLAGS%undefine optflags # Adjust the .tgz format to what we expect for build...mv ntop-3.0pre2 ntop# Patchespatch -p0 < ../../SOURCES/version.patchpatch -p0 < ../../SOURCES/regex.patchcd ntop# Now, configure and build ntop# %automake# %autoconf%configure --enable-optimize --bindir=%{_bindir} --datadir=%{ntoproot}/share \ --enable-sslv3 \ --enable-i18nmake faq.htmlmake ntop.txtmake ntop.htmlmake%installcd ntopmkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d \ $RPM_BUILD_ROOT/%{_bindir} \ $RPM_BUILD_ROOT/etc/logrotate.d \ $RPM_BUILD_ROOT/%{_datadir}/%{name}make install DESTDIR=$RPM_BUILD_ROOTmake install-data-local DESTDIR=$RPM_BUILD_ROOTif test -f $RPM_BUILD_ROOT/usr/bin/i386-redhat-linux-ntop; then mv -f $RPM_BUILD_ROOT/usr/bin/i386-redhat-linux-ntop \ $RPM_BUILD_ROOT/usr/bin/ntopfiif test -f $RPM_BUILD_ROOT/usr/share/man/man8/i386-redhat-linux-ntop.8; then mv -f $RPM_BUILD_ROOT/usr/share/man/man8/i386-redhat-linux-ntop.8 \ $RPM_BUILD_ROOT/usr/share/man/man8/ntop.8fiinstall -c -m0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntopinstall -c -m0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/ntopinstall -c -m0700 %{SOURCE3} $RPM_BUILD_ROOT/etc/ntop.conf.sample%preg=`cat /etc/group | grep ^ntop:`if test ".${g}" = "."; then /usr/sbin/groupadd -r ntop 2>/dev/null || :fiu=`cat /etc/passwd | grep ^ntop:`if test ".${u}" = "."; then /usr/sbin/useradd -s /bin/false -c "ntop server user" -g ntop \ -d %{ntoproot}/share/ntop -M -r ntop 2>/dev/null || :fi%postecho "***********************************************************************"mkdir /usr/share/ntop/rrdchown -R ntop:ntop /usr/share/ntopecho "***********************************************************************"if test -f /etc/init.d/ntop; then /sbin/chkconfig --add ntop /sbin/ldconfig echo "***********************************************************************" if ! test -f /usr/share/ntop/ntop_pw.db; then if ! test -f /etc/ntop.conf; then echo "* You must configure /etc/ntop.conf - see /etc/ntop.conf.sample *" echo "* *" echo "* (as root run) $ cp /etc/ntop.conf.sample /etc/ntop.conf *" echo "* $ vi /etc/ntop.conf *" echo "* *" echo "***********************************************************************" fi echo "* YOU MUST SETUP A PASSWORD BEFORE RUNNING NTOP *" echo "* *" echo "* (as root run) $ /usr/bin/ntop @/etc/ntop.conf -A *" echo "* *" echo "* see 1STRUN.txt in /usr/share/doc/ntop-<release> *" echo "***********************************************************************" elif ! test -f /etc/ntop.conf; then echo "* You must configure /etc/ntop.conf - see /etc/ntop.conf.sample *" echo "* *" echo "* (as root run) $ cp /etc/ntop.conf.sample /etc/ntop.conf *" echo "* $ vi /etc/ntop.conf *" echo "* *" else echo "* *" echo "* Starting ntop using a pre-existing setup - check the results! *" echo "* *" /sbin/service ntop condrestart > /dev/null 2>&1 fifiecho "***********************************************************************"echo " "echo "Questions? See the FAQ in /usr/share/doc/ntop-<release>"echo " "%preunif [ "$1" = "0" ]; then /sbin/service ntop stop > /dev/null 2>&1 /sbin/chkconfig --del ntopfi%postunif [ "$1" -ge "1" ]; then /sbin/service ntop condrestart > /dev/null 2>&1fi/sbin/ldconfig%cleanrm -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/BUILD-NTOP.txt%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%config %{_sysconfdir}/ntop.conf.sample%{_bindir}/ntop%{_datadir}/%{name}/etc/ntop%{_mandir}/man8/ntop.8.bz2%{_libdir}/ntop%{_libdir}/plugins%{_libdir}/libntop*%{_libdir}/lib*Plugin*%changelog* Tue Mar 03 2004 Burton M. Strauss III <burton@ntopsupport.com>- v3.0pre2 - TEST release for 3.0* Tue Feb 17 2004 Burton M. Strauss III <burton@ntopsupport.com>- v3.0pre1 - TEST release for 3.0 (1st Mandrake RPM)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -