aboutsummaryrefslogtreecommitdiff
path: root/rp/rpki-rtr
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-04-10 18:51:04 +0000
committerRob Austein <sra@hactrn.net>2014-04-10 18:51:04 +0000
commitd55fa906e96023892bc15a3f1eb5d0555cfdf64e (patch)
tree533d767c5efa787ec58f435a7ae34d658ab3b950 /rp/rpki-rtr
parent8402eee182ed7c804a3675aec7ee953e746afa3b (diff)
Incomplete autoconf conversion in RP tools. Oops. Thanks, Michael.
svn path=/branches/tk685/; revision=5781
Diffstat (limited to 'rp/rpki-rtr')
l---------rp/rpki-rtr/rpki1
-rwxr-xr-xrp/rpki-rtr/rtr-origin35
2 files changed, 14 insertions, 22 deletions
diff --git a/rp/rpki-rtr/rpki b/rp/rpki-rtr/rpki
new file mode 120000
index 00000000..d39d05b6
--- /dev/null
+++ b/rp/rpki-rtr/rpki
@@ -0,0 +1 @@
+../../rpki \ No newline at end of file
diff --git a/rp/rpki-rtr/rtr-origin b/rp/rpki-rtr/rtr-origin
index e1e82ccf..73f4474d 100755
--- a/rp/rpki-rtr/rtr-origin
+++ b/rp/rpki-rtr/rtr-origin
@@ -41,7 +41,7 @@ import getopt
import bisect
import random
import base64
-
+import rpki.autoconf
# Debugging only, should be False in production
disable_incrementals = False
@@ -2161,27 +2161,18 @@ def bgpdump_server_main(argv):
sys.exit(0)
# Figure out where the scan_roas utility program is today
-try:
- # Set from autoconf
- scan_roas = rpki.autoconf.scan_roas
-except NameError:
- # Source directory
- scan_roas = os.path.normpath(os.path.join(sys.path[0], "..", "utils",
- "scan_roas", "scan_roas"))
-# If that didn't work, use $PATH and hope for the best
-if not os.path.exists(scan_roas):
- scan_roas = "scan_roas"
-
-# Same thing for scan_routercerts
-try:
- # Set from autoconf
- scan_routercerts = rpki.autoconf.scan_routercerts
-except NameError:
- # Source directory
- scan_routercerts = os.path.normpath(os.path.join(sys.path[0], "..", "utils",
- "scan_routercerts", "scan_routercerts"))
-if not os.path.exists(scan_routercerts):
- scan_routercerts = "scan_routercerts"
+for scan_roas in (os.path.join(rpki.autoconf.bindir, "scan_roas"),
+ os.path.normpath(os.path.join(sys.path[0], "..", "utils", "scan_roas")),
+ "scan_roas"):
+ if os.path.exists(scan_roas):
+ break
+
+# Same for scan_routercerts
+for scan_routercerts in (os.path.join(rpki.autoconf.bindir, "scan_routercerts"),
+ os.path.normpath(os.path.join(sys.path[0], "..", "utils", "scan_routercerts")),
+ "scan_routercerts"):
+ if os.path.exists(scan_routercerts):
+ break
force_zero_nonce = False