From 9abb6c635d4f9426aeccf3ab2dd6df5fcac54842 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 23 Oct 2006 15:19:11 +0000 Subject: [PATCH 001/109] Initialize branch FC-6 for flow-tools --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..d5b6362 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +FC-6 From 5314da15984198049738e9ca58b1b566fec403a7 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Thu, 16 Nov 2006 23:03:36 +0000 Subject: [PATCH 002/109] Fix flow report 72 (by reaper@surnet.ru) bz212928 --- flow-tools-0.68.rpt72.patch | 15 +++++++++++++++ flow-tools.spec | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 flow-tools-0.68.rpt72.patch diff --git a/flow-tools-0.68.rpt72.patch b/flow-tools-0.68.rpt72.patch new file mode 100644 index 0000000..6ab2bf4 --- /dev/null +++ b/flow-tools-0.68.rpt72.patch @@ -0,0 +1,15 @@ +--- flow-tools-0.68/lib/ftstat.c.orig 2005-05-10 21:48:12.000000000 +0600 ++++ flow-tools-0.68/lib/ftstat.c 2006-04-10 14:59:28.000000000 +0600 +@@ -11673,10 +11673,10 @@ + ftch_recprefix_tag, ftch_recprefix_tagp); + + FT_RECGET_DSTADDR(cur,rec,*fo); +- FT_RECGET_DST_TAG(cur,rec,*fo); ++ FT_RECGET_SRC_TAG(cur,rec,*fo); + + ftch_recprefix_tag.prefix = cur.dstaddr; +- ftch_recprefix_tag.tag = cur.dst_tag; ++ ftch_recprefix_tag.tag = cur.src_tag; + + /* only use mask if option set */ + if (rpt->options & (FT_STAT_OPT_DST_PREFIX_MASK|FT_STAT_OPT_DST_PREFIX_LEN)) { diff --git a/flow-tools.spec b/flow-tools.spec index 164a8e2..c7121d3 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,7 +1,7 @@ Version: 0.68 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 11%{?dist} +Release: 12%{?dist} Group: Applications/System License: BSD URL: http://www.splintered.net/sw/flow-tools/ @@ -14,6 +14,7 @@ Patch5: flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch Patch6: flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch +Patch9: flow-tools-0.68.rpt72.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel mysql-devel postgresql-devel autoconf automake libtool zlib-devel bison flex tcp_wrappers @@ -54,6 +55,7 @@ libft. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build autoreconf -f -i -s @@ -92,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Thu Nov 16 2006 Paul P Komkoff Jr - 0.68-12 +- Fix flow report 72 (by reaper@surnet.ru) bz#212928 + * Sun Sep 10 2006 Paul P Komkoff Jr - 0.68-11 - rebuild From e515f14db5421cbf03bc508d9c299377a6cbe796 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Thu, 23 Nov 2006 05:57:42 +0000 Subject: [PATCH 003/109] Fix flow report 72 (by reaper@surnet.ru) bz#212928 --- flow-tools-0.68.rpt72.patch | 15 +++++++++++++++ flow-tools.spec | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 flow-tools-0.68.rpt72.patch diff --git a/flow-tools-0.68.rpt72.patch b/flow-tools-0.68.rpt72.patch new file mode 100644 index 0000000..6ab2bf4 --- /dev/null +++ b/flow-tools-0.68.rpt72.patch @@ -0,0 +1,15 @@ +--- flow-tools-0.68/lib/ftstat.c.orig 2005-05-10 21:48:12.000000000 +0600 ++++ flow-tools-0.68/lib/ftstat.c 2006-04-10 14:59:28.000000000 +0600 +@@ -11673,10 +11673,10 @@ + ftch_recprefix_tag, ftch_recprefix_tagp); + + FT_RECGET_DSTADDR(cur,rec,*fo); +- FT_RECGET_DST_TAG(cur,rec,*fo); ++ FT_RECGET_SRC_TAG(cur,rec,*fo); + + ftch_recprefix_tag.prefix = cur.dstaddr; +- ftch_recprefix_tag.tag = cur.dst_tag; ++ ftch_recprefix_tag.tag = cur.src_tag; + + /* only use mask if option set */ + if (rpt->options & (FT_STAT_OPT_DST_PREFIX_MASK|FT_STAT_OPT_DST_PREFIX_LEN)) { diff --git a/flow-tools.spec b/flow-tools.spec index 164a8e2..c7121d3 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,7 +1,7 @@ Version: 0.68 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 11%{?dist} +Release: 12%{?dist} Group: Applications/System License: BSD URL: http://www.splintered.net/sw/flow-tools/ @@ -14,6 +14,7 @@ Patch5: flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch Patch6: flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch +Patch9: flow-tools-0.68.rpt72.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel mysql-devel postgresql-devel autoconf automake libtool zlib-devel bison flex tcp_wrappers @@ -54,6 +55,7 @@ libft. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build autoreconf -f -i -s @@ -92,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Thu Nov 16 2006 Paul P Komkoff Jr - 0.68-12 +- Fix flow report 72 (by reaper@surnet.ru) bz#212928 + * Sun Sep 10 2006 Paul P Komkoff Jr - 0.68-11 - rebuild From e027b3193b6331b28c38b64652363bc0c74b089c Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Thu, 23 Nov 2006 05:57:42 +0000 Subject: [PATCH 004/109] Fix flow report 72 (by reaper@surnet.ru) bz#212928 --- flow-tools-0.68.rpt72.patch | 15 +++++++++++++++ flow-tools.spec | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 flow-tools-0.68.rpt72.patch diff --git a/flow-tools-0.68.rpt72.patch b/flow-tools-0.68.rpt72.patch new file mode 100644 index 0000000..6ab2bf4 --- /dev/null +++ b/flow-tools-0.68.rpt72.patch @@ -0,0 +1,15 @@ +--- flow-tools-0.68/lib/ftstat.c.orig 2005-05-10 21:48:12.000000000 +0600 ++++ flow-tools-0.68/lib/ftstat.c 2006-04-10 14:59:28.000000000 +0600 +@@ -11673,10 +11673,10 @@ + ftch_recprefix_tag, ftch_recprefix_tagp); + + FT_RECGET_DSTADDR(cur,rec,*fo); +- FT_RECGET_DST_TAG(cur,rec,*fo); ++ FT_RECGET_SRC_TAG(cur,rec,*fo); + + ftch_recprefix_tag.prefix = cur.dstaddr; +- ftch_recprefix_tag.tag = cur.dst_tag; ++ ftch_recprefix_tag.tag = cur.src_tag; + + /* only use mask if option set */ + if (rpt->options & (FT_STAT_OPT_DST_PREFIX_MASK|FT_STAT_OPT_DST_PREFIX_LEN)) { diff --git a/flow-tools.spec b/flow-tools.spec index 164a8e2..c7121d3 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,7 +1,7 @@ Version: 0.68 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 11%{?dist} +Release: 12%{?dist} Group: Applications/System License: BSD URL: http://www.splintered.net/sw/flow-tools/ @@ -14,6 +14,7 @@ Patch5: flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch Patch6: flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch +Patch9: flow-tools-0.68.rpt72.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel mysql-devel postgresql-devel autoconf automake libtool zlib-devel bison flex tcp_wrappers @@ -54,6 +55,7 @@ libft. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build autoreconf -f -i -s @@ -92,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Thu Nov 16 2006 Paul P Komkoff Jr - 0.68-12 +- Fix flow report 72 (by reaper@surnet.ru) bz#212928 + * Sun Sep 10 2006 Paul P Komkoff Jr - 0.68-11 - rebuild From a119c430d319af167e0a085e688e801dc991ba80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20=E3=83=86=E3=82=A3=E3=83=93=E3=83=84?= Date: Fri, 15 Dec 2006 05:03:47 +0000 Subject: [PATCH 005/109] - Rebuild for new Postgres --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index c7121d3..c12119b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,7 +1,7 @@ Version: 0.68 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 12%{?dist} +Release: 13%{?dist} Group: Applications/System License: BSD URL: http://www.splintered.net/sw/flow-tools/ @@ -94,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Thu Dec 14 2006 Jason L Tibbitts III - 0.68-13 +- Rebuild for new Postgres + * Thu Nov 16 2006 Paul P Komkoff Jr - 0.68-12 - Fix flow report 72 (by reaper@surnet.ru) bz#212928 From ac8187c3eace13180fbfce48f4ef80e4f00a9f49 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Fri, 15 Dec 2006 20:50:46 +0000 Subject: [PATCH 006/109] automated bump and rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index c12119b..12c9759 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,7 +1,7 @@ Version: 0.68 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 13%{?dist} +Release: 14%{?dist} Group: Applications/System License: BSD URL: http://www.splintered.net/sw/flow-tools/ @@ -94,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Fri Dec 15 2006 Paul P. Komkoff Jr +- rebuilt + * Thu Dec 14 2006 Jason L Tibbitts III - 0.68-13 - Rebuild for new Postgres From 3209043020b55dace41223c311518776b7db0c8d Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 18 Mar 2007 11:49:50 +0000 Subject: [PATCH 007/109] Add runtime dependency for python-rrdtool --- flow-tools.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 12c9759..e95b0bc 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,7 +1,7 @@ Version: 0.68 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 14%{?dist} +Release: 15%{?dist} Group: Applications/System License: BSD URL: http://www.splintered.net/sw/flow-tools/ @@ -16,6 +16,8 @@ Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch Patch9: flow-tools-0.68.rpt72.patch +Requires: rrdtool-python + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel mysql-devel postgresql-devel autoconf automake libtool zlib-devel bison flex tcp_wrappers @@ -94,6 +96,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Sun Mar 18 2007 Paul P Komkoff Jr - 0.68-15 +- Add runtime dependency for python-rrdtool + * Fri Dec 15 2006 Paul P. Komkoff Jr - rebuilt From fb35041833d1c34b4df15a42a53016e084cc01ed Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 25 Mar 2007 08:21:00 +0000 Subject: [PATCH 008/109] getopt() is now in unistd.h --- flow-tools-0.68-getopt.patch | 11 +++++++++++ flow-tools.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 flow-tools-0.68-getopt.patch diff --git a/flow-tools-0.68-getopt.patch b/flow-tools-0.68-getopt.patch new file mode 100644 index 0000000..cd677c4 --- /dev/null +++ b/flow-tools-0.68-getopt.patch @@ -0,0 +1,11 @@ +diff -urN flow-tools-0.68/src/flow-header.c flow-tools-0.68.s/src/flow-header.c +--- flow-tools-0.68/src/flow-header.c 2003-04-02 22:03:02.000000000 +0400 ++++ flow-tools-0.68.s/src/flow-header.c 2007-03-24 23:35:30.000000000 +0300 +@@ -32,6 +32,7 @@ + + #include + #include ++#include + + void usage(void); + diff --git a/flow-tools.spec b/flow-tools.spec index e95b0bc..8991c5b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,7 +1,7 @@ Version: 0.68 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 15%{?dist} +Release: 16%{?dist} Group: Applications/System License: BSD URL: http://www.splintered.net/sw/flow-tools/ @@ -15,6 +15,7 @@ Patch6: flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch Patch9: flow-tools-0.68.rpt72.patch +Patch10: flow-tools-0.68-getopt.patch Requires: rrdtool-python @@ -58,6 +59,7 @@ libft. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build autoreconf -f -i -s @@ -96,6 +98,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Sun Mar 25 2007 Paul P Komkoff Jr - 0.68-16 +- getopt() is now in unistd.h + * Sun Mar 18 2007 Paul P Komkoff Jr - 0.68-15 - Add runtime dependency for python-rrdtool From 4a4e83ebb11e0c03055235cad09b069d4e77f848 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 25 Mar 2007 09:21:18 +0000 Subject: [PATCH 009/109] flow-tools 0.68-16 --- flow-tools-0.68-getopt.patch | 11 +++++++++++ flow-tools.spec | 18 +++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 flow-tools-0.68-getopt.patch diff --git a/flow-tools-0.68-getopt.patch b/flow-tools-0.68-getopt.patch new file mode 100644 index 0000000..cd677c4 --- /dev/null +++ b/flow-tools-0.68-getopt.patch @@ -0,0 +1,11 @@ +diff -urN flow-tools-0.68/src/flow-header.c flow-tools-0.68.s/src/flow-header.c +--- flow-tools-0.68/src/flow-header.c 2003-04-02 22:03:02.000000000 +0400 ++++ flow-tools-0.68.s/src/flow-header.c 2007-03-24 23:35:30.000000000 +0300 +@@ -32,6 +32,7 @@ + + #include + #include ++#include + + void usage(void); + diff --git a/flow-tools.spec b/flow-tools.spec index c7121d3..8991c5b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,7 +1,7 @@ Version: 0.68 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 12%{?dist} +Release: 16%{?dist} Group: Applications/System License: BSD URL: http://www.splintered.net/sw/flow-tools/ @@ -15,6 +15,9 @@ Patch6: flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch Patch9: flow-tools-0.68.rpt72.patch +Patch10: flow-tools-0.68-getopt.patch + +Requires: rrdtool-python BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel mysql-devel postgresql-devel autoconf automake libtool zlib-devel bison flex tcp_wrappers @@ -56,6 +59,7 @@ libft. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build autoreconf -f -i -s @@ -94,6 +98,18 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Sun Mar 25 2007 Paul P Komkoff Jr - 0.68-16 +- getopt() is now in unistd.h + +* Sun Mar 18 2007 Paul P Komkoff Jr - 0.68-15 +- Add runtime dependency for python-rrdtool + +* Fri Dec 15 2006 Paul P. Komkoff Jr +- rebuilt + +* Thu Dec 14 2006 Jason L Tibbitts III - 0.68-13 +- Rebuild for new Postgres + * Thu Nov 16 2006 Paul P Komkoff Jr - 0.68-12 - Fix flow report 72 (by reaper@surnet.ru) bz#212928 From 9fa49f0f93f477a487fe5e64e86450fcc86c4490 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 25 Mar 2007 09:21:18 +0000 Subject: [PATCH 010/109] flow-tools 0.68-16 --- flow-tools-0.68-getopt.patch | 11 +++++++++++ flow-tools.spec | 18 +++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 flow-tools-0.68-getopt.patch diff --git a/flow-tools-0.68-getopt.patch b/flow-tools-0.68-getopt.patch new file mode 100644 index 0000000..cd677c4 --- /dev/null +++ b/flow-tools-0.68-getopt.patch @@ -0,0 +1,11 @@ +diff -urN flow-tools-0.68/src/flow-header.c flow-tools-0.68.s/src/flow-header.c +--- flow-tools-0.68/src/flow-header.c 2003-04-02 22:03:02.000000000 +0400 ++++ flow-tools-0.68.s/src/flow-header.c 2007-03-24 23:35:30.000000000 +0300 +@@ -32,6 +32,7 @@ + + #include + #include ++#include + + void usage(void); + diff --git a/flow-tools.spec b/flow-tools.spec index c7121d3..8991c5b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,7 +1,7 @@ Version: 0.68 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 12%{?dist} +Release: 16%{?dist} Group: Applications/System License: BSD URL: http://www.splintered.net/sw/flow-tools/ @@ -15,6 +15,9 @@ Patch6: flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch Patch9: flow-tools-0.68.rpt72.patch +Patch10: flow-tools-0.68-getopt.patch + +Requires: rrdtool-python BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel mysql-devel postgresql-devel autoconf automake libtool zlib-devel bison flex tcp_wrappers @@ -56,6 +59,7 @@ libft. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build autoreconf -f -i -s @@ -94,6 +98,18 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Sun Mar 25 2007 Paul P Komkoff Jr - 0.68-16 +- getopt() is now in unistd.h + +* Sun Mar 18 2007 Paul P Komkoff Jr - 0.68-15 +- Add runtime dependency for python-rrdtool + +* Fri Dec 15 2006 Paul P. Komkoff Jr +- rebuilt + +* Thu Dec 14 2006 Jason L Tibbitts III - 0.68-13 +- Rebuild for new Postgres + * Thu Nov 16 2006 Paul P Komkoff Jr - 0.68-12 - Fix flow report 72 (by reaper@surnet.ru) bz#212928 From 8a000ee12a7d9968ce627ac8dafd829e8e57040d Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 15 Jul 2007 08:38:40 +0000 Subject: [PATCH 011/109] flow-tools-0.68.1-0.1.rc2 --- .cvsignore | 2 +- ...irst-line-of-included-python-scripts.patch | 48 ---- ...d-lvalue-in-assignment-compile-error.patch | 189 -------------- ...8-0003-Avoid-external-debug-variable.patch | 31 --- ...ant-and-buildable-by-newer-toolchain.patch | 236 ------------------ ...0005-Fix-breakage-on-64bit-platforms.patch | 58 ----- ...ix-unitialized-variable-in-flow-send.patch | 30 --- ...-Add-extra-debugging-to-ftpdu_verify.patch | 63 ----- ...nitialized-variable-in-flow-export.c.patch | 31 --- flow-tools-0.68-getopt.patch | 11 - flow-tools-0.68.rpt72.patch | 15 -- flow-tools.spec | 74 +++--- sources | 2 +- 13 files changed, 36 insertions(+), 754 deletions(-) delete mode 100644 flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch delete mode 100644 flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch delete mode 100644 flow-tools-0.68-0003-Avoid-external-debug-variable.patch delete mode 100644 flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch delete mode 100644 flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch delete mode 100644 flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch delete mode 100644 flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch delete mode 100644 flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch delete mode 100644 flow-tools-0.68-getopt.patch delete mode 100644 flow-tools-0.68.rpt72.patch diff --git a/.cvsignore b/.cvsignore index 377cc43..73c90d6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.tar.gz +flow-tools-0.68.1-rc2.tar.bz2 diff --git a/flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch b/flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch deleted file mode 100644 index 19e5c3b..0000000 --- a/flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch +++ /dev/null @@ -1,48 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:45:55 +0400 -Subject: [PATCH 1/8] Fix first line of included python scripts. - -We need to do this to allow execution on FHS-compliant systems. - ---- - - bin/flow-log2rrd | 2 +- - bin/flow-rpt2rrd | 2 +- - bin/flow-rptfmt | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -250b73e99e719fdeb26140e7f8ebab68963e243b -diff --git a/bin/flow-log2rrd b/bin/flow-log2rrd -index 0567ba5..db4fdda 100755 ---- a/bin/flow-log2rrd -+++ b/bin/flow-log2rrd -@@ -1,4 +1,4 @@ --#!/usr/local/bin/python -+#!/bin/env python - - import getopt - import os -diff --git a/bin/flow-rpt2rrd b/bin/flow-rpt2rrd -index 72a74c7..7698f2b 100755 ---- a/bin/flow-rpt2rrd -+++ b/bin/flow-rpt2rrd -@@ -1,4 +1,4 @@ --#!/usr/local/bin/python -+#!/bin/env python - - import getopt - import os -diff --git a/bin/flow-rptfmt b/bin/flow-rptfmt -index 047d1ba..f663fae 100755 ---- a/bin/flow-rptfmt -+++ b/bin/flow-rptfmt -@@ -1,4 +1,4 @@ --#!/usr/local/bin/python -+#!/bin/env python - - import sys - import string --- -1.3.3 - diff --git a/flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch b/flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch deleted file mode 100644 index 6ec8037..0000000 --- a/flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch +++ /dev/null @@ -1,189 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:49:45 +0400 -Subject: [PATCH 2/8] Fix an "invalid lvalue in assignment" compile error. - ---- - - lib/ftchash.c | 2 +- - lib/ftio.c | 4 ++-- - lib/ftlib.h | 3 ++- - lib/fttlv.c | 34 +++++++++++++++++----------------- - lib/support.c | 5 +++++ - 5 files changed, 27 insertions(+), 21 deletions(-) - -075301dae1b92110e6cc339b0df88b7fc82c31a6 -diff --git a/lib/ftchash.c b/lib/ftchash.c -index 9cc7efa..28bafbf 100644 ---- a/lib/ftchash.c -+++ b/lib/ftchash.c -@@ -326,7 +326,7 @@ void *ftchash_foreach(struct ftchash *ft - (char*)ftch->traverse_chunk->base+ftch->traverse_chunk->next) { - - ret = ftch->traverse_rec; -- (char*)ftch->traverse_rec += ftch->d_size; -+ ftch->traverse_rec = vpadd(ftch->traverse_rec, ftch->d_size); - return ret; - - } else { -diff --git a/lib/ftio.c b/lib/ftio.c -index f6c739c..1082416 100644 ---- a/lib/ftio.c -+++ b/lib/ftio.c -@@ -2267,7 +2267,7 @@ int readn(register int fd, register void - break; - - nleft -= nread; -- (char*)ptr += nread; -+ ptr = vpadd(ptr, nread); - } - return (nbytes - nleft); - } /* readn */ -@@ -2292,7 +2292,7 @@ int writen(register int fd, register voi - return(nwritten); /* error */ - - nleft -= nwritten; -- (char*)ptr += nwritten; -+ ptr = vpadd(ptr,nwritten); - } - return(nbytes - nleft); - } /* writen */ -diff --git a/lib/ftlib.h b/lib/ftlib.h -index f91ad0a..66bf2f3 100644 ---- a/lib/ftlib.h -+++ b/lib/ftlib.h -@@ -152,7 +152,6 @@ #define FT_PDU_V8_11_MAXFLOWS 44 /* max - #define FT_PDU_V8_12_MAXFLOWS 44 /* max records in V8 DST_PREFIX_TOS packet */ - #define FT_PDU_V8_13_MAXFLOWS 35 /* max records in V8 PREFIX_TOS packet */ - #define FT_PDU_V8_14_MAXFLOWS 35 /* max records in V8 PREFIX_PORT_TOS packet */ -- - #define FT_PDU_V8_1_VERSION 2 /* version of AS packet */ - #define FT_PDU_V8_2_VERSION 2 /* version of PROTO PORT packet */ - #define FT_PDU_V8_3_VERSION 2 /* version of SRC PREFIX packet */ -@@ -3029,6 +3028,8 @@ #ifndef IN_CLASSD_SSM - #define IN_CLASSD_SSM(i) (((u_int32_t)(i) & 0xff000000) == 0xe8000000) - #endif /* IN_CLASSD_SSM */ - -+void *vpadd(const void* v, const int change); -+ - /* MACHINE DEPENDANT */ - #define fmt_uint fmt_uint32 - -diff --git a/lib/fttlv.c b/lib/fttlv.c -index 7035813..330a783 100644 ---- a/lib/fttlv.c -+++ b/lib/fttlv.c -@@ -68,10 +68,10 @@ int fttlv_enc_uint32(void *buf, int buf_ - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&v, buf, 4); - -@@ -107,10 +107,10 @@ int fttlv_enc_uint16(void *buf, int buf_ - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&v, buf, 2); - -@@ -145,10 +145,10 @@ int fttlv_enc_uint8(void *buf, int buf_s - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&v, buf, 1); - -@@ -183,10 +183,10 @@ int fttlv_enc_str(void *buf, int buf_siz - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(v, buf, len); - -@@ -230,16 +230,16 @@ int fttlv_enc_ifname(void *buf, int buf_ - return -1; - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&ip, buf, 4); -- (char*)buf += 4; -+ buf = vpadd(buf, 4); - - bcopy(&ifIndex, buf, 2); -- (char*)buf += 2; -+ buf = vpadd(buf, 2); - - bcopy(name, buf, n); - -@@ -287,19 +287,19 @@ int fttlv_enc_ifalias(void *buf, int buf - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&ip, buf, 4); -- (char*)buf += 4; -+ buf = vpadd(buf, 4); - - bcopy(&entries, buf, 2); -- (char*)buf += 2; -+ buf = vpadd(buf, 2); - - bcopy(ifIndex_list, buf, esize); -- (char*)buf += esize; -+ buf = vpadd(buf, esize); - - bcopy(name, buf, n); - -diff --git a/lib/support.c b/lib/support.c -index a32ffe7..2e1db9f 100644 ---- a/lib/support.c -+++ b/lib/support.c -@@ -736,3 +736,8 @@ int udp_cksum(struct ip *ip, struct udph - return sum; - } /* udp_cksum */ - -+// void pointer add -+ -+void * vpadd(const void *v, const int change) { -+ return (void *) (((char*) v) + change); -+} --- -1.3.3 - diff --git a/flow-tools-0.68-0003-Avoid-external-debug-variable.patch b/flow-tools-0.68-0003-Avoid-external-debug-variable.patch deleted file mode 100644 index 906b9db..0000000 --- a/flow-tools-0.68-0003-Avoid-external-debug-variable.patch +++ /dev/null @@ -1,31 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:51:50 +0400 -Subject: [PATCH 3/8] Avoid external "debug" variable. - -When buildinf flow-tools as bunch of binaries depending on shared library, -extern int debug shows in too much places. Disable it for now until better -solution will be developed. - ---- - - lib/ftfile.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -1707e321511feb9b7cb117fb6be4d8bcfa8996de -diff --git a/lib/ftfile.c b/lib/ftfile.c -index 2f3ae76..f25e849 100644 ---- a/lib/ftfile.c -+++ b/lib/ftfile.c -@@ -53,7 +53,7 @@ #endif - - int load_dir(char *prefix, struct ftfile_entries *fte, int flags, int *depth); - --extern int debug; -+#define debug 0 - - /* - * function: ftfile_entry_new --- -1.3.3 - diff --git a/flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch b/flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch deleted file mode 100644 index d574f1b..0000000 --- a/flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch +++ /dev/null @@ -1,236 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:53:33 +0400 -Subject: [PATCH 4/8] Make flow-tools more FHS-compliant and buildable by newer toolchain. - -Here we are switching to new toolchain (autoconf, automake & libtool), -changing some paths (obviously config files should be put in sysconfdir - -usually etc - and not in localstatedir which is var) - ---- - - configs/Makefile.am | 4 ++-- - configure.in | 45 ++++++++++++++++++++++++++++++--------------- - lib/Makefile.am | 10 +++++----- - lib/ftpaths.h.in | 22 +++++++++++----------- - src/Makefile.am | 12 ++++++------ - 5 files changed, 54 insertions(+), 39 deletions(-) - -b03c8b4e55c5f6082ff427559ae5a8bc3e95b8f0 -diff --git a/configs/Makefile.am b/configs/Makefile.am -index 9b06b52..6ca85cc 100644 ---- a/configs/Makefile.am -+++ b/configs/Makefile.am -@@ -1,6 +1,6 @@ --ftsymdir=$(localstatedir)/sym -+ftsymdir=$(sysconfdir)/sym - ftsym_DATA = ip-prot.sym ip-type.sym tcp-port.sym asn.sym tag.sym - --ftcfgdir=$(localstatedir)/cfg -+ftcfgdir=$(sysconfdir)/cfg - ftcfg_DATA = map.cfg tag.cfg filter.cfg stat.cfg mask.cfg xlate.cfg - -diff --git a/configure.in b/configure.in -index 01987e8..597bbbd 100644 ---- a/configure.in -+++ b/configure.in -@@ -1,31 +1,32 @@ - dnl Process this file with autoconf to produce a configure script. --AC_INIT(lib/bit1024.c) -+AC_INIT(flow-tools, 0.68) - --AC_PREFIX_DEFAULT(/usr/local/netflow) -+AC_PREFIX_DEFAULT(/usr/local/flow-tools) - --AM_INIT_AUTOMAKE(flow-tools, 0.68) --AM_CONFIG_HEADER(lib/ftconfig.h:lib/ftconfig.h.in) -+AM_INIT_AUTOMAKE -+AM_CONFIG_HEADER(lib/ftconfig.h) - --CFLAGS="-g -Wall" -+dnl CFLAGS="-g -Wall" - - dnl Checks for programs. -+AC_PROG_LIBTOOL - AC_PROG_CC - AC_PROG_INSTALL - AC_PROG_MAKE_SET - AC_PROG_YACC - YACC="$YACC -d" --AC_PROG_RANLIB - AM_PROG_LEX - - AC_SUBST(YLIB) - AC_SUBST(MYSQLLIB) - AC_SUBST(MYSQLCFLAGS) --AC_SUBST(MYSQLINCLUDE) -+AC_SUBST(MYSQLLDFLAGS) - AC_SUBST(PGSQLLIB) - AC_SUBST(PGSQLCFLAGS) --AC_SUBST(PGSQLINCLUDE) -+AC_SUBST(PGSQLLDFLAGS) - AC_SUBST(CRYPTOLIB) - AC_SUBST(OPENSSLINCLUDE) -+AC_SUBST(OPENSSLLDFLAGS) - - dnl extra argument: --with-mysql - WITH_MYSQL= -@@ -66,37 +67,51 @@ AC_ARG_WITH(openssl, - dnl Checks for libraries. - - if test "x$WHERE_MYSQL" != "x"; then -- LIBS="-L$WHERE_MYSQL/lib/mysql" -+ old_LIBS="$LIBS" -+ old_LDFLAGS="$LDFLAGS" -+ LDFLAGS="$LDFLAGS -L$WHERE_MYSQL/lib/mysql" - AC_CHECK_LIB(mysqlclient, my_init, - [ -- MYSQLCFLAGS="-L$WHERE_MYSQL/lib/mysql -I$WHERE_MYSQL/include/mysql" -+ MYSQLCFLAGS="-I$WHERE_MYSQL/include/mysql" -+ MYSQLLDFLAGS="-L$WHERE_MYSQL/lib/mysql" - MYSQLLIB="-lmysqlclient" - AC_DEFINE(HAVE_MYSQL) - ] - ) -+ LIBS="$old_LIBS" -+ LDFLAGS="$old_LDFLAGS" - fi - - if test "x$WHERE_OPENSSL" != "x"; then -- LIBS="-L$WHERE_OPENSSL/lib" -+ old_LIBS="$LIBS" -+ old_LDFLAGS="$LDFLAGS" -+ LDFLAGS="$LDFLAGS -L$WHERE_OPENSSL/lib" - AC_CHECK_LIB(crypto, EVP_EncryptUpdate, - [ -- OPENSSLCFLAGS="-L$WHERE_OPENSSL/lib -I$WHERE_OPENSSL/include" -+ OPENSSLCFLAGS="-I$WHERE_OPENSSL/include" -+ OPENSSLLDFLAGS="-L$WHERE_OPENSSL/lib" - CRYPTOLIB="-lcrypto" - AC_DEFINE(HAVE_OPENSSL) - ] - ) -+ LIBS="$old_LIBS" -+ LDFLAGS="$old_LDFLAGS" - fi - -- - if test "x$WHERE_PGSQL" != "x"; then -- LIBS="-L$WHERE_PGSQL/lib/pgsql" -+ old_LIBS="$LIBS" -+ old_LDFLAGS="$LDFLAGS" -+ LDFLAGS="-L$WHERE_PGSQL/lib/pgsql" - AC_CHECK_LIB(pq, PQsetdbLogin, - [ -- PGSQLCFLAGS="-L$WHERE_PGSQL/lib -I$WHERE_PGSQL/include/pgsql" -+ PGSQLCFLAGS="-I$WHERE_PGSQL/include/pgsql" -+ PGSQLLDFLAGS="-L$WHERE_PGSQL/lib" - PGSQLLIB="-lpq" - AC_DEFINE(HAVE_PGSQL) - ] - ) -+ LIBS="$old_LIBS" -+ LDFLAGS="$old_LDFLAGS" - fi - - AC_CHECK_LIB(y, main,YLIB="$YLIB -ly",) -diff --git a/lib/Makefile.am b/lib/Makefile.am -index 08e684a..5a4727b 100644 ---- a/lib/Makefile.am -+++ b/lib/Makefile.am -@@ -2,17 +2,17 @@ ## Process this file with automake to pr - - #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs - #AM_CFLAGS=-O2 --AM_CFLAGS=-g -Wall -+#AM_CFLAGS=-g -Wall - --DEFS=-I. -I$(srcdir)/lib -+#DEFS=-I. -I$(srcdir)/lib - - include_HEADERS = ftlib.h ftqueue.h radix.h ftpaths.h ftconfig.h --lib_LIBRARIES = libft.a -+lib_LTLIBRARIES = libft.la - --libft_a_SOURCES = ftio.c ftswap.c ftencode.c ftdecode.c ftprof.c bit1024.c \ -+libft_la_SOURCES = ftio.c ftswap.c ftencode.c ftdecode.c ftprof.c bit1024.c \ - fmt.c support.c ftfile.c fttlv.c ftmap.c ftrec.c fterr.c \ - ftchash.c ftsym.c radix.c fttag.c ftfil.c ftstat.c getdate.c ftxfield.c\ - ftmask.c ftvar.c ftxlate.c - --libft_a_LIBADD = @LIBOBJS@ -+libft_la_LIBADD = $(LTLIBOBJS) $(CRYPTOLIB) - -diff --git a/lib/ftpaths.h.in b/lib/ftpaths.h.in -index ae8e30a..b0c91b1 100644 ---- a/lib/ftpaths.h.in -+++ b/lib/ftpaths.h.in -@@ -29,17 +29,17 @@ - #ifndef FTPATHS_H - #define FTPATHS_H - --#define FT_PATH_CFG_MAP "@localstatedir@/cfg/map.cfg" --#define FT_PATH_CFG_TAG "@localstatedir@/cfg/tag.cfg" --#define FT_PATH_CFG_FILTER "@localstatedir@/cfg/filter.cfg" --#define FT_PATH_CFG_STAT "@localstatedir@/cfg/stat.cfg" --#define FT_PATH_CFG_MASK "@localstatedir@/cfg/mask.cfg" --#define FT_PATH_CFG_XLATE "@localstatedir@/cfg/xlate.cfg" -+#define FT_PATH_CFG_MAP "@sysconfdir@/cfg/map.cfg" -+#define FT_PATH_CFG_TAG "@sysconfdir@/cfg/tag.cfg" -+#define FT_PATH_CFG_FILTER "@sysconfdir@/cfg/filter.cfg" -+#define FT_PATH_CFG_STAT "@sysconfdir@/cfg/stat.cfg" -+#define FT_PATH_CFG_MASK "@sysconfdir@/cfg/mask.cfg" -+#define FT_PATH_CFG_XLATE "@sysconfdir@/cfg/xlate.cfg" - --#define FT_PATH_SYM_IP_PROT "@localstatedir@/sym/ip-prot.sym" --#define FT_PATH_SYM_IP_TYPE "@localstatedir@/sym/ip-type.sym" --#define FT_PATH_SYM_TCP_PORT "@localstatedir@/sym/tcp-port.sym" --#define FT_PATH_SYM_ASN "@localstatedir@/sym/asn.sym" --#define FT_PATH_SYM_TAG "@localstatedir@/sym/tag.sym" -+#define FT_PATH_SYM_IP_PROT "@sysconfdir@/sym/ip-prot.sym" -+#define FT_PATH_SYM_IP_TYPE "@sysconfdir@/sym/ip-type.sym" -+#define FT_PATH_SYM_TCP_PORT "@sysconfdir@/sym/tcp-port.sym" -+#define FT_PATH_SYM_ASN "@sysconfdir@/sym/asn.sym" -+#define FT_PATH_SYM_TAG "@sysconfdir@/sym/tag.sym" - - #endif /* FTPATHS_H */ -diff --git a/src/Makefile.am b/src/Makefile.am -index c5ac63b..f85f427 100644 ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -7,7 +7,7 @@ DEFS=-I$(srcdir)/../lib -L$(srcdir)/../l - - #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs - #AM_CFLAGS=-O2 --AM_CFLAGS=-g -Wall -+#AM_CFLAGS=-g -Wall - - bin_PROGRAMS = flow-capture flow-cat flow-stat flow-print flow-dscan \ - flow-send flow-receive flow-gen flow-expire \ -@@ -101,9 +101,9 @@ flow_filter_LDADD = -lft @LEXLIB@ @YLIB - flow_filter_DEPENDENCIES = ftbuild.h - - flow_export_SOURCES = flow-export.c --flow_export_LDFLAGS = -L../lib --flow_export_CFLAGS = @MYSQLCFLAGS@ @PGSQLCFLAGS@ --flow_export_LDADD = -lft @MYSQLLIB@ @PGSQLLIB@ -+flow_export_LDFLAGS = -L../lib $(MYSQLLDFLAGS) $(PGSQLLDFLAGS) -+flow_export_CFLAGS = $(MYSQLCFLAGS) $(PGSQLCFLAGS) -+flow_export_LDADD = -lft $(MYSQLLIB) $(PGSQLLIB) - flow_export_DEPENDENCIES = ftbuild.h - - flow_header_SOURCES = flow-header.c -@@ -117,8 +117,8 @@ flow_split_LDADD = -lft - flow_split_DEPENDENCIES = ftbuild.h - - flow_xlate_SOURCES = flow-xlate.c --flow_xlate_LDFLAGS = -L../lib --flow_xlate_LDADD = -lft @CRYPTOLIB@ -+flow_xlate_LDFLAGS = -L../lib $(CRYPTOLDFLAGS) -+flow_xlate_LDADD = -lft $(CRYPTOLIB) - flow_xlate_DEPENDENCIES = ftbuild.h - - flow_tag_SOURCES = flow-tag.c --- -1.3.3 - diff --git a/flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch b/flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch deleted file mode 100644 index e48579c..0000000 --- a/flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch +++ /dev/null @@ -1,58 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:55:20 +0400 -Subject: [PATCH 5/8] Fix breakage on 64bit platforms. - -Due to variable size differences it is nesessary to create temporary -variable of type time_t to hold the time. - ---- - - lib/ftfile.c | 8 +++++--- - 1 files changed, 5 insertions(+), 3 deletions(-) - -bc0750fd6719d64377e578373ad4325e1440eb6a -diff --git a/lib/ftfile.c b/lib/ftfile.c -index f25e849..ec17771 100644 ---- a/lib/ftfile.c -+++ b/lib/ftfile.c -@@ -413,16 +413,17 @@ void ftfile_pathname(char *buf, int bsiz - int done, u_int32 ftime) - { - struct tm *tm; -+ time_t _t = (time_t) ftime; - char *prefix, dbuf[64]; - long gmt_val; - char gmt_sign; - int tm_gmtoff; - -- if (!(tm = localtime ((time_t*)&ftime))) { -+ if (!(tm = localtime (&_t))) { - snprintf(buf, bsize, "."); - } - -- tm_gmtoff = get_gmtoff(ftime); -+ tm_gmtoff = get_gmtoff(_t); - - /* compute GMT offset */ - if (tm_gmtoff >= 0) { -@@ -502,6 +503,7 @@ void ftfile_pathname(char *buf, int bsiz - int ftfile_mkpath(u_int32 ftime, int nest) - { - struct tm *tm; -+ time_t _t = (time_t) ftime; - char buf[32]; - - /* no directories */ -@@ -512,7 +514,7 @@ int ftfile_mkpath(u_int32 ftime, int nes - if ((nest > 3) || (nest < -3)) - return -1; - -- if (!(tm = localtime ((time_t*)&ftime))) -+ if (!(tm = localtime (&_t))) - return -1; - - if (nest == -1) --- -1.3.3 - diff --git a/flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch b/flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch deleted file mode 100644 index 7cdfb09..0000000 --- a/flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch +++ /dev/null @@ -1,30 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:57:01 +0400 -Subject: [PATCH 6/8] Fix unitialized variable in flow-send - -Variable hdr_len in flow-send.c was not initialized prior to usage in case -we aren't using spoofing. Fixed. - ---- - - src/flow-send.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -e9825a203d8b36576c8b8e92b4ab0ceb74cd0b05 -diff --git a/src/flow-send.c b/src/flow-send.c -index 83ca926..ad87024 100644 ---- a/src/flow-send.c -+++ b/src/flow-send.c -@@ -76,7 +76,7 @@ int main(int argc, char **argv) - u_int32 privacy_mask; - unsigned int v1, v2, one; - int i, n, ret, tx_delay, udp_sock; -- int src_ip_spoof, hdr_len; -+ int src_ip_spoof, hdr_len = 0; - void *rec; - - /* init fterr */ --- -1.3.3 - diff --git a/flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch b/flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch deleted file mode 100644 index 3941844..0000000 --- a/flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch +++ /dev/null @@ -1,63 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Ben Feinstein -Date: Sat, 10 Jun 2006 20:59:13 +0400 -Subject: [PATCH 7/8] Add extra debugging to ftpdu_verify() - ---- - - lib/ftdecode.c | 16 +++++++++++++--- - 1 files changed, 13 insertions(+), 3 deletions(-) - -6c73ed47b26944f97fa8d5cfed1719b8146c124a -diff --git a/lib/ftdecode.c b/lib/ftdecode.c -index ff6b0cf..8884db9 100644 ---- a/lib/ftdecode.c -+++ b/lib/ftdecode.c -@@ -122,8 +122,10 @@ int ftpdu_verify(struct ftpdu *ftpdu) - ret = -1; - - /* enough bytes to decode the count and version? */ -- if (ftpdu->bused < 4) -+ if (ftpdu->bused < 4) { -+ fterr_warnx("not enough bytes to decode the count and version."); - goto ftpdu_verify_out_quick; -+ } - - ph = (struct ftpdu_header*)&ftpdu->buf; - -@@ -158,15 +160,22 @@ #endif /* LITTLE_ENDIAN */ - case 5: - - /* max PDU's in record */ -- if (ph->count > FT_PDU_V5_MAXFLOWS) -+ if (ph->count > FT_PDU_V5_MAXFLOWS) { -+ fterr_warnx("too many pdus (%d) in record, max %d", ph->count, -+ FT_PDU_V5_MAXFLOWS); - goto ftpdu_verify_out; -+ } -+ - - size = offsetof(struct ftpdu_v5, records) + - ph->count * sizeof (struct ftrec_v5); - - /* PDU received size == PDU expected size? */ -- if (size != ftpdu->bused) -+ if (size != ftpdu->bused) { -+ fterr_warnx("pdu received size was wrong. expected %d got %d", -+ ftpdu->bused, size); - goto ftpdu_verify_out; -+ } - - ftpdu->ftv.d_version = 5; - ftpdu->decodef = fts3rec_pdu_v5_decode; -@@ -516,6 +525,7 @@ #endif /* LITTLE_ENDIAN */ - break; /* 8 */ - - default: -+ fterr_warnx("ftpdu version not set."); - goto ftpdu_verify_out; - - } /* switch ph->version */ --- -1.3.3 - diff --git a/flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch b/flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch deleted file mode 100644 index 3486689..0000000 --- a/flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch +++ /dev/null @@ -1,31 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Ben Feinstein -Date: Sat, 10 Jun 2006 21:01:04 +0400 -Subject: [PATCH 8/8] Fix unitialized variable in flow-export.c - -Without this patch, flow-export utility will misformat its SQL output when -using the MySQL output format causing the export to fail. Specifcally, the -commas between the fields are getting mangled. - ---- - - src/flow-export.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -bcb0b33cc9bb9427726db853a093d081dc77a1c6 -diff --git a/src/flow-export.c b/src/flow-export.c -index 52ae4d2..22b0330 100644 ---- a/src/flow-export.c -+++ b/src/flow-export.c -@@ -961,7 +961,7 @@ #endif /* PGSQL */ - - int fmt_xfields_type(char *buf, u_int64 xfield) - { -- int comma; -+ int comma = 0; - - buf[0] = 0; - --- -1.3.3 - diff --git a/flow-tools-0.68-getopt.patch b/flow-tools-0.68-getopt.patch deleted file mode 100644 index cd677c4..0000000 --- a/flow-tools-0.68-getopt.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -urN flow-tools-0.68/src/flow-header.c flow-tools-0.68.s/src/flow-header.c ---- flow-tools-0.68/src/flow-header.c 2003-04-02 22:03:02.000000000 +0400 -+++ flow-tools-0.68.s/src/flow-header.c 2007-03-24 23:35:30.000000000 +0300 -@@ -32,6 +32,7 @@ - - #include - #include -+#include - - void usage(void); - diff --git a/flow-tools-0.68.rpt72.patch b/flow-tools-0.68.rpt72.patch deleted file mode 100644 index 6ab2bf4..0000000 --- a/flow-tools-0.68.rpt72.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- flow-tools-0.68/lib/ftstat.c.orig 2005-05-10 21:48:12.000000000 +0600 -+++ flow-tools-0.68/lib/ftstat.c 2006-04-10 14:59:28.000000000 +0600 -@@ -11673,10 +11673,10 @@ - ftch_recprefix_tag, ftch_recprefix_tagp); - - FT_RECGET_DSTADDR(cur,rec,*fo); -- FT_RECGET_DST_TAG(cur,rec,*fo); -+ FT_RECGET_SRC_TAG(cur,rec,*fo); - - ftch_recprefix_tag.prefix = cur.dstaddr; -- ftch_recprefix_tag.tag = cur.dst_tag; -+ ftch_recprefix_tag.tag = cur.src_tag; - - /* only use mask if option set */ - if (rpt->options & (FT_STAT_OPT_DST_PREFIX_MASK|FT_STAT_OPT_DST_PREFIX_LEN)) { diff --git a/flow-tools.spec b/flow-tools.spec index 8991c5b..9631bb3 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,26 +1,16 @@ -Version: 0.68 +%define rcsuffix -rc2 +Version: 0.68.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 16%{?dist} +Release: 0.1.rc2%{?dist} Group: Applications/System License: BSD -URL: http://www.splintered.net/sw/flow-tools/ -Source0: ftp://ftp.eng.oar.net/pub/flow-tools/flow-tools-%{version}.tar.gz -Patch1: flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch -Patch2: flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch -Patch3: flow-tools-0.68-0003-Avoid-external-debug-variable.patch -Patch4: flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch -Patch5: flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch -Patch6: flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch -Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch -Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch -Patch9: flow-tools-0.68.rpt72.patch -Patch10: flow-tools-0.68-getopt.patch - +URL: http://code.google.com/p/%{name}/ +Source0: http://%{name}.googlecode.com/files/%{name}-%{version}%{rcsuffix}.tar.bz2 Requires: rrdtool-python - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: openssl-devel mysql-devel postgresql-devel autoconf automake libtool zlib-devel bison flex tcp_wrappers +BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel +BuildRequires: bison flex tcp_wrappers +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description Flow-tools is library and a collection of programs used to collect, @@ -49,28 +39,24 @@ This package contains header files required to build applications that use libft. %prep -%setup -q -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 +%setup -qn %{name}-%{version}%{rcsuffix} %build -autoreconf -f -i -s -%configure --localstatedir=%{_localstatedir}/ft --sysconfdir=%{_sysconfdir}/flow-tools --enable-static=no --with-mysql --with-pgsql --with-openssl +%configure \ + --localstatedir=%{_localstatedir}/%{name} \ + --sysconfdir=%{_sysconfdir}/%{name} \ + --enable-static=no \ + --with-mysql \ + --with-postgresql \ + --with-openssl + make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -%makeinstall localstatedir=$RPM_BUILD_ROOT%{_localstatedir}/ft sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}/flow-tools +make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/ft +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/%{name} %clean rm -rf $RPM_BUILD_ROOT @@ -81,16 +67,19 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -%doc README TODO COPYING SECURITY ChangeLog docs/*.html +%doc README README.fork INSTALL TODO COPYING SECURITY ChangeLog ChangeLog.old +%doc docs/*.html %{_mandir}/man1/* %{_bindir}/* %{_libdir}/*.so.* -%dir %{_sysconfdir}/flow-tools/ -%dir %{_sysconfdir}/flow-tools/cfg/ -%dir %{_sysconfdir}/flow-tools/sym/ -%config(noreplace) %{_sysconfdir}/flow-tools/cfg/* -%config(noreplace) %{_sysconfdir}/flow-tools/sym/* -%{_localstatedir}/ft/ +%dir %{_sysconfdir}/%{name}/ +%dir %{_sysconfdir}/%{name}/cfg/ +%dir %{_sysconfdir}/%{name}/sym/ +%config(noreplace) %{_sysconfdir}/%{name}/cfg/* +%config(noreplace) %{_sysconfdir}/%{name}/sym/* +%{_localstatedir}/%{name}/ +%dir %{_datadir}/%{name}/ +%{_datadir}/%{name}/* %files devel %defattr(-,root,root,-) @@ -98,6 +87,11 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Sun Jul 15 2007 Paul P Komkoff Jr - 0.68.1-0.1.rc2 +- Switch to 0.68.1 fork +- Drop all patches +- Sanitize spec + * Sun Mar 25 2007 Paul P Komkoff Jr - 0.68-16 - getopt() is now in unistd.h diff --git a/sources b/sources index dba332c..a3056e1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c9e0a8b53c79611b6bffcb9d510a5a38 flow-tools-0.68.tar.gz +896a9debe94d02816c79c1482a741412 flow-tools-0.68.1-rc2.tar.bz2 From b8684adba590cc3d8e2b29fb37239290841dc1d2 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Mon, 16 Jul 2007 07:26:28 +0000 Subject: [PATCH 012/109] flow-tools-0.68.1-rc3 --- .cvsignore | 2 +- flow-tools.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 73c90d6..6c29bdf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.1-rc2.tar.bz2 +flow-tools-0.68.1-rc3.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index 9631bb3..602ed70 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,8 +1,8 @@ -%define rcsuffix -rc2 +%define rcsuffix -rc3 Version: 0.68.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 0.1.rc2%{?dist} +Release: 0.1.rc3%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -87,6 +87,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Sun Jul 15 2007 Paul P Komkoff Jr - 0.68.1-0.1.rc3 +- New upstream rc + * Sun Jul 15 2007 Paul P Komkoff Jr - 0.68.1-0.1.rc2 - Switch to 0.68.1 fork - Drop all patches diff --git a/sources b/sources index a3056e1..4e4af49 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -896a9debe94d02816c79c1482a741412 flow-tools-0.68.1-rc2.tar.bz2 +7f826eb020fcba67ed4d323a67a99cd8 flow-tools-0.68.1-rc3.tar.bz2 From bf685ee6273dcf0fe6f4fb4fc0a635af7313dbc1 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 5 Aug 2007 10:20:27 +0000 Subject: [PATCH 013/109] flow-tools 0.68.1-1 --- .cvsignore | 2 +- flow-tools.spec | 10 ++++++---- sources | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.cvsignore b/.cvsignore index 6c29bdf..dfa1622 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.1-rc3.tar.bz2 +flow-tools-0.68.1.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index 602ed70..f6c4fa4 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,12 +1,11 @@ -%define rcsuffix -rc3 Version: 0.68.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 0.1.rc3%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ -Source0: http://%{name}.googlecode.com/files/%{name}-%{version}%{rcsuffix}.tar.bz2 +Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Requires: rrdtool-python BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel BuildRequires: bison flex tcp_wrappers @@ -39,7 +38,7 @@ This package contains header files required to build applications that use libft. %prep -%setup -qn %{name}-%{version}%{rcsuffix} +%setup -qn %{name}-%{version} %build %configure \ @@ -87,6 +86,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Sun Aug 5 2007 Paul P Komkoff Jr - 0.68.1-1 +- New upstream release + * Sun Jul 15 2007 Paul P Komkoff Jr - 0.68.1-0.1.rc3 - New upstream rc diff --git a/sources b/sources index 4e4af49..70affe8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7f826eb020fcba67ed4d323a67a99cd8 flow-tools-0.68.1-rc3.tar.bz2 +b8388d0f81ce49e4ca97d9f79da3a2a5 flow-tools-0.68.1.tar.bz2 From 928569180f0dd7730cdbf1b66be341d140e19a91 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 5 Aug 2007 10:58:58 +0000 Subject: [PATCH 014/109] flow-tools 0.68.1-1 --- .cvsignore | 2 +- flow-tools.spec | 79 ++++++++++++++++++++++++------------------------- sources | 2 +- 3 files changed, 41 insertions(+), 42 deletions(-) diff --git a/.cvsignore b/.cvsignore index 377cc43..dfa1622 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.tar.gz +flow-tools-0.68.1.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index 8991c5b..f6c4fa4 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,26 +1,15 @@ -Version: 0.68 +Version: 0.68.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 16%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD -URL: http://www.splintered.net/sw/flow-tools/ -Source0: ftp://ftp.eng.oar.net/pub/flow-tools/flow-tools-%{version}.tar.gz -Patch1: flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch -Patch2: flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch -Patch3: flow-tools-0.68-0003-Avoid-external-debug-variable.patch -Patch4: flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch -Patch5: flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch -Patch6: flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch -Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch -Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch -Patch9: flow-tools-0.68.rpt72.patch -Patch10: flow-tools-0.68-getopt.patch - +URL: http://code.google.com/p/%{name}/ +Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Requires: rrdtool-python - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: openssl-devel mysql-devel postgresql-devel autoconf automake libtool zlib-devel bison flex tcp_wrappers +BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel +BuildRequires: bison flex tcp_wrappers +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description Flow-tools is library and a collection of programs used to collect, @@ -49,28 +38,24 @@ This package contains header files required to build applications that use libft. %prep -%setup -q -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 +%setup -qn %{name}-%{version} %build -autoreconf -f -i -s -%configure --localstatedir=%{_localstatedir}/ft --sysconfdir=%{_sysconfdir}/flow-tools --enable-static=no --with-mysql --with-pgsql --with-openssl +%configure \ + --localstatedir=%{_localstatedir}/%{name} \ + --sysconfdir=%{_sysconfdir}/%{name} \ + --enable-static=no \ + --with-mysql \ + --with-postgresql \ + --with-openssl + make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -%makeinstall localstatedir=$RPM_BUILD_ROOT%{_localstatedir}/ft sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}/flow-tools +make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/ft +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/%{name} %clean rm -rf $RPM_BUILD_ROOT @@ -81,16 +66,19 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -%doc README TODO COPYING SECURITY ChangeLog docs/*.html +%doc README README.fork INSTALL TODO COPYING SECURITY ChangeLog ChangeLog.old +%doc docs/*.html %{_mandir}/man1/* %{_bindir}/* %{_libdir}/*.so.* -%dir %{_sysconfdir}/flow-tools/ -%dir %{_sysconfdir}/flow-tools/cfg/ -%dir %{_sysconfdir}/flow-tools/sym/ -%config(noreplace) %{_sysconfdir}/flow-tools/cfg/* -%config(noreplace) %{_sysconfdir}/flow-tools/sym/* -%{_localstatedir}/ft/ +%dir %{_sysconfdir}/%{name}/ +%dir %{_sysconfdir}/%{name}/cfg/ +%dir %{_sysconfdir}/%{name}/sym/ +%config(noreplace) %{_sysconfdir}/%{name}/cfg/* +%config(noreplace) %{_sysconfdir}/%{name}/sym/* +%{_localstatedir}/%{name}/ +%dir %{_datadir}/%{name}/ +%{_datadir}/%{name}/* %files devel %defattr(-,root,root,-) @@ -98,6 +86,17 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Sun Aug 5 2007 Paul P Komkoff Jr - 0.68.1-1 +- New upstream release + +* Sun Jul 15 2007 Paul P Komkoff Jr - 0.68.1-0.1.rc3 +- New upstream rc + +* Sun Jul 15 2007 Paul P Komkoff Jr - 0.68.1-0.1.rc2 +- Switch to 0.68.1 fork +- Drop all patches +- Sanitize spec + * Sun Mar 25 2007 Paul P Komkoff Jr - 0.68-16 - getopt() is now in unistd.h diff --git a/sources b/sources index dba332c..70affe8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c9e0a8b53c79611b6bffcb9d510a5a38 flow-tools-0.68.tar.gz +b8388d0f81ce49e4ca97d9f79da3a2a5 flow-tools-0.68.1.tar.bz2 From b439f18f8be2a2f09dbbb7f057d0c349ad1ec6fb Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 5 Aug 2007 10:58:58 +0000 Subject: [PATCH 015/109] flow-tools 0.68.1-1 --- .cvsignore | 2 +- flow-tools.spec | 79 ++++++++++++++++++++++++------------------------- sources | 2 +- 3 files changed, 41 insertions(+), 42 deletions(-) diff --git a/.cvsignore b/.cvsignore index 377cc43..dfa1622 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.tar.gz +flow-tools-0.68.1.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index 8991c5b..f6c4fa4 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,26 +1,15 @@ -Version: 0.68 +Version: 0.68.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 16%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD -URL: http://www.splintered.net/sw/flow-tools/ -Source0: ftp://ftp.eng.oar.net/pub/flow-tools/flow-tools-%{version}.tar.gz -Patch1: flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch -Patch2: flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch -Patch3: flow-tools-0.68-0003-Avoid-external-debug-variable.patch -Patch4: flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch -Patch5: flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch -Patch6: flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch -Patch7: flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch -Patch8: flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch -Patch9: flow-tools-0.68.rpt72.patch -Patch10: flow-tools-0.68-getopt.patch - +URL: http://code.google.com/p/%{name}/ +Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Requires: rrdtool-python - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: openssl-devel mysql-devel postgresql-devel autoconf automake libtool zlib-devel bison flex tcp_wrappers +BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel +BuildRequires: bison flex tcp_wrappers +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description Flow-tools is library and a collection of programs used to collect, @@ -49,28 +38,24 @@ This package contains header files required to build applications that use libft. %prep -%setup -q -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 +%setup -qn %{name}-%{version} %build -autoreconf -f -i -s -%configure --localstatedir=%{_localstatedir}/ft --sysconfdir=%{_sysconfdir}/flow-tools --enable-static=no --with-mysql --with-pgsql --with-openssl +%configure \ + --localstatedir=%{_localstatedir}/%{name} \ + --sysconfdir=%{_sysconfdir}/%{name} \ + --enable-static=no \ + --with-mysql \ + --with-postgresql \ + --with-openssl + make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -%makeinstall localstatedir=$RPM_BUILD_ROOT%{_localstatedir}/ft sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}/flow-tools +make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/ft +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/%{name} %clean rm -rf $RPM_BUILD_ROOT @@ -81,16 +66,19 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -%doc README TODO COPYING SECURITY ChangeLog docs/*.html +%doc README README.fork INSTALL TODO COPYING SECURITY ChangeLog ChangeLog.old +%doc docs/*.html %{_mandir}/man1/* %{_bindir}/* %{_libdir}/*.so.* -%dir %{_sysconfdir}/flow-tools/ -%dir %{_sysconfdir}/flow-tools/cfg/ -%dir %{_sysconfdir}/flow-tools/sym/ -%config(noreplace) %{_sysconfdir}/flow-tools/cfg/* -%config(noreplace) %{_sysconfdir}/flow-tools/sym/* -%{_localstatedir}/ft/ +%dir %{_sysconfdir}/%{name}/ +%dir %{_sysconfdir}/%{name}/cfg/ +%dir %{_sysconfdir}/%{name}/sym/ +%config(noreplace) %{_sysconfdir}/%{name}/cfg/* +%config(noreplace) %{_sysconfdir}/%{name}/sym/* +%{_localstatedir}/%{name}/ +%dir %{_datadir}/%{name}/ +%{_datadir}/%{name}/* %files devel %defattr(-,root,root,-) @@ -98,6 +86,17 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Sun Aug 5 2007 Paul P Komkoff Jr - 0.68.1-1 +- New upstream release + +* Sun Jul 15 2007 Paul P Komkoff Jr - 0.68.1-0.1.rc3 +- New upstream rc + +* Sun Jul 15 2007 Paul P Komkoff Jr - 0.68.1-0.1.rc2 +- Switch to 0.68.1 fork +- Drop all patches +- Sanitize spec + * Sun Mar 25 2007 Paul P Komkoff Jr - 0.68-16 - getopt() is now in unistd.h diff --git a/sources b/sources index dba332c..70affe8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c9e0a8b53c79611b6bffcb9d510a5a38 flow-tools-0.68.tar.gz +b8388d0f81ce49e4ca97d9f79da3a2a5 flow-tools-0.68.1.tar.bz2 From bf0bb0b54d3016a0866752e4fe0a794e2e35477f Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 5 Aug 2007 11:08:03 +0000 Subject: [PATCH 016/109] Delete old crap --- ...irst-line-of-included-python-scripts.patch | 48 ---- ...d-lvalue-in-assignment-compile-error.patch | 189 -------------- ...8-0003-Avoid-external-debug-variable.patch | 31 --- ...ant-and-buildable-by-newer-toolchain.patch | 236 ------------------ ...0005-Fix-breakage-on-64bit-platforms.patch | 58 ----- ...ix-unitialized-variable-in-flow-send.patch | 30 --- ...-Add-extra-debugging-to-ftpdu_verify.patch | 63 ----- ...nitialized-variable-in-flow-export.c.patch | 31 --- flow-tools-0.68-getopt.patch | 11 - flow-tools-0.68.rpt72.patch | 15 -- 10 files changed, 712 deletions(-) delete mode 100644 flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch delete mode 100644 flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch delete mode 100644 flow-tools-0.68-0003-Avoid-external-debug-variable.patch delete mode 100644 flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch delete mode 100644 flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch delete mode 100644 flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch delete mode 100644 flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch delete mode 100644 flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch delete mode 100644 flow-tools-0.68-getopt.patch delete mode 100644 flow-tools-0.68.rpt72.patch diff --git a/flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch b/flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch deleted file mode 100644 index 19e5c3b..0000000 --- a/flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch +++ /dev/null @@ -1,48 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:45:55 +0400 -Subject: [PATCH 1/8] Fix first line of included python scripts. - -We need to do this to allow execution on FHS-compliant systems. - ---- - - bin/flow-log2rrd | 2 +- - bin/flow-rpt2rrd | 2 +- - bin/flow-rptfmt | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -250b73e99e719fdeb26140e7f8ebab68963e243b -diff --git a/bin/flow-log2rrd b/bin/flow-log2rrd -index 0567ba5..db4fdda 100755 ---- a/bin/flow-log2rrd -+++ b/bin/flow-log2rrd -@@ -1,4 +1,4 @@ --#!/usr/local/bin/python -+#!/bin/env python - - import getopt - import os -diff --git a/bin/flow-rpt2rrd b/bin/flow-rpt2rrd -index 72a74c7..7698f2b 100755 ---- a/bin/flow-rpt2rrd -+++ b/bin/flow-rpt2rrd -@@ -1,4 +1,4 @@ --#!/usr/local/bin/python -+#!/bin/env python - - import getopt - import os -diff --git a/bin/flow-rptfmt b/bin/flow-rptfmt -index 047d1ba..f663fae 100755 ---- a/bin/flow-rptfmt -+++ b/bin/flow-rptfmt -@@ -1,4 +1,4 @@ --#!/usr/local/bin/python -+#!/bin/env python - - import sys - import string --- -1.3.3 - diff --git a/flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch b/flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch deleted file mode 100644 index 6ec8037..0000000 --- a/flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch +++ /dev/null @@ -1,189 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:49:45 +0400 -Subject: [PATCH 2/8] Fix an "invalid lvalue in assignment" compile error. - ---- - - lib/ftchash.c | 2 +- - lib/ftio.c | 4 ++-- - lib/ftlib.h | 3 ++- - lib/fttlv.c | 34 +++++++++++++++++----------------- - lib/support.c | 5 +++++ - 5 files changed, 27 insertions(+), 21 deletions(-) - -075301dae1b92110e6cc339b0df88b7fc82c31a6 -diff --git a/lib/ftchash.c b/lib/ftchash.c -index 9cc7efa..28bafbf 100644 ---- a/lib/ftchash.c -+++ b/lib/ftchash.c -@@ -326,7 +326,7 @@ void *ftchash_foreach(struct ftchash *ft - (char*)ftch->traverse_chunk->base+ftch->traverse_chunk->next) { - - ret = ftch->traverse_rec; -- (char*)ftch->traverse_rec += ftch->d_size; -+ ftch->traverse_rec = vpadd(ftch->traverse_rec, ftch->d_size); - return ret; - - } else { -diff --git a/lib/ftio.c b/lib/ftio.c -index f6c739c..1082416 100644 ---- a/lib/ftio.c -+++ b/lib/ftio.c -@@ -2267,7 +2267,7 @@ int readn(register int fd, register void - break; - - nleft -= nread; -- (char*)ptr += nread; -+ ptr = vpadd(ptr, nread); - } - return (nbytes - nleft); - } /* readn */ -@@ -2292,7 +2292,7 @@ int writen(register int fd, register voi - return(nwritten); /* error */ - - nleft -= nwritten; -- (char*)ptr += nwritten; -+ ptr = vpadd(ptr,nwritten); - } - return(nbytes - nleft); - } /* writen */ -diff --git a/lib/ftlib.h b/lib/ftlib.h -index f91ad0a..66bf2f3 100644 ---- a/lib/ftlib.h -+++ b/lib/ftlib.h -@@ -152,7 +152,6 @@ #define FT_PDU_V8_11_MAXFLOWS 44 /* max - #define FT_PDU_V8_12_MAXFLOWS 44 /* max records in V8 DST_PREFIX_TOS packet */ - #define FT_PDU_V8_13_MAXFLOWS 35 /* max records in V8 PREFIX_TOS packet */ - #define FT_PDU_V8_14_MAXFLOWS 35 /* max records in V8 PREFIX_PORT_TOS packet */ -- - #define FT_PDU_V8_1_VERSION 2 /* version of AS packet */ - #define FT_PDU_V8_2_VERSION 2 /* version of PROTO PORT packet */ - #define FT_PDU_V8_3_VERSION 2 /* version of SRC PREFIX packet */ -@@ -3029,6 +3028,8 @@ #ifndef IN_CLASSD_SSM - #define IN_CLASSD_SSM(i) (((u_int32_t)(i) & 0xff000000) == 0xe8000000) - #endif /* IN_CLASSD_SSM */ - -+void *vpadd(const void* v, const int change); -+ - /* MACHINE DEPENDANT */ - #define fmt_uint fmt_uint32 - -diff --git a/lib/fttlv.c b/lib/fttlv.c -index 7035813..330a783 100644 ---- a/lib/fttlv.c -+++ b/lib/fttlv.c -@@ -68,10 +68,10 @@ int fttlv_enc_uint32(void *buf, int buf_ - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&v, buf, 4); - -@@ -107,10 +107,10 @@ int fttlv_enc_uint16(void *buf, int buf_ - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&v, buf, 2); - -@@ -145,10 +145,10 @@ int fttlv_enc_uint8(void *buf, int buf_s - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&v, buf, 1); - -@@ -183,10 +183,10 @@ int fttlv_enc_str(void *buf, int buf_siz - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(v, buf, len); - -@@ -230,16 +230,16 @@ int fttlv_enc_ifname(void *buf, int buf_ - return -1; - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&ip, buf, 4); -- (char*)buf += 4; -+ buf = vpadd(buf, 4); - - bcopy(&ifIndex, buf, 2); -- (char*)buf += 2; -+ buf = vpadd(buf, 2); - - bcopy(name, buf, n); - -@@ -287,19 +287,19 @@ int fttlv_enc_ifalias(void *buf, int buf - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&ip, buf, 4); -- (char*)buf += 4; -+ buf = vpadd(buf, 4); - - bcopy(&entries, buf, 2); -- (char*)buf += 2; -+ buf = vpadd(buf, 2); - - bcopy(ifIndex_list, buf, esize); -- (char*)buf += esize; -+ buf = vpadd(buf, esize); - - bcopy(name, buf, n); - -diff --git a/lib/support.c b/lib/support.c -index a32ffe7..2e1db9f 100644 ---- a/lib/support.c -+++ b/lib/support.c -@@ -736,3 +736,8 @@ int udp_cksum(struct ip *ip, struct udph - return sum; - } /* udp_cksum */ - -+// void pointer add -+ -+void * vpadd(const void *v, const int change) { -+ return (void *) (((char*) v) + change); -+} --- -1.3.3 - diff --git a/flow-tools-0.68-0003-Avoid-external-debug-variable.patch b/flow-tools-0.68-0003-Avoid-external-debug-variable.patch deleted file mode 100644 index 906b9db..0000000 --- a/flow-tools-0.68-0003-Avoid-external-debug-variable.patch +++ /dev/null @@ -1,31 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:51:50 +0400 -Subject: [PATCH 3/8] Avoid external "debug" variable. - -When buildinf flow-tools as bunch of binaries depending on shared library, -extern int debug shows in too much places. Disable it for now until better -solution will be developed. - ---- - - lib/ftfile.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -1707e321511feb9b7cb117fb6be4d8bcfa8996de -diff --git a/lib/ftfile.c b/lib/ftfile.c -index 2f3ae76..f25e849 100644 ---- a/lib/ftfile.c -+++ b/lib/ftfile.c -@@ -53,7 +53,7 @@ #endif - - int load_dir(char *prefix, struct ftfile_entries *fte, int flags, int *depth); - --extern int debug; -+#define debug 0 - - /* - * function: ftfile_entry_new --- -1.3.3 - diff --git a/flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch b/flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch deleted file mode 100644 index d574f1b..0000000 --- a/flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch +++ /dev/null @@ -1,236 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:53:33 +0400 -Subject: [PATCH 4/8] Make flow-tools more FHS-compliant and buildable by newer toolchain. - -Here we are switching to new toolchain (autoconf, automake & libtool), -changing some paths (obviously config files should be put in sysconfdir - -usually etc - and not in localstatedir which is var) - ---- - - configs/Makefile.am | 4 ++-- - configure.in | 45 ++++++++++++++++++++++++++++++--------------- - lib/Makefile.am | 10 +++++----- - lib/ftpaths.h.in | 22 +++++++++++----------- - src/Makefile.am | 12 ++++++------ - 5 files changed, 54 insertions(+), 39 deletions(-) - -b03c8b4e55c5f6082ff427559ae5a8bc3e95b8f0 -diff --git a/configs/Makefile.am b/configs/Makefile.am -index 9b06b52..6ca85cc 100644 ---- a/configs/Makefile.am -+++ b/configs/Makefile.am -@@ -1,6 +1,6 @@ --ftsymdir=$(localstatedir)/sym -+ftsymdir=$(sysconfdir)/sym - ftsym_DATA = ip-prot.sym ip-type.sym tcp-port.sym asn.sym tag.sym - --ftcfgdir=$(localstatedir)/cfg -+ftcfgdir=$(sysconfdir)/cfg - ftcfg_DATA = map.cfg tag.cfg filter.cfg stat.cfg mask.cfg xlate.cfg - -diff --git a/configure.in b/configure.in -index 01987e8..597bbbd 100644 ---- a/configure.in -+++ b/configure.in -@@ -1,31 +1,32 @@ - dnl Process this file with autoconf to produce a configure script. --AC_INIT(lib/bit1024.c) -+AC_INIT(flow-tools, 0.68) - --AC_PREFIX_DEFAULT(/usr/local/netflow) -+AC_PREFIX_DEFAULT(/usr/local/flow-tools) - --AM_INIT_AUTOMAKE(flow-tools, 0.68) --AM_CONFIG_HEADER(lib/ftconfig.h:lib/ftconfig.h.in) -+AM_INIT_AUTOMAKE -+AM_CONFIG_HEADER(lib/ftconfig.h) - --CFLAGS="-g -Wall" -+dnl CFLAGS="-g -Wall" - - dnl Checks for programs. -+AC_PROG_LIBTOOL - AC_PROG_CC - AC_PROG_INSTALL - AC_PROG_MAKE_SET - AC_PROG_YACC - YACC="$YACC -d" --AC_PROG_RANLIB - AM_PROG_LEX - - AC_SUBST(YLIB) - AC_SUBST(MYSQLLIB) - AC_SUBST(MYSQLCFLAGS) --AC_SUBST(MYSQLINCLUDE) -+AC_SUBST(MYSQLLDFLAGS) - AC_SUBST(PGSQLLIB) - AC_SUBST(PGSQLCFLAGS) --AC_SUBST(PGSQLINCLUDE) -+AC_SUBST(PGSQLLDFLAGS) - AC_SUBST(CRYPTOLIB) - AC_SUBST(OPENSSLINCLUDE) -+AC_SUBST(OPENSSLLDFLAGS) - - dnl extra argument: --with-mysql - WITH_MYSQL= -@@ -66,37 +67,51 @@ AC_ARG_WITH(openssl, - dnl Checks for libraries. - - if test "x$WHERE_MYSQL" != "x"; then -- LIBS="-L$WHERE_MYSQL/lib/mysql" -+ old_LIBS="$LIBS" -+ old_LDFLAGS="$LDFLAGS" -+ LDFLAGS="$LDFLAGS -L$WHERE_MYSQL/lib/mysql" - AC_CHECK_LIB(mysqlclient, my_init, - [ -- MYSQLCFLAGS="-L$WHERE_MYSQL/lib/mysql -I$WHERE_MYSQL/include/mysql" -+ MYSQLCFLAGS="-I$WHERE_MYSQL/include/mysql" -+ MYSQLLDFLAGS="-L$WHERE_MYSQL/lib/mysql" - MYSQLLIB="-lmysqlclient" - AC_DEFINE(HAVE_MYSQL) - ] - ) -+ LIBS="$old_LIBS" -+ LDFLAGS="$old_LDFLAGS" - fi - - if test "x$WHERE_OPENSSL" != "x"; then -- LIBS="-L$WHERE_OPENSSL/lib" -+ old_LIBS="$LIBS" -+ old_LDFLAGS="$LDFLAGS" -+ LDFLAGS="$LDFLAGS -L$WHERE_OPENSSL/lib" - AC_CHECK_LIB(crypto, EVP_EncryptUpdate, - [ -- OPENSSLCFLAGS="-L$WHERE_OPENSSL/lib -I$WHERE_OPENSSL/include" -+ OPENSSLCFLAGS="-I$WHERE_OPENSSL/include" -+ OPENSSLLDFLAGS="-L$WHERE_OPENSSL/lib" - CRYPTOLIB="-lcrypto" - AC_DEFINE(HAVE_OPENSSL) - ] - ) -+ LIBS="$old_LIBS" -+ LDFLAGS="$old_LDFLAGS" - fi - -- - if test "x$WHERE_PGSQL" != "x"; then -- LIBS="-L$WHERE_PGSQL/lib/pgsql" -+ old_LIBS="$LIBS" -+ old_LDFLAGS="$LDFLAGS" -+ LDFLAGS="-L$WHERE_PGSQL/lib/pgsql" - AC_CHECK_LIB(pq, PQsetdbLogin, - [ -- PGSQLCFLAGS="-L$WHERE_PGSQL/lib -I$WHERE_PGSQL/include/pgsql" -+ PGSQLCFLAGS="-I$WHERE_PGSQL/include/pgsql" -+ PGSQLLDFLAGS="-L$WHERE_PGSQL/lib" - PGSQLLIB="-lpq" - AC_DEFINE(HAVE_PGSQL) - ] - ) -+ LIBS="$old_LIBS" -+ LDFLAGS="$old_LDFLAGS" - fi - - AC_CHECK_LIB(y, main,YLIB="$YLIB -ly",) -diff --git a/lib/Makefile.am b/lib/Makefile.am -index 08e684a..5a4727b 100644 ---- a/lib/Makefile.am -+++ b/lib/Makefile.am -@@ -2,17 +2,17 @@ ## Process this file with automake to pr - - #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs - #AM_CFLAGS=-O2 --AM_CFLAGS=-g -Wall -+#AM_CFLAGS=-g -Wall - --DEFS=-I. -I$(srcdir)/lib -+#DEFS=-I. -I$(srcdir)/lib - - include_HEADERS = ftlib.h ftqueue.h radix.h ftpaths.h ftconfig.h --lib_LIBRARIES = libft.a -+lib_LTLIBRARIES = libft.la - --libft_a_SOURCES = ftio.c ftswap.c ftencode.c ftdecode.c ftprof.c bit1024.c \ -+libft_la_SOURCES = ftio.c ftswap.c ftencode.c ftdecode.c ftprof.c bit1024.c \ - fmt.c support.c ftfile.c fttlv.c ftmap.c ftrec.c fterr.c \ - ftchash.c ftsym.c radix.c fttag.c ftfil.c ftstat.c getdate.c ftxfield.c\ - ftmask.c ftvar.c ftxlate.c - --libft_a_LIBADD = @LIBOBJS@ -+libft_la_LIBADD = $(LTLIBOBJS) $(CRYPTOLIB) - -diff --git a/lib/ftpaths.h.in b/lib/ftpaths.h.in -index ae8e30a..b0c91b1 100644 ---- a/lib/ftpaths.h.in -+++ b/lib/ftpaths.h.in -@@ -29,17 +29,17 @@ - #ifndef FTPATHS_H - #define FTPATHS_H - --#define FT_PATH_CFG_MAP "@localstatedir@/cfg/map.cfg" --#define FT_PATH_CFG_TAG "@localstatedir@/cfg/tag.cfg" --#define FT_PATH_CFG_FILTER "@localstatedir@/cfg/filter.cfg" --#define FT_PATH_CFG_STAT "@localstatedir@/cfg/stat.cfg" --#define FT_PATH_CFG_MASK "@localstatedir@/cfg/mask.cfg" --#define FT_PATH_CFG_XLATE "@localstatedir@/cfg/xlate.cfg" -+#define FT_PATH_CFG_MAP "@sysconfdir@/cfg/map.cfg" -+#define FT_PATH_CFG_TAG "@sysconfdir@/cfg/tag.cfg" -+#define FT_PATH_CFG_FILTER "@sysconfdir@/cfg/filter.cfg" -+#define FT_PATH_CFG_STAT "@sysconfdir@/cfg/stat.cfg" -+#define FT_PATH_CFG_MASK "@sysconfdir@/cfg/mask.cfg" -+#define FT_PATH_CFG_XLATE "@sysconfdir@/cfg/xlate.cfg" - --#define FT_PATH_SYM_IP_PROT "@localstatedir@/sym/ip-prot.sym" --#define FT_PATH_SYM_IP_TYPE "@localstatedir@/sym/ip-type.sym" --#define FT_PATH_SYM_TCP_PORT "@localstatedir@/sym/tcp-port.sym" --#define FT_PATH_SYM_ASN "@localstatedir@/sym/asn.sym" --#define FT_PATH_SYM_TAG "@localstatedir@/sym/tag.sym" -+#define FT_PATH_SYM_IP_PROT "@sysconfdir@/sym/ip-prot.sym" -+#define FT_PATH_SYM_IP_TYPE "@sysconfdir@/sym/ip-type.sym" -+#define FT_PATH_SYM_TCP_PORT "@sysconfdir@/sym/tcp-port.sym" -+#define FT_PATH_SYM_ASN "@sysconfdir@/sym/asn.sym" -+#define FT_PATH_SYM_TAG "@sysconfdir@/sym/tag.sym" - - #endif /* FTPATHS_H */ -diff --git a/src/Makefile.am b/src/Makefile.am -index c5ac63b..f85f427 100644 ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -7,7 +7,7 @@ DEFS=-I$(srcdir)/../lib -L$(srcdir)/../l - - #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs - #AM_CFLAGS=-O2 --AM_CFLAGS=-g -Wall -+#AM_CFLAGS=-g -Wall - - bin_PROGRAMS = flow-capture flow-cat flow-stat flow-print flow-dscan \ - flow-send flow-receive flow-gen flow-expire \ -@@ -101,9 +101,9 @@ flow_filter_LDADD = -lft @LEXLIB@ @YLIB - flow_filter_DEPENDENCIES = ftbuild.h - - flow_export_SOURCES = flow-export.c --flow_export_LDFLAGS = -L../lib --flow_export_CFLAGS = @MYSQLCFLAGS@ @PGSQLCFLAGS@ --flow_export_LDADD = -lft @MYSQLLIB@ @PGSQLLIB@ -+flow_export_LDFLAGS = -L../lib $(MYSQLLDFLAGS) $(PGSQLLDFLAGS) -+flow_export_CFLAGS = $(MYSQLCFLAGS) $(PGSQLCFLAGS) -+flow_export_LDADD = -lft $(MYSQLLIB) $(PGSQLLIB) - flow_export_DEPENDENCIES = ftbuild.h - - flow_header_SOURCES = flow-header.c -@@ -117,8 +117,8 @@ flow_split_LDADD = -lft - flow_split_DEPENDENCIES = ftbuild.h - - flow_xlate_SOURCES = flow-xlate.c --flow_xlate_LDFLAGS = -L../lib --flow_xlate_LDADD = -lft @CRYPTOLIB@ -+flow_xlate_LDFLAGS = -L../lib $(CRYPTOLDFLAGS) -+flow_xlate_LDADD = -lft $(CRYPTOLIB) - flow_xlate_DEPENDENCIES = ftbuild.h - - flow_tag_SOURCES = flow-tag.c --- -1.3.3 - diff --git a/flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch b/flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch deleted file mode 100644 index e48579c..0000000 --- a/flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch +++ /dev/null @@ -1,58 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:55:20 +0400 -Subject: [PATCH 5/8] Fix breakage on 64bit platforms. - -Due to variable size differences it is nesessary to create temporary -variable of type time_t to hold the time. - ---- - - lib/ftfile.c | 8 +++++--- - 1 files changed, 5 insertions(+), 3 deletions(-) - -bc0750fd6719d64377e578373ad4325e1440eb6a -diff --git a/lib/ftfile.c b/lib/ftfile.c -index f25e849..ec17771 100644 ---- a/lib/ftfile.c -+++ b/lib/ftfile.c -@@ -413,16 +413,17 @@ void ftfile_pathname(char *buf, int bsiz - int done, u_int32 ftime) - { - struct tm *tm; -+ time_t _t = (time_t) ftime; - char *prefix, dbuf[64]; - long gmt_val; - char gmt_sign; - int tm_gmtoff; - -- if (!(tm = localtime ((time_t*)&ftime))) { -+ if (!(tm = localtime (&_t))) { - snprintf(buf, bsize, "."); - } - -- tm_gmtoff = get_gmtoff(ftime); -+ tm_gmtoff = get_gmtoff(_t); - - /* compute GMT offset */ - if (tm_gmtoff >= 0) { -@@ -502,6 +503,7 @@ void ftfile_pathname(char *buf, int bsiz - int ftfile_mkpath(u_int32 ftime, int nest) - { - struct tm *tm; -+ time_t _t = (time_t) ftime; - char buf[32]; - - /* no directories */ -@@ -512,7 +514,7 @@ int ftfile_mkpath(u_int32 ftime, int nes - if ((nest > 3) || (nest < -3)) - return -1; - -- if (!(tm = localtime ((time_t*)&ftime))) -+ if (!(tm = localtime (&_t))) - return -1; - - if (nest == -1) --- -1.3.3 - diff --git a/flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch b/flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch deleted file mode 100644 index 7cdfb09..0000000 --- a/flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch +++ /dev/null @@ -1,30 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:57:01 +0400 -Subject: [PATCH 6/8] Fix unitialized variable in flow-send - -Variable hdr_len in flow-send.c was not initialized prior to usage in case -we aren't using spoofing. Fixed. - ---- - - src/flow-send.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -e9825a203d8b36576c8b8e92b4ab0ceb74cd0b05 -diff --git a/src/flow-send.c b/src/flow-send.c -index 83ca926..ad87024 100644 ---- a/src/flow-send.c -+++ b/src/flow-send.c -@@ -76,7 +76,7 @@ int main(int argc, char **argv) - u_int32 privacy_mask; - unsigned int v1, v2, one; - int i, n, ret, tx_delay, udp_sock; -- int src_ip_spoof, hdr_len; -+ int src_ip_spoof, hdr_len = 0; - void *rec; - - /* init fterr */ --- -1.3.3 - diff --git a/flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch b/flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch deleted file mode 100644 index 3941844..0000000 --- a/flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch +++ /dev/null @@ -1,63 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Ben Feinstein -Date: Sat, 10 Jun 2006 20:59:13 +0400 -Subject: [PATCH 7/8] Add extra debugging to ftpdu_verify() - ---- - - lib/ftdecode.c | 16 +++++++++++++--- - 1 files changed, 13 insertions(+), 3 deletions(-) - -6c73ed47b26944f97fa8d5cfed1719b8146c124a -diff --git a/lib/ftdecode.c b/lib/ftdecode.c -index ff6b0cf..8884db9 100644 ---- a/lib/ftdecode.c -+++ b/lib/ftdecode.c -@@ -122,8 +122,10 @@ int ftpdu_verify(struct ftpdu *ftpdu) - ret = -1; - - /* enough bytes to decode the count and version? */ -- if (ftpdu->bused < 4) -+ if (ftpdu->bused < 4) { -+ fterr_warnx("not enough bytes to decode the count and version."); - goto ftpdu_verify_out_quick; -+ } - - ph = (struct ftpdu_header*)&ftpdu->buf; - -@@ -158,15 +160,22 @@ #endif /* LITTLE_ENDIAN */ - case 5: - - /* max PDU's in record */ -- if (ph->count > FT_PDU_V5_MAXFLOWS) -+ if (ph->count > FT_PDU_V5_MAXFLOWS) { -+ fterr_warnx("too many pdus (%d) in record, max %d", ph->count, -+ FT_PDU_V5_MAXFLOWS); - goto ftpdu_verify_out; -+ } -+ - - size = offsetof(struct ftpdu_v5, records) + - ph->count * sizeof (struct ftrec_v5); - - /* PDU received size == PDU expected size? */ -- if (size != ftpdu->bused) -+ if (size != ftpdu->bused) { -+ fterr_warnx("pdu received size was wrong. expected %d got %d", -+ ftpdu->bused, size); - goto ftpdu_verify_out; -+ } - - ftpdu->ftv.d_version = 5; - ftpdu->decodef = fts3rec_pdu_v5_decode; -@@ -516,6 +525,7 @@ #endif /* LITTLE_ENDIAN */ - break; /* 8 */ - - default: -+ fterr_warnx("ftpdu version not set."); - goto ftpdu_verify_out; - - } /* switch ph->version */ --- -1.3.3 - diff --git a/flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch b/flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch deleted file mode 100644 index 3486689..0000000 --- a/flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch +++ /dev/null @@ -1,31 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Ben Feinstein -Date: Sat, 10 Jun 2006 21:01:04 +0400 -Subject: [PATCH 8/8] Fix unitialized variable in flow-export.c - -Without this patch, flow-export utility will misformat its SQL output when -using the MySQL output format causing the export to fail. Specifcally, the -commas between the fields are getting mangled. - ---- - - src/flow-export.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -bcb0b33cc9bb9427726db853a093d081dc77a1c6 -diff --git a/src/flow-export.c b/src/flow-export.c -index 52ae4d2..22b0330 100644 ---- a/src/flow-export.c -+++ b/src/flow-export.c -@@ -961,7 +961,7 @@ #endif /* PGSQL */ - - int fmt_xfields_type(char *buf, u_int64 xfield) - { -- int comma; -+ int comma = 0; - - buf[0] = 0; - --- -1.3.3 - diff --git a/flow-tools-0.68-getopt.patch b/flow-tools-0.68-getopt.patch deleted file mode 100644 index cd677c4..0000000 --- a/flow-tools-0.68-getopt.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -urN flow-tools-0.68/src/flow-header.c flow-tools-0.68.s/src/flow-header.c ---- flow-tools-0.68/src/flow-header.c 2003-04-02 22:03:02.000000000 +0400 -+++ flow-tools-0.68.s/src/flow-header.c 2007-03-24 23:35:30.000000000 +0300 -@@ -32,6 +32,7 @@ - - #include - #include -+#include - - void usage(void); - diff --git a/flow-tools-0.68.rpt72.patch b/flow-tools-0.68.rpt72.patch deleted file mode 100644 index 6ab2bf4..0000000 --- a/flow-tools-0.68.rpt72.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- flow-tools-0.68/lib/ftstat.c.orig 2005-05-10 21:48:12.000000000 +0600 -+++ flow-tools-0.68/lib/ftstat.c 2006-04-10 14:59:28.000000000 +0600 -@@ -11673,10 +11673,10 @@ - ftch_recprefix_tag, ftch_recprefix_tagp); - - FT_RECGET_DSTADDR(cur,rec,*fo); -- FT_RECGET_DST_TAG(cur,rec,*fo); -+ FT_RECGET_SRC_TAG(cur,rec,*fo); - - ftch_recprefix_tag.prefix = cur.dstaddr; -- ftch_recprefix_tag.tag = cur.dst_tag; -+ ftch_recprefix_tag.tag = cur.src_tag; - - /* only use mask if option set */ - if (rpt->options & (FT_STAT_OPT_DST_PREFIX_MASK|FT_STAT_OPT_DST_PREFIX_LEN)) { From 82207b8c52e9150bf92b3624a595d9414b6f84b7 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sun, 5 Aug 2007 11:08:03 +0000 Subject: [PATCH 017/109] Delete old crap --- ...irst-line-of-included-python-scripts.patch | 48 ---- ...d-lvalue-in-assignment-compile-error.patch | 189 -------------- ...8-0003-Avoid-external-debug-variable.patch | 31 --- ...ant-and-buildable-by-newer-toolchain.patch | 236 ------------------ ...0005-Fix-breakage-on-64bit-platforms.patch | 58 ----- ...ix-unitialized-variable-in-flow-send.patch | 30 --- ...-Add-extra-debugging-to-ftpdu_verify.patch | 63 ----- ...nitialized-variable-in-flow-export.c.patch | 31 --- flow-tools-0.68-getopt.patch | 11 - flow-tools-0.68.rpt72.patch | 15 -- 10 files changed, 712 deletions(-) delete mode 100644 flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch delete mode 100644 flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch delete mode 100644 flow-tools-0.68-0003-Avoid-external-debug-variable.patch delete mode 100644 flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch delete mode 100644 flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch delete mode 100644 flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch delete mode 100644 flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch delete mode 100644 flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch delete mode 100644 flow-tools-0.68-getopt.patch delete mode 100644 flow-tools-0.68.rpt72.patch diff --git a/flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch b/flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch deleted file mode 100644 index 19e5c3b..0000000 --- a/flow-tools-0.68-0001-Fix-first-line-of-included-python-scripts.patch +++ /dev/null @@ -1,48 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:45:55 +0400 -Subject: [PATCH 1/8] Fix first line of included python scripts. - -We need to do this to allow execution on FHS-compliant systems. - ---- - - bin/flow-log2rrd | 2 +- - bin/flow-rpt2rrd | 2 +- - bin/flow-rptfmt | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -250b73e99e719fdeb26140e7f8ebab68963e243b -diff --git a/bin/flow-log2rrd b/bin/flow-log2rrd -index 0567ba5..db4fdda 100755 ---- a/bin/flow-log2rrd -+++ b/bin/flow-log2rrd -@@ -1,4 +1,4 @@ --#!/usr/local/bin/python -+#!/bin/env python - - import getopt - import os -diff --git a/bin/flow-rpt2rrd b/bin/flow-rpt2rrd -index 72a74c7..7698f2b 100755 ---- a/bin/flow-rpt2rrd -+++ b/bin/flow-rpt2rrd -@@ -1,4 +1,4 @@ --#!/usr/local/bin/python -+#!/bin/env python - - import getopt - import os -diff --git a/bin/flow-rptfmt b/bin/flow-rptfmt -index 047d1ba..f663fae 100755 ---- a/bin/flow-rptfmt -+++ b/bin/flow-rptfmt -@@ -1,4 +1,4 @@ --#!/usr/local/bin/python -+#!/bin/env python - - import sys - import string --- -1.3.3 - diff --git a/flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch b/flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch deleted file mode 100644 index 6ec8037..0000000 --- a/flow-tools-0.68-0002-Fix-an-invalid-lvalue-in-assignment-compile-error.patch +++ /dev/null @@ -1,189 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:49:45 +0400 -Subject: [PATCH 2/8] Fix an "invalid lvalue in assignment" compile error. - ---- - - lib/ftchash.c | 2 +- - lib/ftio.c | 4 ++-- - lib/ftlib.h | 3 ++- - lib/fttlv.c | 34 +++++++++++++++++----------------- - lib/support.c | 5 +++++ - 5 files changed, 27 insertions(+), 21 deletions(-) - -075301dae1b92110e6cc339b0df88b7fc82c31a6 -diff --git a/lib/ftchash.c b/lib/ftchash.c -index 9cc7efa..28bafbf 100644 ---- a/lib/ftchash.c -+++ b/lib/ftchash.c -@@ -326,7 +326,7 @@ void *ftchash_foreach(struct ftchash *ft - (char*)ftch->traverse_chunk->base+ftch->traverse_chunk->next) { - - ret = ftch->traverse_rec; -- (char*)ftch->traverse_rec += ftch->d_size; -+ ftch->traverse_rec = vpadd(ftch->traverse_rec, ftch->d_size); - return ret; - - } else { -diff --git a/lib/ftio.c b/lib/ftio.c -index f6c739c..1082416 100644 ---- a/lib/ftio.c -+++ b/lib/ftio.c -@@ -2267,7 +2267,7 @@ int readn(register int fd, register void - break; - - nleft -= nread; -- (char*)ptr += nread; -+ ptr = vpadd(ptr, nread); - } - return (nbytes - nleft); - } /* readn */ -@@ -2292,7 +2292,7 @@ int writen(register int fd, register voi - return(nwritten); /* error */ - - nleft -= nwritten; -- (char*)ptr += nwritten; -+ ptr = vpadd(ptr,nwritten); - } - return(nbytes - nleft); - } /* writen */ -diff --git a/lib/ftlib.h b/lib/ftlib.h -index f91ad0a..66bf2f3 100644 ---- a/lib/ftlib.h -+++ b/lib/ftlib.h -@@ -152,7 +152,6 @@ #define FT_PDU_V8_11_MAXFLOWS 44 /* max - #define FT_PDU_V8_12_MAXFLOWS 44 /* max records in V8 DST_PREFIX_TOS packet */ - #define FT_PDU_V8_13_MAXFLOWS 35 /* max records in V8 PREFIX_TOS packet */ - #define FT_PDU_V8_14_MAXFLOWS 35 /* max records in V8 PREFIX_PORT_TOS packet */ -- - #define FT_PDU_V8_1_VERSION 2 /* version of AS packet */ - #define FT_PDU_V8_2_VERSION 2 /* version of PROTO PORT packet */ - #define FT_PDU_V8_3_VERSION 2 /* version of SRC PREFIX packet */ -@@ -3029,6 +3028,8 @@ #ifndef IN_CLASSD_SSM - #define IN_CLASSD_SSM(i) (((u_int32_t)(i) & 0xff000000) == 0xe8000000) - #endif /* IN_CLASSD_SSM */ - -+void *vpadd(const void* v, const int change); -+ - /* MACHINE DEPENDANT */ - #define fmt_uint fmt_uint32 - -diff --git a/lib/fttlv.c b/lib/fttlv.c -index 7035813..330a783 100644 ---- a/lib/fttlv.c -+++ b/lib/fttlv.c -@@ -68,10 +68,10 @@ int fttlv_enc_uint32(void *buf, int buf_ - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&v, buf, 4); - -@@ -107,10 +107,10 @@ int fttlv_enc_uint16(void *buf, int buf_ - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&v, buf, 2); - -@@ -145,10 +145,10 @@ int fttlv_enc_uint8(void *buf, int buf_s - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&v, buf, 1); - -@@ -183,10 +183,10 @@ int fttlv_enc_str(void *buf, int buf_siz - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(v, buf, len); - -@@ -230,16 +230,16 @@ int fttlv_enc_ifname(void *buf, int buf_ - return -1; - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&ip, buf, 4); -- (char*)buf += 4; -+ buf = vpadd(buf, 4); - - bcopy(&ifIndex, buf, 2); -- (char*)buf += 2; -+ buf = vpadd(buf, 2); - - bcopy(name, buf, n); - -@@ -287,19 +287,19 @@ int fttlv_enc_ifalias(void *buf, int buf - } - - bcopy(&t, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&len, buf, 2); -- (char*)buf+= 2; -+ buf = vpadd(buf, 2); - - bcopy(&ip, buf, 4); -- (char*)buf += 4; -+ buf = vpadd(buf, 4); - - bcopy(&entries, buf, 2); -- (char*)buf += 2; -+ buf = vpadd(buf, 2); - - bcopy(ifIndex_list, buf, esize); -- (char*)buf += esize; -+ buf = vpadd(buf, esize); - - bcopy(name, buf, n); - -diff --git a/lib/support.c b/lib/support.c -index a32ffe7..2e1db9f 100644 ---- a/lib/support.c -+++ b/lib/support.c -@@ -736,3 +736,8 @@ int udp_cksum(struct ip *ip, struct udph - return sum; - } /* udp_cksum */ - -+// void pointer add -+ -+void * vpadd(const void *v, const int change) { -+ return (void *) (((char*) v) + change); -+} --- -1.3.3 - diff --git a/flow-tools-0.68-0003-Avoid-external-debug-variable.patch b/flow-tools-0.68-0003-Avoid-external-debug-variable.patch deleted file mode 100644 index 906b9db..0000000 --- a/flow-tools-0.68-0003-Avoid-external-debug-variable.patch +++ /dev/null @@ -1,31 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:51:50 +0400 -Subject: [PATCH 3/8] Avoid external "debug" variable. - -When buildinf flow-tools as bunch of binaries depending on shared library, -extern int debug shows in too much places. Disable it for now until better -solution will be developed. - ---- - - lib/ftfile.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -1707e321511feb9b7cb117fb6be4d8bcfa8996de -diff --git a/lib/ftfile.c b/lib/ftfile.c -index 2f3ae76..f25e849 100644 ---- a/lib/ftfile.c -+++ b/lib/ftfile.c -@@ -53,7 +53,7 @@ #endif - - int load_dir(char *prefix, struct ftfile_entries *fte, int flags, int *depth); - --extern int debug; -+#define debug 0 - - /* - * function: ftfile_entry_new --- -1.3.3 - diff --git a/flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch b/flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch deleted file mode 100644 index d574f1b..0000000 --- a/flow-tools-0.68-0004-Make-flow-tools-more-FHS-compliant-and-buildable-by-newer-toolchain.patch +++ /dev/null @@ -1,236 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:53:33 +0400 -Subject: [PATCH 4/8] Make flow-tools more FHS-compliant and buildable by newer toolchain. - -Here we are switching to new toolchain (autoconf, automake & libtool), -changing some paths (obviously config files should be put in sysconfdir - -usually etc - and not in localstatedir which is var) - ---- - - configs/Makefile.am | 4 ++-- - configure.in | 45 ++++++++++++++++++++++++++++++--------------- - lib/Makefile.am | 10 +++++----- - lib/ftpaths.h.in | 22 +++++++++++----------- - src/Makefile.am | 12 ++++++------ - 5 files changed, 54 insertions(+), 39 deletions(-) - -b03c8b4e55c5f6082ff427559ae5a8bc3e95b8f0 -diff --git a/configs/Makefile.am b/configs/Makefile.am -index 9b06b52..6ca85cc 100644 ---- a/configs/Makefile.am -+++ b/configs/Makefile.am -@@ -1,6 +1,6 @@ --ftsymdir=$(localstatedir)/sym -+ftsymdir=$(sysconfdir)/sym - ftsym_DATA = ip-prot.sym ip-type.sym tcp-port.sym asn.sym tag.sym - --ftcfgdir=$(localstatedir)/cfg -+ftcfgdir=$(sysconfdir)/cfg - ftcfg_DATA = map.cfg tag.cfg filter.cfg stat.cfg mask.cfg xlate.cfg - -diff --git a/configure.in b/configure.in -index 01987e8..597bbbd 100644 ---- a/configure.in -+++ b/configure.in -@@ -1,31 +1,32 @@ - dnl Process this file with autoconf to produce a configure script. --AC_INIT(lib/bit1024.c) -+AC_INIT(flow-tools, 0.68) - --AC_PREFIX_DEFAULT(/usr/local/netflow) -+AC_PREFIX_DEFAULT(/usr/local/flow-tools) - --AM_INIT_AUTOMAKE(flow-tools, 0.68) --AM_CONFIG_HEADER(lib/ftconfig.h:lib/ftconfig.h.in) -+AM_INIT_AUTOMAKE -+AM_CONFIG_HEADER(lib/ftconfig.h) - --CFLAGS="-g -Wall" -+dnl CFLAGS="-g -Wall" - - dnl Checks for programs. -+AC_PROG_LIBTOOL - AC_PROG_CC - AC_PROG_INSTALL - AC_PROG_MAKE_SET - AC_PROG_YACC - YACC="$YACC -d" --AC_PROG_RANLIB - AM_PROG_LEX - - AC_SUBST(YLIB) - AC_SUBST(MYSQLLIB) - AC_SUBST(MYSQLCFLAGS) --AC_SUBST(MYSQLINCLUDE) -+AC_SUBST(MYSQLLDFLAGS) - AC_SUBST(PGSQLLIB) - AC_SUBST(PGSQLCFLAGS) --AC_SUBST(PGSQLINCLUDE) -+AC_SUBST(PGSQLLDFLAGS) - AC_SUBST(CRYPTOLIB) - AC_SUBST(OPENSSLINCLUDE) -+AC_SUBST(OPENSSLLDFLAGS) - - dnl extra argument: --with-mysql - WITH_MYSQL= -@@ -66,37 +67,51 @@ AC_ARG_WITH(openssl, - dnl Checks for libraries. - - if test "x$WHERE_MYSQL" != "x"; then -- LIBS="-L$WHERE_MYSQL/lib/mysql" -+ old_LIBS="$LIBS" -+ old_LDFLAGS="$LDFLAGS" -+ LDFLAGS="$LDFLAGS -L$WHERE_MYSQL/lib/mysql" - AC_CHECK_LIB(mysqlclient, my_init, - [ -- MYSQLCFLAGS="-L$WHERE_MYSQL/lib/mysql -I$WHERE_MYSQL/include/mysql" -+ MYSQLCFLAGS="-I$WHERE_MYSQL/include/mysql" -+ MYSQLLDFLAGS="-L$WHERE_MYSQL/lib/mysql" - MYSQLLIB="-lmysqlclient" - AC_DEFINE(HAVE_MYSQL) - ] - ) -+ LIBS="$old_LIBS" -+ LDFLAGS="$old_LDFLAGS" - fi - - if test "x$WHERE_OPENSSL" != "x"; then -- LIBS="-L$WHERE_OPENSSL/lib" -+ old_LIBS="$LIBS" -+ old_LDFLAGS="$LDFLAGS" -+ LDFLAGS="$LDFLAGS -L$WHERE_OPENSSL/lib" - AC_CHECK_LIB(crypto, EVP_EncryptUpdate, - [ -- OPENSSLCFLAGS="-L$WHERE_OPENSSL/lib -I$WHERE_OPENSSL/include" -+ OPENSSLCFLAGS="-I$WHERE_OPENSSL/include" -+ OPENSSLLDFLAGS="-L$WHERE_OPENSSL/lib" - CRYPTOLIB="-lcrypto" - AC_DEFINE(HAVE_OPENSSL) - ] - ) -+ LIBS="$old_LIBS" -+ LDFLAGS="$old_LDFLAGS" - fi - -- - if test "x$WHERE_PGSQL" != "x"; then -- LIBS="-L$WHERE_PGSQL/lib/pgsql" -+ old_LIBS="$LIBS" -+ old_LDFLAGS="$LDFLAGS" -+ LDFLAGS="-L$WHERE_PGSQL/lib/pgsql" - AC_CHECK_LIB(pq, PQsetdbLogin, - [ -- PGSQLCFLAGS="-L$WHERE_PGSQL/lib -I$WHERE_PGSQL/include/pgsql" -+ PGSQLCFLAGS="-I$WHERE_PGSQL/include/pgsql" -+ PGSQLLDFLAGS="-L$WHERE_PGSQL/lib" - PGSQLLIB="-lpq" - AC_DEFINE(HAVE_PGSQL) - ] - ) -+ LIBS="$old_LIBS" -+ LDFLAGS="$old_LDFLAGS" - fi - - AC_CHECK_LIB(y, main,YLIB="$YLIB -ly",) -diff --git a/lib/Makefile.am b/lib/Makefile.am -index 08e684a..5a4727b 100644 ---- a/lib/Makefile.am -+++ b/lib/Makefile.am -@@ -2,17 +2,17 @@ ## Process this file with automake to pr - - #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs - #AM_CFLAGS=-O2 --AM_CFLAGS=-g -Wall -+#AM_CFLAGS=-g -Wall - --DEFS=-I. -I$(srcdir)/lib -+#DEFS=-I. -I$(srcdir)/lib - - include_HEADERS = ftlib.h ftqueue.h radix.h ftpaths.h ftconfig.h --lib_LIBRARIES = libft.a -+lib_LTLIBRARIES = libft.la - --libft_a_SOURCES = ftio.c ftswap.c ftencode.c ftdecode.c ftprof.c bit1024.c \ -+libft_la_SOURCES = ftio.c ftswap.c ftencode.c ftdecode.c ftprof.c bit1024.c \ - fmt.c support.c ftfile.c fttlv.c ftmap.c ftrec.c fterr.c \ - ftchash.c ftsym.c radix.c fttag.c ftfil.c ftstat.c getdate.c ftxfield.c\ - ftmask.c ftvar.c ftxlate.c - --libft_a_LIBADD = @LIBOBJS@ -+libft_la_LIBADD = $(LTLIBOBJS) $(CRYPTOLIB) - -diff --git a/lib/ftpaths.h.in b/lib/ftpaths.h.in -index ae8e30a..b0c91b1 100644 ---- a/lib/ftpaths.h.in -+++ b/lib/ftpaths.h.in -@@ -29,17 +29,17 @@ - #ifndef FTPATHS_H - #define FTPATHS_H - --#define FT_PATH_CFG_MAP "@localstatedir@/cfg/map.cfg" --#define FT_PATH_CFG_TAG "@localstatedir@/cfg/tag.cfg" --#define FT_PATH_CFG_FILTER "@localstatedir@/cfg/filter.cfg" --#define FT_PATH_CFG_STAT "@localstatedir@/cfg/stat.cfg" --#define FT_PATH_CFG_MASK "@localstatedir@/cfg/mask.cfg" --#define FT_PATH_CFG_XLATE "@localstatedir@/cfg/xlate.cfg" -+#define FT_PATH_CFG_MAP "@sysconfdir@/cfg/map.cfg" -+#define FT_PATH_CFG_TAG "@sysconfdir@/cfg/tag.cfg" -+#define FT_PATH_CFG_FILTER "@sysconfdir@/cfg/filter.cfg" -+#define FT_PATH_CFG_STAT "@sysconfdir@/cfg/stat.cfg" -+#define FT_PATH_CFG_MASK "@sysconfdir@/cfg/mask.cfg" -+#define FT_PATH_CFG_XLATE "@sysconfdir@/cfg/xlate.cfg" - --#define FT_PATH_SYM_IP_PROT "@localstatedir@/sym/ip-prot.sym" --#define FT_PATH_SYM_IP_TYPE "@localstatedir@/sym/ip-type.sym" --#define FT_PATH_SYM_TCP_PORT "@localstatedir@/sym/tcp-port.sym" --#define FT_PATH_SYM_ASN "@localstatedir@/sym/asn.sym" --#define FT_PATH_SYM_TAG "@localstatedir@/sym/tag.sym" -+#define FT_PATH_SYM_IP_PROT "@sysconfdir@/sym/ip-prot.sym" -+#define FT_PATH_SYM_IP_TYPE "@sysconfdir@/sym/ip-type.sym" -+#define FT_PATH_SYM_TCP_PORT "@sysconfdir@/sym/tcp-port.sym" -+#define FT_PATH_SYM_ASN "@sysconfdir@/sym/asn.sym" -+#define FT_PATH_SYM_TAG "@sysconfdir@/sym/tag.sym" - - #endif /* FTPATHS_H */ -diff --git a/src/Makefile.am b/src/Makefile.am -index c5ac63b..f85f427 100644 ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -7,7 +7,7 @@ DEFS=-I$(srcdir)/../lib -L$(srcdir)/../l - - #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs - #AM_CFLAGS=-O2 --AM_CFLAGS=-g -Wall -+#AM_CFLAGS=-g -Wall - - bin_PROGRAMS = flow-capture flow-cat flow-stat flow-print flow-dscan \ - flow-send flow-receive flow-gen flow-expire \ -@@ -101,9 +101,9 @@ flow_filter_LDADD = -lft @LEXLIB@ @YLIB - flow_filter_DEPENDENCIES = ftbuild.h - - flow_export_SOURCES = flow-export.c --flow_export_LDFLAGS = -L../lib --flow_export_CFLAGS = @MYSQLCFLAGS@ @PGSQLCFLAGS@ --flow_export_LDADD = -lft @MYSQLLIB@ @PGSQLLIB@ -+flow_export_LDFLAGS = -L../lib $(MYSQLLDFLAGS) $(PGSQLLDFLAGS) -+flow_export_CFLAGS = $(MYSQLCFLAGS) $(PGSQLCFLAGS) -+flow_export_LDADD = -lft $(MYSQLLIB) $(PGSQLLIB) - flow_export_DEPENDENCIES = ftbuild.h - - flow_header_SOURCES = flow-header.c -@@ -117,8 +117,8 @@ flow_split_LDADD = -lft - flow_split_DEPENDENCIES = ftbuild.h - - flow_xlate_SOURCES = flow-xlate.c --flow_xlate_LDFLAGS = -L../lib --flow_xlate_LDADD = -lft @CRYPTOLIB@ -+flow_xlate_LDFLAGS = -L../lib $(CRYPTOLDFLAGS) -+flow_xlate_LDADD = -lft $(CRYPTOLIB) - flow_xlate_DEPENDENCIES = ftbuild.h - - flow_tag_SOURCES = flow-tag.c --- -1.3.3 - diff --git a/flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch b/flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch deleted file mode 100644 index e48579c..0000000 --- a/flow-tools-0.68-0005-Fix-breakage-on-64bit-platforms.patch +++ /dev/null @@ -1,58 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:55:20 +0400 -Subject: [PATCH 5/8] Fix breakage on 64bit platforms. - -Due to variable size differences it is nesessary to create temporary -variable of type time_t to hold the time. - ---- - - lib/ftfile.c | 8 +++++--- - 1 files changed, 5 insertions(+), 3 deletions(-) - -bc0750fd6719d64377e578373ad4325e1440eb6a -diff --git a/lib/ftfile.c b/lib/ftfile.c -index f25e849..ec17771 100644 ---- a/lib/ftfile.c -+++ b/lib/ftfile.c -@@ -413,16 +413,17 @@ void ftfile_pathname(char *buf, int bsiz - int done, u_int32 ftime) - { - struct tm *tm; -+ time_t _t = (time_t) ftime; - char *prefix, dbuf[64]; - long gmt_val; - char gmt_sign; - int tm_gmtoff; - -- if (!(tm = localtime ((time_t*)&ftime))) { -+ if (!(tm = localtime (&_t))) { - snprintf(buf, bsize, "."); - } - -- tm_gmtoff = get_gmtoff(ftime); -+ tm_gmtoff = get_gmtoff(_t); - - /* compute GMT offset */ - if (tm_gmtoff >= 0) { -@@ -502,6 +503,7 @@ void ftfile_pathname(char *buf, int bsiz - int ftfile_mkpath(u_int32 ftime, int nest) - { - struct tm *tm; -+ time_t _t = (time_t) ftime; - char buf[32]; - - /* no directories */ -@@ -512,7 +514,7 @@ int ftfile_mkpath(u_int32 ftime, int nes - if ((nest > 3) || (nest < -3)) - return -1; - -- if (!(tm = localtime ((time_t*)&ftime))) -+ if (!(tm = localtime (&_t))) - return -1; - - if (nest == -1) --- -1.3.3 - diff --git a/flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch b/flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch deleted file mode 100644 index 7cdfb09..0000000 --- a/flow-tools-0.68-0006-Fix-unitialized-variable-in-flow-send.patch +++ /dev/null @@ -1,30 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Paul P Komkoff Jr -Date: Sat, 10 Jun 2006 20:57:01 +0400 -Subject: [PATCH 6/8] Fix unitialized variable in flow-send - -Variable hdr_len in flow-send.c was not initialized prior to usage in case -we aren't using spoofing. Fixed. - ---- - - src/flow-send.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -e9825a203d8b36576c8b8e92b4ab0ceb74cd0b05 -diff --git a/src/flow-send.c b/src/flow-send.c -index 83ca926..ad87024 100644 ---- a/src/flow-send.c -+++ b/src/flow-send.c -@@ -76,7 +76,7 @@ int main(int argc, char **argv) - u_int32 privacy_mask; - unsigned int v1, v2, one; - int i, n, ret, tx_delay, udp_sock; -- int src_ip_spoof, hdr_len; -+ int src_ip_spoof, hdr_len = 0; - void *rec; - - /* init fterr */ --- -1.3.3 - diff --git a/flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch b/flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch deleted file mode 100644 index 3941844..0000000 --- a/flow-tools-0.68-0007-Add-extra-debugging-to-ftpdu_verify.patch +++ /dev/null @@ -1,63 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Ben Feinstein -Date: Sat, 10 Jun 2006 20:59:13 +0400 -Subject: [PATCH 7/8] Add extra debugging to ftpdu_verify() - ---- - - lib/ftdecode.c | 16 +++++++++++++--- - 1 files changed, 13 insertions(+), 3 deletions(-) - -6c73ed47b26944f97fa8d5cfed1719b8146c124a -diff --git a/lib/ftdecode.c b/lib/ftdecode.c -index ff6b0cf..8884db9 100644 ---- a/lib/ftdecode.c -+++ b/lib/ftdecode.c -@@ -122,8 +122,10 @@ int ftpdu_verify(struct ftpdu *ftpdu) - ret = -1; - - /* enough bytes to decode the count and version? */ -- if (ftpdu->bused < 4) -+ if (ftpdu->bused < 4) { -+ fterr_warnx("not enough bytes to decode the count and version."); - goto ftpdu_verify_out_quick; -+ } - - ph = (struct ftpdu_header*)&ftpdu->buf; - -@@ -158,15 +160,22 @@ #endif /* LITTLE_ENDIAN */ - case 5: - - /* max PDU's in record */ -- if (ph->count > FT_PDU_V5_MAXFLOWS) -+ if (ph->count > FT_PDU_V5_MAXFLOWS) { -+ fterr_warnx("too many pdus (%d) in record, max %d", ph->count, -+ FT_PDU_V5_MAXFLOWS); - goto ftpdu_verify_out; -+ } -+ - - size = offsetof(struct ftpdu_v5, records) + - ph->count * sizeof (struct ftrec_v5); - - /* PDU received size == PDU expected size? */ -- if (size != ftpdu->bused) -+ if (size != ftpdu->bused) { -+ fterr_warnx("pdu received size was wrong. expected %d got %d", -+ ftpdu->bused, size); - goto ftpdu_verify_out; -+ } - - ftpdu->ftv.d_version = 5; - ftpdu->decodef = fts3rec_pdu_v5_decode; -@@ -516,6 +525,7 @@ #endif /* LITTLE_ENDIAN */ - break; /* 8 */ - - default: -+ fterr_warnx("ftpdu version not set."); - goto ftpdu_verify_out; - - } /* switch ph->version */ --- -1.3.3 - diff --git a/flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch b/flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch deleted file mode 100644 index 3486689..0000000 --- a/flow-tools-0.68-0008-Fix-unitialized-variable-in-flow-export.c.patch +++ /dev/null @@ -1,31 +0,0 @@ -From nobody Mon Sep 17 00:00:00 2001 -From: Ben Feinstein -Date: Sat, 10 Jun 2006 21:01:04 +0400 -Subject: [PATCH 8/8] Fix unitialized variable in flow-export.c - -Without this patch, flow-export utility will misformat its SQL output when -using the MySQL output format causing the export to fail. Specifcally, the -commas between the fields are getting mangled. - ---- - - src/flow-export.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -bcb0b33cc9bb9427726db853a093d081dc77a1c6 -diff --git a/src/flow-export.c b/src/flow-export.c -index 52ae4d2..22b0330 100644 ---- a/src/flow-export.c -+++ b/src/flow-export.c -@@ -961,7 +961,7 @@ #endif /* PGSQL */ - - int fmt_xfields_type(char *buf, u_int64 xfield) - { -- int comma; -+ int comma = 0; - - buf[0] = 0; - --- -1.3.3 - diff --git a/flow-tools-0.68-getopt.patch b/flow-tools-0.68-getopt.patch deleted file mode 100644 index cd677c4..0000000 --- a/flow-tools-0.68-getopt.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -urN flow-tools-0.68/src/flow-header.c flow-tools-0.68.s/src/flow-header.c ---- flow-tools-0.68/src/flow-header.c 2003-04-02 22:03:02.000000000 +0400 -+++ flow-tools-0.68.s/src/flow-header.c 2007-03-24 23:35:30.000000000 +0300 -@@ -32,6 +32,7 @@ - - #include - #include -+#include - - void usage(void); - diff --git a/flow-tools-0.68.rpt72.patch b/flow-tools-0.68.rpt72.patch deleted file mode 100644 index 6ab2bf4..0000000 --- a/flow-tools-0.68.rpt72.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- flow-tools-0.68/lib/ftstat.c.orig 2005-05-10 21:48:12.000000000 +0600 -+++ flow-tools-0.68/lib/ftstat.c 2006-04-10 14:59:28.000000000 +0600 -@@ -11673,10 +11673,10 @@ - ftch_recprefix_tag, ftch_recprefix_tagp); - - FT_RECGET_DSTADDR(cur,rec,*fo); -- FT_RECGET_DST_TAG(cur,rec,*fo); -+ FT_RECGET_SRC_TAG(cur,rec,*fo); - - ftch_recprefix_tag.prefix = cur.dstaddr; -- ftch_recprefix_tag.tag = cur.dst_tag; -+ ftch_recprefix_tag.tag = cur.src_tag; - - /* only use mask if option set */ - if (rpt->options & (FT_STAT_OPT_DST_PREFIX_MASK|FT_STAT_OPT_DST_PREFIX_LEN)) { From 6524d5c9010aeac2f05633c607bd13f47afad3da Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Fri, 14 Sep 2007 18:36:16 +0000 Subject: [PATCH 018/109] Add user and init scripts --- flow-capture.init | 112 +++++++++++++++++++++++++++++++++++++++++ flow-capture.sysconfig | 2 + flow-tools.spec | 54 ++++++++++++++++++-- 3 files changed, 164 insertions(+), 4 deletions(-) create mode 100644 flow-capture.init create mode 100644 flow-capture.sysconfig diff --git a/flow-capture.init b/flow-capture.init new file mode 100644 index 0000000..0931a32 --- /dev/null +++ b/flow-capture.init @@ -0,0 +1,112 @@ +#!/bin/sh +# +# flow-capture Capture traffic flow data +# +# chkconfig: - 90 10 +# description: Capture traffic flow data + +### BEGIN INIT INFO +# Provides: flow-capture +# Required-Start: $local_fs $network +# Required-Stop: $local_fs $network +# Default-Stop: 0 1 2 3 4 5 6 +# Short-Description: Capture traffic flow data +# Description: Capture traffic flow data +### END INIT INFO + +# Source function library. +. /etc/rc.d/init.d/functions + +prog="flow-capture" +exec="/usr/bin/$prog" +config="/etc/sysconfig/$prog" +lockfile=/var/lock/subsys/$prog + +[ -e $config ] && . $config + +# Define the flow-tools username +FLOWTOOLS_USER="${FLOWTOOLS_USER:-flow-tools}" + +# Add pidfile +OPTIONS="-p /var/run/flow-capture.pid $OPTIONS" + +# Check that networking is up. +if [ "$NETWORKING" = "no" ] +then + exit 0 +fi + +start() { + [ -x $exec ] || exit 5 + [ -f $config ] || exit 6 + echo -n $"Starting $prog: " + # if not running, start it up here, usually something like "daemon $exec" + daemon --user=$FLOWTOOLS_USER $exec $OPTIONS + retval=$? + echo + [ $retval -eq 0 ] && touch $lockfile + return $retval +} + +stop() { + echo -n $"Stopping $prog: " + killproc $prog + retval=$? + echo + [ $retval -eq 0 ] && rm -f $lockfile + return $retval +} + +restart() { + stop + start +} + +reload() { + restart +} + +force_reload() { + restart +} + +rh_status() { + # run checks to determine if the service is running or use generic status + status $prog +} + +rh_status_q() { + rh_status >/dev/null 2>&1 +} + +case "$1" in + start) + rh_status_q && exit 0 + $1 + ;; + stop) + rh_status_q || exit 0 + $1 + ;; + restart) + $1 + ;; + reload) + rh_status_q || exit 7 + $1 + ;; + force-reload) + force_reload + ;; + status) + rh_status + ;; + condrestart|try-restart) + rh_status_q || exit 0 + restart + ;; + *) + echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}" + exit 2 +esac +exit $? diff --git a/flow-capture.sysconfig b/flow-capture.sysconfig new file mode 100644 index 0000000..33a3d07 --- /dev/null +++ b/flow-capture.sysconfig @@ -0,0 +1,2 @@ +# Change the source IP and port to what is used on your network +OPTIONS="-n 287 -N 0 -w /var/flow-tools -S 5 0/0/8818" diff --git a/flow-tools.spec b/flow-tools.spec index f6c4fa4..9137b60 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,15 +1,32 @@ +%bcond_without fedora + +%global uid 40 +%global username flow-tools +%global homedir %{_localstatedir}/%{name} +%global gecos "Network flow monitoring" + Version: 0.68.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 1%{?dist} +Release: 2%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 +Source1: flow-capture.init +Source2: flow-capture.sysconfig Requires: rrdtool-python BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel BuildRequires: bison flex tcp_wrappers +BuildRequires: fedora-usermgmt-devel +%{?FE_USERADD_REQ} BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +Requires(post): initscripts chkconfig +Requires(preun): initscripts chkconfig +Requires(postun): initscripts +Provides: group(%username) = %uid +Provides: user(%username) = %uid + %description Flow-tools is library and a collection of programs used to collect, @@ -56,13 +73,37 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/%{name} +install -d $RPM_BUILD_ROOT%{_initrddir} +install -m 0755 %SOURCE1 $RPM_BUILD_ROOT%{_initrddir}/flow-capture +install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig +install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/flow-capture %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig +%pre +%__fe_groupadd %uid -r %username &>/dev/null || : +%__fe_useradd %uid -r -s /sbin/nologin -d %homedir -M \ + -c '%gecos' -g %username %username &>/dev/null || : -%postun -p /sbin/ldconfig +%post +/sbin/ldconfig +/sbin/chkconfig --add flow-capture + +%preun +if [ $1 = 0 ]; then + /sbin/service flow-capture stop >/dev/null 2>&1 + /sbin/chkconfig --del flow-capture +fi + +%postun +/sbin/ldconfig +if [ "$1" -ge "1" ]; then + /sbin/service flow-capture condrestart >/dev/null 2>&1 || : +fi + +%__fe_userdel %username &>/dev/null || : +%__fe_groupdel %username &>/dev/null || : %files %defattr(-,root,root) @@ -76,7 +117,9 @@ rm -rf $RPM_BUILD_ROOT %dir %{_sysconfdir}/%{name}/sym/ %config(noreplace) %{_sysconfdir}/%{name}/cfg/* %config(noreplace) %{_sysconfdir}/%{name}/sym/* -%{_localstatedir}/%{name}/ +%config(noreplace) %{_sysconfdir}/sysconfig/flow-capture +%{_initrddir}/flow-capture +%attr(-,flow-tools,flow-tools) %{_localstatedir}/%{name}/ %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/* @@ -86,6 +129,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/*.h %changelog +* Thu Sep 13 2007 Orion Poplawski - 0.68.1-2 +- Add user and init scripts + * Sun Aug 5 2007 Paul P Komkoff Jr - 0.68.1-1 - New upstream release From 769906028d1ce12bd6b586c5884439fa3b71c04a Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Sat, 3 Nov 2007 22:41:35 +0000 Subject: [PATCH 019/109] flow-tools-0.68.2 --- .cvsignore | 2 +- flow-tools.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index dfa1622..a01d470 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.1.tar.bz2 +flow-tools-0.68.2.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index 9137b60..131b52f 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,10 +5,10 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.1 +Version: 0.68.2 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 2%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -129,6 +129,9 @@ fi %{_includedir}/*.h %changelog +* Sat Nov 3 2007 Paul P Komkoff Jr - 0.68.2-1 +- New upstream release + * Thu Sep 13 2007 Orion Poplawski - 0.68.1-2 - Add user and init scripts diff --git a/sources b/sources index 70affe8..1f5bca4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b8388d0f81ce49e4ca97d9f79da3a2a5 flow-tools-0.68.1.tar.bz2 +76cd01a26e1109ebc2d852db29880d38 flow-tools-0.68.2.tar.bz2 From a8ad477024195594b841be4f04822f1f9d367fec Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Mon, 12 Nov 2007 20:56:28 +0000 Subject: [PATCH 020/109] flow-tools 0.68.3-1 --- .cvsignore | 2 +- flow-tools.spec | 11 +++++++++-- sources | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index a01d470..d8635a5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.2.tar.bz2 +flow-tools-0.68.3.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index 131b52f..c050e54 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,7 +5,7 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.2 +Version: 0.68.3 Name: flow-tools Summary: Tool set for working with NetFlow data Release: 1%{?dist} @@ -107,7 +107,7 @@ fi %files %defattr(-,root,root) -%doc README README.fork INSTALL TODO COPYING SECURITY ChangeLog ChangeLog.old +%doc README README.fork INSTALL TODO COPYING SECURITY ChangeLog ChangeLog.old %doc docs/*.html %{_mandir}/man1/* %{_bindir}/* @@ -129,6 +129,13 @@ fi %{_includedir}/*.h %changelog +* Mon Nov 12 2007 Paul P Komkoff Jr - 0.68.3-1 +- new upstream release +- build tools as PIE +- get rid of ftpaths.h +- do not ship ftconfig.c +- do not require libft + * Sat Nov 3 2007 Paul P Komkoff Jr - 0.68.2-1 - New upstream release diff --git a/sources b/sources index 1f5bca4..47cd63e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -76cd01a26e1109ebc2d852db29880d38 flow-tools-0.68.2.tar.bz2 +c5f9c940da66685341718c0b8518bbde flow-tools-0.68.3.tar.bz2 From 73ba4fd0cdff654e98fb91f943504b7b94c1a815 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 7 Dec 2007 22:03:53 +0000 Subject: [PATCH 021/109] - Rebuild for deps --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index c050e54..277d88d 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.3 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 1%{?dist} +Release: 2%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -129,6 +129,9 @@ fi %{_includedir}/*.h %changelog +* Fri Dec 07 2007 Release Engineering - 0.68.3-2 +- Rebuild for deps + * Mon Nov 12 2007 Paul P Komkoff Jr - 0.68.3-1 - new upstream release - build tools as PIE From e977e4779ac3baba9160e2edb437e2f810bfc5c9 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Tue, 19 Feb 2008 19:58:17 +0000 Subject: [PATCH 022/109] flow-tools-0.68.4-0.1.rc1 --- .cvsignore | 2 +- flow-tools.spec | 13 ++++++++----- sources | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.cvsignore b/.cvsignore index d8635a5..454e8c4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.3.tar.bz2 +flow-tools-0.68.4-rc1.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index 277d88d..c450459 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,20 +5,20 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.3 +Version: 0.68.4 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 2%{?dist} +Release: 0.1.rc1%{?dist} Group: Applications/System License: BSD 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}-rc1.tar.bz2 Source1: flow-capture.init Source2: flow-capture.sysconfig Requires: rrdtool-python BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel BuildRequires: bison flex tcp_wrappers -BuildRequires: fedora-usermgmt-devel +BuildRequires: fedora-usermgmt-devel doxygen %{?FE_USERADD_REQ} BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Requires(post): initscripts chkconfig @@ -55,7 +55,7 @@ This package contains header files required to build applications that use libft. %prep -%setup -qn %{name}-%{version} +%setup -qn %{name}-%{version}-rc1 %build %configure \ @@ -129,6 +129,9 @@ fi %{_includedir}/*.h %changelog +* Tue Feb 19 2008 Paul P Komkoff Jr - 0.68.4-0.1.rc1 +- new upstream release candidate + * Fri Dec 07 2007 Release Engineering - 0.68.3-2 - Rebuild for deps diff --git a/sources b/sources index 47cd63e..8c58c8d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c5f9c940da66685341718c0b8518bbde flow-tools-0.68.3.tar.bz2 +b88a67bb93f6ae580981406f12f9b3c2 flow-tools-0.68.4-rc1.tar.bz2 From 35a467b0e0da7b8d8d9547f3f2fb4bac3f3a8eb7 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 20 Feb 2008 03:20:48 +0000 Subject: [PATCH 023/109] - Autorebuild for GCC 4.3 --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index c450459..b86545d 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.4 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 0.1.rc1%{?dist} +Release: 0.2.rc1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -129,6 +129,9 @@ fi %{_includedir}/*.h %changelog +* Tue Feb 19 2008 Fedora Release Engineering - 0.68.4-0.2.rc1 +- Autorebuild for GCC 4.3 + * Tue Feb 19 2008 Paul P Komkoff Jr - 0.68.4-0.1.rc1 - new upstream release candidate From 3361e09157b823f6b13233e3467716c99f87dc21 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Mon, 31 Mar 2008 17:23:19 +0000 Subject: [PATCH 024/109] flow-tools-0.68.4-1 --- .cvsignore | 2 +- flow-tools.spec | 11 +++++++---- sources | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.cvsignore b/.cvsignore index 454e8c4..cab314e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.4-rc1.tar.bz2 +flow-tools-0.68.4.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index b86545d..d449131 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,16 +8,16 @@ Version: 0.68.4 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 0.2.rc1%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ -Source0: http://%{name}.googlecode.com/files/%{name}-%{version}-rc1.tar.bz2 +Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.init Source2: flow-capture.sysconfig Requires: rrdtool-python BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel -BuildRequires: bison flex tcp_wrappers +BuildRequires: bison flex tcp_wrappers-devel BuildRequires: fedora-usermgmt-devel doxygen %{?FE_USERADD_REQ} BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) @@ -55,7 +55,7 @@ This package contains header files required to build applications that use libft. %prep -%setup -qn %{name}-%{version}-rc1 +%setup -q %build %configure \ @@ -129,6 +129,9 @@ fi %{_includedir}/*.h %changelog +* Mon Mar 31 2008 Paul P Komkoff Jr - 0.68.4-1 +- New upstream version + * Tue Feb 19 2008 Fedora Release Engineering - 0.68.4-0.2.rc1 - Autorebuild for GCC 4.3 diff --git a/sources b/sources index 8c58c8d..87d5125 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b88a67bb93f6ae580981406f12f9b3c2 flow-tools-0.68.4-rc1.tar.bz2 +5741720ad01b5a83a9bb7eaa991dcbb6 flow-tools-0.68.4.tar.bz2 From 75953c4c1c2319921710cf109ffd9557e9f740e7 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Sat, 24 Jan 2009 17:09:40 +0000 Subject: [PATCH 025/109] rebuild for dependencies --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index d449131..2f6b1ce 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.4 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 1%{?dist} +Release: 2%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -129,6 +129,9 @@ fi %{_includedir}/*.h %changelog +* Sat Jan 24 2009 Caolán McNamara - 0.68.4-2 +- rebuild for dependencies + * Mon Mar 31 2008 Paul P Komkoff Jr - 0.68.4-1 - New upstream version From 1f4bb0e79dd976b090c0a66f2b3cf46605c6c5dd Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Mon, 2 Feb 2009 17:53:14 +0000 Subject: [PATCH 026/109] flow-tools-0.68.4.1-1: Upstream update, -rrdtool package split --- .cvsignore | 2 +- flow-tools.spec | 107 ++++++++++++++++++++++++++++++++++++++++++++---- sources | 2 +- 3 files changed, 102 insertions(+), 9 deletions(-) diff --git a/.cvsignore b/.cvsignore index cab314e..98b866e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.4.tar.bz2 +flow-tools-0.68.4.1.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index 2f6b1ce..b40ff52 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,17 +5,16 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.4 +Version: 0.68.4.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 2%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.init Source2: flow-capture.sysconfig -Requires: rrdtool-python BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel BuildRequires: bison flex tcp_wrappers-devel BuildRequires: fedora-usermgmt-devel doxygen @@ -54,6 +53,39 @@ contributed and are included in the distribution. This package contains header files required to build applications that use libft. +%package rrdtool +Summary: Scripts for flow-tools to build rrd graphs +Group: Applications/System +Requires: %{name} = %{version}-%{release} rrdtool-python + +%description rrdtool +Flow-tools is library and a collection of programs used to collect, +send, process, and generate reports from NetFlow data. The tools can be +used together on a single server or distributed to multiple servers for +large deployments. The flow-toools library provides an API for development +of custom applications for NetFlow export versions 1,5,6 and the 14 currently +defined version 8 subversions. A Perl and Python interface have been +contributed and are included in the distribution. + +This package contains scripts that use python-rrdtool to create rrds and graphs +from flow data. + +%package docs +Summary: HTML and other redundant docs for flow-tools +Group: Applications/System +Requires: %{name} = %{version}-%{release} + +%description docs +Flow-tools is library and a collection of programs used to collect, +send, process, and generate reports from NetFlow data. The tools can be +used together on a single server or distributed to multiple servers for +large deployments. The flow-toools library provides an API for development +of custom applications for NetFlow export versions 1,5,6 and the 14 currently +defined version 8 subversions. A Perl and Python interface have been +contributed and are included in the distribution. + +This package contains additional documentation, such as man pages in html format. + %prep %setup -q @@ -66,6 +98,9 @@ libft. --with-postgresql \ --with-openssl +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 RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} %install @@ -107,10 +142,53 @@ fi %files %defattr(-,root,root) -%doc README README.fork INSTALL TODO COPYING SECURITY ChangeLog ChangeLog.old -%doc docs/*.html -%{_mandir}/man1/* -%{_bindir}/* +%doc README README.fork COPYING ChangeLog +%{_mandir}/man1/flow-capture.1* +%{_mandir}/man1/flow-cat.1* +%{_mandir}/man1/flow-dscan.1* +%{_mandir}/man1/flow-expire.1* +%{_mandir}/man1/flow-export.1* +%{_mandir}/man1/flow-fanout.1* +%{_mandir}/man1/flow-filter.1* +%{_mandir}/man1/flow-gen.1* +%{_mandir}/man1/flow-header.1* +%{_mandir}/man1/flow-import.1* +%{_mandir}/man1/flow-mask.1* +%{_mandir}/man1/flow-merge.1* +%{_mandir}/man1/flow-nfilter.1* +%{_mandir}/man1/flow-print.1* +%{_mandir}/man1/flow-receive.1* +%{_mandir}/man1/flow-report.1* +%{_mandir}/man1/flow-rptfmt.1* +%{_mandir}/man1/flow-send.1* +%{_mandir}/man1/flow-split.1* +%{_mandir}/man1/flow-stat.1* +%{_mandir}/man1/flow-tag.1* +%{_mandir}/man1/flow-tools-examples.1* +%{_mandir}/man1/flow-tools.1* +%{_mandir}/man1/flow-xlate.1* +%{_bindir}/flow-capture +%{_bindir}/flow-cat +%{_bindir}/flow-dscan +%{_bindir}/flow-expire +%{_bindir}/flow-export +%{_bindir}/flow-fanout +%{_bindir}/flow-filter +%{_bindir}/flow-gen +%{_bindir}/flow-header +%{_bindir}/flow-import +%{_bindir}/flow-mask +%{_bindir}/flow-merge +%{_bindir}/flow-nfilter +%{_bindir}/flow-print +%{_bindir}/flow-receive +%{_bindir}/flow-report +%{_bindir}/flow-rptfmt +%{_bindir}/flow-send +%{_bindir}/flow-split +%{_bindir}/flow-stat +%{_bindir}/flow-tag +%{_bindir}/flow-xlate %{_libdir}/*.so.* %dir %{_sysconfdir}/%{name}/ %dir %{_sysconfdir}/%{name}/cfg/ @@ -128,7 +206,22 @@ fi %{_libdir}/*.so %{_includedir}/*.h +%files rrdtool +%defattr(-,root,root) +%{_bindir}/flow-rpt2rrd +%{_bindir}/flow-log2rrd +%{_mandir}/man1/flow-rpt2rrd.1* +%{_mandir}/man1/flow-log2rrd.1* + +%files docs +%defattr(-,root,root) +%doc docs/*.html ChangeLog.old TODO INSTALL SECURITY + %changelog +* Mon Feb 2 2009 Paul P Komkoff Jr - 0.68.4.1-1 +- fix for pcap generation, by Dave Plonka +- split out -rrdtool subpackage, for those who don't need rrdtool on their servers. + * Sat Jan 24 2009 Caolán McNamara - 0.68.4-2 - rebuild for dependencies diff --git a/sources b/sources index 87d5125..3a5ebef 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5741720ad01b5a83a9bb7eaa991dcbb6 flow-tools-0.68.4.tar.bz2 +cee8aac4deb62953270183db2643cbb4 flow-tools-0.68.4.1.tar.bz2 From dd9595b1d91415d1763aa2514df2fe6c689787f6 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 24 Feb 2009 17:34:36 +0000 Subject: [PATCH 027/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index b40ff52..cfa5f8b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.4.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 1%{?dist} +Release: 2%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Feb 24 2009 Fedora Release Engineering - 0.68.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + * Mon Feb 2 2009 Paul P Komkoff Jr - 0.68.4.1-1 - fix for pcap generation, by Dave Plonka - split out -rrdtool subpackage, for those who don't need rrdtool on their servers. From a812d770d0544469ca9ed65268edf345f6be964a Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 15 Apr 2009 05:22:22 +0000 Subject: [PATCH 028/109] Initialize branch F-11 for flow-tools --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..25c7708 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-11 From ae50959819b8802b1b174b0f8700a8baf60457b6 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 24 Jul 2009 22:55:57 +0000 Subject: [PATCH 029/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index cfa5f8b..e9dc4aa 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.4.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 2%{?dist} +Release: 3%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Jul 24 2009 Fedora Release Engineering - 0.68.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + * Tue Feb 24 2009 Fedora Release Engineering - 0.68.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild From 034fa66b32c26c42bae782f98c4c5bf9b5812bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mr=C3=A1z?= Date: Fri, 21 Aug 2009 13:23:56 +0000 Subject: [PATCH 030/109] - rebuilt with new openssl --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index e9dc4aa..c0d709a 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.4.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 3%{?dist} +Release: 4%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Aug 21 2009 Tomas Mraz - 0.68.4.1-4 +- rebuilt with new openssl + * Fri Jul 24 2009 Fedora Release Engineering - 0.68.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild From 02ee103d313d6b2b2138573e0de6a2e87b6581f9 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 29 Sep 2009 04:51:32 +0000 Subject: [PATCH 031/109] Initialize branch F-12 for flow-tools --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..06de2d2 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-12 From 88e7b4fce255abfc7d000357d443e15bcab670c5 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 25 Nov 2009 23:16:27 +0000 Subject: [PATCH 032/109] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3535a42..5323001 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := flow-tools SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 6519c320e1f6686e6e18f4db41982a024d444072 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:28:20 +0000 Subject: [PATCH 033/109] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3535a42..5323001 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := flow-tools SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From ee13a2d48ab81c2e876658e724c57aadda584263 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:28:20 +0000 Subject: [PATCH 034/109] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3535a42..5323001 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := flow-tools SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From d8029293fd5f7edca955bfb8a5c13569d9ce101f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:28:20 +0000 Subject: [PATCH 035/109] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3535a42..5323001 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := flow-tools SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 0cec7445d0d006133aec4c875e354a9768f83a46 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:28:22 +0000 Subject: [PATCH 036/109] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3535a42..5323001 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := flow-tools SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 56c768d039484e9d1b3126233fb08ad560296c87 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:28:22 +0000 Subject: [PATCH 037/109] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3535a42..5323001 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := flow-tools SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 8d3073a077131538a540abc49ffacdebfb6bb84d Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 17 Feb 2010 01:20:17 +0000 Subject: [PATCH 038/109] Initialize branch F-13 for flow-tools --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..baa94ef --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-13 From adbc238ec484e41d2faf054e1b78fc54a4d81ff0 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Thu, 25 Feb 2010 14:08:37 +0000 Subject: [PATCH 039/109] flow-tools-0.68.5-1 --- .cvsignore | 2 +- flow-tools.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 98b866e..05baf6d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.4.1.tar.bz2 +flow-tools-0.68.5.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index c0d709a..d1d6ea1 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,10 +5,10 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.4.1 +Version: 0.68.5 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 4%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Feb 25 2010 Paul P Komkoff Jr - 0.68.5 +- bunch of fixes from upstream + * Fri Aug 21 2009 Tomas Mraz - 0.68.4.1-4 - rebuilt with new openssl diff --git a/sources b/sources index 3a5ebef..bc93b26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cee8aac4deb62953270183db2643cbb4 flow-tools-0.68.4.1.tar.bz2 +3c5e75da2822ab6b4947c928c09ea365 flow-tools-0.68.5.tar.bz2 From d641b8677fb258ca09a38bc59757ff1ed2e93ab7 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Thu, 25 Feb 2010 14:18:14 +0000 Subject: [PATCH 040/109] flow-tools-0.68.5-1 --- .cvsignore | 2 +- flow-tools.spec | 13 +++++++++++-- sources | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 98b866e..05baf6d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.4.1.tar.bz2 +flow-tools-0.68.5.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index cfa5f8b..d1d6ea1 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,10 +5,10 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.4.1 +Version: 0.68.5 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 2%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,15 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Feb 25 2010 Paul P Komkoff Jr - 0.68.5 +- bunch of fixes from upstream + +* Fri Aug 21 2009 Tomas Mraz - 0.68.4.1-4 +- rebuilt with new openssl + +* Fri Jul 24 2009 Fedora Release Engineering - 0.68.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + * Tue Feb 24 2009 Fedora Release Engineering - 0.68.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild diff --git a/sources b/sources index 3a5ebef..bc93b26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cee8aac4deb62953270183db2643cbb4 flow-tools-0.68.4.1.tar.bz2 +3c5e75da2822ab6b4947c928c09ea365 flow-tools-0.68.5.tar.bz2 From 3c0b7aa391d157a86b20f136b2d3e53fddaedada Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Thu, 25 Feb 2010 14:18:15 +0000 Subject: [PATCH 041/109] flow-tools-0.68.5-1 --- .cvsignore | 2 +- flow-tools.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 98b866e..05baf6d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.4.1.tar.bz2 +flow-tools-0.68.5.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index c0d709a..d1d6ea1 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,10 +5,10 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.4.1 +Version: 0.68.5 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 4%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Feb 25 2010 Paul P Komkoff Jr - 0.68.5 +- bunch of fixes from upstream + * Fri Aug 21 2009 Tomas Mraz - 0.68.4.1-4 - rebuilt with new openssl diff --git a/sources b/sources index 3a5ebef..bc93b26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cee8aac4deb62953270183db2643cbb4 flow-tools-0.68.4.1.tar.bz2 +3c5e75da2822ab6b4947c928c09ea365 flow-tools-0.68.5.tar.bz2 From 2977cc9ede1f5b700c4621a233413e248cab476d Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Thu, 25 Feb 2010 14:18:15 +0000 Subject: [PATCH 042/109] flow-tools-0.68.5-1 --- .cvsignore | 2 +- flow-tools.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 98b866e..05baf6d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.4.1.tar.bz2 +flow-tools-0.68.5.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index c0d709a..d1d6ea1 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,10 +5,10 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.4.1 +Version: 0.68.5 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 4%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Feb 25 2010 Paul P Komkoff Jr - 0.68.5 +- bunch of fixes from upstream + * Fri Aug 21 2009 Tomas Mraz - 0.68.4.1-4 - rebuilt with new openssl diff --git a/sources b/sources index 3a5ebef..bc93b26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cee8aac4deb62953270183db2643cbb4 flow-tools-0.68.4.1.tar.bz2 +3c5e75da2822ab6b4947c928c09ea365 flow-tools-0.68.5.tar.bz2 From 9035a69b9e859ecdaf5665ff12dc98254231ef94 Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Thu, 25 Feb 2010 14:18:15 +0000 Subject: [PATCH 043/109] flow-tools-0.68.5-1 --- .cvsignore | 2 +- flow-tools.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 98b866e..05baf6d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.4.1.tar.bz2 +flow-tools-0.68.5.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index c0d709a..d1d6ea1 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,10 +5,10 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.4.1 +Version: 0.68.5 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 4%{?dist} +Release: 1%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Feb 25 2010 Paul P Komkoff Jr - 0.68.5 +- bunch of fixes from upstream + * Fri Aug 21 2009 Tomas Mraz - 0.68.4.1-4 - rebuilt with new openssl diff --git a/sources b/sources index 3a5ebef..bc93b26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cee8aac4deb62953270183db2643cbb4 flow-tools-0.68.4.1.tar.bz2 +3c5e75da2822ab6b4947c928c09ea365 flow-tools-0.68.5.tar.bz2 From b365e1bacdc7c783e91b1ad26daf16c809929e77 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 9 Jul 2010 18:24:40 +0000 Subject: [PATCH 044/109] Initialize branch EL-6 for flow-tools --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..46381b9 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-6 From 5f701b004b76ae50af0a9b6f5578a38f7264aea4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 9 Jul 2010 18:24:41 +0000 Subject: [PATCH 045/109] Initialize branch EL-5 for flow-tools --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..42f697a --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-5 From c4055b7c5a3962185a30fc579c5e6170dfd686e8 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 12 Jul 2010 15:08:35 +0000 Subject: [PATCH 046/109] Update to 0.68.5 --- .cvsignore | 2 +- flow-capture.init | 112 +++++++++++++++++++++++ flow-capture.sysconfig | 2 + flow-tools.spec | 198 ++++++++++++++++++++++++++++++++++++++--- import.log | 1 + sources | 2 +- 6 files changed, 304 insertions(+), 13 deletions(-) create mode 100644 flow-capture.init create mode 100644 flow-capture.sysconfig create mode 100644 import.log diff --git a/.cvsignore b/.cvsignore index dfa1622..05baf6d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -flow-tools-0.68.1.tar.bz2 +flow-tools-0.68.5.tar.bz2 diff --git a/flow-capture.init b/flow-capture.init new file mode 100644 index 0000000..0931a32 --- /dev/null +++ b/flow-capture.init @@ -0,0 +1,112 @@ +#!/bin/sh +# +# flow-capture Capture traffic flow data +# +# chkconfig: - 90 10 +# description: Capture traffic flow data + +### BEGIN INIT INFO +# Provides: flow-capture +# Required-Start: $local_fs $network +# Required-Stop: $local_fs $network +# Default-Stop: 0 1 2 3 4 5 6 +# Short-Description: Capture traffic flow data +# Description: Capture traffic flow data +### END INIT INFO + +# Source function library. +. /etc/rc.d/init.d/functions + +prog="flow-capture" +exec="/usr/bin/$prog" +config="/etc/sysconfig/$prog" +lockfile=/var/lock/subsys/$prog + +[ -e $config ] && . $config + +# Define the flow-tools username +FLOWTOOLS_USER="${FLOWTOOLS_USER:-flow-tools}" + +# Add pidfile +OPTIONS="-p /var/run/flow-capture.pid $OPTIONS" + +# Check that networking is up. +if [ "$NETWORKING" = "no" ] +then + exit 0 +fi + +start() { + [ -x $exec ] || exit 5 + [ -f $config ] || exit 6 + echo -n $"Starting $prog: " + # if not running, start it up here, usually something like "daemon $exec" + daemon --user=$FLOWTOOLS_USER $exec $OPTIONS + retval=$? + echo + [ $retval -eq 0 ] && touch $lockfile + return $retval +} + +stop() { + echo -n $"Stopping $prog: " + killproc $prog + retval=$? + echo + [ $retval -eq 0 ] && rm -f $lockfile + return $retval +} + +restart() { + stop + start +} + +reload() { + restart +} + +force_reload() { + restart +} + +rh_status() { + # run checks to determine if the service is running or use generic status + status $prog +} + +rh_status_q() { + rh_status >/dev/null 2>&1 +} + +case "$1" in + start) + rh_status_q && exit 0 + $1 + ;; + stop) + rh_status_q || exit 0 + $1 + ;; + restart) + $1 + ;; + reload) + rh_status_q || exit 7 + $1 + ;; + force-reload) + force_reload + ;; + status) + rh_status + ;; + condrestart|try-restart) + rh_status_q || exit 0 + restart + ;; + *) + echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}" + exit 2 +esac +exit $? diff --git a/flow-capture.sysconfig b/flow-capture.sysconfig new file mode 100644 index 0000000..33a3d07 --- /dev/null +++ b/flow-capture.sysconfig @@ -0,0 +1,2 @@ +# Change the source IP and port to what is used on your network +OPTIONS="-n 287 -N 0 -w /var/flow-tools -S 5 0/0/8818" diff --git a/flow-tools.spec b/flow-tools.spec index f6c4fa4..d1d6ea1 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,4 +1,11 @@ -Version: 0.68.1 +%bcond_without fedora + +%global uid 40 +%global username flow-tools +%global homedir %{_localstatedir}/%{name} +%global gecos "Network flow monitoring" + +Version: 0.68.5 Name: flow-tools Summary: Tool set for working with NetFlow data Release: 1%{?dist} @@ -6,10 +13,19 @@ Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 -Requires: rrdtool-python +Source1: flow-capture.init +Source2: flow-capture.sysconfig BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel -BuildRequires: bison flex tcp_wrappers +BuildRequires: bison flex tcp_wrappers-devel +BuildRequires: fedora-usermgmt-devel doxygen +%{?FE_USERADD_REQ} BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +Requires(post): initscripts chkconfig +Requires(preun): initscripts chkconfig +Requires(postun): initscripts +Provides: group(%username) = %uid +Provides: user(%username) = %uid + %description Flow-tools is library and a collection of programs used to collect, @@ -37,8 +53,41 @@ contributed and are included in the distribution. This package contains header files required to build applications that use libft. +%package rrdtool +Summary: Scripts for flow-tools to build rrd graphs +Group: Applications/System +Requires: %{name} = %{version}-%{release} rrdtool-python + +%description rrdtool +Flow-tools is library and a collection of programs used to collect, +send, process, and generate reports from NetFlow data. The tools can be +used together on a single server or distributed to multiple servers for +large deployments. The flow-toools library provides an API for development +of custom applications for NetFlow export versions 1,5,6 and the 14 currently +defined version 8 subversions. A Perl and Python interface have been +contributed and are included in the distribution. + +This package contains scripts that use python-rrdtool to create rrds and graphs +from flow data. + +%package docs +Summary: HTML and other redundant docs for flow-tools +Group: Applications/System +Requires: %{name} = %{version}-%{release} + +%description docs +Flow-tools is library and a collection of programs used to collect, +send, process, and generate reports from NetFlow data. The tools can be +used together on a single server or distributed to multiple servers for +large deployments. The flow-toools library provides an API for development +of custom applications for NetFlow export versions 1,5,6 and the 14 currently +defined version 8 subversions. A Perl and Python interface have been +contributed and are included in the distribution. + +This package contains additional documentation, such as man pages in html format. + %prep -%setup -qn %{name}-%{version} +%setup -q %build %configure \ @@ -49,6 +98,9 @@ libft. --with-postgresql \ --with-openssl +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 RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} %install @@ -56,27 +108,96 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/%{name} +install -d $RPM_BUILD_ROOT%{_initrddir} +install -m 0755 %SOURCE1 $RPM_BUILD_ROOT%{_initrddir}/flow-capture +install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig +install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/flow-capture %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig +%pre +%__fe_groupadd %uid -r %username &>/dev/null || : +%__fe_useradd %uid -r -s /sbin/nologin -d %homedir -M \ + -c '%gecos' -g %username %username &>/dev/null || : -%postun -p /sbin/ldconfig +%post +/sbin/ldconfig +/sbin/chkconfig --add flow-capture + +%preun +if [ $1 = 0 ]; then + /sbin/service flow-capture stop >/dev/null 2>&1 + /sbin/chkconfig --del flow-capture +fi + +%postun +/sbin/ldconfig +if [ "$1" -ge "1" ]; then + /sbin/service flow-capture condrestart >/dev/null 2>&1 || : +fi + +%__fe_userdel %username &>/dev/null || : +%__fe_groupdel %username &>/dev/null || : %files %defattr(-,root,root) -%doc README README.fork INSTALL TODO COPYING SECURITY ChangeLog ChangeLog.old -%doc docs/*.html -%{_mandir}/man1/* -%{_bindir}/* +%doc README README.fork COPYING ChangeLog +%{_mandir}/man1/flow-capture.1* +%{_mandir}/man1/flow-cat.1* +%{_mandir}/man1/flow-dscan.1* +%{_mandir}/man1/flow-expire.1* +%{_mandir}/man1/flow-export.1* +%{_mandir}/man1/flow-fanout.1* +%{_mandir}/man1/flow-filter.1* +%{_mandir}/man1/flow-gen.1* +%{_mandir}/man1/flow-header.1* +%{_mandir}/man1/flow-import.1* +%{_mandir}/man1/flow-mask.1* +%{_mandir}/man1/flow-merge.1* +%{_mandir}/man1/flow-nfilter.1* +%{_mandir}/man1/flow-print.1* +%{_mandir}/man1/flow-receive.1* +%{_mandir}/man1/flow-report.1* +%{_mandir}/man1/flow-rptfmt.1* +%{_mandir}/man1/flow-send.1* +%{_mandir}/man1/flow-split.1* +%{_mandir}/man1/flow-stat.1* +%{_mandir}/man1/flow-tag.1* +%{_mandir}/man1/flow-tools-examples.1* +%{_mandir}/man1/flow-tools.1* +%{_mandir}/man1/flow-xlate.1* +%{_bindir}/flow-capture +%{_bindir}/flow-cat +%{_bindir}/flow-dscan +%{_bindir}/flow-expire +%{_bindir}/flow-export +%{_bindir}/flow-fanout +%{_bindir}/flow-filter +%{_bindir}/flow-gen +%{_bindir}/flow-header +%{_bindir}/flow-import +%{_bindir}/flow-mask +%{_bindir}/flow-merge +%{_bindir}/flow-nfilter +%{_bindir}/flow-print +%{_bindir}/flow-receive +%{_bindir}/flow-report +%{_bindir}/flow-rptfmt +%{_bindir}/flow-send +%{_bindir}/flow-split +%{_bindir}/flow-stat +%{_bindir}/flow-tag +%{_bindir}/flow-xlate %{_libdir}/*.so.* %dir %{_sysconfdir}/%{name}/ %dir %{_sysconfdir}/%{name}/cfg/ %dir %{_sysconfdir}/%{name}/sym/ %config(noreplace) %{_sysconfdir}/%{name}/cfg/* %config(noreplace) %{_sysconfdir}/%{name}/sym/* -%{_localstatedir}/%{name}/ +%config(noreplace) %{_sysconfdir}/sysconfig/flow-capture +%{_initrddir}/flow-capture +%attr(-,flow-tools,flow-tools) %{_localstatedir}/%{name}/ %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/* @@ -85,7 +206,62 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.so %{_includedir}/*.h +%files rrdtool +%defattr(-,root,root) +%{_bindir}/flow-rpt2rrd +%{_bindir}/flow-log2rrd +%{_mandir}/man1/flow-rpt2rrd.1* +%{_mandir}/man1/flow-log2rrd.1* + +%files docs +%defattr(-,root,root) +%doc docs/*.html ChangeLog.old TODO INSTALL SECURITY + %changelog +* Thu Feb 25 2010 Paul P Komkoff Jr - 0.68.5 +- bunch of fixes from upstream + +* Fri Aug 21 2009 Tomas Mraz - 0.68.4.1-4 +- rebuilt with new openssl + +* Fri Jul 24 2009 Fedora Release Engineering - 0.68.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 0.68.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 2 2009 Paul P Komkoff Jr - 0.68.4.1-1 +- fix for pcap generation, by Dave Plonka +- split out -rrdtool subpackage, for those who don't need rrdtool on their servers. + +* Sat Jan 24 2009 Caolán McNamara - 0.68.4-2 +- rebuild for dependencies + +* Mon Mar 31 2008 Paul P Komkoff Jr - 0.68.4-1 +- New upstream version + +* Tue Feb 19 2008 Fedora Release Engineering - 0.68.4-0.2.rc1 +- Autorebuild for GCC 4.3 + +* Tue Feb 19 2008 Paul P Komkoff Jr - 0.68.4-0.1.rc1 +- new upstream release candidate + +* Fri Dec 07 2007 Release Engineering - 0.68.3-2 +- Rebuild for deps + +* Mon Nov 12 2007 Paul P Komkoff Jr - 0.68.3-1 +- new upstream release +- build tools as PIE +- get rid of ftpaths.h +- do not ship ftconfig.c +- do not require libft + +* Sat Nov 3 2007 Paul P Komkoff Jr - 0.68.2-1 +- New upstream release + +* Thu Sep 13 2007 Orion Poplawski - 0.68.1-2 +- Add user and init scripts + * Sun Aug 5 2007 Paul P Komkoff Jr - 0.68.1-1 - New upstream release diff --git a/import.log b/import.log new file mode 100644 index 0000000..26a1cff --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +flow-tools-0_68_5-1_el6:EL-5:flow-tools-0.68.5-1.el6.src.rpm:1278947297 diff --git a/sources b/sources index 70affe8..bc93b26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b8388d0f81ce49e4ca97d9f79da3a2a5 flow-tools-0.68.1.tar.bz2 +3c5e75da2822ab6b4947c928c09ea365 flow-tools-0.68.5.tar.bz2 From 2f85e0629e5eca1b488953564338fc50f75a180d Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 12 Jul 2010 15:26:23 +0000 Subject: [PATCH 047/109] tcp_wrappers in EL-5 --- flow-tools.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index d1d6ea1..c0ae3f3 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -16,7 +16,7 @@ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.init Source2: flow-capture.sysconfig BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel -BuildRequires: bison flex tcp_wrappers-devel +BuildRequires: bison flex tcp_wrappers BuildRequires: fedora-usermgmt-devel doxygen %{?FE_USERADD_REQ} BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) From b8c0cb937409c2f2696cec078adfbaf1d57c95b7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 14:34:41 +0000 Subject: [PATCH 048/109] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 5323001..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: flow-tools -# $Id$ -NAME := flow-tools -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index baa94ef..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-13 From e7c62782614fed0469cf1fd9f12b77c40f319e3d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 14:34:43 +0000 Subject: [PATCH 049/109] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 5323001..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: flow-tools -# $Id$ -NAME := flow-tools -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 06de2d2..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-12 From 81c5a0498240210f62fe3e84af0813570f91c709 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 14:34:47 +0000 Subject: [PATCH 050/109] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - import.log | 1 - 4 files changed, 23 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 5323001..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: flow-tools -# $Id$ -NAME := flow-tools -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 42f697a..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-5 diff --git a/import.log b/import.log deleted file mode 100644 index 26a1cff..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -flow-tools-0_68_5-1_el6:EL-5:flow-tools-0.68.5-1.el6.src.rpm:1278947297 From f8c944dac3c298a45ff688987f39d8b1b370718d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 14:34:49 +0000 Subject: [PATCH 051/109] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- 2 files changed, 21 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 5323001..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: flow-tools -# $Id$ -NAME := flow-tools -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) From 5d82bfbaff14982a5ca127b071da3c2c868f9c77 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 14:34:53 +0000 Subject: [PATCH 052/109] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 5323001..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: flow-tools -# $Id$ -NAME := flow-tools -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 46381b9..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-6 From 7646ecca7bc837de9a9a794fcf7920cf55f3735c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 14:34:55 +0000 Subject: [PATCH 053/109] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 5323001..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: flow-tools -# $Id$ -NAME := flow-tools -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 25c7708..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-11 From c3bec458cf1bcc1041ee38c4ce3e3328f3ea1845 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 14:34:57 +0000 Subject: [PATCH 054/109] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 5323001..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: flow-tools -# $Id$ -NAME := flow-tools -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index d5b6362..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -FC-6 From 2bd985a8d57e6a9fbb679710940f118261d6b5c1 Mon Sep 17 00:00:00 2001 From: "Paul P. Komkoff Jr" Date: Fri, 27 Aug 2010 14:00:15 +0100 Subject: [PATCH 055/109] New upstream version with fix for EINTR on reading/writing the flow stream. --- .gitignore | 1 + flow-tools.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 05baf6d..69c1709 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ flow-tools-0.68.5.tar.bz2 +/flow-tools-0.68.5.1.tar.bz2 diff --git a/flow-tools.spec b/flow-tools.spec index d1d6ea1..b294ac3 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -5,7 +5,7 @@ %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" -Version: 0.68.5 +Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data Release: 1%{?dist} @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Aug 27 2010 Paul P. Komkoff Jr - 0.68.5.1 +- fix for EINTR while reading/writing in ftio. + * Thu Feb 25 2010 Paul P Komkoff Jr - 0.68.5 - bunch of fixes from upstream diff --git a/sources b/sources index bc93b26..c1462dc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3c5e75da2822ab6b4947c928c09ea365 flow-tools-0.68.5.tar.bz2 +b8f9a4be19ec22ea6d4031c40a6d5a63 flow-tools-0.68.5.1.tar.bz2 From f9bb1cfd4d35ca06ef6f97090ad3d84eb870e3fc Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 8 Feb 2011 14:37:18 -0600 Subject: [PATCH 056/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index b294ac3..d90ceae 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 1%{?dist} +Release: 2%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Feb 08 2011 Fedora Release Engineering - 0.68.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Fri Aug 27 2010 Paul P. Komkoff Jr - 0.68.5.1 - fix for EINTR while reading/writing in ftio. From 5f204eb1a1d4bc087047ea48f3295cc67e76078b Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 28 Mar 2011 09:35:10 -0600 Subject: [PATCH 057/109] Rebuild for new mysql --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index d90ceae..e8bc49b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 2%{?dist} +Release: 3%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -218,6 +218,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Mon Mar 28 2011 Orion Poplawski - 0.68.5.1-3 +- Rebuild for new mysql + * Tue Feb 08 2011 Fedora Release Engineering - 0.68.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From 25842a8e52d7976fefc9366287be05362a47b5c2 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 28 Mar 2011 09:54:36 -0600 Subject: [PATCH 058/109] Add LDFLAGS for mysql on 64-bit --- flow-tools.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flow-tools.spec b/flow-tools.spec index e8bc49b..ae8cb8b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -91,6 +91,7 @@ This package contains additional documentation, such as man pages in html format %build %configure \ + LDFLAGS=-L%{_libdir}/mysql \ --localstatedir=%{_localstatedir}/%{name} \ --sysconfdir=%{_sysconfdir}/%{name} \ --enable-static=no \ @@ -220,6 +221,7 @@ fi %changelog * Mon Mar 28 2011 Orion Poplawski - 0.68.5.1-3 - Rebuild for new mysql +- Add LDFLAGS for mysql on 64-bit * Tue Feb 08 2011 Fedora Release Engineering - 0.68.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From 15a177ac175a81dab3e916e2ecc7ca498e715833 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 12 Jan 2012 20:33:30 -0600 Subject: [PATCH 059/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index ae8cb8b..355cfd8 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 3%{?dist} +Release: 4%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -219,6 +219,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Jan 13 2012 Fedora Release Engineering - 0.68.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Mon Mar 28 2011 Orion Poplawski - 0.68.5.1-3 - Rebuild for new mysql - Add LDFLAGS for mysql on 64-bit From 111c79b84327bac0e6e6339db2846b3a9837b37b Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Tue, 24 Apr 2012 13:15:28 -0500 Subject: [PATCH 060/109] Migrate to systemd. --- flow-capture.service | 14 +++++++++++++ flow-tools.spec | 50 ++++++++++++++++++++++++++++++-------------- 2 files changed, 48 insertions(+), 16 deletions(-) create mode 100644 flow-capture.service diff --git a/flow-capture.service b/flow-capture.service new file mode 100644 index 0000000..4f03bd5 --- /dev/null +++ b/flow-capture.service @@ -0,0 +1,14 @@ +[Unit] +Description=Flow-capture Capture Traffic Flow Data +After=network.target + +[Service] +User=flow-tools +Group=flow-tools +Type=forking +EnvironmentFile=-/etc/sysconfig/flow-capture +PIDFile=/run/flow-capture.pid +ExecStart=/usr/bin/flow-capture -p /run/flow-capture.pid $OPTIONS + +[Install] +WantedBy=multi-user.target diff --git a/flow-tools.spec b/flow-tools.spec index 355cfd8..94af69b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,21 +8,23 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 4%{?dist} +Release: 5%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 -Source1: flow-capture.init +Source1: flow-capture.service Source2: flow-capture.sysconfig BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel BuildRequires: bison flex tcp_wrappers-devel BuildRequires: fedora-usermgmt-devel doxygen %{?FE_USERADD_REQ} BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) -Requires(post): initscripts chkconfig -Requires(preun): initscripts chkconfig -Requires(postun): initscripts +Requires(post): systemd-units +Requires(preun): systemd-units +Requires(postun): systemd-units +# For triggerun +Requires(post): systemd-sysv Provides: group(%username) = %uid Provides: user(%username) = %uid @@ -109,8 +111,8 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/%{name} -install -d $RPM_BUILD_ROOT%{_initrddir} -install -m 0755 %SOURCE1 $RPM_BUILD_ROOT%{_initrddir}/flow-capture +install -d $RPM_BUILD_ROOT%{_unitdir} +install -m 0644 %SOURCE1 $RPM_BUILD_ROOT%{_unitdir}/flow-capture.service install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/flow-capture @@ -124,22 +126,35 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig -/sbin/chkconfig --add flow-capture +if [ $1 -eq 1 ] ; then + # Initial installation + /bin/systemctl daemon-reload >/dev/null 2>&1 || : +fi %preun -if [ $1 = 0 ]; then - /sbin/service flow-capture stop >/dev/null 2>&1 - /sbin/chkconfig --del flow-capture +if [ $1 -eq 0 ] ; then + # Package removal, not upgrade + /bin/systemctl --no-reload disable flow-capture.service > /dev/null 2>&1 || : + /bin/systemctl stop flow-capture.service > /dev/null 2>&1 || : fi %postun /sbin/ldconfig -if [ "$1" -ge "1" ]; then - /sbin/service flow-capture condrestart >/dev/null 2>&1 || : +/bin/systemctl daemon-reload >/dev/null 2>&1 || : +if [ $1 -ge 1 ] ; then + # Package upgrade, not uninstall + /bin/systemctl try-restart flow-capture.service >/dev/null 2>&1 || : fi -%__fe_userdel %username &>/dev/null || : -%__fe_groupdel %username &>/dev/null || : +%triggerun -- flow-tools < 0.68.5.1-5 +# Save the current service runlevel info +# User must manually run systemd-sysv-convert --apply flow-capture +# to migrate them to systemd targets +/usr/bin/systemd-sysv-convert --save flow-capture >/dev/null 2>&1 ||: + +# Run these because the SysV package being removed won't do them +/sbin/chkconfig --del flow-capture >/dev/null 2>&1 || : +/bin/systemctl try-restart flow-capture.service >/dev/null 2>&1 || : %files %defattr(-,root,root) @@ -197,7 +212,7 @@ fi %config(noreplace) %{_sysconfdir}/%{name}/cfg/* %config(noreplace) %{_sysconfdir}/%{name}/sym/* %config(noreplace) %{_sysconfdir}/sysconfig/flow-capture -%{_initrddir}/flow-capture +%{_unitdir}/flow-capture.service %attr(-,flow-tools,flow-tools) %{_localstatedir}/%{name}/ %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/* @@ -219,6 +234,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Apr 24 2012 Jon Ciesla - 0.68.5.1-5 +- Migrate to systemd, BZ 767392. + * Fri Jan 13 2012 Fedora Release Engineering - 0.68.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild From 335074eaa4ba8d2c09de66d28a7ca07dccc91191 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 18 Jul 2012 21:43:27 -0500 Subject: [PATCH 061/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 94af69b..741cbdb 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 5%{?dist} +Release: 6%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -234,6 +234,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Jul 19 2012 Fedora Release Engineering - 0.68.5.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Tue Apr 24 2012 Jon Ciesla - 0.68.5.1-5 - Migrate to systemd, BZ 767392. From 4387c7629d76b0a277ccabe6e66df11b6badd06c Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 13 Feb 2013 15:48:14 -0600 Subject: [PATCH 062/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 741cbdb..6ef4beb 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 6%{?dist} +Release: 7%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -234,6 +234,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Feb 13 2013 Fedora Release Engineering - 0.68.5.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Thu Jul 19 2012 Fedora Release Engineering - 0.68.5.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild From 5183ab38a65a3ffdc65e0a7e454d0bf17aeba46e Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Thu, 11 Apr 2013 06:30:48 -0500 Subject: [PATCH 063/109] Migrated away from fedora-usermgmt. --- flow-tools.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index 6ef4beb..6e17a04 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 7%{?dist} +Release: 8%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -17,8 +17,8 @@ Source1: flow-capture.service Source2: flow-capture.sysconfig BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel BuildRequires: bison flex tcp_wrappers-devel -BuildRequires: fedora-usermgmt-devel doxygen -%{?FE_USERADD_REQ} +BuildRequires: doxygen +Requires(pre): shadow-utils BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Requires(post): systemd-units Requires(preun): systemd-units @@ -120,9 +120,12 @@ install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/flow-capture rm -rf $RPM_BUILD_ROOT %pre -%__fe_groupadd %uid -r %username &>/dev/null || : -%__fe_useradd %uid -r -s /sbin/nologin -d %homedir -M \ - -c '%gecos' -g %username %username &>/dev/null || : +getent group %{username} >/dev/null || groupadd -r %{username} -g %{uid} +getent passwd %{username} >/dev/null || \ + useradd -r -g %{username} -d %{homedir} -s /sbin/nologin -u %{uid} \ + -c '%{gecos}' %{username} +exit 0 + %post /sbin/ldconfig @@ -234,6 +237,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Apr 10 2013 Jon Ciesla - 0.68.5.1-8 +- Migrate from fedora-usermgmt to guideline scriptlets. + * Wed Feb 13 2013 Fedora Release Engineering - 0.68.5.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild From 0e42db59f8a3debb2878d1a9a0de8c54818e5651 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 3 Aug 2013 06:29:50 -0500 Subject: [PATCH 064/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 6e17a04..2bc9121 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 8%{?dist} +Release: 9%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -237,6 +237,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Sat Aug 03 2013 Fedora Release Engineering - 0.68.5.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Wed Apr 10 2013 Jon Ciesla - 0.68.5.1-8 - Migrate from fedora-usermgmt to guideline scriptlets. From 9b9516cfb2fffc93bd657346b20b758a6a6d3241 Mon Sep 17 00:00:00 2001 From: "Paul P. Komkoff" Date: Fri, 23 Aug 2013 11:47:27 +0400 Subject: [PATCH 065/109] Try to fix bz#929362 --- flow-capture.service | 5 ++--- flow-tools.spec | 5 ++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/flow-capture.service b/flow-capture.service index 4f03bd5..546bddf 100644 --- a/flow-capture.service +++ b/flow-capture.service @@ -5,10 +5,9 @@ After=network.target [Service] User=flow-tools Group=flow-tools -Type=forking +Type=simple EnvironmentFile=-/etc/sysconfig/flow-capture -PIDFile=/run/flow-capture.pid -ExecStart=/usr/bin/flow-capture -p /run/flow-capture.pid $OPTIONS +ExecStart=/usr/bin/flow-capture -D $OPTIONS [Install] WantedBy=multi-user.target diff --git a/flow-tools.spec b/flow-tools.spec index 2bc9121..deb2b6a 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -8,7 +8,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 9%{?dist} +Release: 10%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -237,6 +237,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Aug 23 2013 i@stingr.net - 0.68.5.1-10 +- Try to fix bz#929362 + * Sat Aug 03 2013 Fedora Release Engineering - 0.68.5.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From 1b3ef19a212336afd51b3ca821e381f5865a9852 Mon Sep 17 00:00:00 2001 From: "Paul P. Komkoff" Date: Sat, 28 Sep 2013 21:41:33 +0400 Subject: [PATCH 066/109] bz#1013218 --- flow-tools.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index deb2b6a..dc4d4ef 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,6 +1,5 @@ %bcond_without fedora -%global uid 40 %global username flow-tools %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" @@ -8,7 +7,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 10%{?dist} +Release: 11%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -25,8 +24,8 @@ Requires(preun): systemd-units Requires(postun): systemd-units # For triggerun Requires(post): systemd-sysv -Provides: group(%username) = %uid -Provides: user(%username) = %uid +Provides: group(%username) +Provides: user(%username) %description @@ -120,9 +119,9 @@ install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/flow-capture rm -rf $RPM_BUILD_ROOT %pre -getent group %{username} >/dev/null || groupadd -r %{username} -g %{uid} +getent group %{username} >/dev/null || groupadd -r %{username} getent passwd %{username} >/dev/null || \ - useradd -r -g %{username} -d %{homedir} -s /sbin/nologin -u %{uid} \ + useradd -r -g %{username} -d %{homedir} -s /sbin/nologin \ -c '%{gecos}' %{username} exit 0 @@ -237,6 +236,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Sat Sep 28 2013 Paul Komkoff - 0.68.5.1-11 +- Try to fix bz#1013218 as per https://fedoraproject.org/wiki/Packaging:UsersAndGroups + * Fri Aug 23 2013 i@stingr.net - 0.68.5.1-10 - Try to fix bz#929362 From ddd76e7ffe85a63e6f460890775b7f68e5aca2a2 Mon Sep 17 00:00:00 2001 From: "Paul P. Komkoff" Date: Sat, 21 Dec 2013 17:06:06 +0400 Subject: [PATCH 067/109] bz#850114 --- flow-tools.spec | 42 +++++++++++------------------------------- 1 file changed, 11 insertions(+), 31 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index dc4d4ef..3dcf140 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -7,7 +7,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 11%{?dist} +Release: 12%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -19,11 +19,10 @@ BuildRequires: bison flex tcp_wrappers-devel BuildRequires: doxygen Requires(pre): shadow-utils BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units -# For triggerun -Requires(post): systemd-sysv +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +BuildRequires: systemd Provides: group(%username) Provides: user(%username) @@ -128,35 +127,13 @@ exit 0 %post /sbin/ldconfig -if [ $1 -eq 1 ] ; then - # Initial installation - /bin/systemctl daemon-reload >/dev/null 2>&1 || : -fi +%systemd_post flow-capture.service %preun -if [ $1 -eq 0 ] ; then - # Package removal, not upgrade - /bin/systemctl --no-reload disable flow-capture.service > /dev/null 2>&1 || : - /bin/systemctl stop flow-capture.service > /dev/null 2>&1 || : -fi +%systemd_preun flow-capture.service %postun -/sbin/ldconfig -/bin/systemctl daemon-reload >/dev/null 2>&1 || : -if [ $1 -ge 1 ] ; then - # Package upgrade, not uninstall - /bin/systemctl try-restart flow-capture.service >/dev/null 2>&1 || : -fi - -%triggerun -- flow-tools < 0.68.5.1-5 -# Save the current service runlevel info -# User must manually run systemd-sysv-convert --apply flow-capture -# to migrate them to systemd targets -/usr/bin/systemd-sysv-convert --save flow-capture >/dev/null 2>&1 ||: - -# Run these because the SysV package being removed won't do them -/sbin/chkconfig --del flow-capture >/dev/null 2>&1 || : -/bin/systemctl try-restart flow-capture.service >/dev/null 2>&1 || : +%systemd_postun %files %defattr(-,root,root) @@ -236,6 +213,9 @@ fi %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Sat Dec 21 2013 Paul Komkoff - 0.68.5.1-12 +- bz#850114 + * Sat Sep 28 2013 Paul Komkoff - 0.68.5.1-11 - Try to fix bz#1013218 as per https://fedoraproject.org/wiki/Packaging:UsersAndGroups From 2e6cf256924c7668a942afe3a59bdcc263be78b8 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 07:22:12 -0500 Subject: [PATCH 068/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 3dcf140..ccb219b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -7,7 +7,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 12%{?dist} +Release: 13%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -213,6 +213,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Sat Jun 07 2014 Fedora Release Engineering - 0.68.5.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Sat Dec 21 2013 Paul Komkoff - 0.68.5.1-12 - bz#850114 From ec84e01f67011529ccb36e5f02b899eb4ef0de8f Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Tue, 17 Jun 2014 13:08:23 +0100 Subject: [PATCH 069/109] fix syslog() calls to have string format --- flow-tools.spec | 7 ++++++- flow-werror-fix.patch | 49 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 flow-werror-fix.patch diff --git a/flow-tools.spec b/flow-tools.spec index ccb219b..0245e0c 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -7,13 +7,14 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 13%{?dist} +Release: 14%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.service Source2: flow-capture.sysconfig +Patch0: flow-werror-fix.patch BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel BuildRequires: bison flex tcp_wrappers-devel BuildRequires: doxygen @@ -88,6 +89,7 @@ This package contains additional documentation, such as man pages in html format %prep %setup -q +%patch0 -p1 %build %configure \ @@ -213,6 +215,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Jun 17 2014 Marcin Juszkiewicz - 0.68.5.1-14 +- fix syslog() calls to have string format + * Sat Jun 07 2014 Fedora Release Engineering - 0.68.5.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild diff --git a/flow-werror-fix.patch b/flow-werror-fix.patch new file mode 100644 index 0000000..59b1349 --- /dev/null +++ b/flow-werror-fix.patch @@ -0,0 +1,49 @@ +diff --git a/lib/fterr.c b/lib/fterr.c +index 1bb5c89..5b47207 100644 +--- a/lib/fterr.c ++++ b/lib/fterr.c +@@ -112,7 +112,7 @@ void fterr_info(const char *fmt, ...) + fprintf(((fterr_file) ? fterr_file : stderr), "%s\n", buf2); + + if (fterr_flags & FTERR_SYSLOG) +- syslog(LOG_INFO, buf); ++ syslog(LOG_INFO, "%s", buf); + + } /* fterr_info */ + +@@ -134,7 +134,7 @@ void fterr_err(int code, const char *fmt, ...) + + if (fterr_flags & FTERR_SYSLOG) { + snprintf(buf2, 1024, "%s: %s", buf, strerror(errno)); +- syslog(LOG_INFO, buf2); ++ syslog(LOG_INFO, "%s", buf2); + } + + if (fterr_exit) +@@ -159,7 +159,7 @@ void fterr_errx(int code, const char *fmt, ...) + } + + if (fterr_flags & FTERR_SYSLOG) +- syslog(LOG_INFO, buf); ++ syslog(LOG_INFO, "%s", buf); + + if (fterr_exit) + fterr_exit(code); +@@ -183,7 +183,7 @@ void fterr_warnx(const char *fmt, ...) + } + + if (fterr_flags & FTERR_SYSLOG) +- syslog(LOG_INFO, buf); ++ syslog(LOG_INFO, "%s", buf); + + } /* fterr_warnx */ + +@@ -205,7 +205,7 @@ void fterr_warn(const char *fmt, ...) + + if (fterr_flags & FTERR_SYSLOG) { + snprintf(buf2, 1024, "%s: %s", buf, strerror(errno)); +- syslog(LOG_INFO, buf2); ++ syslog(LOG_INFO, "%s", buf2); + } + + } /* fterr_warn */ From 6fe0bdb0946bc25d52028fac40b4d4f4eb39d14f Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sat, 16 Aug 2014 12:41:10 +0000 Subject: [PATCH 070/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 0245e0c..f75bead 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -7,7 +7,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 14%{?dist} +Release: 15%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -215,6 +215,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Sat Aug 16 2014 Fedora Release Engineering - 0.68.5.1-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Tue Jun 17 2014 Marcin Juszkiewicz - 0.68.5.1-14 - fix syslog() calls to have string format From 4020aaa644e91370c15a8da82e27804961e90b86 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 13 Apr 2015 15:31:38 -0600 Subject: [PATCH 071/109] Drop %defattr() --- flow-tools.spec | 4 ---- 1 file changed, 4 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index f75bead..b4497da 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -138,7 +138,6 @@ exit 0 %systemd_postun %files -%defattr(-,root,root) %doc README README.fork COPYING ChangeLog %{_mandir}/man1/flow-capture.1* %{_mandir}/man1/flow-cat.1* @@ -199,19 +198,16 @@ exit 0 %{_datadir}/%{name}/* %files devel -%defattr(-,root,root,-) %{_libdir}/*.so %{_includedir}/*.h %files rrdtool -%defattr(-,root,root) %{_bindir}/flow-rpt2rrd %{_bindir}/flow-log2rrd %{_mandir}/man1/flow-rpt2rrd.1* %{_mandir}/man1/flow-log2rrd.1* %files docs -%defattr(-,root,root) %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog From 766bfe30870dc508051d3bf7639f397c4ac08f50 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 17 Jun 2015 06:28:25 +0000 Subject: [PATCH 072/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index b4497da..e0a096e 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -7,7 +7,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 15%{?dist} +Release: 16%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -211,6 +211,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Jun 17 2015 Fedora Release Engineering - 0.68.5.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Sat Aug 16 2014 Fedora Release Engineering - 0.68.5.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild From 6bb6d14d0594ef157e1cc71f713ce74e555e9de3 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 3 Feb 2016 20:36:39 +0000 Subject: [PATCH 073/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index e0a096e..fb694c2 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -7,7 +7,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 16%{?dist} +Release: 17%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -211,6 +211,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Feb 03 2016 Fedora Release Engineering - 0.68.5.1-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Wed Jun 17 2015 Fedora Release Engineering - 0.68.5.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 43dd03a8c7e46f6f80635a431d27d91ed5191afe Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 10 Feb 2017 09:52:13 +0000 Subject: [PATCH 074/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index fb694c2..c6a209a 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -7,7 +7,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 17%{?dist} +Release: 18%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -211,6 +211,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Feb 10 2017 Fedora Release Engineering - 0.68.5.1-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Wed Feb 03 2016 Fedora Release Engineering - 0.68.5.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From ddfcb46e3442427ad155d639a9a39df8cffdbf19 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Fri, 10 Feb 2017 15:49:12 -0700 Subject: [PATCH 075/109] Build with openssl support - does not work with openssl 1.1 --- flow-tools.spec | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index c6a209a..f4bac9a 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,4 +1,9 @@ -%bcond_without fedora +# Does not support openssl 1.1 +%if 0%{?fedora} >= 26 +%bcond_with openssl +%else +%bcond_without openssl +%endif %global username flow-tools %global homedir %{_localstatedir}/%{name} @@ -15,8 +20,15 @@ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.service Source2: flow-capture.sysconfig Patch0: flow-werror-fix.patch -BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel -BuildRequires: bison flex tcp_wrappers-devel +%if 0%{with openssl} +BuildRequires: openssl-devel +%endif +BuildRequires: mysql-devel +BuildRequires: postgresql-devel +BuildRequires: zlib-devel +BuildRequires: bison +BuildRequires: flex +BuildRequires: tcp_wrappers-devel BuildRequires: doxygen Requires(pre): shadow-utils BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) @@ -99,7 +111,9 @@ This package contains additional documentation, such as man pages in html format --enable-static=no \ --with-mysql \ --with-postgresql \ +%if 0%{with openssl} --with-openssl +%endif 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 @@ -211,6 +225,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Feb 10 2017 Orion Poplawski - 0.68.5.1-19 +- Build with openssl support - does not work with openssl 1.1 + * Fri Feb 10 2017 Fedora Release Engineering - 0.68.5.1-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From fd70904b9935eb0ac8305724387a632d17ec9bc4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 08:31:35 +0000 Subject: [PATCH 076/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index f4bac9a..2abc778 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 18%{?dist} +Release: 19%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -225,6 +225,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 0.68.5.1-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Fri Feb 10 2017 Orion Poplawski - 0.68.5.1-19 - Build with openssl support - does not work with openssl 1.1 From afe0c46057a2bd2e9b35ad9ecf4398714d491a49 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 2 Aug 2017 20:39:38 +0000 Subject: [PATCH 077/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 2abc778..723327f 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 19%{?dist} +Release: 20%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -225,6 +225,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Aug 02 2017 Fedora Release Engineering - 0.68.5.1-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 0.68.5.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 71aaec08954b467bba52a5c9f5d13d496bcbe17d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 09:51:21 +0000 Subject: [PATCH 078/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 723327f..2ecf35d 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 20%{?dist} +Release: 21%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -225,6 +225,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 0.68.5.1-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Aug 02 2017 Fedora Release Engineering - 0.68.5.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From 48a6ab318eaa3790e114b4cb48fce611d7e9326c Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 9 Feb 2018 09:04:29 +0100 Subject: [PATCH 079/109] Escape macros in %changelog Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/ Signed-off-by: Igor Gnatenko --- flow-tools.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index 2ecf35d..3502587 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 21%{?dist} +Release: 22%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -225,6 +225,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Feb 09 2018 Igor Gnatenko - 0.68.5.1-22 +- Escape macros in %%changelog + * Wed Feb 07 2018 Fedora Release Engineering - 0.68.5.1-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -395,7 +398,7 @@ exit 0 - simplify %%files - use more macros - change Group to Application/System -- own/create %{_localstatedir}/ft/ +- own/create %%{_localstatedir}/ft/ - add BR: autoconf - don't need generic INSTALL - mark config files as such From 7c6159adce0d2bd815ffa4f44c54a152f1dee662 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 13 Feb 2018 23:22:48 +0100 Subject: [PATCH 080/109] Remove BuildRoot definition None of currently supported distributions need that. It was needed last for EL5 which is EOL now Signed-off-by: Igor Gnatenko --- flow-tools.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 3502587..78ffb3c 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -31,7 +31,6 @@ BuildRequires: flex BuildRequires: tcp_wrappers-devel BuildRequires: doxygen Requires(pre): shadow-utils -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Requires(post): systemd Requires(preun): systemd Requires(postun): systemd From adbd81316124bb9e3c883ae1aaf830506305de5b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 08:01:29 +0100 Subject: [PATCH 081/109] Remove %clean section None of currently supported distributions need that. Last one was EL5 which is EOL for a while. Signed-off-by: Igor Gnatenko --- flow-tools.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index 78ffb3c..fdba94b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -129,9 +129,6 @@ install -m 0644 %SOURCE1 $RPM_BUILD_ROOT%{_unitdir}/flow-capture.service install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/flow-capture -%clean -rm -rf $RPM_BUILD_ROOT - %pre getent group %{username} >/dev/null || groupadd -r %{username} getent passwd %{username} >/dev/null || \ From 7668b0b454b1e6b1a6f44a0fe6a52012c3177c60 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 27 Feb 2018 20:36:16 -0700 Subject: [PATCH 082/109] Remove /bin/env deps (bug #1512889) Drop tcp_wrappers support (bug #1518764) Use mariadb-connector-c-devel (bug #1494095) Add BR gcc --- flow-tools.spec | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index fdba94b..8d3f2ac 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 22%{?dist} +Release: 23%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -20,15 +20,15 @@ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.service Source2: flow-capture.sysconfig Patch0: flow-werror-fix.patch +BuildRequires: gcc %if 0%{with openssl} BuildRequires: openssl-devel %endif -BuildRequires: mysql-devel +BuildRequires: mariadb-connector-c-devel BuildRequires: postgresql-devel BuildRequires: zlib-devel BuildRequires: bison BuildRequires: flex -BuildRequires: tcp_wrappers-devel BuildRequires: doxygen Requires(pre): shadow-utils Requires(post): systemd @@ -51,7 +51,8 @@ contributed and are included in the distribution. %package devel Summary: Development files for flow-tools Group: Development/Libraries -Requires: %{name} = %{version}-%{release} zlib-devel +Requires: %{name} = %{version}-%{release} +Requires: zlib-devel %description devel Flow-tools is library and a collection of programs used to collect, @@ -68,7 +69,8 @@ libft. %package rrdtool Summary: Scripts for flow-tools to build rrd graphs Group: Applications/System -Requires: %{name} = %{version}-%{release} rrdtool-python +Requires: %{name} = %{version}-%{release} +Requires: python2-rrdtool %description rrdtool Flow-tools is library and a collection of programs used to collect, @@ -79,7 +81,7 @@ of custom applications for NetFlow export versions 1,5,6 and the 14 currently defined version 8 subversions. A Perl and Python interface have been contributed and are included in the distribution. -This package contains scripts that use python-rrdtool to create rrds and graphs +This package contains scripts that use python2-rrdtool to create rrds and graphs from flow data. %package docs @@ -101,10 +103,14 @@ This package contains additional documentation, such as man pages in html format %prep %setup -q %patch0 -p1 +# Remove /bin/env deps +sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow* +sed -i '1s|^#!.*perl|#!/usr/bin/perl|' utils/* +# Fix mariadb-connector-c detection +sed -i s/my_init/mysql_init/g configure %build %configure \ - LDFLAGS=-L%{_libdir}/mysql \ --localstatedir=%{_localstatedir}/%{name} \ --sysconfdir=%{_sysconfdir}/%{name} \ --enable-static=no \ @@ -117,11 +123,10 @@ This package contains additional documentation, such as man pages in html format 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 RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} +%make_build RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %install -rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install +%make_install find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/%{name} install -d $RPM_BUILD_ROOT%{_unitdir} @@ -221,6 +226,12 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Feb 27 2018 Orion Poplawski - 0.68.5.1-23 +- Remove /bin/env deps (bug #1512889) +- Drop tcp_wrappers support (bug #1518764) +- Use mariadb-connector-c-devel (bug #1494095) +- Add BR gcc + * Fri Feb 09 2018 Igor Gnatenko - 0.68.5.1-22 - Escape macros in %%changelog @@ -408,10 +419,10 @@ exit 0 - Make libft shared library - Split to plain/devel -* Fri Jan 7 2004 William Emmanuel S. Yu +* Fri Jan 9 2004 William Emmanuel S. Yu - updated RPM file for version 0.67 -* Tue Aug 8 2003 William Emmanuel S. Yu +* Tue Aug 5 2003 William Emmanuel S. Yu - fixed SQL bug - update flow-export documentation From e44827f667e87b513313f7c665b7eaf9fd4b4849 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 00:40:33 +0000 Subject: [PATCH 083/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 8d3f2ac..7bdf84f 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 23%{?dist} +Release: 24%{?dist} Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ @@ -226,6 +226,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 0.68.5.1-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Tue Feb 27 2018 Orion Poplawski - 0.68.5.1-23 - Remove /bin/env deps (bug #1512889) - Drop tcp_wrappers support (bug #1518764) From a3208c417df8a489e4fef70554c43869579a7340 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 5 Sep 2018 15:15:44 +0200 Subject: [PATCH 084/109] BuildRequires: s/postgresql-devel/libpq-devel/ That's because we moved libpq.so.5 into libpq package. Related: rhbz#1618698, rhbz#1623764 --- flow-tools.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 7bdf84f..ec8dcc1 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -25,7 +25,7 @@ BuildRequires: gcc BuildRequires: openssl-devel %endif BuildRequires: mariadb-connector-c-devel -BuildRequires: postgresql-devel +BuildRequires: libpq-devel BuildRequires: zlib-devel BuildRequires: bison BuildRequires: flex From 5d7f5170266ed6a504208ba472f73430a6b63400 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:17:44 +0100 Subject: [PATCH 085/109] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- flow-tools.spec | 4 ---- 1 file changed, 4 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index ec8dcc1..56be8cc 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -13,7 +13,6 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data Release: 24%{?dist} -Group: Applications/System License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -50,7 +49,6 @@ contributed and are included in the distribution. %package devel Summary: Development files for flow-tools -Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: zlib-devel @@ -68,7 +66,6 @@ libft. %package rrdtool Summary: Scripts for flow-tools to build rrd graphs -Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: python2-rrdtool @@ -86,7 +83,6 @@ from flow data. %package docs Summary: HTML and other redundant docs for flow-tools -Group: Applications/System Requires: %{name} = %{version}-%{release} %description docs From bebfdde1402db80bc53b2e256a612b1b7b80ddd4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 19:52:57 +0000 Subject: [PATCH 086/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 56be8cc..614ef95 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 24%{?dist} +Release: 25%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -222,6 +222,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 0.68.5.1-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Jul 13 2018 Fedora Release Engineering - 0.68.5.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 3fecae42732b5f3b57f84e408084cf76f8190ebd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 00:45:41 +0000 Subject: [PATCH 087/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 614ef95..29e05f0 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 25%{?dist} +Release: 26%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -222,6 +222,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 0.68.5.1-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Jan 31 2019 Fedora Release Engineering - 0.68.5.1-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 0daff6da1045bef90c30f6699b7a0d3310325b33 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 30 Jul 2019 21:01:32 -0600 Subject: [PATCH 088/109] Fix systemd macro usage --- flow-tools.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index 29e05f0..867b823 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 26%{?dist} +Release: 27%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -30,10 +30,7 @@ BuildRequires: bison BuildRequires: flex BuildRequires: doxygen Requires(pre): shadow-utils -Requires(post): systemd -Requires(preun): systemd -Requires(postun): systemd -BuildRequires: systemd +BuildRequires: systemd-rpm-macros Provides: group(%username) Provides: user(%username) @@ -146,7 +143,7 @@ exit 0 %systemd_preun flow-capture.service %postun -%systemd_postun +%systemd_postun flow-capture.service %files %doc README README.fork COPYING ChangeLog @@ -222,6 +219,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Jul 30 2019 Orion Poplawski - 0.68.5.1-27 +- Fix systemd macro usage + * Thu Jul 25 2019 Fedora Release Engineering - 0.68.5.1-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 77d5e39f67bdcf5f81360f2375cd80beaf263c35 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 21 Aug 2019 20:42:33 -0600 Subject: [PATCH 089/109] Use python 3 for Fedora 31+ (bugz#1737952) --- flow-tools.spec | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index 867b823..3887957 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,5 +1,5 @@ # Does not support openssl 1.1 -%if 0%{?fedora} >= 26 +%if 0%{?fedora} %bcond_with openssl %else %bcond_without openssl @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 27%{?dist} +Release: 28%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -29,6 +29,9 @@ BuildRequires: zlib-devel BuildRequires: bison BuildRequires: flex BuildRequires: doxygen +%if 0%{?fedora} >= 31 +BuildRequires: /usr/bin/2to3 +%endif Requires(pre): shadow-utils BuildRequires: systemd-rpm-macros Provides: group(%username) @@ -64,7 +67,11 @@ libft. %package rrdtool Summary: Scripts for flow-tools to build rrd graphs Requires: %{name} = %{version}-%{release} +%if 0%{?fedora} >= 31 +Requires: python3-rrdtool +%else Requires: python2-rrdtool +%endif %description rrdtool Flow-tools is library and a collection of programs used to collect, @@ -75,7 +82,7 @@ of custom applications for NetFlow export versions 1,5,6 and the 14 currently defined version 8 subversions. A Perl and Python interface have been contributed and are included in the distribution. -This package contains scripts that use python2-rrdtool to create rrds and graphs +This package contains scripts that use python-rrdtool to create rrds and graphs from flow data. %package docs @@ -97,7 +104,12 @@ This package contains additional documentation, such as man pages in html format %setup -q %patch0 -p1 # Remove /bin/env deps +%if 0%{?fedora} >= 31 +sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow* +2to3 --write --nobackups bin/flow* +%else sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow* +%endif sed -i '1s|^#!.*perl|#!/usr/bin/perl|' utils/* # Fix mariadb-connector-c detection sed -i s/my_init/mysql_init/g configure @@ -219,6 +231,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Aug 21 2019 Orion Poplawski - 0.68.5.1-28 +- Use python 3 for Fedora 31+ (bugz#1737952) + * Tue Jul 30 2019 Orion Poplawski - 0.68.5.1-27 - Fix systemd macro usage From 61ed33ab67251599c26a2e2636f1926b0448ab8a Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 27 Jan 2020 20:48:44 -0700 Subject: [PATCH 090/109] Add patch to fix extern usage for gcc 10 --- flow-tools-extern.patch | 12 ++++++++++++ flow-tools.spec | 11 ++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 flow-tools-extern.patch diff --git a/flow-tools-extern.patch b/flow-tools-extern.patch new file mode 100644 index 0000000..9c0afa9 --- /dev/null +++ b/flow-tools-extern.patch @@ -0,0 +1,12 @@ +diff -up flow-tools-0.68.5.1/src/flow-filter.c.extern flow-tools-0.68.5.1/src/flow-filter.c +--- flow-tools-0.68.5.1/src/flow-filter.c.extern 2008-01-27 13:48:55.000000000 -0700 ++++ flow-tools-0.68.5.1/src/flow-filter.c 2020-01-27 20:44:13.176636051 -0700 +@@ -56,7 +56,7 @@ + int debug; + int ip_net_only; + +-struct acl_list acl_list; ++extern struct acl_list acl_list; + + int yyparse (void); + void usage(void); diff --git a/flow-tools.spec b/flow-tools.spec index 3887957..8683b6d 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,13 +12,16 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 28%{?dist} +Release: 29%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.service Source2: flow-capture.sysconfig Patch0: flow-werror-fix.patch +# Fix extern usage +Patch1: flow-tools-extern.patch + BuildRequires: gcc %if 0%{with openssl} BuildRequires: openssl-devel @@ -101,8 +104,7 @@ contributed and are included in the distribution. This package contains additional documentation, such as man pages in html format. %prep -%setup -q -%patch0 -p1 +%autosetup -p1 # Remove /bin/env deps %if 0%{?fedora} >= 31 sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow* @@ -231,6 +233,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Jan 28 2020 Orion Poplawski - 0.68.5.1-29 +- Add patch to fix extern usage for gcc 10 + * Wed Aug 21 2019 Orion Poplawski - 0.68.5.1-28 - Use python 3 for Fedora 31+ (bugz#1737952) From 57db730e31dbc00462994e8c1f8f72558467c7f8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 17:37:06 +0000 Subject: [PATCH 091/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 8683b6d..aaaafe0 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 29%{?dist} +Release: 30%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -233,6 +233,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 0.68.5.1-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Tue Jan 28 2020 Orion Poplawski - 0.68.5.1-29 - Add patch to fix extern usage for gcc 10 From 669cd5f72c22cbe5494ade7a949c8116fe9eb062 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 5 Jan 2021 00:41:18 +0000 Subject: [PATCH 092/109] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- flow-tools.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/flow-tools.spec b/flow-tools.spec index aaaafe0..a9fb27e 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -37,6 +37,7 @@ BuildRequires: /usr/bin/2to3 %endif Requires(pre): shadow-utils BuildRequires: systemd-rpm-macros +BuildRequires: make Provides: group(%username) Provides: user(%username) From 00be7efaf9fd5b0a6e249d2f3b822d4556f09b86 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 05:42:32 +0000 Subject: [PATCH 093/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index a9fb27e..9ad5fb7 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 30%{?dist} +Release: 31%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -234,6 +234,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 0.68.5.1-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 0.68.5.1-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 7798d3e6005e0b2598ed00fac313a30bca2536c6 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 8 Feb 2021 09:25:11 +0100 Subject: [PATCH 094/109] rebuild for libpq ABI fix Related: rhbz#1908268 --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 9ad5fb7..34f52ff 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 31%{?dist} +Release: 32%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -234,6 +234,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Mon Feb 08 2021 Pavel Raiskup - 0.68.5.1-32 +- rebuild for libpq ABI fix rhbz#1908268 + * Tue Jan 26 2021 Fedora Release Engineering - 0.68.5.1-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From c8580fa589e87d6b2f2527f564044147e81f31ca Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 23:08:07 +0000 Subject: [PATCH 095/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 34f52ff..7cb0924 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 32%{?dist} +Release: 33%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -234,6 +234,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 0.68.5.1-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Mon Feb 08 2021 Pavel Raiskup - 0.68.5.1-32 - rebuild for libpq ABI fix rhbz#1908268 From da0a03013002bc378618e0b7e6215c42cd0f6810 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 03:10:54 +0000 Subject: [PATCH 096/109] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 7cb0924..3680abb 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 33%{?dist} +Release: 34%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -234,6 +234,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 0.68.5.1-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Wed Jul 21 2021 Fedora Release Engineering - 0.68.5.1-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 0fe819d45bf8f8a4d6c7a35c082abf71a78002ff Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 03:21:33 +0000 Subject: [PATCH 097/109] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 3680abb..9b62066 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 34%{?dist} +Release: 35%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -234,6 +234,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 0.68.5.1-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Thu Jan 20 2022 Fedora Release Engineering - 0.68.5.1-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 95147493b19a09d69a9bb00b756881d511839087 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 03:37:52 +0000 Subject: [PATCH 098/109] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 9b62066..0815a58 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 35%{?dist} +Release: 36%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -234,6 +234,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 0.68.5.1-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Thu Jul 21 2022 Fedora Release Engineering - 0.68.5.1-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 5590477b99c33b61a4d18436453a29e398be01aa Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 19 Jan 2023 12:16:52 +0100 Subject: [PATCH 099/109] C99 compatibility fixes (#2162330) Related to: --- flow-tools-c99.patch | 59 ++++++++++++++++++++++++++++++++++++++++++++ flow-tools.spec | 6 ++++- 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 flow-tools-c99.patch diff --git a/flow-tools-c99.patch b/flow-tools-c99.patch new file mode 100644 index 0000000..c9fd14e --- /dev/null +++ b/flow-tools-c99.patch @@ -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 + #include "acl2.h" + #include /* 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; diff --git a/flow-tools.spec b/flow-tools.spec index 0815a58..377765d 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 36%{?dist} +Release: 37%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -21,6 +21,7 @@ Source2: flow-capture.sysconfig Patch0: flow-werror-fix.patch # Fix extern usage Patch1: flow-tools-extern.patch +Patch2: flow-tools-c99.patch BuildRequires: gcc %if 0%{with openssl} @@ -234,6 +235,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Jan 19 2023 Florian Weimer - 0.68.5.1-37 +- C99 compatibility fixes (#2162330) + * Thu Jan 19 2023 Fedora Release Engineering - 0.68.5.1-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 6397f12daae746adb19e0baf5533f754cb026c3d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 19:55:48 +0000 Subject: [PATCH 100/109] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 377765d..bf26ac4 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 37%{?dist} +Release: 38%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -235,6 +235,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 0.68.5.1-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jan 19 2023 Florian Weimer - 0.68.5.1-37 - C99 compatibility fixes (#2162330) From af92d97bc98d3449bee1748617fd62ac4bbe51c8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 19:31:02 +0000 Subject: [PATCH 101/109] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index bf26ac4..dd910fe 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 38%{?dist} +Release: 39%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -235,6 +235,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 0.68.5.1-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 0.68.5.1-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From d0d654f9a82d5ecf25490d403aec0856d8377e99 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 11:46:20 +0000 Subject: [PATCH 102/109] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index dd910fe..1d25637 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 39%{?dist} +Release: 40%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -235,6 +235,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 0.68.5.1-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 0.68.5.1-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 23eb92d01e87652d55c1e6b92d5613765438c6ae Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 23:20:33 +0000 Subject: [PATCH 103/109] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index 1d25637..a0c2971 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 40%{?dist} +Release: 41%{?dist} License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 @@ -235,6 +235,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 0.68.5.1-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Wed Jan 24 2024 Fedora Release Engineering - 0.68.5.1-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 74593b54b0ba666696361b63c9fec1b3e7bca131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 28 Aug 2024 09:40:10 +0200 Subject: [PATCH 104/109] convert license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- flow-tools.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index a0c2971..a6ee1bd 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,8 +12,9 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 41%{?dist} -License: BSD +Release: 42%{?dist} +# Automatically converted from old format: BSD - review is highly recommended. +License: LicenseRef-Callaway-BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.service @@ -235,6 +236,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Aug 28 2024 Miroslav Suchý - 0.68.5.1-42 +- convert license to SPDX + * Wed Jul 17 2024 Fedora Release Engineering - 0.68.5.1-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 311a467f2850df82a37cde9ef797054ed7bb4c2e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 18:29:50 +0000 Subject: [PATCH 105/109] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index a6ee1bd..ebe1f9c 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 42%{?dist} +Release: 43%{?dist} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: http://code.google.com/p/%{name}/ @@ -236,6 +236,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 0.68.5.1-43 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Aug 28 2024 Miroslav Suchý - 0.68.5.1-42 - convert license to SPDX From 95595bde3187aa850ef7e14de982492b92486abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 11 Feb 2025 15:35:16 +0100 Subject: [PATCH 106/109] Add sysusers.d config file to allow rpm to create users/groups automatically See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers. --- flow-tools.spec | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index ebe1f9c..93fdf4b 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 43%{?dist} +Release: 44%{?dist} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: http://code.google.com/p/%{name}/ @@ -37,7 +37,6 @@ BuildRequires: doxygen %if 0%{?fedora} >= 31 BuildRequires: /usr/bin/2to3 %endif -Requires(pre): shadow-utils BuildRequires: systemd-rpm-macros BuildRequires: make Provides: group(%username) @@ -119,6 +118,11 @@ sed -i '1s|^#!.*perl|#!/usr/bin/perl|' utils/* # Fix mariadb-connector-c detection sed -i s/my_init/mysql_init/g configure +# Create a sysusers.d config file +cat >flow-tools.sysusers.conf </dev/null || groupadd -r %{username} -getent passwd %{username} >/dev/null || \ - useradd -r -g %{username} -d %{homedir} -s /sbin/nologin \ - -c '%{gecos}' %{username} -exit 0 +install -m0644 -D flow-tools.sysusers.conf %{buildroot}%{_sysusersdir}/flow-tools.conf + %post @@ -221,6 +221,7 @@ exit 0 %attr(-,flow-tools,flow-tools) %{_localstatedir}/%{name}/ %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/* +%{_sysusersdir}/flow-tools.conf %files devel %{_libdir}/*.so @@ -236,6 +237,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 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 - 0.68.5.1-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 0fae65d297c10edbe547122e62616431919d050a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 14 Mar 2025 15:59:43 +0100 Subject: [PATCH 107/109] Drop Provides for user/group with uid/gid This duplicates the autogenerated Provides. --- flow-tools.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index 93fdf4b..ec39933 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -39,8 +39,6 @@ BuildRequires: /usr/bin/2to3 %endif BuildRequires: systemd-rpm-macros BuildRequires: make -Provides: group(%username) -Provides: user(%username) %description From 23a5f53cc021c34b35e6270eecd77078605f5927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 14 Mar 2025 16:03:46 +0100 Subject: [PATCH 108/109] Fix FTBFS ... (rhbz#2244833, rhbz#2340163) With apologies to python-sig members ;( --- flow-tools.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index ec39933..dd5ac92 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -35,7 +35,7 @@ BuildRequires: bison BuildRequires: flex BuildRequires: doxygen %if 0%{?fedora} >= 31 -BuildRequires: /usr/bin/2to3 +BuildRequires: python3.12 %endif BuildRequires: systemd-rpm-macros BuildRequires: make @@ -108,7 +108,7 @@ This package contains additional documentation, such as man pages in html format # Remove /bin/env deps %if 0%{?fedora} >= 31 sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow* -2to3 --write --nobackups bin/flow* +python3.12 -m lib2to3 --write --nobackups bin/flow* %else sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow* %endif @@ -122,6 +122,7 @@ u flow-tools - '%{gecos}' %{homedir} - EOF %build +export CFLAGS="$CFLAGS -std=gnu17" %configure \ --localstatedir=%{_localstatedir}/%{name} \ --sysconfdir=%{_sysconfdir}/%{name} \ From 96e2834a8c5d902b94acc6c68b51f6e52749ffc6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 20:37:52 +0000 Subject: [PATCH 109/109] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- flow-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-tools.spec b/flow-tools.spec index dd5ac92..a6cf761 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -12,7 +12,7 @@ Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 44%{?dist} +Release: 45%{?dist} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: http://code.google.com/p/%{name}/ @@ -236,6 +236,9 @@ install -m0644 -D flow-tools.sysusers.conf %{buildroot}%{_sysusersdir}/flow-tool %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 0.68.5.1-45 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 0.68.5.1-44 - Add sysusers.d config file to allow rpm to create users/groups automatically