1 |
commit: 6ba778ceecf5cd87d8f90c931e891cdff644564a |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Aug 5 09:02:12 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 6 16:09:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ba778ce |
7 |
|
8 |
app-admin/graylog: bump to 3.3.3 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/733114 |
11 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
12 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
13 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
14 |
|
15 |
app-admin/graylog/Manifest | 1 + |
16 |
app-admin/graylog/graylog-3.3.3.ebuild | 83 ++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 84 insertions(+) |
18 |
|
19 |
diff --git a/app-admin/graylog/Manifest b/app-admin/graylog/Manifest |
20 |
index f0a52eb94a9..d59d159b6dd 100644 |
21 |
--- a/app-admin/graylog/Manifest |
22 |
+++ b/app-admin/graylog/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST graylog-3.3.1.tgz 129279195 BLAKE2B b3894a453d369f200951d260c0229cec7dbbeb01fcd5df1d8be354c0669c32c1ae3f435a7bad2fc92823f2408fd6e06eded19a56442d6eaa636bd8401f8573a9 SHA512 9e99784e4c349965aafae8c153bd843007dadf664febe7088cfa7561568841d6acb73592d5f57feaece683ea667a535124cdd49e6ed3a05bab13d07239c8b3dd |
25 |
DIST graylog-3.3.2.tgz 129297286 BLAKE2B a09e8211f39cf5ea57bd05c49ccd2efba4d166e20bbd2bfa9f52d2de0768d54821a002453497545bc8022ee161c8a69080cf8f99d6988eb1a6e56f7ee13fdb9f SHA512 6422f15d75067f5639d1d3c181c29429bf10f2f499179df304441ff1b01a7cc0b29a27361837c7b2ef8b6d33fbd3448fc759e123f59843391838daf3ee353824 |
26 |
+DIST graylog-3.3.3.tgz 129284019 BLAKE2B 35c8dec3becd0cd513e435fec38c296e40a0c330304effb40e40f656702cd791c68ca9c814baf45671d7494d16d4478f9a0b3e44812c4814bea8dc1213f06793 SHA512 6e7445d1bac5addfe4e09f22ba2425859b44720105ba61ec2d819d12a8d693789f717d6fc1bdacb0ef1fe2e4583c405689a60ddd250e4fa17d1d10e70020f75c |
27 |
|
28 |
diff --git a/app-admin/graylog/graylog-3.3.3.ebuild b/app-admin/graylog/graylog-3.3.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..cda5c7e5b52 |
31 |
--- /dev/null |
32 |
+++ b/app-admin/graylog/graylog-3.3.3.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 |
+} |