1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
12 DESCRIPTION="Tool for managing events and logs"
13 HOMEPAGE="https://www.elastic.co/products/logstash"
14 SRC_URI="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.zip"
22 QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so"
25 RDEPEND="virtual/jre:1.8"
27 S="${WORKDIR}/${MY_P}"
31 enewuser ${MY_PN} -1 -1 /var/lib/${MY_PN} ${MY_PN}
35 keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins}
36 keepdir "/var/log/${MY_PN}"
38 insinto "/usr/share/${MY_PN}"
39 doins "${FILESDIR}/agent.conf.sample"
41 insinto "/opt/${MY_PN}"
43 fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin"
45 insinto /etc/logrotate.d
46 newins "${FILESDIR}/${MY_PN}.logrotate" "${MY_PN}"
48 newconfd "${FILESDIR}/${MY_PN}.confd" "${MY_PN}"
49 newinitd "${FILESDIR}/${MY_PN}.initd3" "${MY_PN}"
53 ewarn "The default user changed from root to ${MY_PN}. If you wish to run as root (for"
54 ewarn "example to read local logs), be sure to change LS_USER and LS_GROUP in"
55 ewarn "/etc/conf.d/${MY_PN}"
57 einfo "Getting started with logstash:"
58 einfo " https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html"
60 einfo "Packages that might be interesting:"
61 einfo " app-misc/elasticsearch"
62 einfo " dev-python/elasticsearch-curator"
63 einfo " www-apps/kibana-bin"