Skip to content

Commit

Permalink
app-crypt/cfssl: new package, add 1.6.4
Browse files Browse the repository at this point in the history
Don’t want to wait https://bugs.gentoo.org/917254 to bump it

Signed-off-by: jinqiang zhang <[email protected]>
  • Loading branch information
peeweep authored and liangyongxiang committed Nov 12, 2023
1 parent 3341a6c commit 9106332
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-crypt/cfssl/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST cfssl-1.6.4.tar.gz 7890450 BLAKE2B d179f8768894b3686b377698120df6dd33f7dd82b4f8c74b626ca62168f59eff350129793f0954cc7db5e621d26d99f4e26ea579cf7eb5d5f89520cad060f5ee SHA512 6327d15dda24bf072958c74f4cd0bf1aa4023f935bb24da7f5655739992970fa777f6771603dd3a6edfee6cd2ed418a2fef335f7209ce88cf07674d592c3110f
30 changes: 30 additions & 0 deletions app-crypt/cfssl/cfssl-1.6.4.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit go-module

DESCRIPTION="Cloudflare's PKI and TLS toolkit"
HOMEPAGE="https://github.com/cloudflare/cfssl"
SRC_URI="https://github.com/cloudflare/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0 BSD BSD-1 MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="hardened"

RDEPEND="!!dev-lang/mono" #File collision (bug 614364)

PATCHES=(
"${FILESDIR}/${PN}-1.4.1-build-fix.patch"
)

src_compile() {
CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" emake VERSION="${PV}"
}

src_install() {
dobin bin/*
dodoc CHANGELOG README.md
}
16 changes: 16 additions & 0 deletions app-crypt/cfssl/files/cfssl-1.4.1-build-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
This patch cannot be upstreamed in this form. However, the following
issue has been opened to discuss integrating a better solution upstream.

https://github.com/cloudflare/cfssl/issues/1062

diff --git a/Makefile b/Makefile
index 10a52fc..7fc019b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,4 @@
-VERSION := $(shell git describe --tags --abbrev=0 | tr -d '[:alpha:]')
-LDFLAGS := "-s -w -X github.com/cloudflare/cfssl/cli/version.version=$(VERSION)"
+LDFLAGS := "-X github.com/cloudflare/cfssl/cli/version.version=$(VERSION)"

export GOFLAGS := -mod=vendor
export GOPROXY := off
11 changes: 11 additions & 0 deletions app-crypt/cfssl/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</email>
<name>William Hubbs</name>
</maintainer>
<upstream>
<remote-id type="github">cloudflare/cfssl</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 9106332

Please sign in to comment.