Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
ntop
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 5
[-]
[+]
Added
ntop.spec
@@ -0,0 +1,305 @@ +# +# spec file for package ntop (Version 3.2) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild +# usedforbuild aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db diffutils e2fsprogs expat file filesystem fillup findutils flex fontconfig fontconfig-devel freetype2 freetype2-devel gawk gcc gcc-c++ gd gd-devel gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libart_lgpl libattr libcom_err libgcc libjpeg libjpeg-devel libnscd libpcap libpng libpng-devel libstdc++ libstdc++-devel libtool libxcrypt libzio lsof m4 make man mktemp module-init-tools mysql-client mysql-devel mysql-shared ncurses ncurses-devel net-tools netcfg openldap2-client openssl openssl-devel pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline readline-devel rpm rrdtool sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim xorg-x11-devel xorg-x11-libs zlib zlib-devel + +Name: ntop +BuildRequires: freetype2-devel gcc-c++ gd-devel libjpeg-devel libpcap libpng-devel lsof mysql-devel openssl-devel readline-devel rrdtool xorg-x11-devel +License: GPL, Other License(s), see package +Group: Productivity/Networking/Diagnostic +PreReq: %fillup_prereq %insserv_prereq /bin/cat +Autoreqprov: on +Version: 3.2 +Release: 17 +Summary: Web-Based Network Traffic Monitor +Source: %{name}-%{version}.tar.bz2 +Source2: rcntop +Source3: rc.config.ntop +Source4: passcheck.c +Source5: README.SuSE +Patch: ntop-3.2.diff +Patch1: sflow.diff +Patch2: rrdPlugin.diff +Patch3: myrrd.diff +URL: http://www.ntop.org +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Ntop is a Web-based traffic monitor that shows network usage. It can be +used in both interactive or Web mode using the embedded Web server. + + + +Authors: +-------- + Luca Deri <deri@ntop.org> + +%debug_package +%prep +%setup -q -n %{name}-%{version} +%patch +%patch1 +%patch2 +%patch3 + +%build +%{?suse_update_config:%{suse_update_config -f gdchart* ntop . }} +autoconf +# ntop wants to setup the files for the newer autoconf itself: +NTOP_AUTOREBUILD=yes ./configure || echo "new autoconf prepared" +# now we are ready for the real configure... +CFLAGS="$RPM_OPT_FLAGS -DHAVE_NCURSES_H" \ +./configure \ + --sysconfdir=/etc \ + --prefix=/usr \ + --mandir=%{_mandir} \ + --localstatedir=/var/lib \ + --libdir=%{_libdir} \ + --x-libraries=/usr/X11R6/%_lib \ + --disable-static \ + --enable-sslv3 \ + --enable-i18n +make +gcc -o passcheck $RPM_OPT_FLAGS %{SOURCE4} -lgdbm + +%install +# remove old (pre SuSE Linux 7.0) README.Suse provided by ntop +rm -f docs/README.Suse +mkdir -p $RPM_BUILD_ROOT/etc +DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +# use the relinked librrdPlugin.so instead of the copied plugin +cp $RPM_BUILD_ROOT/%{_libdir}/librrdPlugin.so \ + $RPM_BUILD_ROOT/%{_libdir}/ntop/plugins/rrdPlugin.so +# rm $RPM_BUILD_ROOT/%{_libdir}/ntop/plugins/rrdPlugin.so +make install-man DESTDIR=$RPM_BUILD_ROOT +make install-data-as DESTDIR=$RPM_BUILD_ROOT +chmod 644 $RPM_BUILD_ROOT/etc/ntop/oui.txt.gz +chmod 644 $RPM_BUILD_ROOT/etc/ntop/specialMAC.txt.gz +install -d $RPM_BUILD_ROOT/etc/init.d/ +install -d $RPM_BUILD_ROOT/usr/sbin/ +install -d $RPM_BUILD_ROOT/var/adm/fillup-templates/ +install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/init.d/ntop +ln -sf ../../etc/init.d/ntop $RPM_BUILD_ROOT/usr/sbin/rcntop +install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.ntop +install -m 755 passcheck $RPM_BUILD_ROOT/usr/sbin/passcheck +mkdir -p $RPM_BUILD_ROOT/var/lib/ntop +cp ntop-cert.pem docs/ +cp %SOURCE5 . + +%post +# Are we in update mode? +if [ ${1:-0} -gt 1 ]; then + if [ -f etc/sysconfig/ntopd -a ! -L etc/sysconfig/ntopd ]; then + echo "Renaming config file ntopd to ntop" + mv etc/sysconfig/ntopd etc/sysconfig/ntop + fi +fi +chown wwwrun:www /usr/share/ntop /var/lib/ntop +%run_ldconfig +%{fillup_and_insserv -n ntop ntop } + +%postun +%run_ldconfig +%{insserv_cleanup} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc docs/* AUTHORS CONTENTS COPYING ChangeLog MANIFESTO NEWS PORTING +%doc SUPPORT_NTOP.txt THANKS README.SuSE +%config /etc/init.d/ntop +/usr/bin/ntop +%{_libdir}/libntopreport.la +%{_libdir}/libntop.la +%{_libdir}/libmyrrd.la +%{_libdir}/lib*.so +/usr/sbin/rcntop +/usr/sbin/passcheck +%dir %attr(-,wwwrun,www) /usr/share/ntop +/usr/share/ntop/html +%dir %{_libdir}/ntop +%{_libdir}/ntop/plugins +%{_mandir}/man8/ntop.8.gz +/var/adm/fillup-templates/sysconfig.ntop +%dir %attr(-,wwwrun,www) /var/lib/ntop +%dir /etc/ntop +/etc/ntop/ntop-cert.pem +/etc/ntop/AS-list.txt.gz +/etc/ntop/etter.finger.os.gz +/etc/ntop/oui.txt.gz +/etc/ntop/p2c.opt.table.gz +/etc/ntop/specialMAC.txt.gz + + +%changelog -n ntop +* Tue Apr 04 2006 - bg@suse.de +- removing files ntop_darwin.[ch] (Bug #161809) +- fixing user/group (Bug #140309) +* Mon Mar 20 2006 - bg@suse.de +- fix initialization of formatBuf (Bug #159477) +* Thu Jan 26 2006 - bg@suse.de +- fix bug #145502 (coding problems uncovered by new compiler) +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Sun Jan 15 2006 - schwab@suse.de +- Don't strip binaries. +* Mon Dec 12 2005 - bg@suse.de +- upgrade to version 3.2 +- fix several compiler complaints +* Thu Oct 06 2005 - ro@suse.de +- matched number of arguments to printf formats +* Fri Sep 09 2005 - bg@suse.de +- removing execute permissions on gz files (Bug #114849) +* Mon Aug 29 2005 - bg@suse.de +- update to 3.1.50, recent version did not come up anymore. + (Bug #113816) +* Mon Apr 25 2005 - mmj@suse.de +- Correct memset call +* Fri Apr 01 2005 - mmj@suse.de +- Don't return random data +* Mon Mar 21 2005 - schwab@suse.de +- Convert configuration name to interface name in start script. +* Fri Mar 04 2005 - bg@suse.de +- passcheck has to be called as root with the new version +* Tue Feb 08 2005 - bg@suse.de +- update to version 3.1 +- adopt fixes from older version +- fix make install +- make passcheck not segfault on failure of open password database +* Thu Oct 07 2004 - bg@suse.de +- fix and remove -fno-strict-aliasing +* Fri Sep 24 2004 - bg@suse.de +- fix traffic data collection (Bug #43815) +* Mon Sep 06 2004 - bg@suse.de +- update to version 3.0.53 +- rename ntop to rcntop to avoid conflict with directory name +- fix bug #41690 +* Wed Sep 01 2004 - mmj@suse.de +- Move the mail to root into a README.SuSE where it belongs [#44349] +* Tue Jun 01 2004 - ro@suse.de +- fix build for ppc64 +* Wed Mar 31 2004 - bg@suse.de +- update to version 3.0 +- remove --ignore-sigpipe (not available anymore) +* Tue Mar 30 2004 - mmj@suse.de +- Add --ignore-sigpipe to default arguments [#37576] +- Clean up initscript and add missing sections (thanks lmuelle) +- Compile with -fno-strict-aliasing +* Tue Jan 20 2004 - bg@suse.de +- fixed comment in rc.config.ntop (Bug 33701)