~muirrum/gentoo-repo

d6da0c8c3609b44c3f37234b7db3d09e02f4f428 — Cara Salter a month ago d96a5d4 master
app-admin/step: new package, add 0.26.0

Signed-off-by: Cara Salter <cara@devcara.com>
A app-admin/step/Manifest => app-admin/step/Manifest +4 -0
@@ 0,0 1,4 @@
AUX step-0.26.0-remove-makefile-download.patch 450 BLAKE2B 3873f1fd0f8b0e0019f34dc58d8cf1063b7cbfc5bc608cbafd7d226d0923d4c79ae16c5862ca69a6df0f9a69b37a31e8954f298e1963776dd0879768408484ad SHA512 75bee61da841001c87ce9677366909059c078e0651db77900039b9414d644dfe6f95234458638618e047c73b63553cb4efdd6324b3546383e6de60f52a652e7b
DIST step-0.26.0-vendor.tar.xz 5242544 BLAKE2B 150ca135117b0ae27c764c8919dd949a4c7ac11c2b9db3065df8a88afd0278113b7c67ad8785ceadabcb00aeda5e769c3adebed391bd3f628d1044fdeb26709e SHA512 7991ee73bb00d5829cf7f90bd79c098167a9d2580649c87fa1c319d219d1f51623b716e7d5d39c4acbfd20ffb0df2401d953f126484ead7041ea035633e2a953
DIST step-0.26.0.tar.gz 1644299 BLAKE2B 86eaa762b68d8d91fc7a8e7fce1947ca31e257400363eb062fa4b781767fcd0251909e39a9e143df8414da90e9a9ffb273d4e0df862669181f003b617f39cefd SHA512 fcccb8beed7f97807fc47aea157bd33f4b34b6109ec585b8004109a8d08bb950310382e643514437b359455d23217386bb81183aa29942a2aa4518fec8e63921
EBUILD step-0.26.0.ebuild 730 BLAKE2B 3db1aedd6ab0fa4c61c8e4a9f6b02119dfeddc2baf717685dfbbe7d029188374922ccb2b74e0a00d1e3db792f219d3229deee8596a5d70e9ea26e163700732be SHA512 c0322ac4f6ac9280085b4ea64e4eea89633eac7269599c6a9fac222d93727ae17eeae6cc01f61149af89be1c417fe81d97b76e6607e9209b6f1d224d64515b90

A app-admin/step/files/step-0.26.0-remove-makefile-download.patch => app-admin/step/files/step-0.26.0-remove-makefile-download.patch +18 -0
@@ 0,0 1,18 @@
--- a/Makefile	2024-03-29 13:12:36.000000000 +1100
+++ b/Makefile	2024-04-21 20:41:24.079161100 +1000
@@ -71,13 +71,10 @@
 	GCFLAGS :=
 endif

-download:
-	$Q go mod download
-
 build: $(PREFIX)bin/$(BINNAME)
 	@echo "Build Complete!"

-$(PREFIX)bin/$(BINNAME): download $(call rwildcard,*.go)
+$(PREFIX)bin/$(BINNAME): $(call rwildcard,*.go)
 	$Q mkdir -p $(@D)
 	$Q $(GOOS_OVERRIDE) $(CGO_OVERRIDE) go build -v -o $@ $(GCFLAGS) $(LDFLAGS) $(PKG)



A app-admin/step/metadata.xml => app-admin/step/metadata.xml +11 -0
@@ 0,0 1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
	<maintainer type="person">
		<email>cara@devcara.com</email>
		<name>Cara Salter</name>
	</maintainer>
	<upstream>
		<bugs-to>https://github.com/smallstep/cli/issues</bugs-to>
	</upstream>
</pkgmetadata>

A app-admin/step/step-0.26.0.ebuild => app-admin/step/step-0.26.0.ebuild +39 -0
@@ 0,0 1,39 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

PATCHES=(
	"${FILESDIR}/${P}-remove-makefile-download.patch"
)

DESCRIPTION="A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc."
HOMEPAGE="https://smallstep.com"
SRC_URI="https://github.com/smallstep/cli/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
		https://mirror.devcara.com/gentoo/${P}-vendor.tar.xz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

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

src_unpack() {
	unpack "${P}.tar.gz"
	mv "cli-${PV}" "${P}" || die
	unpack "${P}-vendor.tar.xz"
}

src_compile() {
	emake build
}

src_install() {
	dobin bin/step

	default
}