summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mozes <hydrapolic@gmail.com>2017-07-12 15:46:39 +0200
committerDavid Seifert <soap@gentoo.org>2017-07-30 17:29:51 +0200
commitef1f58b7d76cffa7ec85ebf82616a46b96fcdc6b (patch)
treea8fc400f9690c4de152ec1cf8fc90443fe050f4e /app-admin/graylog2
parentdev-lang/python: replace http urls (diff)
downloadgentoo-ef1f58b7d76cffa7ec85ebf82616a46b96fcdc6b.tar.gz
gentoo-ef1f58b7d76cffa7ec85ebf82616a46b96fcdc6b.tar.bz2
gentoo-ef1f58b7d76cffa7ec85ebf82616a46b96fcdc6b.zip
app-admin/graylog2: bump to 2.2.3
Package-Manager: Portage-2.3.6, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/5096
Diffstat (limited to 'app-admin/graylog2')
-rw-r--r--app-admin/graylog2/Manifest1
-rw-r--r--app-admin/graylog2/graylog2-2.2.3.ebuild87
2 files changed, 88 insertions, 0 deletions
diff --git a/app-admin/graylog2/Manifest b/app-admin/graylog2/Manifest
index eafd58d4475a..f09e80d0315b 100644
--- a/app-admin/graylog2/Manifest
+++ b/app-admin/graylog2/Manifest
@@ -1,2 +1,3 @@
DIST graylog-2.1.2.tgz 94284738 SHA256 5d653467fb18fdd58b261598dc820f90d48e2018e7cd8d9f103003a0070d954b SHA512 df636143ff90b0aedcb6db78e20125c10da2428b6e474e925d6fc011fdc3a0b88414ec914981a71a0e08c4916cb5cd18a8eeda28e01d9edf3b3ae4a8fb0a90dc WHIRLPOOL 1ecdb53b0ea0ad55c76604417366f21e6e2c4fb76e1cd38b93d332e08976380096b340bee6120ed2a40949ac31620e37f4ac46f3794805d0313d74211b48c512
DIST graylog-2.2.2.tgz 99956086 SHA256 46f419d422f6e5816b29333c8510524f1bbc910d6bf00136adb3899a985fceb4 SHA512 341548b5d48e3a2008a1264128a604320b566b8f0e8da4d2fca54a69e1412a69839d09698e13d97dd399652611a3e24dd54dc81f56bc4ca00278afbd61ba9c2c WHIRLPOOL aae06b70f4f12df0bb76bd6e23228d64ea19c4a6a619f5e7f4bde2fd52039959d2c949b74240ef2d229e51db25ff47465ae2786fe47e18eb0fb1fa76b8739e1f
+DIST graylog-2.2.3.tgz 99971278 SHA256 3de01e7cb8ebc02a7f06cec1c88eded3b717762447bf1b56bff8744f7f5ea80b SHA512 19ad14bdee733b4ceed526af7f446fc74a4ac5bc6a0b4784618edd84a84aa00378c203d4051a3232c17caaf47f3ffe684cb8b17ce88c8d98e7b29bc22c0058e8 WHIRLPOOL 60655b7f70cf7093114194239f1260d97887be344424a064b236fb152e17864110848b2143608c5908d95823fd7363cca5c73b6f2f1bffa790c269c4af9b05d5
diff --git a/app-admin/graylog2/graylog2-2.2.3.ebuild b/app-admin/graylog2/graylog2-2.2.3.ebuild
new file mode 100644
index 000000000000..a7b8cd7ab679
--- /dev/null
+++ b/app-admin/graylog2/graylog2-2.2.3.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user
+
+DESCRIPTION="Free and open source log management"
+HOMEPAGE="https://graylog.org"
+SRC_URI="https://packages.graylog2.org/releases/graylog/graylog-${PV}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+MY_PN="graylog"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+INSTALL_DIR="/usr/share/graylog2"
+DATA_DIR="/var/lib/graylog2"
+
+QA_PREBUILT="${INSTALL_DIR}/lib/sigar/libsigar*"
+RESTRICT="strip"
+
+RDEPEND="virtual/jdk:1.8"
+
+pkg_setup() {
+ enewgroup graylog
+ enewuser graylog -1 -1 -1 graylog
+}
+
+src_prepare() {
+ default
+
+ # graylogctl is replaced by our own initd
+ rm -r bin || die
+
+ # Stick to architecture of build host
+ if ! use amd64; then
+ rm -r lib/sigar/libsigar-amd64-*.so || die "Failed in removing AMD64 support libraries"
+ fi
+ if ! use ppc64; then
+ rm -r lib/sigar/libsigar-ppc64-*.so || die "Failed in removing PPC64 support libraries"
+ fi
+ if ! use x86; then
+ rm -r lib/sigar/libsigar-x86-*.so || die "Failed in removing X86 support libraries"
+ fi
+ # Currently unsupported platforms
+ # QA warning galore but testing/patches welcome
+ rm lib/sigar/libsigar-*freebsd*so \
+ lib/sigar/libsigar-*solaris*so \
+ lib/sigar/libsigar-*hpux*.sl \
+ lib/sigar/libsigar-*macosx*.dylib \
+ lib/sigar/libsigar-ia64-*.so \
+ lib/sigar/libsigar-ppc-*.so \
+ lib/sigar/libsigar-s390x*.so \
+ lib/sigar/*winnt* || die "Failed in removing unsupported platform libraries"
+
+ # remove plugins
+ rm plugin/graylog-plugin-anonymous-usage-statistics-${PV}.jar || die
+
+ # gentoo specific paths
+ sed -i "s@\(node_id_file = \).*@\1${DATA_DIR}/node-id@g; \
+ s@\(message_journal_dir = \).*@\1${DATA_DIR}/data/journal@g; \
+ s@#\(content_packs_dir = \).*@\1/${DATA_DIR}/data/contentpacks@g" \
+ graylog.conf.example || die
+}
+
+src_compile() {
+ einfo "Nothing to compile; upstream supplies JAR only"
+}
+
+src_install() {
+ insinto /etc/graylog2
+ doins graylog.conf.example
+
+ insinto ${DATA_DIR}/data/contentpacks
+ doins data/contentpacks/grok-patterns.json
+
+ insinto "${INSTALL_DIR}"
+ doins *
+
+ doins -r lib plugin
+
+ newinitd "${FILESDIR}/initd-r1" graylog2
+ newconfd "${FILESDIR}/confd-r1" graylog2
+}