From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 B852B138334 for ; Thu, 8 Nov 2018 22:52:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 196F4E0B28; Thu, 8 Nov 2018 22:52:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 CC6CEE0B28 for ; Thu, 8 Nov 2018 22:52:11 +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 166EC335CC0 for ; Thu, 8 Nov 2018 22:52:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 20EE6451 for ; Thu, 8 Nov 2018 22:52:08 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1541717471.9c8bb9cc95b5377a20d0d3e84092f9a93193e3b0.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/barnyard2/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/barnyard2/Manifest net-analyzer/barnyard2/barnyard2-1.9-r1.ebuild X-VCS-Directories: net-analyzer/barnyard2/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 9c8bb9cc95b5377a20d0d3e84092f9a93193e3b0 X-VCS-Branch: master Date: Thu, 8 Nov 2018 22:52:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1ef4a8e1-283a-4967-b135-6483e5e44eb4 X-Archives-Hash: cb4307a866f4e0b9ebc2adc6fbbd8883 commit: 9c8bb9cc95b5377a20d0d3e84092f9a93193e3b0 Author: Michael Mair-Keimberger gmail com> AuthorDate: Fri Aug 17 19:15:38 2018 +0000 Commit: Patrice Clement gentoo org> CommitDate: Thu Nov 8 22:51:11 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c8bb9cc net-analyzer/barnyard2: fix SRC_URI, HOMEPAGE, EAPI7, improve ebuild. Closes: https://bugs.gentoo.org/663910 Signed-off-by: Michael Mair-Keimberger gmail.com> Closes: https://github.com/gentoo/gentoo/pull/9603 Signed-off-by: Patrice Clement gentoo.org> net-analyzer/barnyard2/Manifest | 1 + net-analyzer/barnyard2/barnyard2-1.9-r1.ebuild | 76 ++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/net-analyzer/barnyard2/Manifest b/net-analyzer/barnyard2/Manifest index 19f506877e8..d7670b3accd 100644 --- a/net-analyzer/barnyard2/Manifest +++ b/net-analyzer/barnyard2/Manifest @@ -1 +1,2 @@ +DIST barnyard2-1.9-r1.tar.gz 344672 BLAKE2B 720d55170eaf66d2fac7a73990f00dab6faf27c5fcfbcd2f3fa5bad8fa028880fc257a78b60660eaaa5cea3cd8ab04aea2ad173d2135757d7a1f93a80e049d06 SHA512 eb10e4333e862ba6d708e7956b86f9da5da8c52b2756724e821ac5f5ba064791cf84125942bf76e7c563f62c83558aff90219ccc694884e213f6571428849666 DIST barnyard2-1.9.tar.gz 652879 BLAKE2B 958c926b26ff81c2baaf6993c1eafb10b48d1dc570b885f20f5893d64a56176f39ed5a872fb326d24b699406a0e60bbd1347df56612b5b85148505c72f6544ed SHA512 441a5751b28fd5c0aca73a78a58219a6ce58393e15bf735ae012719d1180e8e58a91d4170fe5c623bfe83de8ca0c04fb6975c8c7d5b6421ceedbf2023b44e72a diff --git a/net-analyzer/barnyard2/barnyard2-1.9-r1.ebuild b/net-analyzer/barnyard2/barnyard2-1.9-r1.ebuild new file mode 100644 index 00000000000..8bd23af3078 --- /dev/null +++ b/net-analyzer/barnyard2/barnyard2-1.9-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Parser for Snort unified/unified2 files" +HOMEPAGE="https://github.com/firnsy/barnyard2 https://firnsy.com/projects" +SRC_URI="https://github.com/firnsy/barnyard2/archive/v2-${PV}.tar.gz -> ${PF}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="debug gre mpls mysql odbc postgres static" + +DEPEND="net-libs/libpcap + mysql? ( virtual/mysql ) + odbc? ( dev-db/unixODBC ) + postgres? ( dev-db/postgresql:*[server] )" +RDEPEND="${DEPEND}" + +DOCS="RELEASE.NOTES etc/barnyard2.conf doc/README* schemas/create_*" + +S="${WORKDIR}/${PN}-2-${PV}" + +src_prepare() { + default + sed -i -e "s:^#config interface:config interface:" \ + "etc/barnyard2.conf" || die + sed -i -e "s:^output alert_fast:#output alert_fast:" \ + "etc/barnyard2.conf" || die + + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + econf \ + $(use_enable !static shared) \ + $(use_enable static) \ + $(use_enable debug) \ + $(use_enable gre) \ + $(use_enable mpls) \ + $(use_with mysql) \ + $(use_with odbc) \ + $(use_with postgres postgresql) \ + --disable-ipv6 \ + --disable-prelude \ + --disable-mysql-ssl-support \ + --disable-aruba \ + --without-tcl \ + --without-oracle +} + +src_install () { + default + + newconfd "${FILESDIR}/barnyard2.confd" barnyard2 + newinitd "${FILESDIR}/barnyard2.initd" barnyard2 + + dodir /etc/barnyard2 \ + /var/log/snort \ + /var/log/snort/archive \ + /var/log/barnyard2 + + keepdir /var/log/barnyard2 + keepdir /var/log/snort/archive + + rm "${D}"/etc/barnyard2.conf || die +} + +pkg_postinst() { + elog "Configuration options can be set in /etc/conf.d/barnyard2." + elog + elog "An example configuration file can be found in /usr/share/doc/${PF}." +}