[packages/nfdump] - up to 1.7.5

adwol adwol at pld-linux.org
Mon Jan 27 15:01:43 CET 2025


commit 0797fb9d48027d83c5500e660097ddc8ab7b5d3f
Author: Adam Osuchowski <>
Date:   Mon Jan 27 14:17:32 2025 +0100

    - up to 1.7.5

 nfdump.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 52 insertions(+), 7 deletions(-)
---
diff --git a/nfdump.spec b/nfdump.spec
index 974e362..a4f656e 100644
--- a/nfdump.spec
+++ b/nfdump.spec
@@ -1,12 +1,12 @@
 Summary:	Netflow processing tools
 Summary(pl.UTF-8):	Narzędzia do przetwarzania ruchu sieciowego
 Name:		nfdump
-Version:	1.6.16
+Version:	1.7.5
 Release:	1
 License:	BSD
 Group:		Applications
 Source0:	https://github.com/phaag/nfdump/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	9f768d380e8fcf88f56e14009a509e74
+# Source0-md5:	a22849da21e022946ff735a31d69a9ce
 Source1:	http://www.ripe.net/ripe/meetings/ripe-50/presentations/ripe50-plenary-tue-nfsen-%{name}.pdf
 # Source1-md5:	6240259f9e54bc78894e99ea1deef776
 URL:		https://github.com/phaag/nfdump
@@ -25,13 +25,39 @@ They are part of the NfSen project.
 Narzędzia nfdump zbierają i przetwarzają dane z ruchu sieciowego
 (netflow) z linii poleceń. Są częścią projektu NfSen.
 
+%package libs
+Summary:	Libraries for nfdump
+Summary(pl.UTF-8):	Biblioteki dla nfdump
+Group:		Libraries
+
+%description libs
+Libraries for nfdump
+
+%description libs -l pl.UTF-8
+Biblioteki dla nfdump
+
+%package static
+Summary:	Static libraries for nfdump
+Summary(pl.UTF-8):	Statyczne biblioteki dla nfdump
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libraries for nfdump
+
+%description static -l pl.UTF-8
+Statyczne biblioteki dla nfdump
+
 %prep
 %setup -q
 
 %build
+./autogen.sh
 %configure \
 	--enable-nfprofile \
-	--enable-sflow
+	--enable-sflow \
+	--enable-readpcap \
+	--enable-nfpcapd
 %{__make}
 
 %install
@@ -40,16 +66,35 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnf{dump,file}.{la,so}
+%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/nfdump.conf{.dist,}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	-p /sbin/ldconfig
-%postun	-p /sbin/ldconfig
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
-%attr(755,root,root) %{_bindir}/nf*
+%{_sysconfdir}/nfdump.conf
+%attr(755,root,root) %{_bindir}/nfanon
+%attr(755,root,root) %{_bindir}/nfcapd
+%attr(755,root,root) %{_bindir}/nfdump
+%attr(755,root,root) %{_bindir}/nfexpire
+%attr(755,root,root) %{_bindir}/nfpcapd
+%attr(755,root,root) %{_bindir}/nfprofile
+%attr(755,root,root) %{_bindir}/nfreplay
 %attr(755,root,root) %{_bindir}/sfcapd
-%attr(755,root,root) %{_libdir}/libnfdump-1.6.15.so
 %{_mandir}/man1/*
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libnfdump-%{version}.so
+%attr(755,root,root) %{_libdir}/libnffile-%{version}.so
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libnfdump.a
+%{_libdir}/libnffile.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nfdump.git/commitdiff/0797fb9d48027d83c5500e660097ddc8ab7b5d3f



More information about the pld-cvs-commit mailing list