Diff icingadb-1.1.0 with a icingadb-1.2.0

/usr/portage/net-misc/icingadb/icingadb-1.2.0.ebuild 2024-12-25 14:59:51.263270144 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2024 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit go-module
6
inherit go-module systemd
7 7

  
8 8
DESCRIPTION="Icinga configuration and state database supporting multiple environments"
9 9
HOMEPAGE="https://icinga.com/docs/icinga-db/"
10
SRC_URI="https://github.com/Icinga/icingadb/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
11
	https://github.com/hydrapolic/gentoo-dist/raw/master/icinga/${P}-deps.tar.xz"
10
SRC_URI="
11
	https://github.com/Icinga/icingadb/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
12
	https://dev.gentoo.org/~sbraz/distfiles/${P}-deps.tar.xz
13
"
12 14

  
13 15
LICENSE="GPL-2"
14 16
SLOT="0"
15
KEYWORDS="amd64"
17
KEYWORDS="amd64 ~arm64"
16 18

  
17 19
RDEPEND="
18 20
	acct-user/icinga
......
21 23

  
22 24
DOCS=( config.example.yml doc README.md schema )
23 25

  
26
src_prepare() {
27
	default
28
	sed -e "s|@EPREFIX@|${EPREFIX}|" "${FILESDIR}/icingadb.service" > "${T}/icingadb.service" || die
29
}
30

  
24 31
src_compile() {
25
	cd cmd/icingadb || die
26
	ego build
32
	local cmd
33
	for cmd in icingadb icingadb-migrate; do
34
		pushd "cmd/${cmd}" || die
35
		ego build
36
		popd || die
37
	done
27 38
}
28 39

  
29 40
src_install() {
30
	dobin cmd/icingadb/icingadb
41
	local cmd
42
	for cmd in icingadb icingadb-migrate; do
43
		dobin "cmd/${cmd}/${cmd}"
44
	done
31 45
	einstalldocs
32 46

  
33 47
	newinitd "${FILESDIR}/icingadb.initd" "${PN}"
48
	systemd_dounit "${T}/icingadb.service"
34 49

  
35 50
	keepdir /etc/icingadb
36 51
	keepdir /var/log/icingadb
Thank you!