1 |
commit: a440aafa3b7669de4abd6b8a755a0b2cfcf89e51 |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Nov 3 19:41:44 2022 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 4 05:31:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a440aafa |
7 |
|
8 |
net-misc/icingadb: Icinga configuration and state database |
9 |
|
10 |
https://icinga.com/blog/2022/06/30/finally-accomplished-icinga-db-released/ |
11 |
|
12 |
"Icinga DB is the new data backend for Icinga and will replace the IDO as |
13 |
the central data store in the medium term." |
14 |
|
15 |
Bug: https://bugs.gentoo.org/879359 |
16 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
17 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
18 |
|
19 |
net-misc/icingadb/Manifest | 2 ++ |
20 |
net-misc/icingadb/files/icingadb.initd | 11 +++++++++ |
21 |
net-misc/icingadb/icingadb-1.0.0.ebuild | 40 +++++++++++++++++++++++++++++++++ |
22 |
net-misc/icingadb/metadata.xml | 19 ++++++++++++++++ |
23 |
4 files changed, 72 insertions(+) |
24 |
|
25 |
diff --git a/net-misc/icingadb/Manifest b/net-misc/icingadb/Manifest |
26 |
new file mode 100644 |
27 |
index 000000000000..bbb672e0a101 |
28 |
--- /dev/null |
29 |
+++ b/net-misc/icingadb/Manifest |
30 |
@@ -0,0 +1,2 @@ |
31 |
+DIST icingadb-1.0.0-deps.tar.xz 6857272 BLAKE2B eb5ea6ae34125d40b148f6d58befd19671f389933632e5781e4fedd7880ac68923e6843e601df28d01d3fdf17320357b4b169354cb9206144d14b12de8f9c801 SHA512 d7e1efa871e87f8aaff21da23831f8b67e64db3ae6310b7e224d2558fcd27993eaa8317d4e0df0610ec92cbf056d63ea09fca61173e199a2b88ec2fe2c06ad21 |
32 |
+DIST icingadb-1.0.0.tar.gz 3846335 BLAKE2B 89739ce52ae21fd695261eb90f1edcf209a319416687359f63d1bf21ac3dc999db159149207dceccc007a88e59d5f93a7c4ba555c110e3935afdedab4a917445 SHA512 e414ed2146d29d990d82b13026db0d96e72747708a642b382732feeec8a48402cb40edc00e85a8b383e37aaaf4c7f60236747047df189b981668e59d3b2770c0 |
33 |
|
34 |
diff --git a/net-misc/icingadb/files/icingadb.initd b/net-misc/icingadb/files/icingadb.initd |
35 |
new file mode 100644 |
36 |
index 000000000000..b5be7999df38 |
37 |
--- /dev/null |
38 |
+++ b/net-misc/icingadb/files/icingadb.initd |
39 |
@@ -0,0 +1,11 @@ |
40 |
+#!/sbin/openrc-run |
41 |
+# Copyright 1999-2022 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+command="/usr/bin/icingadb" |
45 |
+command_background="true" |
46 |
+command_user="icinga" |
47 |
+pidfile="/run/${RC_SVCNAME}.pid" |
48 |
+required_files="/etc/${RC_SVCNAME}/config.yml" |
49 |
+output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" |
50 |
+error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.err" |
51 |
|
52 |
diff --git a/net-misc/icingadb/icingadb-1.0.0.ebuild b/net-misc/icingadb/icingadb-1.0.0.ebuild |
53 |
new file mode 100644 |
54 |
index 000000000000..1b8e0bfff47a |
55 |
--- /dev/null |
56 |
+++ b/net-misc/icingadb/icingadb-1.0.0.ebuild |
57 |
@@ -0,0 +1,40 @@ |
58 |
+# Copyright 1999-2022 Gentoo Authors |
59 |
+# Distributed under the terms of the GNU General Public License v2 |
60 |
+ |
61 |
+EAPI=8 |
62 |
+ |
63 |
+inherit go-module |
64 |
+ |
65 |
+DESCRIPTION="Icinga configuration and state database supporting multiple environments" |
66 |
+HOMEPAGE="https://icinga.com/docs/icinga-db/" |
67 |
+SRC_URI="https://github.com/Icinga/icingadb/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz |
68 |
+ https://github.com/hydrapolic/gentoo-dist/raw/master/icinga/${P}-deps.tar.xz" |
69 |
+ |
70 |
+LICENSE="GPL-2" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ acct-user/icinga |
76 |
+ acct-group/icinga |
77 |
+" |
78 |
+ |
79 |
+DOCS=( config.example.yml doc README.md schema ) |
80 |
+ |
81 |
+src_compile() { |
82 |
+ cd cmd/icingadb || die |
83 |
+ ego build |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ dobin cmd/icingadb/icingadb |
88 |
+ einstalldocs |
89 |
+ |
90 |
+ newinitd "${FILESDIR}/icingadb.initd" "${PN}" |
91 |
+ |
92 |
+ keepdir /etc/icingadb |
93 |
+ keepdir /var/log/icingadb |
94 |
+ |
95 |
+ fperms 0750 /etc/icingadb /var/log/icingadb |
96 |
+ fowners icinga:icinga /etc/icingadb /var/log/icingadb |
97 |
+} |
98 |
|
99 |
diff --git a/net-misc/icingadb/metadata.xml b/net-misc/icingadb/metadata.xml |
100 |
new file mode 100644 |
101 |
index 000000000000..4a0d17a5f25c |
102 |
--- /dev/null |
103 |
+++ b/net-misc/icingadb/metadata.xml |
104 |
@@ -0,0 +1,19 @@ |
105 |
+<?xml version="1.0" encoding="UTF-8"?> |
106 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
107 |
+<pkgmetadata> |
108 |
+ <maintainer type="person"> |
109 |
+ <email>prometheanfire@g.o</email> |
110 |
+ <name>Matthew Thode</name> |
111 |
+ </maintainer> |
112 |
+ <maintainer type="person" proxied="yes"> |
113 |
+ <email>hydrapolic@×××××.com</email> |
114 |
+ <name>Tomáš Mózes</name> |
115 |
+ </maintainer> |
116 |
+ <maintainer type="project" proxied="proxy"> |
117 |
+ <email>proxy-maint@g.o</email> |
118 |
+ <name>Proxy Maintainers</name> |
119 |
+ </maintainer> |
120 |
+ <upstream> |
121 |
+ <remote-id type="github">Icinga/icingadb</remote-id> |
122 |
+ </upstream> |
123 |
+</pkgmetadata> |