-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from antonfischl1980/app-misc/go-carbon-0.18.0
[ bump-ebuilds ] app-misc/go-carbon-0.18.0
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST go-carbon-0.16.2.tar.gz 4290445 BLAKE2B acfeb50a3445e0e7a865349aeb0fff356da1f96ef7886db73cb875070298f3437f4363ca7ad521408701a129ac32e7e6a25cf8f644c7e6be0c28111a6e2b9425 SHA512 fb4520ee5eec5f100042f992e5ebcc8f7cae3daf4d00a153487ba3dfb634fdf931cdb90eb651918af45e565f2eca53883efaf73859526068f357aa24b53710d5 | ||
DIST go-carbon-0.17.1.tar.gz 5074817 BLAKE2B 59b708ee2eeea486e3f4612efbe94e0592f920de3a194f7d89b4c92df88c65027373871a1503f9ce1027bc1695f19d86503de6da4789b7277780a08871f1c893 SHA512 d18e5768fa8942d3ad8039f2c8304797c488d892aae2d3bca64e2659d7bd432e9c8db14dae22eae86be9e6217b0ea567e2f40b4395c7123a7871f75afed82fc0 | ||
DIST go-carbon-0.17.3.tar.gz 5426401 BLAKE2B 8f2ea61524b9fdc70c7d233d4e88c7190351c970cc787d80de14e51d4cc4ad94413774c7ca86fbf4910bffc3ad241b266772969305378afc289a146f7ad69318 SHA512 16e12099692da6a6b8df55816f5b7b91777c384ca292ea309c16513096e8601cb447e7ef4530466e6b989042efc4b31d8190290b35938d2e0e654f4ae6da70bb | ||
DIST go-carbon-0.18.0.tar.gz 6228539 BLAKE2B 8019b8a6a3a67353f0ac10e88cb176c70b935d83f3853604245bdce78eaf241efa578ba7ebbbc4e4e9f3921c31e6732d70fd95402ca0ba96ce42caed1fe32c0d SHA512 a225fd742d4d59b72d153b57ecf77bfc3cc27bcb65af2ced8f5ed4f6970507f2a00dabd9f15872f90b89e9d7d97efe82123ca0b9fa9ebcf3562d0be3cec13413 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
inherit go-module | ||
|
||
DESCRIPTION="Golang implementation of Graphite/Carbon server with classic architecture" | ||
HOMEPAGE="https://github.com/go-graphite/go-carbon" | ||
|
||
SRC_URI="https://github.com/go-graphite/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="" | ||
|
||
DEPEND=" | ||
acct-group/carbon | ||
acct-user/carbon | ||
>=dev-lang/go-1.8 | ||
app-admin/logrotate | ||
" | ||
RDEPEND="${DEPEND}" | ||
BDEPEND="" | ||
|
||
src_install(){ | ||
dosbin go-carbon | ||
keepdir /etc/go-carbon | ||
keepdir /var/log/go-carbon | ||
newdoc go-carbon.conf.example go-carbon.conf.example | ||
newdoc deploy/storage-aggregation.conf storage-aggregation.conf.sample | ||
newdoc deploy/storage-schemas.conf storage-schemas.conf.sample | ||
newinitd "${FILESDIR}/go-carbon.initd" "${PN}" | ||
insinto /etc/logrotate.d/ | ||
newins "${FILESDIR}/go-carbon.logrotate" "${PN}" | ||
} | ||
|
||
pkg_config(){ | ||
cd "${ROOT}"/etc/go-carbon/ || die | ||
if [ ! -f "${ROOT}"/etc/go-carbon/go-carbon.conf ];then | ||
unpack "${ROOT}"/usr/share/doc/"${PF}"/go-carbon.conf.example.bz2 | ||
mv go-carbon.conf.sample go-carbon.conf | ||
fi | ||
if [ ! -f "${ROOT}"/etc/go-carbon/storage-aggregation.conf ];then | ||
unpack "${ROOT}"/usr/share/doc/"${PF}"/storage-aggregation.conf.sample.bz2 | ||
mv storage-aggregation.conf.sample storage-aggregation.conf | ||
fi | ||
if [ ! -f "${ROOT}"/etc/go-carbon/storage-schemas.conf ];then | ||
unpack "${ROOT}"/usr/share/doc/"${PF}"/storage-schemas.conf.sample.bz2 | ||
mv storage-schemas.conf.sample storage-schemas.conf | ||
fi | ||
} |