blob: 1e309c4d679b4566907b32f0e8371bde01e8f315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
MY_PN=${PN%-booking}
DESCRIPTION="High-performance Graphite front-end, Booking.com fork"
HOMEPAGE="https://github.com/bookingcom/carbonapi"
SRC_URI="https://github.com/bookingcom/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="${DEPEND}
acct-group/carbon
acct-user/carbon"
BDEPEND=""
src_install() {
insinto /etc/carbonapi
doins -r "${S}"/config/*
dobin carbonapi carbonzipper
newinitd "${FILESDIR}"/${PN}.initd carbonapi
newconfd "${FILESDIR}"/${PN}.confd carbonapi
}
|