Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96e2834a8c | ||
|
|
23a5f53cc0 | ||
|
|
0fae65d297 | ||
|
|
95595bde31 | ||
|
|
311a467f28 | ||
|
|
74593b54b0 | ||
|
|
23eb92d01e | ||
|
|
d0d654f9a8 | ||
|
|
af92d97bc9 | ||
|
|
6397f12daa | ||
|
|
5590477b99 | ||
|
|
95147493b1 |
2 changed files with 104 additions and 13 deletions
59
flow-tools-c99.patch
Normal file
59
flow-tools-c99.patch
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
Add a new header file that provides function prototypes for flex/bison
|
||||||
|
integration. This avoids implicit function declarations and build
|
||||||
|
failures with future compilers.
|
||||||
|
|
||||||
|
diff --git a/src/acllex.l b/src/acllex.l
|
||||||
|
index 74dd8882f2fed262..3ab5e3c0cd897f70 100644
|
||||||
|
--- a/src/acllex.l
|
||||||
|
+++ b/src/acllex.l
|
||||||
|
@@ -11,6 +11,7 @@
|
||||||
|
|
||||||
|
#include "acl2.h"
|
||||||
|
#include "aclyacc.h"
|
||||||
|
+#include "aclparse.h"
|
||||||
|
%}
|
||||||
|
|
||||||
|
byte ([0-9]+)
|
||||||
|
diff --git a/src/aclparse.h b/src/aclparse.h
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000000000..f113fc26d7513042
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/src/aclparse.h
|
||||||
|
@@ -0,0 +1,3 @@
|
||||||
|
+int yylex (void);
|
||||||
|
+void yyerror(const char *msg);
|
||||||
|
+int yyparse (void);
|
||||||
|
diff --git a/src/aclyacc.y b/src/aclyacc.y
|
||||||
|
index 60001b6e4c820271..711b7eb169b59aba 100644
|
||||||
|
--- a/src/aclyacc.y
|
||||||
|
+++ b/src/aclyacc.y
|
||||||
|
@@ -2,6 +2,7 @@
|
||||||
|
#include <ftlib.h>
|
||||||
|
#include "acl2.h"
|
||||||
|
#include <stdio.h> /* XXX REMOVE */
|
||||||
|
+#include "aclparse.h"
|
||||||
|
|
||||||
|
/* XXX remove */
|
||||||
|
unsigned char fmt_buf[32];
|
||||||
|
diff --git a/src/flow-filter.c b/src/flow-filter.c
|
||||||
|
index 3c1bfea989b2a129..305e2ed4399ca33d 100644
|
||||||
|
--- a/src/flow-filter.c
|
||||||
|
+++ b/src/flow-filter.c
|
||||||
|
@@ -47,6 +47,7 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "acl2.h"
|
||||||
|
+#include "aclparse.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TODO
|
||||||
|
@@ -58,9 +59,7 @@ int ip_net_only;
|
||||||
|
|
||||||
|
extern struct acl_list acl_list;
|
||||||
|
|
||||||
|
-int yyparse (void);
|
||||||
|
void usage(void);
|
||||||
|
-void yyerror(const char *msg);
|
||||||
|
|
||||||
|
extern FILE *yyin;
|
||||||
|
extern char *yytext;
|
||||||
|
|
@ -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: 35%{?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
|
||||||
|
|
@ -21,6 +22,7 @@ Source2: flow-capture.sysconfig
|
||||||
Patch0: flow-werror-fix.patch
|
Patch0: flow-werror-fix.patch
|
||||||
# Fix extern usage
|
# Fix extern usage
|
||||||
Patch1: flow-tools-extern.patch
|
Patch1: flow-tools-extern.patch
|
||||||
|
Patch2: flow-tools-c99.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
%if 0%{with openssl}
|
%if 0%{with openssl}
|
||||||
|
|
@ -33,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
|
||||||
|
|
@ -109,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
|
||||||
|
|
@ -117,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} \
|
||||||
|
|
@ -142,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
|
||||||
|
|
@ -219,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
|
||||||
|
|
@ -234,6 +236,36 @@ 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
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-39
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-38
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Florian Weimer <fweimer@redhat.com> - 0.68.5.1-37
|
||||||
|
- C99 compatibility fixes (#2162330)
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-36
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-35
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-35
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue