Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/graylog/
Date: Wed, 26 Feb 2020 16:18:01
Message-Id: 1582733846.3f0b00147503f92666665d1535815b460a67e11b.juippis@gentoo
1 commit: 3f0b00147503f92666665d1535815b460a67e11b
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 21 08:57:27 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 26 16:17:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f0b0014
7
8 app-admin/graylog: bump to 3.2.2
9
10 Package-Manager: Portage-2.3.85, Repoman-2.3.20
11 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/14727
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 app-admin/graylog/Manifest | 1 +
16 app-admin/graylog/graylog-3.2.2.ebuild | 83 ++++++++++++++++++++++++++++++++++
17 2 files changed, 84 insertions(+)
18
19 diff --git a/app-admin/graylog/Manifest b/app-admin/graylog/Manifest
20 index b1ce2538044..77bcce7132d 100644
21 --- a/app-admin/graylog/Manifest
22 +++ b/app-admin/graylog/Manifest
23 @@ -1,2 +1,3 @@
24 DIST graylog-2.5.1.tgz 123878927 BLAKE2B d168579be4d20e3a8081d608247e7101fc5d99ddd2b5f063f94d7e91d4095c6bd016a4bc1be0f0e08b5043b771070312286404ece5eacc51e4a8730dfc13dab1 SHA512 44e2ca00e47a34708cea94b74fdc0f56f3a381f161d25633bdf7685fbcd989937163508f8b47b0869c7daacec6c8bd2c874f9381e196ffb3194eb6e3f96b3ce9
25 DIST graylog-3.1.3.tgz 120983897 BLAKE2B 68e1dd7b8de7ab9fb12fd2035bcf6f0901d8d9f5083ff8efef09736819ccd70ae4dd6f466cf2fa1eaebb24b4098a26d72524f9b9a47e8dd62d0224bad189bb62 SHA512 8eec2339db474b89fc717e693ec23ca32d9a018f9bb924aab895d1a1f4e90afa9fe9547e432d13b9d0bf5831f8772763f19de41ac66f3e09ebf7e96ebd6cbccf
26 +DIST graylog-3.2.2.tgz 125510385 BLAKE2B 87895af9c495361c03b0a6cea6299fb206152a05a69be63600cb15e57ed1c6bb90dcf58539c136361dc95bd7d138b9e6c5bc33c3ccc409e392e4b5857d175951 SHA512 c13c3daee81cd553f40156fc5add46e4af9a3436b04f2216a1460a9af7b5fe07e866451243cc04b756247d513ef76ab43ee52dc7cb67fd1b593a22e490227db7
27
28 diff --git a/app-admin/graylog/graylog-3.2.2.ebuild b/app-admin/graylog/graylog-3.2.2.ebuild
29 new file mode 100644
30 index 00000000000..cda5c7e5b52
31 --- /dev/null
32 +++ b/app-admin/graylog/graylog-3.2.2.ebuild
33 @@ -0,0 +1,83 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +DESCRIPTION="Free and open source log management"
40 +HOMEPAGE="https://www.graylog.org"
41 +SRC_URI="https://downloads.graylog.org/releases/graylog/${P}.tgz"
42 +
43 +LICENSE="GPL-3"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc64 ~x86"
46 +RESTRICT="strip"
47 +
48 +RDEPEND="!app-admin/graylog2
49 + acct-group/graylog
50 + acct-user/graylog
51 + >=virtual/jdk-1.8:*"
52 +
53 +DOCS=(
54 + COPYING README.markdown UPGRADING.rst
55 +)
56 +
57 +GRAYLOG_DATA_DIR="/var/lib/graylog"
58 +GRAYLOG_INSTALL_DIR="/usr/share/graylog"
59 +QA_PREBUILT="${GRAYLOG_INSTALL_DIR}/lib/sigar/libsigar*"
60 +
61 +src_prepare() {
62 + default
63 +
64 + # Stick to architecture of build host
65 + if ! use amd64; then
66 + rm -r lib/sigar/libsigar-amd64-*.so || die "Failed in removing AMD64 support libraries"
67 + fi
68 + if ! use ppc64; then
69 + rm -r lib/sigar/libsigar-ppc64-*.so || die "Failed in removing PPC64 support libraries"
70 + fi
71 + if ! use x86; then
72 + rm -r lib/sigar/libsigar-x86-*.so || die "Failed in removing X86 support libraries"
73 + fi
74 + # Currently unsupported platforms
75 + # QA warning galore but testing/patches welcome
76 + rm lib/sigar/libsigar-*freebsd*so \
77 + lib/sigar/libsigar-*solaris*so \
78 + lib/sigar/libsigar-*hpux*.sl \
79 + lib/sigar/libsigar-*macosx*.dylib \
80 + lib/sigar/libsigar-ia64-*.so \
81 + lib/sigar/libsigar-ppc-*.so \
82 + lib/sigar/libsigar-s390x*.so \
83 + lib/sigar/*winnt* || die "Failed in removing unsupported platform libraries"
84 +
85 + # gentoo specific paths
86 + sed -i "s@\(node_id_file = \).*@\1${GRAYLOG_DATA_DIR}/node-id@g; \
87 + s@\(message_journal_dir = \).*@\1${GRAYLOG_DATA_DIR}/data/journal@g;" \
88 + graylog.conf.example || die
89 +}
90 +
91 +src_install() {
92 + default
93 +
94 + insinto /etc/graylog
95 + doins graylog.conf.example
96 +
97 + insinto "${GRAYLOG_INSTALL_DIR}"
98 + doins graylog.jar
99 + doins -r lib plugin
100 +
101 + keepdir "${GRAYLOG_DATA_DIR}"
102 +
103 + newconfd "${FILESDIR}/graylog.confd" graylog
104 + newinitd "${FILESDIR}/graylog.initd" graylog
105 +}
106 +
107 +pkg_postinst() {
108 + ewarn "Graylog does not depend on need.net any more (#439092)."
109 + ewarn
110 + ewarn "Please configure rc_need according to your binding address in:"
111 + ewarn "/etc/conf.d/graylog"
112 + ewarn
113 + ewarn "Graylog requires Java >= 8"
114 + ewarn "Elasticsearch 5.x or 6.x (does NOT work with 7.x)"
115 + ewarn "and MongoDB 3.6 or 4.0 (does NOT work with 4.2)"
116 +}