From d55fa906e96023892bc15a3f1eb5d0555cfdf64e Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 10 Apr 2014 18:51:04 +0000 Subject: Incomplete autoconf conversion in RP tools. Oops. Thanks, Michael. svn path=/branches/tk685/; revision=5781 --- rp/rpki-rtr/rpki | 1 + rp/rpki-rtr/rtr-origin | 35 +++++++++++++---------------------- 2 files changed, 14 insertions(+), 22 deletions(-) create mode 120000 rp/rpki-rtr/rpki (limited to 'rp/rpki-rtr') 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 -- cgit v1.2.3