From 7591ef6c200fc094f28dd32b714d9ed0a02a2cb7 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:43:35 +0100 Subject: [PATCH] package created [release 4.2-1mamba;Mon Dec 14 2020] --- README.md | 3 ++ ntopng.spec | 123 +++++++++++++++++++++++++++++++++++++++++++ ntopng.sysusers.conf | 3 ++ 3 files changed, 129 insertions(+) create mode 100644 ntopng.spec create mode 100644 ntopng.sysusers.conf diff --git a/README.md b/README.md index 3b383c0..6ad5303 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # ntopng +ntopngĀ® is a web-based network traffic monitoring application released under GPLv3. +It is the new incarnation of the original ntop written in 1998, and now revamped in terms of performance, usability, and features. + diff --git a/ntopng.spec b/ntopng.spec new file mode 100644 index 0000000..1e9862d --- /dev/null +++ b/ntopng.spec @@ -0,0 +1,123 @@ +Name: ntopng +Version: 4.2 +Release: 1mamba +Epoch: 1 +Summary: A web-based network traffic monitoring application +Group: Network/Monitoring +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ntop/nDPI +Source: https://github.com/ntop/ntopng.git/%{version}/ntopng-%{version}.tar.bz2 +Source1: ntopng.sysusers.conf +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcap-devel +BuildRequires: libcurl-devel +BuildRequires: libexpat-devel +BuildRequires: libgcc +BuildRequires: libgcrypt-devel +BuildRequires: libgpg-error-devel +BuildRequires: libhiredis-devel +BuildRequires: libjson-c-devel +BuildRequires: libmariadb-devel +BuildRequires: libmaxminddb-devel +BuildRequires: libnetsnmp-devel +BuildRequires: libnl1-devel +BuildRequires: libopenldap-devel +BuildRequires: libopenssl-devel +BuildRequires: libpcap-devel +BuildRequires: libsodium-devel +BuildRequires: libsqlite-devel +BuildRequires: libstdc++6-devel +BuildRequires: libz-devel +BuildRequires: libzeromq-devel +BuildRequires: libzstd-devel +BuildRequires: rrdtool-devel +## AUTOBUILDREQ-END +BuildRequires: libnetsnmp-devel >= 5.9 +BuildRequires: libndpi-devel +BuildRequires: rrdtool-devel >= 1.7.2 +Requires: libGeoIP-tools +Provides: ntop +Obsoletes: ntop <= 5.0.1 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +ntopngĀ® is a web-based network traffic monitoring application released under GPLv3. +It is the new incarnation of the original ntop written in 1998, and now revamped in terms of performance, usability, and features. + +%debug_package + +%prep +%setup -q +#-D -T +#:<< _EOF +./autogen.sh --noconfig + +%build +%configure \ + LDFLAGS="-L%{_libdir} -lgpg-error" + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall \ + MAN_DIR=%{buildroot}%{_mandir} + +install -d -m0755 %{buildroot}%{_sysconfdir} +cp -r packages/etc/ntopng %{buildroot}%{_sysconfdir}/ + +install -D -m0644 packages/etc/sudoers.d/ntopng %{buildroot}%{_sysconfdir}/sudoers.d/ntopng +install -D -m0644 packages/usr/bin/ntopctl %{buildroot}%{_bindir}/ntopctl + +install -D -m0644 packages/etc/systemd/system/ntopng.service %{buildroot}%{_unitdir}/ntopng.service +install -D -m0644 packages/etc/systemd/system/ntopng@.service %{buildroot}%{_unitdir}/ntopng@.service +install -D -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/ntopng.conf + +install -d -m0700 %{buildroot}/var/lib/ntopng + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%pre +%sysusers_create_package ntopng %{SOURCE1} +: + +%post +%systemd_post ntopng +: + +%preun +%systemd_preun ntopng +: + +%postun +%systemd_postun ntopng +: + +%files +%defattr(-,root,root) +%dir %{_sysconfdir}/ntopng +%config(noreplace) %{_sysconfdir}/ntopng/nedge.conf +%config(noreplace) %{_sysconfdir}/ntopng/ntopng.conf +%dir %{_sysconfdir}/ntopng/ntopng.conf.d +%{_sysconfdir}/ntopng/ntopng.conf.d/README +%{_sysconfdir}/ntopng/ntopng.conf.nprobe.sample +%{_sysconfdir}/sudoers.d/ntopng +%{_bindir}/ntopng +%{_bindir}/ntopctl +%{_unitdir}/ntopng.service +%{_unitdir}/ntopng@.service +%{_sysusersdir}/ntopng.conf +%dir %{_datadir}/ntopng +%{_datadir}/ntopng/* +%dir %attr(700,ntopng,ntopng) /var/lib/ntopng +%{_mandir}/man8/ntopng.8* +%doc COPYING + +%changelog +* Mon Dec 14 2020 Silvan Calarco 4.2-1mamba +- package created \ No newline at end of file diff --git a/ntopng.sysusers.conf b/ntopng.sysusers.conf new file mode 100644 index 0000000..b5dab1b --- /dev/null +++ b/ntopng.sysusers.conf @@ -0,0 +1,3 @@ +g ntopng - +u ntopng - "Ntopng server" /var/lib/ntopng +m ntopng ntopng