1 |
commit: 01ec57b73dbb190f2b30d1d1f1ed5779b3cc087a |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 26 15:28:45 2018 +0000 |
4 |
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 11 10:26:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01ec57b7 |
7 |
|
8 |
app-admin/graylog2: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
app-admin/graylog2/graylog2-2.4.5.ebuild | 84 -------------------------------- |
13 |
1 file changed, 84 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/graylog2/graylog2-2.4.5.ebuild b/app-admin/graylog2/graylog2-2.4.5.ebuild |
16 |
deleted file mode 100644 |
17 |
index 3e0e21b963f..00000000000 |
18 |
--- a/app-admin/graylog2/graylog2-2.4.5.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,84 +0,0 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-inherit user |
27 |
- |
28 |
-DESCRIPTION="Free and open source log management" |
29 |
-HOMEPAGE="https://graylog.org" |
30 |
-SRC_URI="https://packages.graylog2.org/releases/graylog/graylog-${PV}.tgz" |
31 |
- |
32 |
-LICENSE="GPL-3" |
33 |
-SLOT="0" |
34 |
-KEYWORDS="~amd64 ~ppc64 ~x86" |
35 |
- |
36 |
-MY_PN="graylog" |
37 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
38 |
- |
39 |
-INSTALL_DIR="/usr/share/graylog2" |
40 |
-DATA_DIR="/var/lib/graylog2" |
41 |
- |
42 |
-QA_PREBUILT="${INSTALL_DIR}/lib/sigar/libsigar*" |
43 |
-RESTRICT="strip" |
44 |
- |
45 |
-RDEPEND="virtual/jdk:1.8" |
46 |
- |
47 |
-pkg_setup() { |
48 |
- enewgroup graylog |
49 |
- enewuser graylog -1 -1 -1 graylog |
50 |
-} |
51 |
- |
52 |
-src_prepare() { |
53 |
- default |
54 |
- |
55 |
- # graylogctl is replaced by our own initd |
56 |
- rm -r bin || die |
57 |
- |
58 |
- # Stick to architecture of build host |
59 |
- if ! use amd64; then |
60 |
- rm -r lib/sigar/libsigar-amd64-*.so || die "Failed in removing AMD64 support libraries" |
61 |
- fi |
62 |
- if ! use ppc64; then |
63 |
- rm -r lib/sigar/libsigar-ppc64-*.so || die "Failed in removing PPC64 support libraries" |
64 |
- fi |
65 |
- if ! use x86; then |
66 |
- rm -r lib/sigar/libsigar-x86-*.so || die "Failed in removing X86 support libraries" |
67 |
- fi |
68 |
- # Currently unsupported platforms |
69 |
- # QA warning galore but testing/patches welcome |
70 |
- rm lib/sigar/libsigar-*freebsd*so \ |
71 |
- lib/sigar/libsigar-*solaris*so \ |
72 |
- lib/sigar/libsigar-*hpux*.sl \ |
73 |
- lib/sigar/libsigar-*macosx*.dylib \ |
74 |
- lib/sigar/libsigar-ia64-*.so \ |
75 |
- lib/sigar/libsigar-ppc-*.so \ |
76 |
- lib/sigar/libsigar-s390x*.so \ |
77 |
- lib/sigar/*winnt* || die "Failed in removing unsupported platform libraries" |
78 |
- |
79 |
- # gentoo specific paths |
80 |
- sed -i "s@\(node_id_file = \).*@\1${DATA_DIR}/node-id@g; \ |
81 |
- s@\(message_journal_dir = \).*@\1${DATA_DIR}/data/journal@g; \ |
82 |
- s@#\(content_packs_dir = \).*@\1/${DATA_DIR}/data/contentpacks@g" \ |
83 |
- graylog.conf.example || die |
84 |
-} |
85 |
- |
86 |
-src_compile() { |
87 |
- einfo "Nothing to compile; upstream supplies JAR only" |
88 |
-} |
89 |
- |
90 |
-src_install() { |
91 |
- insinto /etc/graylog2 |
92 |
- doins graylog.conf.example |
93 |
- |
94 |
- insinto ${DATA_DIR}/data/contentpacks |
95 |
- doins data/contentpacks/grok-patterns.json |
96 |
- |
97 |
- insinto "${INSTALL_DIR}" |
98 |
- doins * |
99 |
- |
100 |
- doins -r lib plugin |
101 |
- |
102 |
- newinitd "${FILESDIR}/initd-r1" graylog2 |
103 |
- newconfd "${FILESDIR}/confd-r1" graylog2 |
104 |
-} |