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 A8526138330 for ; Thu, 8 Sep 2016 09:33:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2EF8021C1F5; Thu, 8 Sep 2016 09:33:15 +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 C600E21C1F5 for ; Thu, 8 Sep 2016 09:33:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 3754434092E for ; Thu, 8 Sep 2016 09:33:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A6C112478 for ; Thu, 8 Sep 2016 09:33:10 +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: <1473327174.e141e6526aa9d24d260181050aa8ffb0e699f58d.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/logstash-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/logstash-bin/logstash-bin-2.4.0-r2.ebuild X-VCS-Directories: app-admin/logstash-bin/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: e141e6526aa9d24d260181050aa8ffb0e699f58d X-VCS-Branch: master Date: Thu, 8 Sep 2016 09:33:10 +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: 06fd817c-a22f-44ab-af7b-93b82951b395 X-Archives-Hash: 79fef68d157ad439a9d9155ce6483331 commit: e141e6526aa9d24d260181050aa8ffb0e699f58d Author: Patrice Clement gentoo org> AuthorDate: Thu Sep 8 09:32:54 2016 +0000 Commit: Patrice Clement gentoo org> CommitDate: Thu Sep 8 09:32:54 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e141e652 app-admin/logstash-bin: revbump to make Patrick happy. Package-Manager: portage-2.2.28 .../logstash-bin/logstash-bin-2.4.0-r2.ebuild | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/app-admin/logstash-bin/logstash-bin-2.4.0-r2.ebuild b/app-admin/logstash-bin/logstash-bin-2.4.0-r2.ebuild new file mode 100644 index 00000000..992700a --- /dev/null +++ b/app-admin/logstash-bin/logstash-bin-2.4.0-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit user + +MY_PN="${PN/-bin}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tool for managing events and logs" +HOMEPAGE="https://www.elastic.co/products/logstash" +SRC_URI="!all-plugins? ( https://download.elastic.co/${MY_PN}/${MY_PN}/${MY_P}.tar.gz ) + all-plugins? ( https://download.elastic.co/${MY_PN}/${MY_PN}/${MY_PN}-all-plugins-${PV}.tar.gz )" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="all-plugins" + +RESTRICT="strip" +QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so" + +DEPEND="" +RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup ${MY_PN} + enewuser ${MY_PN} -1 -1 /var/lib/${MY_PN} ${MY_PN} +} + +src_install() { + keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins} + keepdir "/var/log/${MY_PN}" + + insinto "/usr/share/${MY_PN}" + doins "${FILESDIR}/agent.conf.sample" + + insinto "/opt/${MY_PN}" + doins -r . + fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" + + insinto /etc/logrotate.d + newins "${FILESDIR}/${MY_PN}.logrotate" "${MY_PN}" + + newconfd "${FILESDIR}/${MY_PN}.confd" "${MY_PN}" + newinitd "${FILESDIR}/${MY_PN}.initd" "${MY_PN}" +} + +pkg_postinst() { + ewarn "The default user changed from root to ${MY_PN}. If you wish to run as root (for" + ewarn "example to read local logs), be sure to change LS_USER and LS_GROUP in" + ewarn "/etc/conf.d/${MY_PN}" + einfo + einfo "Getting started with logstash:" + einfo " https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html" + einfo "" + einfo "Packages that might be interesting:" + einfo " app-misc/elasticsearch" + einfo " dev-python/elasticsearch-curator" + einfo " www-apps/kibana-bin" +}