Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
ntop
ntop.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ntop.spec of Package ntop
# # spec file for package ntop (Version 3.3.10) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: ntop BuildRequires: dos2unix freetype2-devel gcc-c++ gd-devel gdbm-devel libGeoIP-devel libart_lgpl-devel libjpeg-devel libpng-devel lsof lua-devel mysql-devel net-snmp-devel openssl-devel readline-devel %if 0%{?suse_version} BuildRequires: tcpd-devel xorg-x11-devel PreReq: /bin/cat %fillup_prereq %insserv_prereq sysconfig %if 0%{?suse_version} > 1100 BuildRequires: libevent-devel %else BuildRequires: libevent %endif %if 0%{?suse_version} > 1020 BuildRequires: fdupes libpcap-devel rrdtool-devel %else BuildRequires: libpcap rrdtool %endif %else %if 0%{?fedora_version} PreReq: /bin/cat /sbin/insserv /bin/fillup sysconfig BuildRequires: libpcap-devel rrdtool-devel xorg-x11-devel %else %if 0%{?mandriva_version} BuildRequires: libpcap-devel librrdtool-devel rrdtool PreReq: /bin/cat /sbin/insserv /bin/fillup sysconfig %endif %endif %endif License: GPL v2 or later Group: Productivity/Networking/Diagnostic AutoReqProv: on Version: 3.3.10 Release: 1 # %define pkg_name ntop %define pkg_user ntop %define pkg_home /var/lib/%{pkg_name} # %define _localstatedir /var/lib # %if "%(xft-config --prefix)" == "/usr" %define xorg_libdir %{_libdir} %else %define xorg_cflags -L/usr/X11R6/%_lib -I/usr/X11R6/include %define xorg_libdir /usr/X11R6/%_lib %endif Summary: Web-Based Network Traffic Monitor Source: %{name}-%{version}.tar.bz2 Source2: rcntop Source3: rc.config.ntop Source4: passcheck.c Source5: README.SuSE Source6: etter.finger.os.gz Patch: ntop-%{version}.diff Patch2: rrdPlugin.diff Patch4: dotpath.diff Patch5: libtool.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> %prep %setup -q -n %{name}-%{version} %patch %patch2 %patch4 %patch5 cp %SOURCE6 . %build %{?suse_update_config:%{suse_update_config -f gdchart* ntop . }} # ntop wants to setup the files for the newer autoconf itself: ./autogen.sh # NTOP_AUTOREBUILD=yes ./configure || echo "new autoconf prepared" # now we are ready for the real configure... CFLAGS="$RPM_OPT_FLAGS -DHAVE_NCURSES_H %{?xorg_cflags}" \ %configure \ --x-libraries=%{xorg_libdir} \ --disable-static \ --enable-sslv3 \ --enable-i18n make %{?jobs:-j%jobs} 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 make DESTDIR=$RPM_BUILD_ROOT install install-man 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%{pkg_home}/rrd # Get README.SuSE cp %SOURCE5 . find $RPM_BUILD_ROOT/usr/share/ntop/html -type f -print0 | xargs -0 chmod 644 %if 0%{?suse_version} > 1020 %fdupes $RPM_BUILD_ROOT/usr/share/ntop/html/ %endif find $RPM_BUILD_ROOT -name "*.la" | xargs rm rm docs/ntop-autotools.vsd dos2unix docs/RedHat-rpmbuild-HOWTO.txt %pre /usr/sbin/groupadd -r %{pkg_user} &>/dev/null ||: /usr/sbin/useradd -g %{pkg_user} -s /bin/false -r -c "user for %{pkg_user}" -d %{pkg_home} %{pkg_user} &>/dev/null ||: %preun %if 0%{?suse_version} > 1020 %stop_on_removal %endif %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 # change user wwwrun to user ntop sed -i -e 's/^[[:space:]]*NTOP_USER=\"wwwrun\"/NTOP_USER=\"ntop\"/' /etc/sysconfig/ntop chown -R %{pkg_user}:%{pkg_user} %{pkg_home}/rrd fi /sbin/ldconfig %{fillup_and_insserv -n ntop ntop } %postun /sbin/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 %{_bindir}/ntop %{_libdir}/lib*.so %{_sbindir}/rcntop %{_sbindir}/passcheck %dir %attr(-,%{pkg_user},%{pkg_user}) %{_datadir}/ntop %{_datadir}/ntop/html %{_datadir}/ntop/perl %dir %{_libdir}/ntop %{_libdir}/ntop/plugins %{_mandir}/man8/ntop.8.* /var/adm/fillup-templates/sysconfig.ntop %dir %attr(-,%{pkg_user},%{pkg_user}) %{pkg_home} %dir %attr(-,%{pkg_user},%{pkg_user}) %{pkg_home}/rrd %dir /etc/ntop %config /etc/ntop/oui.txt.gz %config /etc/ntop/specialMAC.txt.gz %config /etc/ntop/etter.finger.os.gz %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor