Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
ntopng
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Changed
ntopng.spec
@@ -6,30 +6,48 @@ License: GPLv3 Group: System/Monitoring Source0: %{name}-%{version}.tar.bz2 -#Source1: nDPI.tar.bz2 -#Patch0: ntopng-nDPI-nosvn.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: gcc-c++ BuildRequires: libpcap-devel +BuildRequires: libgnutls-devel +BuildRequires: libxml2-devel +BuildRequires: glib2-devel +BuildRequires: libGeoIP-devel %description Next generation is a rewritten version of NTOP using C++. %prep -%setup -n %{name} -a 1 -##patch0 +%setup %build %configure %__make %install -%__make DESTDIR=%{buildroot} 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 +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 +# +%files +%defattr(-,root,root) +%{_bindir}/ntopng +%{_mandir}/man8/ntopng.8* +%dir /etc/init +/etc/init/ntopng.conf +/etc/init.d/ntopng +%dir %{_datadir}/ntopng +%{_datadir}/ntopng/* %clean rm -rf %{buildroot} -%files -%defattr(-,root,root) - %changelog