mirror of
https://github.com/namecoin/ncdns-repro
synced 2024-11-13 19:12:01 +00:00
Merge #68: ncdns: Support disabling TLSA
c9fcdaa
ncprop279: Support disabling TLSA (JeremyRand)89ff49a
ncdns: Disable TLSA dependencies when TLSA is disabled (JeremyRand)6aa54c3
ncdns: Support disabling TLSA (JeremyRand) Pull request description: This PR exposes https://github.com/namecoin/ncdns/pull/115 as an rbm target. TODO: - [x] Reduce dependencies accordingly.
This commit is contained in:
commit
acb8448023
@ -25,11 +25,31 @@ mkdir -p $distdir
|
|||||||
tar -C /var/tmp/dist -xf [% c('input_files_by_name/' _ dep) %]
|
tar -C /var/tmp/dist -xf [% c('input_files_by_name/' _ dep) %]
|
||||||
[% END -%]
|
[% END -%]
|
||||||
|
|
||||||
|
[% FOREACH dep = c("var/os_go_lib_deps") -%]
|
||||||
|
tar -C /var/tmp/dist -xf [% c('input_files_by_name/' _ dep) %]
|
||||||
|
[% END -%]
|
||||||
|
|
||||||
|
[% FOREACH dep = c("var/optional_go_lib_deps") -%]
|
||||||
|
tar -C /var/tmp/dist -xf [% c('input_files_by_name/' _ dep) %]
|
||||||
|
[% END -%]
|
||||||
|
|
||||||
mkdir -p $GOPATH/src/github.com/namecoin
|
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 %]
|
||||||
|
|
||||||
|
[% FOREACH inst IN c("var/go_lib_install") %]
|
||||||
|
go install $TAGS -ldflags '-s' [% inst %]
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% FOREACH inst IN c("var/optional_go_lib_install") %]
|
||||||
|
go install $TAGS -ldflags '-s' [% inst %]
|
||||||
|
[% END %]
|
||||||
|
|
||||||
#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
|
||||||
@ -61,10 +81,16 @@ cd /var/tmp/dist
|
|||||||
# Build as executable
|
# Build as executable
|
||||||
ls $GOPATHBIN
|
ls $GOPATHBIN
|
||||||
|
|
||||||
for x in ncdns ncdumpzone ncdt generate_nmc_cert tlsrestrict_chromium_tool; do
|
for x in ncdns ncdt; do
|
||||||
cp -a $GOPATHBIN/"$x"[% IF c("var/windows") %].exe[% END %] $distdir/
|
cp -a $GOPATHBIN/"$x"[% IF c("var/windows") %].exe[% END %] $distdir/
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[% IF c("var/enable_namecoin_tlsa") %]
|
||||||
|
for x in ncdumpzone generate_nmc_cert tlsrestrict_chromium_tool; do
|
||||||
|
cp -a $GOPATHBIN/"$x"[% IF c("var/windows") %].exe[% END %] $distdir/
|
||||||
|
done
|
||||||
|
[% END %]
|
||||||
|
|
||||||
cd $distdir
|
cd $distdir
|
||||||
[% c('tar', {
|
[% c('tar', {
|
||||||
tar_src => [ '.' ],
|
tar_src => [ '.' ],
|
||||||
|
@ -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'
|
||||||
|
|
||||||
@ -20,13 +21,37 @@ var:
|
|||||||
- gobtcjson
|
- gobtcjson
|
||||||
- gopretty
|
- gopretty
|
||||||
- godns
|
- godns
|
||||||
- gotlsrestrictnss
|
|
||||||
- gox509signaturesplice
|
|
||||||
- gomadns
|
- gomadns
|
||||||
- goeasyconfig
|
- goeasyconfig
|
||||||
- goservice
|
- goservice
|
||||||
- goxnet
|
- goxnet
|
||||||
|
go_lib_install:
|
||||||
|
- github.com/namecoin/ncdns
|
||||||
|
- github.com/namecoin/ncdns/backend
|
||||||
|
- github.com/namecoin/ncdns/namecoin
|
||||||
|
- github.com/namecoin/ncdns/ncdomain
|
||||||
|
- github.com/namecoin/ncdns/ncdt
|
||||||
|
- github.com/namecoin/ncdns/rrtourl
|
||||||
|
- github.com/namecoin/ncdns/server
|
||||||
|
- github.com/namecoin/ncdns/testutil
|
||||||
|
- github.com/namecoin/ncdns/tlshook
|
||||||
|
- github.com/namecoin/ncdns/util
|
||||||
go_lib_no_output: 1
|
go_lib_no_output: 1
|
||||||
|
enable_namecoin_tlsa: 1
|
||||||
|
os_go_lib_deps: []
|
||||||
|
optional_go_lib_deps:
|
||||||
|
- gotlsrestrictnss
|
||||||
|
- gox509signaturesplice
|
||||||
|
optional_go_lib_install:
|
||||||
|
- github.com/namecoin/ncdns/certdehydrate
|
||||||
|
- github.com/namecoin/ncdns/certinject
|
||||||
|
- github.com/namecoin/ncdns/generate_nmc_cert
|
||||||
|
- github.com/namecoin/ncdns/ncdumpzone
|
||||||
|
- github.com/namecoin/ncdns/ncdumpzone/ncdumpzone
|
||||||
|
- github.com/namecoin/ncdns/tlsoverridefirefox
|
||||||
|
- github.com/namecoin/ncdns/tlsoverridefirefoxsync
|
||||||
|
- github.com/namecoin/ncdns/tlsrestrictchromium
|
||||||
|
- github.com/namecoin/ncdns/tlsrestrict_chromium_tool
|
||||||
|
|
||||||
targets:
|
targets:
|
||||||
linux:
|
linux:
|
||||||
@ -45,22 +70,14 @@ targets:
|
|||||||
cgo: 0
|
cgo: 0
|
||||||
windows:
|
windows:
|
||||||
var:
|
var:
|
||||||
go_lib_deps:
|
os_go_lib_deps:
|
||||||
- gogroupcache
|
|
||||||
- godegoutils
|
|
||||||
- godexlogconfig
|
|
||||||
- goncbtcjsontypes
|
|
||||||
- gobtcjson
|
|
||||||
- gopretty
|
|
||||||
- godns
|
|
||||||
- gotlsrestrictnss
|
|
||||||
- gox509signaturesplice
|
|
||||||
- gomadns
|
|
||||||
- goeasyconfig
|
|
||||||
- goservice
|
|
||||||
- goxnet
|
|
||||||
- goxsys
|
- goxsys
|
||||||
cgo: 0
|
cgo: 0
|
||||||
|
disable_namecoin_tlsa:
|
||||||
|
var:
|
||||||
|
enable_namecoin_tlsa: 0
|
||||||
|
optional_go_lib_deps: []
|
||||||
|
optional_go_lib_install: []
|
||||||
|
|
||||||
input_files:
|
input_files:
|
||||||
- project: container-image
|
- project: container-image
|
||||||
@ -90,8 +107,10 @@ input_files:
|
|||||||
project: godns
|
project: godns
|
||||||
- name: gotlsrestrictnss
|
- name: gotlsrestrictnss
|
||||||
project: gotlsrestrictnss
|
project: gotlsrestrictnss
|
||||||
|
enable: '[% c("var/enable_namecoin_tlsa") %]'
|
||||||
- name: gox509signaturesplice
|
- name: gox509signaturesplice
|
||||||
project: gox509signaturesplice
|
project: gox509signaturesplice
|
||||||
|
enable: '[% c("var/enable_namecoin_tlsa") %]'
|
||||||
- name: gomadns
|
- name: gomadns
|
||||||
project: gomadns
|
project: gomadns
|
||||||
- name: gopretty
|
- name: gopretty
|
||||||
|
@ -13,7 +13,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/ncprop279-[% c('version') %] $GOPATH/src/github.com/namecoin/ncprop279
|
mv $GOPATH/src/github.com/namecoin/ncprop279-[% c('version') %] $GOPATH/src/github.com/namecoin/ncprop279
|
||||||
|
|
||||||
go install -ldflags '-s' github.com/namecoin/ncprop279
|
[% IF c("var/enable_namecoin_tlsa") %]
|
||||||
|
TAGS=""
|
||||||
|
[% ELSE %]
|
||||||
|
TAGS="-tags no_namecoin_tls"
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
go install $TAGS -ldflags '-s' github.com/namecoin/ncprop279
|
||||||
|
|
||||||
#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
|
||||||
|
@ -20,6 +20,12 @@ var:
|
|||||||
cgo: 0
|
cgo: 0
|
||||||
build_go_lib_pre: |
|
build_go_lib_pre: |
|
||||||
export CGO_ENABLED=[% c("var/cgo") %]
|
export CGO_ENABLED=[% c("var/cgo") %]
|
||||||
|
enable_namecoin_tlsa: 1
|
||||||
|
|
||||||
|
targets:
|
||||||
|
disable_namecoin_tlsa:
|
||||||
|
var:
|
||||||
|
enable_namecoin_tlsa: 0
|
||||||
|
|
||||||
input_files:
|
input_files:
|
||||||
- project: container-image
|
- project: container-image
|
||||||
|
Loading…
Reference in New Issue
Block a user