diff options
author | Fabian Groffen <grobian@gentoo.org> | 2023-04-10 18:06:15 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2023-04-10 18:07:39 +0200 |
commit | b93b0bec1fdc6ecb0eadb35d79c10444d2614a58 (patch) | |
tree | ac5aeae1175dbff2ac19139f68a4035107fcd61a /app-metrics/carbonapi-booking/carbonapi-booking-0.3.0-r1.ebuild | |
parent | net-misc/memcached: stabilize 1.6.19 (diff) | |
download | gentoo-b93b0bec1fdc6ecb0eadb35d79c10444d2614a58.tar.gz gentoo-b93b0bec1fdc6ecb0eadb35d79c10444d2614a58.tar.bz2 gentoo-b93b0bec1fdc6ecb0eadb35d79c10444d2614a58.zip |
app-metrics/carbonapi-booking-0.3.0-r1: add deps and fix logfile path
Manage permission bits for carbonapi.log by putting it in a directory we
can manage. Register deps necessary for rendering png output.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'app-metrics/carbonapi-booking/carbonapi-booking-0.3.0-r1.ebuild')
-rw-r--r-- | app-metrics/carbonapi-booking/carbonapi-booking-0.3.0-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0-r1.ebuild b/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0-r1.ebuild new file mode 100644 index 000000000000..166f4baa33fa --- /dev/null +++ b/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0-r1.ebuild @@ -0,0 +1,58 @@ +# 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=" + app-arch/bzip2 + dev-libs/expat + media-libs/fontconfig + media-libs/freetype + media-libs/libpng + x11-libs/cairo + x11-libs/libX11 + x11-libs/libXau + x11-libs/libxcb + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXrender + x11-libs/pixman +" +RDEPEND="${DEPEND} + acct-group/carbon + acct-user/carbon" +BDEPEND="" + +src_prepare() { + export VERSION="gentoo-${PVR}" + + # bug 904051: disable data-race detection, conflicts with + # go-module's -buildmode=pie + sed -i -e 's/ -race / /' Makefile || die + + eapply "${FILESDIR}"/${P}-logfile.patch + eapply "${FILESDIR}"/${P}-colours.patch + + eapply_user +} + +src_install() { + insinto /etc/carbonapi + doins -r "${S}"/config/* + dobin carbonapi carbonzipper + + newinitd "${FILESDIR}"/${PN}.initd carbonapi + newconfd "${FILESDIR}"/${PN}.confd carbonapi +} |