Merge #97: Add certinject project
6da88e4
Add certinject project (Jeremy Rand)
Pull request description:
pull/108/head
commit
768b414493
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
[% c("var/set_default_env") -%]
|
||||||
|
[% pc('go', 'var/setup', { go_tarfile => c('input_files_by_name/go') }) %]
|
||||||
|
export CGO_ENABLED=[% c("var/cgo") %]
|
||||||
|
distdir=/var/tmp/dist/[% project %]
|
||||||
|
mkdir -p $distdir
|
||||||
|
|
||||||
|
[% FOREACH dep = c("var/go_lib_deps") -%]
|
||||||
|
tar -C /var/tmp/dist -xf [% c('input_files_by_name/' _ dep) %]
|
||||||
|
[% END -%]
|
||||||
|
|
||||||
|
mkdir -p $GOPATH/src/github.com/namecoin
|
||||||
|
tar -C $GOPATH/src/github.com/namecoin -xf [% project %]-[% c('version') %].tar.gz
|
||||||
|
mv $GOPATH/src/github.com/namecoin/certinject-[% c('version') %] $GOPATH/src/github.com/namecoin/certinject
|
||||||
|
|
||||||
|
go generate github.com/namecoin/certinject/...
|
||||||
|
# TODO: Remove static build ID after migrating to Go 1.13.3+
|
||||||
|
go install -ldflags '-s -buildid=' github.com/namecoin/certinject/cmd/certinject
|
||||||
|
|
||||||
|
[% IF c("var/linux-x86_64") -%]
|
||||||
|
GOPATHBIN="${GOPATH}/bin"
|
||||||
|
[% ELSE -%]
|
||||||
|
GOPATHBIN="${GOPATH}/bin/${GOOS}_${GOARCH}"
|
||||||
|
[% END -%]
|
||||||
|
|
||||||
|
cp -a $GOPATHBIN/certinject[% IF c("var/windows") %].exe[% END %] $distdir/
|
||||||
|
|
||||||
|
cd $distdir
|
||||||
|
[% c('tar', {
|
||||||
|
tar_src => [ '.' ],
|
||||||
|
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
|
||||||
|
}) %]
|
@ -0,0 +1,26 @@
|
|||||||
|
version: '0.0.1'
|
||||||
|
git_url: https://github.com/namecoin/certinject.git
|
||||||
|
git_hash: '8b71285733f8abce7e0f6443e9ca3dc4acf6255b'
|
||||||
|
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
|
||||||
|
|
||||||
|
var:
|
||||||
|
container:
|
||||||
|
use_container: 1
|
||||||
|
go_lib_deps:
|
||||||
|
- goeasyconfig
|
||||||
|
- goxlog
|
||||||
|
- goxsys
|
||||||
|
cgo: 0
|
||||||
|
build_go_lib_pre: |
|
||||||
|
export CGO_ENABLED=[% c("var/cgo") %]
|
||||||
|
|
||||||
|
input_files:
|
||||||
|
- project: container-image
|
||||||
|
- name: go
|
||||||
|
project: go
|
||||||
|
- name: goeasyconfig
|
||||||
|
project: goeasyconfig
|
||||||
|
- name: goxlog
|
||||||
|
project: goxlog
|
||||||
|
- name: goxsys
|
||||||
|
project: goxsys
|
Loading…
Reference in New Issue