Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96e2834a8c | ||
|
|
23a5f53cc0 | ||
|
|
0fae65d297 | ||
|
|
95595bde31 | ||
|
|
311a467f28 | ||
|
|
74593b54b0 | ||
|
|
23eb92d01e |
1 changed files with 29 additions and 13 deletions
|
|
@ -12,8 +12,9 @@
|
||||||
Version: 0.68.5.1
|
Version: 0.68.5.1
|
||||||
Name: flow-tools
|
Name: flow-tools
|
||||||
Summary: Tool set for working with NetFlow data
|
Summary: Tool set for working with NetFlow data
|
||||||
Release: 40%{?dist}
|
Release: 45%{?dist}
|
||||||
License: BSD
|
# Automatically converted from old format: BSD - review is highly recommended.
|
||||||
|
License: LicenseRef-Callaway-BSD
|
||||||
URL: http://code.google.com/p/%{name}/
|
URL: http://code.google.com/p/%{name}/
|
||||||
Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2
|
Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2
|
||||||
Source1: flow-capture.service
|
Source1: flow-capture.service
|
||||||
|
|
@ -34,13 +35,10 @@ BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
%if 0%{?fedora} >= 31
|
%if 0%{?fedora} >= 31
|
||||||
BuildRequires: /usr/bin/2to3
|
BuildRequires: python3.12
|
||||||
%endif
|
%endif
|
||||||
Requires(pre): shadow-utils
|
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
Provides: group(%username)
|
|
||||||
Provides: user(%username)
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
@ -110,7 +108,7 @@ This package contains additional documentation, such as man pages in html format
|
||||||
# Remove /bin/env deps
|
# Remove /bin/env deps
|
||||||
%if 0%{?fedora} >= 31
|
%if 0%{?fedora} >= 31
|
||||||
sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow*
|
sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow*
|
||||||
2to3 --write --nobackups bin/flow*
|
python3.12 -m lib2to3 --write --nobackups bin/flow*
|
||||||
%else
|
%else
|
||||||
sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow*
|
sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow*
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -118,7 +116,13 @@ sed -i '1s|^#!.*perl|#!/usr/bin/perl|' utils/*
|
||||||
# Fix mariadb-connector-c detection
|
# Fix mariadb-connector-c detection
|
||||||
sed -i s/my_init/mysql_init/g configure
|
sed -i s/my_init/mysql_init/g configure
|
||||||
|
|
||||||
|
# Create a sysusers.d config file
|
||||||
|
cat >flow-tools.sysusers.conf <<EOF
|
||||||
|
u flow-tools - '%{gecos}' %{homedir} -
|
||||||
|
EOF
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CFLAGS="$CFLAGS -std=gnu17"
|
||||||
%configure \
|
%configure \
|
||||||
--localstatedir=%{_localstatedir}/%{name} \
|
--localstatedir=%{_localstatedir}/%{name} \
|
||||||
--sysconfdir=%{_sysconfdir}/%{name} \
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
||||||
|
|
@ -143,12 +147,8 @@ install -m 0644 %SOURCE1 $RPM_BUILD_ROOT%{_unitdir}/flow-capture.service
|
||||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
||||||
install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/flow-capture
|
install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/flow-capture
|
||||||
|
|
||||||
%pre
|
install -m0644 -D flow-tools.sysusers.conf %{buildroot}%{_sysusersdir}/flow-tools.conf
|
||||||
getent group %{username} >/dev/null || groupadd -r %{username}
|
|
||||||
getent passwd %{username} >/dev/null || \
|
|
||||||
useradd -r -g %{username} -d %{homedir} -s /sbin/nologin \
|
|
||||||
-c '%{gecos}' %{username}
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
@ -220,6 +220,7 @@ exit 0
|
||||||
%attr(-,flow-tools,flow-tools) %{_localstatedir}/%{name}/
|
%attr(-,flow-tools,flow-tools) %{_localstatedir}/%{name}/
|
||||||
%dir %{_datadir}/%{name}/
|
%dir %{_datadir}/%{name}/
|
||||||
%{_datadir}/%{name}/*
|
%{_datadir}/%{name}/*
|
||||||
|
%{_sysusersdir}/flow-tools.conf
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
|
@ -235,6 +236,21 @@ exit 0
|
||||||
%doc docs/*.html ChangeLog.old TODO INSTALL SECURITY
|
%doc docs/*.html ChangeLog.old TODO INSTALL SECURITY
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-45
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.68.5.1-44
|
||||||
|
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||||
|
|
||||||
|
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-43
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Aug 28 2024 Miroslav Suchý <msuchy@redhat.com> - 0.68.5.1-42
|
||||||
|
- convert license to SPDX
|
||||||
|
|
||||||
|
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-41
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-40
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-40
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue