Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/graylog2/
Date: Sat, 19 Jan 2019 03:22:30
Message-Id: 1547862873.44c7b12a271c0b6ce3eccbc4b3d8a799fe2db3e5.whissi@gentoo
1 commit: 44c7b12a271c0b6ce3eccbc4b3d8a799fe2db3e5
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Mon Jan 7 11:33:05 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 19 01:54:33 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44c7b12a
7
8 app-admin/graylog2: bump to 2.5.1
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/10762
13 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
14
15 app-admin/graylog2/Manifest | 1 +
16 app-admin/graylog2/graylog2-2.5.1.ebuild | 87 ++++++++++++++++++++++++++++++++
17 2 files changed, 88 insertions(+)
18
19 diff --git a/app-admin/graylog2/Manifest b/app-admin/graylog2/Manifest
20 index d869968db91..4508ce61759 100644
21 --- a/app-admin/graylog2/Manifest
22 +++ b/app-admin/graylog2/Manifest
23 @@ -1 +1,2 @@
24 DIST graylog-2.4.6.tgz 122985232 BLAKE2B 3a409a08f27c3abf1eadca57c4e8c9afc334655e050c0db9bad9d16e03acab6d92bfced708486ad8383987842d9b0a5ddc54e28d29fc426761fcb0ab8c65844c SHA512 e1941f4740f43c5b92b5faa7cde06fb15294acfed5f0f56cb21a7ceffb8616382b68b67d049a2982c68833d706e57b77f365665f12193d053a2ac0996801bcbe
25 +DIST graylog-2.5.1.tgz 123878927 BLAKE2B d168579be4d20e3a8081d608247e7101fc5d99ddd2b5f063f94d7e91d4095c6bd016a4bc1be0f0e08b5043b771070312286404ece5eacc51e4a8730dfc13dab1 SHA512 44e2ca00e47a34708cea94b74fdc0f56f3a381f161d25633bdf7685fbcd989937163508f8b47b0869c7daacec6c8bd2c874f9381e196ffb3194eb6e3f96b3ce9
26
27 diff --git a/app-admin/graylog2/graylog2-2.5.1.ebuild b/app-admin/graylog2/graylog2-2.5.1.ebuild
28 new file mode 100644
29 index 00000000000..b4ba9c0fe33
30 --- /dev/null
31 +++ b/app-admin/graylog2/graylog2-2.5.1.ebuild
32 @@ -0,0 +1,87 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="7"
37 +
38 +inherit user
39 +
40 +DESCRIPTION="Free and open source log management"
41 +HOMEPAGE="https://graylog.org"
42 +SRC_URI="https://packages.graylog2.org/releases/graylog/graylog-${PV}.tgz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc64 ~x86"
47 +RESTRICT="strip"
48 +
49 +RDEPEND="virtual/jdk:1.8"
50 +
51 +DOCS=(
52 + COPYING README.markdown UPGRADING.rst
53 +)
54 +
55 +GRAYLOG_DATA_DIR="/var/lib/graylog2"
56 +GRAYLOG_INSTALL_DIR="/usr/share/graylog2"
57 +QA_PREBUILT="${GRAYLOG_INSTALL_DIR}/lib/sigar/libsigar*"
58 +
59 +S="${WORKDIR}/graylog-${PV}"
60 +
61 +pkg_setup() {
62 + enewgroup graylog
63 + enewuser graylog -1 -1 -1 graylog
64 +}
65 +
66 +src_prepare() {
67 + default
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 + # gentoo specific paths
91 + sed -i "s@\(node_id_file = \).*@\1${GRAYLOG_DATA_DIR}/node-id@g; \
92 + s@\(message_journal_dir = \).*@\1${GRAYLOG_DATA_DIR}/data/journal@g; \
93 + s@#\(content_packs_dir = \).*@\1${GRAYLOG_DATA_DIR}/data/contentpacks@g" \
94 + graylog.conf.example || die
95 +}
96 +
97 +src_install() {
98 + default
99 +
100 + insinto /etc/graylog2
101 + doins graylog.conf.example
102 +
103 + insinto "${GRAYLOG_DATA_DIR}/data/contentpacks"
104 + doins data/contentpacks/grok-patterns.json
105 +
106 + insinto "${GRAYLOG_INSTALL_DIR}"
107 + doins graylog.jar
108 + doins -r lib plugin
109 +
110 + newconfd "${FILESDIR}/confd-r2" graylog2
111 + newinitd "${FILESDIR}/initd-r2" graylog2
112 +}
113 +
114 +pkg_postinst() {
115 + ewarn "Graylog does not depend on need.net any more (#439092)."
116 + ewarn
117 + ewarn "Please configure rc_need according to your binding address in:"
118 + ewarn "/etc/conf.d/graylog2"
119 +}