Package Details: cfssl 1.5.0-2

Git Clone URL: (read-only, click to copy)
Package Base: cfssl
Description: CloudFlare PKI and TLS toolkit
Upstream URL:
Keywords: ca pki ssl tls
Licenses: BSD
Submitter: grossws
Maintainer: grossws
Last Packager: grossws
Votes: 14
Popularity: 0.018818
First Submitted: 2015-12-21 23:18
Last Updated: 2021-05-10 04:36

Latest Comments

grossws commented on 2021-05-10 04:41

[~laserk], [~gdamjan] thanks for you input. I took approach using make (with explicit version, so cfssl version and alike would show correct version string)

gdamjan commented on 2021-05-07 18:07

I can confirm that adding @latest to the go install line works. another approach would be to just run make. the pkgbuild becomes simpler

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  for bin in ${_binaries[@]} ; do
    install -m755 -D -t "${pkgdir}/usr/bin/" bin/${bin}
  # special case to avoid clash with `mono`
  mv ${pkgdir}/usr/bin/mkbundle ${pkgdir}/usr/bin/cfssl-mkbundle

  install -m644 -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

laserk commented on 2021-04-15 18:55

I got following error during install

go install: version is required when current directory is not in a module
    Try 'go install' to install the latest version

It installed without error after adding the version tag @latest as suggested:

diff --git a/PKGBUILD b/PKGBUILD
index eaf8acf..6069dfd 100644
@@ -33,7 +33,7 @@ build() {

   for bin in ${_binaries[@]} ; do
     echo "building $bin"
-    go install ${_prefix}/cmd/${bin}
+    go install ${_prefix}/cmd/${bin}@latest

grossws commented on 2018-10-09 14:59

@hikhvar, thanks for bringing this to my attention. Fixed in 1.3.2-4.

hikhvar commented on 2018-10-04 08:50

Could you please set also GOBIN for the build? I have a Go Environment in my .zshrc with GOPATH and GOBIN set. This breaks the build:

building mkbundle
building multirootca
==> Betrete fakeroot Umgebung...
==> Beginne package()...
install: der Aufruf von stat für '/tmp/yaourt-tmp-christoph/aur-cfssl/src/bin/cfssl' ist nicht möglich: Datei oder Verzeichnis nicht gefunden

With this patch the PKGPBUILD works like a charm:

diff --git a/PKGBUILD b/PKGBUILD
index df36675..750aab8 100644
@@ -28,7 +28,7 @@ prepare () {

 build() {
   export GOPATH="${srcdir}"
+  export GOBIN="${GOPATH}/bin"
   for bin in ${_binaries[@]} ; do
     echo "building $bin"
     go install ${_prefix}/cmd/${bin}

jasch commented on 2018-04-10 06:59

@grossws Just updated it with pacaur, worked like a charm. Thanks for the quick update and also for maintaining this package. Much appreciated :)

Have a great day!

grossws commented on 2018-04-09 18:23

@jasch, thanks for your analysis. It seems that makepkg launches interactive shell and sources your .zshrc. Since I haven't GOPATH in my .zshrc/.bashrc I couldn't reproduce it. I'll add GOPATH reexport in build()

jasch commented on 2018-04-09 12:58

Having the same issue as @terinjokes, the build fails because the GOPATH is not properly set. It defaults back to my GOPATH as set in my zshrc.

Information about system: Kernel: 4.15.15 Pacaur: 4.7.10

I haven't tested installing it with makepkg yet, but adding export GOPATH="${srcdir}" to the start of the build() phase allowed me to install the package again.

grossws commented on 2018-04-04 14:40

@terinjokes, I do not see any reason why GOPATH is unset on build/package phase.

Please add env | grep -i '^go' as first command in build() phase. Can you also share your ~/.makepkg.conf?

terinjokes commented on 2018-03-30 18:16

You've stopped exporting GOPATH in the build phase, so this doesn't build for me.