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 C809D139694 for ; Thu, 16 Mar 2017 21:45:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0741921C093; Thu, 16 Mar 2017 21:45:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C7E8721C093 for ; Thu, 16 Mar 2017 21:45:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A579D341130 for ; Thu, 16 Mar 2017 21:45:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0FEB06A9F for ; Thu, 16 Mar 2017 21:45:33 +0000 (UTC) From: "Göktürk Yüksek" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Göktürk Yüksek" Message-ID: <1489700272.97beaa6ca3c53de61ff16e70601be7b397b5f003.gokturk@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/filebeat/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/filebeat/Manifest app-admin/filebeat/filebeat-5.2.2.ebuild X-VCS-Directories: app-admin/filebeat/ X-VCS-Committer: gokturk X-VCS-Committer-Name: Göktürk Yüksek X-VCS-Revision: 97beaa6ca3c53de61ff16e70601be7b397b5f003 X-VCS-Branch: master Date: Thu, 16 Mar 2017 21:45:33 +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: 73b6280f-074c-4747-b62c-30b1a49b7838 X-Archives-Hash: 800e9dad3eab68290ea79cd7eab48675 commit: 97beaa6ca3c53de61ff16e70601be7b397b5f003 Author: Tomas Mozes gmail com> AuthorDate: Mon Mar 6 07:55:10 2017 +0000 Commit: Göktürk Yüksek gentoo org> CommitDate: Thu Mar 16 21:37:52 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97beaa6c app-admin/filebeat: bump to 5.2.2 Package-Manager: Portage-2.3.3, Repoman-2.3.1 app-admin/filebeat/Manifest | 1 + app-admin/filebeat/filebeat-5.2.2.ebuild | 69 ++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/app-admin/filebeat/Manifest b/app-admin/filebeat/Manifest index c62fc44a80a..ed529004b32 100644 --- a/app-admin/filebeat/Manifest +++ b/app-admin/filebeat/Manifest @@ -1 +1,2 @@ DIST filebeat-5.1.2.tar.gz 16512836 SHA256 7cd554f8be6b02290ebbc17c9820acde3dc59108672ced7a0cf5486faa3e23ce SHA512 f5ade54c3a2471680067fc5f6861ddcc052177c473f40d2135ba281e63172a4ba386368f77e5e4ba77b60c88ee20e5cd0095705aa3ed6e2588fda034de6b116f WHIRLPOOL 438119b4e5664ee0cff2a70b811ea4c247def4b15efdc1bcc243f157fe88669636c6465b93316adc2d774e5b4109856c54cc658bde2636393431b0f30a712f80 +DIST filebeat-5.2.2.tar.gz 16489808 SHA256 45c89fab339de3d3e7f9a83c7a48312ede147d5989b67b8619d9128353c891c3 SHA512 7cf54eb0b27d830e51bf97964f078874eae62e1d9642fb598cdd2f0a405db4a74e1f299c5e57e29a67cfea209b9b3c7f38bdcbe6b2e2885285b77615236971c1 WHIRLPOOL 3a708a799b3360cee12a58d858bd51f474fb86c143c6648edd451d2862ce05ae0bc9544ceef62ddbf05bc50c439a7ee041faef70214ced3e53e16e8452a9f486 diff --git a/app-admin/filebeat/filebeat-5.2.2.ebuild b/app-admin/filebeat/filebeat-5.2.2.ebuild new file mode 100644 index 00000000000..ae7e555c849 --- /dev/null +++ b/app-admin/filebeat/filebeat-5.2.2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Lightweight log shipper for Logstash and Elasticsearch" +HOMEPAGE="https://www.elastic.co/products/beats" +SRC_URI="https://github.com/elastic/beats/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=">=dev-lang/go-1.7.1" +RDEPEND="!app-admin/filebeat-bin" + +ELASTIC="${WORKDIR}/src/github.com/elastic" +BEATS="${ELASTIC}/beats" +S="${BEATS}" + +src_unpack() { + mkdir -p "${ELASTIC}" || die + unpack ${P}.tar.gz + mv beats-${PV} "${BEATS}" || die +} + +src_compile() { + cd ${BEATS}/filebeat || die + GOPATH="${WORKDIR}" emake +} + +src_test() { + cd ${BEATS}/filebeat || die + GOPATH="${WORKDIR}" emake check +} + +src_install() { + keepdir /var/{lib,log}/${PN} + + fperms 0750 /var/{lib,log}/${PN} + + newconfd "${FILESDIR}/${PN}.confd" ${PN} + newinitd "${FILESDIR}/${PN}.initd" ${PN} + + insinto "/usr/share/doc/${PF}/examples" + doins ${PN}/{filebeat.yml,filebeat.full.yml} + + insinto "/etc/${PN}" + doins ${PN}/{filebeat.template.json,filebeat.template-es2x.json} + + exeinto "/usr/share/${PN}" + doexe libbeat/scripts/migrate_beat_config_1_x_to_5_0.py + + dobin filebeat/filebeat +} + +pkg_postinst() { + if [[ -n "${REPLACING_VERSIONS}" ]]; then + elog "Please read the migration guide at:" + elog "https://www.elastic.co/guide/en/beats/libbeat/5.0/upgrading.html" + elog "" + elog "The migration script:" + elog "${EROOT%/}/usr/share/filebeat/migrate_beat_config_1_x_to_5_0.py" + elog "" + fi + + elog "Example configurations:" + elog "${EROOT%/}/usr/share/doc/${PF}/examples" +}