diff options
Diffstat (limited to 'app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild')
-rw-r--r-- | app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild b/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild new file mode 100644 index 000000000000..1e309c4d679b --- /dev/null +++ b/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild @@ -0,0 +1,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 +} |