app-admin/influx-cli - 2.7.5 (zGentoo)

Search

Package Information

Description:
CLI for managing resources in InfluxDB v2
Homepage:
https://github.com/influxdata/influx-cli
License:
MIT BSD Apache-2.0 EPL-1.0 MPL-2.0 BSD-2 ISC

Ebuild Details

Version EAPI Keywords Slot
2.7.5 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

## WARN
# Due to the mass of dependencies, LICENSEs might not be complete. (TODO)

EAPI=8
inherit go-module systemd
go-module_set_globals

DESCRIPTION="CLI for managing resources in InfluxDB v2"
HOMEPAGE="https://github.com/influxdata/${PN}"

## howto build vendor bundle
# >> git clone https://github.com/influxdata/influx-cli -b v<version> /tmp/influx-cli
# >> cd /tmp/influx-cli && version=`git describe --tags | sed -E "s/v([0-9.]+)/\1/g"`
# >> go mod vendor && mkdir influx-cli-${version} && mv vendor influx-cli-${version}/vendor
# >> tar -caf influx-cli-${version}-vendor.tar.xz influx-cli-${version}/vendor

SRC_URI="
	https://github.com/influxdata/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://vendors.simple-co.de/${PN}/${P}-vendor.tar.xz
"

LICENSE="MIT BSD Apache-2.0 EPL-1.0 MPL-2.0 BSD-2 ISC"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND=""
COMMON_DEPEND=""
DEPEND="${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}"

src_compile() {
	go build -ldflags="-X main.version=${PV}" -o ${S}/bin/influx ${S}/cmd/influx || die "compile failed"
}

src_install() {
	dobin bin/influx
	dosym /usr/bin/influx /usr/bin/influx-cli

	# docs
	dodoc *.md
}

Manifest for 2.7.5

Type File Size Source URLs
DIST influx-cli-2.7.5-vendor.tar.xz 2854596 bytes https://vendors.simple-co.de/influx-cli/influx-cli-2.7.5-vendor.tar.xz
DIST influx-cli-2.7.5.tar.gz 443950 bytes https://github.com/influxdata/influx-cli/archive/v2.7.5.tar.gz