|
|
|
@ -22,8 +22,8 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_opkg 20150718 |
|
|
|
|
%define V_dist 20150718 |
|
|
|
|
%define V_opkg 20150729 |
|
|
|
|
%define V_dist 20150729 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: cfssl |
|
|
|
@ -36,7 +36,7 @@ Class: EVAL
|
|
|
|
|
Group: Network |
|
|
|
|
License: MIT |
|
|
|
|
Version: %{V_opkg} |
|
|
|
|
Release: 20150718 |
|
|
|
|
Release: 20150729 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/cfssl/cfssl-%{V_dist}.tar.xz |
|
|
|
@ -46,8 +46,8 @@ Source3: cfssl-initca.sh
|
|
|
|
|
Patch0: cfssl.patch |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20120101, go |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20120101 |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20140101, go |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20140101 |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
CF-SSL is CloudFlare's SSL/TLS/X.509 swiss army knife. It is both a |
|
|
|
@ -72,12 +72,14 @@ PreReq: OpenPKG, openpkg >= 20120101
|
|
|
|
|
-e 's;/etc/cfssl/ca-bundle.crt.metadata;%{l_prefix}/var/cfssl/dat/ca-bundle.crt.metadata;g' \ |
|
|
|
|
-e 's;/etc/cfssl/int-bundle\.crt;%{l_prefix}/var/cfssl/dat/int-bundle.crt;g' \ |
|
|
|
|
-e 's;/etc/cfssl/intermediates;%{l_prefix}/var/cfssl/dat/int.d;g' \ |
|
|
|
|
src/github.com/cloudflare/cfssl/cli/cli.go |
|
|
|
|
src/github.com/cloudflare/cfssl/scan/broad.go \ |
|
|
|
|
src/github.com/cloudflare/cfssl/cli/config.go |
|
|
|
|
|
|
|
|
|
# prepare Go build environment |
|
|
|
|
export GOPATH=`pwd` |
|
|
|
|
|
|
|
|
|
# build program |
|
|
|
|
export CC="%{l_cc} %{l_cflags} %{l_cppflags} %{l_ldflags}" |
|
|
|
|
go build -x -o cfssl src/github.com/cloudflare/cfssl/cmd/cfssl/cfssl.go |
|
|
|
|
go build -x -o cfssl-mkbundle src/github.com/cloudflare/cfssl/cmd/mkbundle/mkbundle.go |
|
|
|
|
go build -x -o cfssl-json src/github.com/cloudflare/cfssl/cmd/cfssljson/cfssljson.go |
|
|
|
|