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