diff options
-rw-r--r-- | app-admin/logstash-bin/Manifest | 1 | ||||
-rw-r--r-- | app-admin/logstash-bin/logstash-bin-2.3.0.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/app-admin/logstash-bin/Manifest b/app-admin/logstash-bin/Manifest index c9beb74f4519..4a66b10a6c9d 100644 --- a/app-admin/logstash-bin/Manifest +++ b/app-admin/logstash-bin/Manifest @@ -1,4 +1,5 @@ DIST logstash-2.1.3.tar.gz 74433726 SHA256 c592ea6c63a64f44a08a4b86b8ce6e72847ffdf0cd207d1571dcfda899f7134f SHA512 76a25c4ac49b2d8d10ea13e60a249dad95b661f54310ad5ba7abf169065429342323e97d0bd1954542db31627d27762aabd0087186e3176a27066afc9b1e185c WHIRLPOOL 7da3f23e3fa0c09c7de0098dc09c5019e7bd5e7b3bf67b6df7b9d5d5ee06e6f2cb88c49b3865931cbe58342b28dd6035ea7da6889ff55d00ab6b87612a7ceff2 DIST logstash-2.2.0.tar.gz 74440588 SHA256 aee2437f45c726ec354f0bf9634b3638428d48bef32beb412f827eb2cc736f78 SHA512 8a167971731bf0d0a7eddb023c57c66fa8ebeb0842756711795117bdb988018040ea50848c1f6e06ba748d76b723a39f758e275778270cf92acebb3284263ce0 WHIRLPOOL b07eba50168bd9ee9e7b55e8b9fd181353188db4b4c8e4dedc289cd8c8d4fae4c10650a8d968c06cd90e132f90adbc0805c077f1d891ef968e5ae02bf240dc27 DIST logstash-2.2.2.tar.gz 74452781 SHA256 f0a29ec8fd327e42f3023bd6bf85a00ac20617bfc214df59c765453977398312 SHA512 bab0463f6d4aeccfac04007d318b8cf70d56c803dfaa7948fb7dc1ca29bb91ccc3b1c5b705bede585e4adb98e63b3515bbabfc1206378e3b53ead78cf08c3da4 WHIRLPOOL 92122b7687b7230ad9d9415d9bbcca737cabb46f512d2a86f4401205a3cdf0f31bee8bf6e0a42066a54234474b490c008ad2084f8ff5a5fc5af87532842de39a +DIST logstash-2.3.0.tar.gz 73593126 SHA256 d802803ac6dc7e9215b19764dd8fbaa74c75fa1d8bf387508fb0d0d8d36b0241 SHA512 1a8aa6ebe43b80c6cfe44e5ac8233b451c0cbd1bf4636155726b115992a0a2b046926a5fa887d2dc33f7611e9a295cdd4a5875c875f289400ea7f93413459928 WHIRLPOOL 1d3e54ae4775459f35bf1d0fe51e634c27b5b0488e9e6fe9129d38956bd5296b3b78bea77c8a72b810fb11ea9a13214efad900398cd9c76d1e95d6ced79cd043 DIST logstash-all-plugins-2.2.0.tar.gz 129473672 SHA256 966b5408e66af003f96084bf6f8764855c00530db8b326513d795541a62e4d41 SHA512 0725275e312f9a936d750959ccc388bac0df91ff7dd1a74d501cfdfe20006a0a5008d0877012ad80b5caece3f64bdc86b79ffb20e2f07c4a8cd5bdd2daf8d1b2 WHIRLPOOL 3cfaf4693a0b7ef0343a973de344b063ad0d1928bf9316cc893ed88de9a7ef209a206d0cb881582c2213de9409874a959c44d874af82a5bad6468943fe4297c8 diff --git a/app-admin/logstash-bin/logstash-bin-2.3.0.ebuild b/app-admin/logstash-bin/logstash-bin-2.3.0.ebuild new file mode 100644 index 000000000000..8d3ffea69b66 --- /dev/null +++ b/app-admin/logstash-bin/logstash-bin-2.3.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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://download.elastic.co/${MY_PN}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +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} -m +} + +src_install() { + keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins} + keepdir "/var/log/${MY_PN}" + + insinto "/etc/${MY_PN}/conf.d" + 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-r1" "${MY_PN}" + + newconfd "${FILESDIR}/${MY_PN}.confd-r1" "${MY_PN}" + newinitd "${FILESDIR}/${MY_PN}.initd-r1" "${MY_PN}" +} + +pkg_postinst() { + 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" +} |