From a07ab3bad4027c34f7028c5c350ffefc1dacfa4a Mon Sep 17 00:00:00 2001 From: Tomas Mozes Date: Mon, 20 Mar 2017 08:54:12 +0100 Subject: app-admin/logstash-bin: bump to 5.2.2, drop old Package-Manager: Portage-2.3.4, Repoman-2.3.2 --- app-admin/logstash-bin/Manifest | 2 +- app-admin/logstash-bin/logstash-bin-5.2.1.ebuild | 61 ------------------------ app-admin/logstash-bin/logstash-bin-5.2.2.ebuild | 56 ++++++++++++++++++++++ 3 files changed, 57 insertions(+), 62 deletions(-) delete mode 100644 app-admin/logstash-bin/logstash-bin-5.2.1.ebuild create mode 100644 app-admin/logstash-bin/logstash-bin-5.2.2.ebuild (limited to 'app-admin/logstash-bin') diff --git a/app-admin/logstash-bin/Manifest b/app-admin/logstash-bin/Manifest index ac7d2572778c..c87fd06a6256 100644 --- a/app-admin/logstash-bin/Manifest +++ b/app-admin/logstash-bin/Manifest @@ -1,2 +1,2 @@ DIST logstash-5.1.2.zip 100044055 SHA256 99fd514b6241310c78aefca2cd895c1cec4cd426aa08fccf7e8bba26567573c3 SHA512 4186f942dd555dc1284bc657cbd3a61de8aa67a50bd2f7b725d3364e5fca61029cadb0ca4f9e1c4a36078805fd015128ddcd7773e19e643eaddd5ae2fa9c6673 WHIRLPOOL 1127a419a35e42de59a4bd61fe5b75e39daad69d0646019417abf83f44639a86fd2b1ffc687b6cc551562045ef3d2d901d7985437d158094d4d054e4a93bfd5d -DIST logstash-5.2.1.zip 100059438 SHA256 14093855a8a3a4f27a2b4e461ee70697fff527eece70d5d58f1015cf5103f77e SHA512 82b1a39edc5a2303692828cdf17e00b6909de5e2579850a2ebcc49bd64f16c833f7bdaa083ff266cc0f09f9fa0cf645cd7a32a7c0183aa2b095ecfbeaf9873ec WHIRLPOOL 418ffbc4244385ec52d1f9104e68a91a7f539f7ea3829bd683562b7ccdb275e1580da24945444f382038c61aadc616458c5c8caa3d18fef9b1ae6c155ae2d3e3 +DIST logstash-5.2.2.zip 100068713 SHA256 35bd0378f5b9001b4c3056b11496936ef47c09e3ddc469353bc8951e3b81e174 SHA512 923b35e8bcc97f6036cd4a484df546b2cc1341ec8fe5080bea8f979856086aaaae5f71fa0c3f7aee2207f7c3e71aec18af416278123362f89990c05ec9e2c92f WHIRLPOOL 4a67ed0ba3b532da5d488b2e45f53149b4e63b6b638b6fe1058a13eab904cb7ec24cd87306868a4770fe6aadfe13f7d76bfc9973e73104a8e4e9aee455321c32 diff --git a/app-admin/logstash-bin/logstash-bin-5.2.1.ebuild b/app-admin/logstash-bin/logstash-bin-5.2.1.ebuild deleted file mode 100644 index 668a90ad7ac6..000000000000 --- a/app-admin/logstash-bin/logstash-bin-5.2.1.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.zip" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" - -RESTRICT="strip" -QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so" - -RDEPEND="virtual/jre:1.8" - -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}" - newins "${FILESDIR}/agent.conf.sample" agent.conf - - insinto "/opt/${MY_PN}" - doins -r . - fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin" - - 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 "${EROOT%/}/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" -} diff --git a/app-admin/logstash-bin/logstash-bin-5.2.2.ebuild b/app-admin/logstash-bin/logstash-bin-5.2.2.ebuild new file mode 100644 index 000000000000..cda22abd473f --- /dev/null +++ b/app-admin/logstash-bin/logstash-bin-5.2.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="strip" +QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so" + +RDEPEND="virtual/jre:1.8" + +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}" + newins "${FILESDIR}/agent.conf.sample" agent.conf + + insinto "/opt/${MY_PN}" + doins -r . + fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin" + + 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 "${EROOT%/}/etc/conf.d/${MY_PN}" + einfo + einfo "Installing plugins: (bug #601294)" + einfo "DEBUG=1 JARS_SKIP='true' bin/logstash-plugin install logstash-output-gelf" +} -- cgit v1.2.3-65-gdbad