Commit 84834634 authored by Daniel Kahn Gillmor's avatar Daniel Kahn Gillmor

d/rules: clean up get_orig_source

 * use https for fetching root.hints
 * use $(CURDIR) everywhere in the steps to fetch the root keys
parent be69943b
......@@ -27,11 +27,11 @@ override_dh_auto_clean:
rm -f root-anchors.ds root.ds
get_orig_source:
# Create root.key using unbound-anchor
# Create root.key and root.hints using wget and unbound-anchor
# This needs Internet connection
/usr/sbin/unbound-anchor \
-a $(CURDIR)/root-auto.key \
-c $(CURDIR)/icannbundle.pem || echo "Check the root-auto.key"
< root-auto.key grep -Ev "^($$|;)" | sed -e 's/ ;;count=.*//' > root.key
rm root-auto.key
wget -O $(CURDIR)/root.hints "http://www.internic.net/domain/named.root"
< $(CURDIR)/root-auto.key grep -Ev "^($$|;)" | sed -e 's/ ;;count=.*//' > $(CURDIR)/root.key
rm $(CURDIR)/root-auto.key
wget -O $(CURDIR)/root.hints "https://www.internic.net/domain/named.root"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment