From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1072231-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A31BC138334 for <garchives@archives.gentoo.org>; Thu, 14 Feb 2019 19:51:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 76F14E087B; Thu, 14 Feb 2019 19:51:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38D1CE087B for <gentoo-commits@lists.gentoo.org>; Thu, 14 Feb 2019 19:51:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 524AE335C3D for <gentoo-commits@lists.gentoo.org>; Thu, 14 Feb 2019 19:51:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A1E16503 for <gentoo-commits@lists.gentoo.org>; Thu, 14 Feb 2019 19:51:00 +0000 (UTC) From: "Brian Evans" <grknight@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" <grknight@gentoo.org> Message-ID: <1550173849.65092da067a661727d15db17bccd679d84baf10f.grknight@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/flow-tools/files/, net-analyzer/flow-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/flow-tools/files/flow-tools-0.68.5.1-openssl11.patch net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild X-VCS-Directories: net-analyzer/flow-tools/files/ net-analyzer/flow-tools/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: 65092da067a661727d15db17bccd679d84baf10f X-VCS-Branch: master Date: Thu, 14 Feb 2019 19:51:00 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 10caf9b2-5e31-4e78-a151-bf87fccfed46 X-Archives-Hash: 4450b2224aea95b3ac4736d6e472470c commit: 65092da067a661727d15db17bccd679d84baf10f Author: Brian Evans <grknight <AT> gentoo <DOT> org> AuthorDate: Thu Feb 14 19:48:29 2019 +0000 Commit: Brian Evans <grknight <AT> gentoo <DOT> org> CommitDate: Thu Feb 14 19:50:49 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65092da0 net-analyzer/flow-tools: Revbump to fix compile and mysql dependency Non-maintainer commit. Original ebuild and patch by Robin Johnson <robbat2 <AT> gentoo.org> Additional change for mysql dep by me Bug: https://bugs.gentoo.org/674032 Bug: https://bugs.gentoo.org/665940 Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Brian Evans <grknight <AT> gentoo.org> .../files/flow-tools-0.68.5.1-openssl11.patch | 47 +++++++++++++ .../flow-tools/flow-tools-0.68.5.1-r10.ebuild | 78 ++++++++++++++++++++++ 2 files changed, 125 insertions(+) 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 new file mode 100644 index 00000000000..c6b17743ce9 --- /dev/null +++ b/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-openssl11.patch @@ -0,0 +1,47 @@ +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 +@@ -34,6 +34,14 @@ + #include <openssl/ssl.h> + #include <openssl/evp.h> + #undef free_func ++ ++/* fixup LibreSSL OpenSSL version numbering */ ++#include <openssl/opensslv.h> ++#if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L) ++#undef OPENSSL_VERSION_NUMBER ++#define OPENSSL_VERSION_NUMBER 0x1000107fL ++#endif ++ + #endif /* HAVE_OPENSSL */ + + #include <sys/time.h> +@@ -2040,11 +2048,13 @@ + + + /* init crypto */ ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + if (!(cp->cipher_ctx = (EVP_CIPHER_CTX*) malloc(sizeof(EVP_CIPHER_CTX)))) { + return -1; + } + + EVP_CIPHER_CTX_init(cp->cipher_ctx); ++#endif + + /* disable padding */ + if (!(EVP_CIPHER_CTX_set_padding(cp->cipher_ctx, 0))) { +@@ -2083,10 +2093,14 @@ + { + + #ifdef HAVE_OPENSSL ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + EVP_CIPHER_CTX_cleanup(cp->cipher_ctx); + + if (cp->cipher_ctx) + free (cp->cipher_ctx); ++#else ++ EVP_CIPHER_CTX_free(cp->cipher_ctx); ++#endif + #endif /* HAVE_OPENSSL */ + + return 0; diff --git a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild new file mode 100644 index 00000000000..9d62c33981a --- /dev/null +++ b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit user + +DESCRIPTION="library and programs to process reports from NetFlow data" +HOMEPAGE="https://code.google.com/p/flow-tools/" +SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" + +LICENSE="BSD GPL-2" +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} + sys-devel/flex + sys-devel/bison" + +DOCS=( ChangeLog README SECURITY TODO ) + +PATCHES=( + "${FILESDIR}"/${P}-run.patch + "${FILESDIR}"/${P}-syslog.patch + "${FILESDIR}"/${P}-openssl11.patch +) + +pkg_setup() { + pkg_douser +} + +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 + + find "${D}" -name '*.la' -delete || die + + 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 +} + +pkg_preinst() { + pkg_douser +} + +pkg_douser() { + enewgroup flows + enewuser flows -1 -1 /var/lib/flows flows +}