Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/graylog2/
Date: Mon, 02 Dec 2019 08:39:27
Message-Id: 1575275956.dadf24fb0847a4b297186c7b5c85fcdba1fe9ff6.mgorny@gentoo
1 commit: dadf24fb0847a4b297186c7b5c85fcdba1fe9ff6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 2 08:32:22 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 2 08:39:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dadf24fb
7
8 app-admin/graylog2: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-admin/graylog2/Manifest | 1 -
13 app-admin/graylog2/graylog2-2.4.6.ebuild | 87 --------------------------------
14 2 files changed, 88 deletions(-)
15
16 diff --git a/app-admin/graylog2/Manifest b/app-admin/graylog2/Manifest
17 index 4508ce61759..43cea02cad9 100644
18 --- a/app-admin/graylog2/Manifest
19 +++ b/app-admin/graylog2/Manifest
20 @@ -1,2 +1 @@
21 -DIST graylog-2.4.6.tgz 122985232 BLAKE2B 3a409a08f27c3abf1eadca57c4e8c9afc334655e050c0db9bad9d16e03acab6d92bfced708486ad8383987842d9b0a5ddc54e28d29fc426761fcb0ab8c65844c SHA512 e1941f4740f43c5b92b5faa7cde06fb15294acfed5f0f56cb21a7ceffb8616382b68b67d049a2982c68833d706e57b77f365665f12193d053a2ac0996801bcbe
22 DIST graylog-2.5.1.tgz 123878927 BLAKE2B d168579be4d20e3a8081d608247e7101fc5d99ddd2b5f063f94d7e91d4095c6bd016a4bc1be0f0e08b5043b771070312286404ece5eacc51e4a8730dfc13dab1 SHA512 44e2ca00e47a34708cea94b74fdc0f56f3a381f161d25633bdf7685fbcd989937163508f8b47b0869c7daacec6c8bd2c874f9381e196ffb3194eb6e3f96b3ce9
23
24 diff --git a/app-admin/graylog2/graylog2-2.4.6.ebuild b/app-admin/graylog2/graylog2-2.4.6.ebuild
25 deleted file mode 100644
26 index 2e0a76b5fd9..00000000000
27 --- a/app-admin/graylog2/graylog2-2.4.6.ebuild
28 +++ /dev/null
29 @@ -1,87 +0,0 @@
30 -# Copyright 1999-2019 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=6
34 -
35 -inherit user
36 -
37 -DESCRIPTION="Free and open source log management"
38 -HOMEPAGE="https://www.graylog.org"
39 -SRC_URI="https://packages.graylog2.org/releases/graylog/graylog-${PV}.tgz"
40 -
41 -LICENSE="GPL-3"
42 -SLOT="0"
43 -KEYWORDS="~amd64 ~ppc64 ~x86"
44 -RESTRICT="strip"
45 -
46 -RDEPEND="virtual/jdk:1.8"
47 -
48 -DOCS=(
49 - COPYING README.markdown UPGRADING.rst
50 -)
51 -
52 -GRAYLOG_DATA_DIR="/var/lib/graylog2"
53 -GRAYLOG_INSTALL_DIR="/usr/share/graylog2"
54 -QA_PREBUILT="${GRAYLOG_INSTALL_DIR}/lib/sigar/libsigar*"
55 -
56 -S="${WORKDIR}/graylog-${PV}"
57 -
58 -pkg_setup() {
59 - enewgroup graylog
60 - enewuser graylog -1 -1 -1 graylog
61 -}
62 -
63 -src_prepare() {
64 - default
65 -
66 - # Stick to architecture of build host
67 - if ! use amd64; then
68 - rm -r lib/sigar/libsigar-amd64-*.so || die "Failed in removing AMD64 support libraries"
69 - fi
70 - if ! use ppc64; then
71 - rm -r lib/sigar/libsigar-ppc64-*.so || die "Failed in removing PPC64 support libraries"
72 - fi
73 - if ! use x86; then
74 - rm -r lib/sigar/libsigar-x86-*.so || die "Failed in removing X86 support libraries"
75 - fi
76 - # Currently unsupported platforms
77 - # QA warning galore but testing/patches welcome
78 - rm lib/sigar/libsigar-*freebsd*so \
79 - lib/sigar/libsigar-*solaris*so \
80 - lib/sigar/libsigar-*hpux*.sl \
81 - lib/sigar/libsigar-*macosx*.dylib \
82 - lib/sigar/libsigar-ia64-*.so \
83 - lib/sigar/libsigar-ppc-*.so \
84 - lib/sigar/libsigar-s390x*.so \
85 - lib/sigar/*winnt* || die "Failed in removing unsupported platform libraries"
86 -
87 - # gentoo specific paths
88 - sed -i "s@\(node_id_file = \).*@\1${GRAYLOG_DATA_DIR}/node-id@g; \
89 - s@\(message_journal_dir = \).*@\1${GRAYLOG_DATA_DIR}/data/journal@g; \
90 - s@#\(content_packs_dir = \).*@\1${GRAYLOG_DATA_DIR}/data/contentpacks@g" \
91 - graylog.conf.example || die
92 -}
93 -
94 -src_install() {
95 - default
96 -
97 - insinto /etc/graylog2
98 - doins graylog.conf.example
99 -
100 - insinto "${GRAYLOG_DATA_DIR}/data/contentpacks"
101 - doins data/contentpacks/grok-patterns.json
102 -
103 - insinto "${GRAYLOG_INSTALL_DIR}"
104 - doins graylog.jar
105 - doins -r lib plugin
106 -
107 - newconfd "${FILESDIR}/confd-r2" graylog2
108 - newinitd "${FILESDIR}/initd-r2" graylog2
109 -}
110 -
111 -pkg_postinst() {
112 - ewarn "Graylog does not depend on need.net any more (#439092)."
113 - ewarn
114 - ewarn "Please configure rc_need according to your binding address in:"
115 - ewarn "/etc/conf.d/graylog2"
116 -}