summaryrefslogtreecommitdiff
path: root/net-analyzer/flow-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
commit9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch)
treeb690ddc0ca30f1472887edbb0b8313629bfcbbb2 /net-analyzer/flow-tools
parentb17a3ef12038de50228bade1f05502c74e135321 (diff)
gentoo resync : 16.09.2020
Diffstat (limited to 'net-analyzer/flow-tools')
-rw-r--r--net-analyzer/flow-tools/Manifest7
-rw-r--r--net-analyzer/flow-tools/files/flow-tools-0.68.5.1-fno-common.patch4
-rw-r--r--net-analyzer/flow-tools/files/flow-tools-0.68.5.1-openssl11.patch5
-rw-r--r--net-analyzer/flow-tools/files/flow-tools-0.68.6-mysql.patch15
-rw-r--r--net-analyzer/flow-tools/flow-tools-0.68.6.ebuild89
5 files changed, 113 insertions, 7 deletions
diff --git a/net-analyzer/flow-tools/Manifest b/net-analyzer/flow-tools/Manifest
index c970e4041469..31c270a2ecf5 100644
--- a/net-analyzer/flow-tools/Manifest
+++ b/net-analyzer/flow-tools/Manifest
@@ -1,10 +1,13 @@
-AUX flow-tools-0.68.5.1-fno-common.patch 965 BLAKE2B 183dc878e05baa7ba9e9c26079e8c22f4e0eee68cec917048bbd81911980bce88c5da753a7481eb35fc5f38e821d92bf80de4b8f6a1e5c974c1f7f696e540623 SHA512 bff9bcb57063cbdffbb169590e16d1d215b58726bf0fb6f069883cd9b483503d7f488cb76091e249905c8ad2a23b915b049f693b83eeca655d0c111363d9bef0
-AUX flow-tools-0.68.5.1-openssl11.patch 1251 BLAKE2B 682c34b207517fc74e090c6aa04ba9acd7b4aa7bb2ea7b8cae45d608777b1a8760d6e22759dd10fcb4d5f3a9e258b34d07454efd2cc93134125d195b36714cd5 SHA512 c43cc2de4243b0567c07f66f0b674cb6974dee5689bbea50716ebc5cd49f4d66a739c39ff4ccadef23c7f84e26fe3a3cc4999b7db0bdda77035dbd5cfc678861
+AUX flow-tools-0.68.5.1-fno-common.patch 965 BLAKE2B f15d1d6fc60b9ba916ccefa44f30b683d93931770a3113b533b51a52146f63e56fe0db864a03a5df0fc1ecd5a58e464944c5df28cd929556d6615617f3b975d2 SHA512 ec26e4ea284e0b2aff3a73b6b76e0a87c336dbe81d0492db3b7809de17103c47d220d2d20bc9fce853bb10e7b11c35dd6943b6cb1ef305bd8ffe147bc7bec18c
+AUX flow-tools-0.68.5.1-openssl11.patch 1039 BLAKE2B 2787119195c98ad92260b282b60fbb2bfb56d09a0ae7c999238d61d3b1e25dfb7e02590f8f78910e5b85111899db72f7d3bb3ce96c6c357f7ab4e6b01a67f109 SHA512 03a48e6e297d701b04259bf354b5a032ed660d99fb6941054f8d02f215681561a152ed10411bc0fa93b27be223b874316f989dff779aac458db87b0118947590
AUX flow-tools-0.68.5.1-run.patch 493 BLAKE2B dc1ab3e5abd6a7d502aa2bc1150c97a569c0d6e55bdb96e2a3404966487f637fef064191a00ba1cfb63c62ecbbb9c0359e231381e193ae13340820418908b371 SHA512 90c9f8bc6aba4c31315294ba80ebc3f7a8b86796d6fc108ef9ebf7619df73474e1a97524b709964ba899f4569a0158d0cc0a2d5bb00e8b185186cf765b87ce9d
AUX flow-tools-0.68.5.1-syslog.patch 979 BLAKE2B c3ae5017c5f2f7c6c69cbce88b38f95a8def62fb5e14a769262f3f62a32df50d5831d883935ec26e01ece35388855fce3855cfba44f72064e3115a46b4ea8920 SHA512 d2d37816f437c5546916ca53bd460707366b3675ac9e9105a9611ed436d322afd6ee56fa29b1d6e68f3a02c97a62ca009d392fdb63fca411ace851dc29419537
+AUX flow-tools-0.68.6-mysql.patch 479 BLAKE2B 9c22f8aae5bc57c2d86e88d69bfcac438e8d1fc2f5d6bb4fe61612e3042709d46edc0e1a4159b54bf98e153ae1e0acf08b06b317b4029a9605933dfef41d40f7 SHA512 fbdbcf7a716375a70a6677d35aa81f0f07fbf67d3de7ace72cc4b0b548d5b7fed32d0f0f4420672a88ec60ea2f72e109f9c3a3903cd66be7dbec85fa445dd9ec
AUX flowcapture.confd 1928 BLAKE2B db22630c3741867466c1292651364e41028dafeeaf10d1d18403fbd0bb95ec3a58faf04e164d97e6eefe4c1b2f526ed96ce44b7a410cd6e3efb0c3b98e15b3b0 SHA512 e9dcc5d66833e9bf2905273efcb6b7cab69050da50425256629bf12203c7bd9fed87ac33a772903d78f5fbab69045bc4e0f09d26ea1442cdc5c5bd0102a09c05
AUX flowcapture.initd 816 BLAKE2B 6e27085fa0b8048f1b6f2d449d154a0fe9f2d7b8fa511de53d7eca684ef716b8ceeaaa3fedf9e0a01e76b1723e6646b6727bc76c3e9b2168060fe3bd7b363af7 SHA512 c3f62821efc94fb6305ba3c54415319c42a624a3c604c96497af0fdd7b4076e618a070006146346eb3de0549bc2bc36e3e3ffd9f7aba832dd18c29da0370463a
AUX linkme 283 BLAKE2B 1c1e84a29f8fccc62dc84ba8ffbd182255a5bda7979132ff721fc537bb523e221b3963e3dce4f5700f53586ef4c4acccbab605099edf7e068bf6dd2e71882721 SHA512 a9db8dec8b6f2a83b8896951bf1711ec7c58dd18d2da7db7015c0a000114b3d1da9bee4dd64842c074b332a06a890b2eea1b8ffc0399ce0efa39bf6527466359
DIST flow-tools-0.68.5.1.tar.bz2 914062 BLAKE2B 8a987c1aac53a1370045ab118888c51ce2de7b8db4074432e86e701153469163870cf1cf9da9e2267ed934d240de4b4bf2391b4681012b82db7e4205207b7fa4 SHA512 ae17ba39854daa8ef3deecd3a554bb6d1fa47648cb791d8225a40bec13f65bf0692871660b2c3490d133b1251875c323d066bb0c0483eceb0707cec9b7714c57
+DIST flow-tools-0.68.6.tar.gz 1078778 BLAKE2B 8a6179e44f2efa90bb2c3ace73bfbb8a928c1d7aabc8f47a778ca7361a92c13f2df168194bdd9c489c175079c1bd977f6ad9852711a62d99649d1f44609d746b SHA512 fc3d0650ace93ec2180340624648b5967fd7f094900f8409e751b439eb659c9623e2ee55effeb74164ec6b15f0a1edd8ed7735ccfacfd72af08e9c5c0d65b740
EBUILD flow-tools-0.68.5.1-r10.ebuild 1674 BLAKE2B 0388edf037c985e35961e04268db72741ca859bf0018759849e54e66451bea1876c65dd0bc419d3b05d53755aeb6b7d1a8b722845d53d124638a469b04503cac SHA512 954c240c465fdda3dad18f15b95fcde793979c5589f5db31f3c67fc12e0aca539e91c6052f13daffae806010d1b3d26be132048a9ab4d9ab9ea64e2b256fa63e
+EBUILD flow-tools-0.68.6.ebuild 1928 BLAKE2B 2e4ad0d586558a6fe1e1afbcebe8876d0711a562bc9d50f28f437f47f8c12cc1a90c6c2a310757f1dd7af4b2c626ddc26896839c66c7a19a978ddc64e4689267 SHA512 cc3d7801996709869f4ff7a630d650406f924639e8023d87e4abb76dd13152560105e0157f749cad8ba13ac96b78640928ef33f3c9677ff7940c27c2d2e62a23
MISC metadata.xml 902 BLAKE2B 16f4780c8fc2a803580d1ad9321e1db662c1c720f744f544b57a2eb65f9859c02dced677f3ea1732b05afe70abb55b4a9c349fb375ee24abf083b8376d521fb1 SHA512 45f900d25bc2b968ce9a04fd143106962c1a242b776840eb2c1b51f0e02d71000f9a2fdf19286f7873e07c25aa9d528597f1b1fe0e7e083c29de5304b87aeab3
diff --git a/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-fno-common.patch b/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-fno-common.patch
index 14623fa93f36..1f7464919960 100644
--- a/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-fno-common.patch
+++ b/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-fno-common.patch
@@ -1,5 +1,5 @@
---- ./src/acl2.h
-+++ ./src/acl2.h
+--- a/src/acl2.h
++++ b/src/acl2.h
@@ -48,7 +48,7 @@
#define ACL_TYPE_STD 1
#define ACL_TYPE_EXT 2
diff --git a/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-openssl11.patch b/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-openssl11.patch
index c6b17743ce91..686d40ab8079 100644
--- a/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-openssl11.patch
+++ b/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-openssl11.patch
@@ -1,6 +1,5 @@
-diff -Nuar --exclude '*~' flow-tools-0.68.5.1.orig/lib/ftxlate.c flow-tools-0.68.5.1/lib/ftxlate.c
---- flow-tools-0.68.5.1.orig/lib/ftxlate.c 2008-01-27 12:48:49.000000000 -0800
-+++ flow-tools-0.68.5.1/lib/ftxlate.c 2018-12-29 15:18:33.739062317 -0800
+--- a/lib/ftxlate.c
++++ b/lib/ftxlate.c
@@ -34,6 +34,14 @@
#include <openssl/ssl.h>
#include <openssl/evp.h>
diff --git a/net-analyzer/flow-tools/files/flow-tools-0.68.6-mysql.patch b/net-analyzer/flow-tools/files/flow-tools-0.68.6-mysql.patch
new file mode 100644
index 000000000000..a270567fc205
--- /dev/null
+++ b/net-analyzer/flow-tools/files/flow-tools-0.68.6-mysql.patch
@@ -0,0 +1,15 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -62,11 +62,9 @@
+ if test "x$WHERE_MYSQL" != "x"; then
+ old_LIBS="$LIBS"
+ old_LDFLAGS="$LDFLAGS"
+- LDFLAGS="$LDFLAGS -L$WHERE_MYSQL/lib/mysql"
+- AC_CHECK_LIB(mysqlclient, my_init,
++ AC_CHECK_LIB(mysqlclient, mysql_init,
+ [
+ MYSQLCFLAGS="-I$WHERE_MYSQL/include/mysql"
+- MYSQLLDFLAGS="-L$WHERE_MYSQL/lib/mysql"
+ MYSQLLIB="-lmysqlclient"
+ AC_DEFINE(HAVE_MYSQL, 1, [Do we have to build MySQL support])
+ ]
diff --git a/net-analyzer/flow-tools/flow-tools-0.68.6.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.6.ebuild
new file mode 100644
index 000000000000..b95e64990111
--- /dev/null
+++ b/net-analyzer/flow-tools/flow-tools-0.68.6.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools user
+
+DESCRIPTION="library and programs to process reports from NetFlow data"
+HOMEPAGE="https://github.com/5u623l20/flow-tools/"
+SRC_URI="https://github.com/5u623l20/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug libressl mysql postgres ssl static-libs"
+
+RDEPEND="
+ sys-apps/tcp-wrappers
+ sys-libs/zlib
+ mysql? ( dev-db/mysql-connector-c:0= )
+ postgres? ( dev-db/postgresql:* )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ app-text/docbook-sgml-utils
+ sys-devel/bison
+ sys-devel/flex
+"
+DOCS=( ChangeLog.old README README.fork SECURITY TODO TODO.old )
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.68.5.1-run.patch
+ "${FILESDIR}"/${PN}-0.68.5.1-openssl11.patch
+ "${FILESDIR}"/${PN}-0.68.5.1-fno-common.patch
+ "${FILESDIR}"/${PN}-0.68.6-mysql.patch
+)
+
+pkg_douser() {
+ enewgroup flows
+ enewuser flows -1 -1 /var/lib/flows flows
+}
+
+pkg_setup() {
+ pkg_douser
+}
+
+src_prepare() {
+ default
+ sed -i -e 's|docbook-to-man|docbook2man|g' docs/Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(usex mysql --with-mysql '') \
+ $(usex postgres --with-postgresql=yes --with-postgresql=no) \
+ $(usex ssl --with-openssl '') \
+ --sysconfdir=/etc/flow-tools
+}
+
+src_install() {
+ default
+
+ exeinto /var/lib/flows/bin
+ doexe "${FILESDIR}"/linkme
+
+ keepdir /var/lib/flows/ft
+
+ newinitd "${FILESDIR}/flowcapture.initd" flowcapture
+ newconfd "${FILESDIR}/flowcapture.confd" flowcapture
+
+ fowners flows:flows /var/lib/flows
+ fowners flows:flows /var/lib/flows/bin
+ fowners flows:flows /var/lib/flows/ft
+
+ fperms 0755 /var/lib/flows
+ fperms 0755 /var/lib/flows/bin
+
+ find "${ED}" -name '*.la' -delete || die
+}
+
+pkg_preinst() {
+ pkg_douser
+}