ncdns: Support disabling TLSA

This commit is contained in:
JeremyRand 2019-10-19 05:56:13 +00:00
parent 515f9d7a5e
commit 6aa54c3dfd
No known key found for this signature in database
GPG Key ID: B3F2D165786D6570
2 changed files with 17 additions and 6 deletions

View File

@ -29,7 +29,13 @@ mkdir -p $GOPATH/src/github.com/namecoin
tar -C $GOPATH/src/github.com/namecoin -xf [% project %]-[% c('version') %].tar.gz tar -C $GOPATH/src/github.com/namecoin -xf [% project %]-[% c('version') %].tar.gz
mv $GOPATH/src/github.com/namecoin/ncdns-[% c('version') %] $GOPATH/src/github.com/namecoin/ncdns mv $GOPATH/src/github.com/namecoin/ncdns-[% c('version') %] $GOPATH/src/github.com/namecoin/ncdns
go install -ldflags '-s' github.com/namecoin/ncdns/... [% IF c("var/enable_namecoin_tlsa") %]
TAGS=""
[% ELSE %]
TAGS="-tags no_namecoin_tls"
[% END %]
go install $TAGS -ldflags '-s' github.com/namecoin/ncdns/...
#mkdir -p /var/tmp/build #mkdir -p /var/tmp/build
#tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz #tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz

View File

@ -1,11 +1,12 @@
#version: 0.0.9 #version: 0.0.9
# Using latest master branch because we need the stream isolation feature. # Using latest master branch because we need the stream isolation and
# Once it's in a tagged release, we'll go back to using a version number here. # disable_namecoin_tlsa features. Once they're in a tagged release, we'll go
# back to using a version number here.
version: '[% c("abbrev") %]' version: '[% c("abbrev") %]'
git_url: https://github.com/namecoin/ncdns.git git_url: https://github.com/namecoin/ncdns.git
# Using latest master branch because we need the stream isolation feature. # Using latest master branch because we need the stream isolation and
# Once it's in a tagged release, we'll go back to using a hash that corresponds # disable_namecoin_tlsa features. Once they're in a tagged release, we'll go
# to a tag here. # back to using a hash that corresponds to a tag here.
git_hash: '1e2eea58c79686eea47de873580bcd907ca67d80' git_hash: '1e2eea58c79686eea47de873580bcd907ca67d80'
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz' filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
@ -27,6 +28,7 @@ var:
- goservice - goservice
- goxnet - goxnet
go_lib_no_output: 1 go_lib_no_output: 1
enable_namecoin_tlsa: 1
targets: targets:
linux: linux:
@ -61,6 +63,9 @@ targets:
- goxnet - goxnet
- goxsys - goxsys
cgo: 0 cgo: 0
disable_namecoin_tlsa:
var:
enable_namecoin_tlsa: 0
input_files: input_files:
- project: container-image - project: container-image