Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
ntopng
> ntopng.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ntopng.spec of Package ntopng (Revision 11)
Currently displaying revision
11
,
show latest
Name: ntopng Version: 1.0 Release: 0 Summary: Next Generation NTOP Url: http://www.ntop.org/ License: GPLv3 Group: System/Monitoring Source0: %{name}-%{version}.tar.bz2 Source11: GeoIPASNum.dat.gz Source12: GeoIPASNumv6.dat.gz Source13: GeoLiteCity.dat.gz Source14: GeoLiteCityv6.dat.gz Patch0: %{name}-init.patch Patch1: %{name}-prefix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: gcc-c++ %if 0%{?suse_version} >= 1010 || 0%{?rhel} || 0%{?centos_version} || 0%{?fedora_version} BuildRequires: libpcap-devel %else BuildRequires: libpcap %endif %if 0%{?suse_version} > 1030 BuildRequires: libgnutls-devel %else BuildRequires: gnutls-devel %endif BuildRequires: libxml2-devel BuildRequires: glib2-devel BuildRequires: libGeoIP-devel %if 0%{?suse_version} Recommends: redis %endif %description Next generation is a rewritten version of NTOP using C++. %prep %setup %patch0 %patch1 %build %configure %__make %install mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_datadir}/ntopng %{buildroot}%{_mandir}/man8 mkdir -p %{buildroot}%{_datadir}/ntopng/third-party/redis-lua/src/ mkdir -p %{buildroot}/etc/init %{buildroot}/etc/init.d %{buildroot}/etc/ntopng mkdir -p %{buildroot}/var/lib/ntopng cp ntopng %{buildroot}%{_bindir} cp ntopng.8 %{buildroot}%{_mandir}/man8 cp -r httpdocs scripts %{buildroot}%{_datadir}/ntopng cp packages/etc/init/ntopng.conf %{buildroot}/etc/init cp packages/etc/init.d/ntopng %{buildroot}/etc/init.d cp third-party/redis-lua/src/redis.lua %{buildroot}%{_datadir}/ntopng/third-party/redis-lua/src/ find %{buildroot} -name ".svn" | xargs /bin/rm -rf find %{buildroot} -name "*~" | xargs /bin/rm -f mkdir -p %{buildroot}%{_datadir}/ntopng/httpdocs/geoip for src in %{S:11} %{S:12} %{S:13} %{S:14} ; do out=`basename ${src} .gz` gunzip -c ${src} > %{buildroot}%{_datadir}/ntopng/httpdocs/geoip/${out} done # %files %defattr(-,root,root) %{_bindir}/ntopng %{_mandir}/man8/ntopng.8* %dir /etc/ntopng %dir /etc/init /etc/init/ntopng.conf /etc/init.d/ntopng %dir %{_datadir}/ntopng %{_datadir}/ntopng/* %doc README.* %dir %attr(0755,nobody,nobody) /var/lib/ntopng %clean rm -rf %{buildroot} %changelog