-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add certdehydrate-dane-rest-api project
- Loading branch information
1 parent
8a41d47
commit 1c189b4
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
[% c("var/set_default_env") -%] | ||
[% pc('go', 'var/setup', { go_tarfile => c('input_files_by_name/go') }) %] | ||
export CGO_ENABLED=0 | ||
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 -%] | ||
|
||
# Workaround for mixed versions of miekg/dns | ||
# TODO: remove this once upstream q is fixed for current dns versions | ||
rm -rf $GOPATH/src/github.com/miekg/dns | ||
rm -rf $GOPATH/pkg/${GOOS}_${GOARCH}/github.com/miekg/dns.a | ||
tar -C /var/tmp/dist -xf [% c('input_files_by_name/github.com,miekg,dns') %] | ||
|
||
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/certdehydrate-dane-rest-api-[% c('version') %] $GOPATH/src/github.com/namecoin/certdehydrate-dane-rest-api | ||
|
||
go install -ldflags '-s' github.com/namecoin/certdehydrate-dane-rest-api | ||
|
||
#mkdir -p /var/tmp/build | ||
#tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz | ||
#cd /var/tmp/build/[% project %]-[% c('version') %] | ||
|
||
#mkdir -p "$GOPATH/src/github.com/namecoin" | ||
#ln -sf "$PWD" "$GOPATH/src/github.com/namecoin/ncdns" | ||
|
||
#mkdir -p out | ||
#cd out | ||
#for x in .. ../ncdumpzone ../generate_nmc_cert; do | ||
# go build -ldflags '-s' "$x" | ||
#done | ||
|
||
[% IF c("var/linux-x86_64") -%] | ||
GOPATHBIN="${GOPATH}/bin" | ||
[% ELSE -%] | ||
GOPATHBIN="${GOPATH}/bin/${GOOS}_${GOARCH}" | ||
[% END -%] | ||
|
||
ls $GOPATHBIN | ||
|
||
cp -a $GOPATHBIN/certdehydrate-dane-rest-api[% IF c("var/windows") %].exe[% END %] $distdir/ | ||
|
||
cd $distdir | ||
[% c('tar', { | ||
tar_src => [ '.' ], | ||
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'), | ||
}) %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '[% c("abbrev") %]' | ||
git_url: https://github.com/namecoin/certdehydrate-dane-rest-api.git | ||
git_hash: '2eeb272f4bb7dffc13e39a609b308656a5a121ea' | ||
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz' | ||
|
||
var: | ||
container: | ||
use_container: 1 | ||
go_lib_deps: | ||
- github.com,miekg,dns | ||
- github.com,namecoin,crosssign | ||
- github.com,namecoin,qlib | ||
- github.com,namecoin,safetlsa | ||
- gopkg.in,hlandau,easyconfig.v1 | ||
cgo: 0 | ||
build_go_lib_pre: | | ||
export CGO_ENABLED=[% c("var/cgo") %] | ||
|
||
input_files: | ||
- project: container-image | ||
- name: go | ||
project: go | ||
- name: gopkg.in,hlandau,easyconfig.v1 | ||
project: gopkg.in,hlandau,easyconfig.v1 | ||
- name: github.com,miekg,dns | ||
project: github.com,miekg,dns | ||
# v1.0.15 is the last tagged release that still works with q. | ||
git_hash: '7064f7248f5fa5fd79382a76328b4e200b79e4ae' | ||
- name: github.com,namecoin,crosssign | ||
project: github.com,namecoin,crosssign | ||
- name: github.com,namecoin,qlib | ||
project: github.com,namecoin,qlib | ||
- name: github.com,namecoin,safetlsa | ||
project: github.com,namecoin,safetlsa |