Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/graylog2/
Date: Sun, 30 Jul 2017 15:30:12
Message-Id: 1501428591.ef1f58b7d76cffa7ec85ebf82616a46b96fcdc6b.soap@gentoo
1 commit: ef1f58b7d76cffa7ec85ebf82616a46b96fcdc6b
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Wed Jul 12 13:46:39 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 30 15:29:51 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef1f58b7
7
8 app-admin/graylog2: bump to 2.2.3
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11 Closes: https://github.com/gentoo/gentoo/pull/5096
12
13 app-admin/graylog2/Manifest | 1 +
14 app-admin/graylog2/graylog2-2.2.3.ebuild | 87 ++++++++++++++++++++++++++++++++
15 2 files changed, 88 insertions(+)
16
17 diff --git a/app-admin/graylog2/Manifest b/app-admin/graylog2/Manifest
18 index eafd58d4475..f09e80d0315 100644
19 --- a/app-admin/graylog2/Manifest
20 +++ b/app-admin/graylog2/Manifest
21 @@ -1,2 +1,3 @@
22 DIST graylog-2.1.2.tgz 94284738 SHA256 5d653467fb18fdd58b261598dc820f90d48e2018e7cd8d9f103003a0070d954b SHA512 df636143ff90b0aedcb6db78e20125c10da2428b6e474e925d6fc011fdc3a0b88414ec914981a71a0e08c4916cb5cd18a8eeda28e01d9edf3b3ae4a8fb0a90dc WHIRLPOOL 1ecdb53b0ea0ad55c76604417366f21e6e2c4fb76e1cd38b93d332e08976380096b340bee6120ed2a40949ac31620e37f4ac46f3794805d0313d74211b48c512
23 DIST graylog-2.2.2.tgz 99956086 SHA256 46f419d422f6e5816b29333c8510524f1bbc910d6bf00136adb3899a985fceb4 SHA512 341548b5d48e3a2008a1264128a604320b566b8f0e8da4d2fca54a69e1412a69839d09698e13d97dd399652611a3e24dd54dc81f56bc4ca00278afbd61ba9c2c WHIRLPOOL aae06b70f4f12df0bb76bd6e23228d64ea19c4a6a619f5e7f4bde2fd52039959d2c949b74240ef2d229e51db25ff47465ae2786fe47e18eb0fb1fa76b8739e1f
24 +DIST graylog-2.2.3.tgz 99971278 SHA256 3de01e7cb8ebc02a7f06cec1c88eded3b717762447bf1b56bff8744f7f5ea80b SHA512 19ad14bdee733b4ceed526af7f446fc74a4ac5bc6a0b4784618edd84a84aa00378c203d4051a3232c17caaf47f3ffe684cb8b17ce88c8d98e7b29bc22c0058e8 WHIRLPOOL 60655b7f70cf7093114194239f1260d97887be344424a064b236fb152e17864110848b2143608c5908d95823fd7363cca5c73b6f2f1bffa790c269c4af9b05d5
25
26 diff --git a/app-admin/graylog2/graylog2-2.2.3.ebuild b/app-admin/graylog2/graylog2-2.2.3.ebuild
27 new file mode 100644
28 index 00000000000..a7b8cd7ab67
29 --- /dev/null
30 +++ b/app-admin/graylog2/graylog2-2.2.3.ebuild
31 @@ -0,0 +1,87 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit user
38 +
39 +DESCRIPTION="Free and open source log management"
40 +HOMEPAGE="https://graylog.org"
41 +SRC_URI="https://packages.graylog2.org/releases/graylog/graylog-${PV}.tgz"
42 +
43 +LICENSE="GPL-3"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc64 ~x86"
46 +
47 +MY_PN="graylog"
48 +S="${WORKDIR}/${MY_PN}-${PV}"
49 +
50 +INSTALL_DIR="/usr/share/graylog2"
51 +DATA_DIR="/var/lib/graylog2"
52 +
53 +QA_PREBUILT="${INSTALL_DIR}/lib/sigar/libsigar*"
54 +RESTRICT="strip"
55 +
56 +RDEPEND="virtual/jdk:1.8"
57 +
58 +pkg_setup() {
59 + enewgroup graylog
60 + enewuser graylog -1 -1 -1 graylog
61 +}
62 +
63 +src_prepare() {
64 + default
65 +
66 + # graylogctl is replaced by our own initd
67 + rm -r bin || die
68 +
69 + # Stick to architecture of build host
70 + if ! use amd64; then
71 + rm -r lib/sigar/libsigar-amd64-*.so || die "Failed in removing AMD64 support libraries"
72 + fi
73 + if ! use ppc64; then
74 + rm -r lib/sigar/libsigar-ppc64-*.so || die "Failed in removing PPC64 support libraries"
75 + fi
76 + if ! use x86; then
77 + rm -r lib/sigar/libsigar-x86-*.so || die "Failed in removing X86 support libraries"
78 + fi
79 + # Currently unsupported platforms
80 + # QA warning galore but testing/patches welcome
81 + rm lib/sigar/libsigar-*freebsd*so \
82 + lib/sigar/libsigar-*solaris*so \
83 + lib/sigar/libsigar-*hpux*.sl \
84 + lib/sigar/libsigar-*macosx*.dylib \
85 + lib/sigar/libsigar-ia64-*.so \
86 + lib/sigar/libsigar-ppc-*.so \
87 + lib/sigar/libsigar-s390x*.so \
88 + lib/sigar/*winnt* || die "Failed in removing unsupported platform libraries"
89 +
90 + # remove plugins
91 + rm plugin/graylog-plugin-anonymous-usage-statistics-${PV}.jar || die
92 +
93 + # gentoo specific paths
94 + sed -i "s@\(node_id_file = \).*@\1${DATA_DIR}/node-id@g; \
95 + s@\(message_journal_dir = \).*@\1${DATA_DIR}/data/journal@g; \
96 + s@#\(content_packs_dir = \).*@\1/${DATA_DIR}/data/contentpacks@g" \
97 + graylog.conf.example || die
98 +}
99 +
100 +src_compile() {
101 + einfo "Nothing to compile; upstream supplies JAR only"
102 +}
103 +
104 +src_install() {
105 + insinto /etc/graylog2
106 + doins graylog.conf.example
107 +
108 + insinto ${DATA_DIR}/data/contentpacks
109 + doins data/contentpacks/grok-patterns.json
110 +
111 + insinto "${INSTALL_DIR}"
112 + doins *
113 +
114 + doins -r lib plugin
115 +
116 + newinitd "${FILESDIR}/initd-r1" graylog2
117 + newconfd "${FILESDIR}/confd-r1" graylog2
118 +}