diff --git a/nfdump-1.6.22.tar.gz b/nfdump-1.6.22.tar.gz new file mode 100644 index 0000000..b84c8fa Binary files /dev/null and b/nfdump-1.6.22.tar.gz differ diff --git a/nfdump.spec b/nfdump.spec new file mode 100644 index 0000000..9194a8d --- /dev/null +++ b/nfdump.spec @@ -0,0 +1,61 @@ +%global _hardened_build 1 +Name: nfdump +Version: 1.6.22 +Release: 1 +Summary: NetFlow collecting and processing tools +License: BSD and GPLv2+ +URL: https://github.com/phaag/nfdump +Source0: https://github.com/phaag/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: autoconf automake byacc bzip2-devel flex gcc libpcap-devel libtool make +BuildRequires: rrdtool-devel sed +Requires: nfdump-libs = %{version}-%{release} +%description +Nfdump is a set of tools to collect and process NetFlow data. It's fast and has +a powerful filter pcap like syntax. It supports NetFlow versions v1, v5, v7, v9 +and IPFIX as well as a limited set of sflow. It includes support for CISCO ASA +(NSEL) and CISCO NAT (NEL) devices which export event logging records as v9 +flows. Nfdump is fully IPv6 compatible. + +%package libs +Summary: Libraries used by NFDUMP packages +%description libs +Contains libraries used by NFDUMP utilities + +%prep +%setup -q + +%build +./bootstrap +export LDFLAGS="${LDFLAGS} -fPIC" +%configure \ + --enable-nsel \ + --enable-nfprofile \ + --enable-nftrack \ + --enable-sflow \ + --enable-readpcap \ + --enable-nfpcapd \ + --enable-shared \ + --disable-static +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +make + +%install +make install DESTDIR=%{buildroot} +chmod 0644 AUTHORS ChangeLog README.md +rm -f %{buildroot}%{_libdir}/*.la +%ldconfig_scriptlets libs + +%files +%license LICENSE +%doc AUTHORS ChangeLog README.md +%{_bindir}/* +%{_mandir}/man1/*.1* + +%files libs +%{_libdir}/libnfdump-%{version}.so +%{_libdir}/libnfdump.so + +%changelog +* Mon Sep 6 2021 wulei - 1.6.22-1 +- package init diff --git a/nfdump.yaml b/nfdump.yaml new file mode 100644 index 0000000..1fe06cf --- /dev/null +++ b/nfdump.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: nfdump/tags +tag_prefix: ^v +separator: .