blob: 4b5ade0cb2bff4be6ca4a706a50dea487fcdf2fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor:
# Maintainer:
pkgname=cfssl
pkgver=1.1.0_git20160219
_pkgcommit=b70ba7a6c5246664189c88eb2b986d80093d7b3e
pkgrel=1
pkgdesc="Cloudflare PKI and TLS toolkit"
url="https://cfssl.org"
arch="all"
license="BSD"
depends="musl"
depends_dev=""
makedepends="$depends_dev go git gcc libc-dev libtool libgcc libltdl"
install=""
subpackages=""
source="$pkgname-$_pkgcommit.tar.gz::https://github.com/cloudflare/$pkgname/archive/$_pkgcommit.tar.gz"
_builddir="$srcdir/$pkgname-$_pkgcommit"
prepare() {
cd "$_builddir"
}
build() {
cd "$srcdir"
export GOPATH="$PWD"
export GO15VENDOREXPERIMENT=1
mkdir -p src/github.com/cloudflare/
cp -r "$_builddir" src/github.com/cloudflare/cfssl
go install -tags pkcs11 github.com/cloudflare/cfssl/cmd/...
}
package() {
cd "$srcdir"
install -Dm755 bin/cfssl $pkgdir/usr/bin/cfssl
install -Dm755 bin/cfssl-bundle $pkgdir/usr/bin/cfssl-bundle
install -Dm755 bin/cfssl-certinfo $pkgdir/usr/bin/cfssl-certinfo
install -Dm755 bin/cfssl-newkey $pkgdir/usr/bin/cfssl-newkey
install -Dm755 bin/cfssl-scan $pkgdir/usr/bin/cfssl-scan
install -Dm755 bin/cfssljson $pkgdir/usr/bin/cfssljson
install -Dm755 bin/mkbundle $pkgdir/usr/bin/mkbundle
install -Dm755 bin/multirootca $pkgdir/usr/bin/multirootca
}
md5sums="63dd717cf3883013032c8376e8387c1a cfssl-b70ba7a6c5246664189c88eb2b986d80093d7b3e.tar.gz"
sha256sums="495fdc0794eb4bc9eece350e6f4a93837933d170479e27312b6d34d47deb544a cfssl-b70ba7a6c5246664189c88eb2b986d80093d7b3e.tar.gz"
sha512sums="585fffe375d9aaa47ae523335352cd331126fd95479188c2891cbe5ba12f0c800a5b8633d7595842f9a1ee81980d16eb2388e5dc5e016b3a4b69e428ffb8150a cfssl-b70ba7a6c5246664189c88eb2b986d80093d7b3e.tar.gz"
|