print
print " -h, --help Show this help"
print " -u, --unsigned Do not sign the TAP drivers"
+ print " -n, --notap Don't build the TAP driver"
sys.exit(1)
def main(config):
# Do a signed build by default
signedBuild=True
+ # Build the TAP driver by default
+ tap=True
+
# Parse the command line argument(s)
try:
- opts, args = getopt.getopt(sys.argv[1:], "hu", ["help", "unsigned"])
+ opts, args = getopt.getopt(sys.argv[1:], "hun", ["help", "unsigned", "notap"])
except getopt.GetoptError:
Usage()
Usage()
if o in ("-u", "--unsigned"):
signedBuild=False
-
+ if o in ("-n", "--notap"):
+ tap=False
# Check if the SignTool module is present. This avoids ImportErrors popping
# up annoyingly _after_ the build.
# Start the build
config_all(config)
build_openvpn()
- build_ddk(config, 'tap', 'all')
- build_ddk(config, 'tapinstall', 'all')
+
+ if tap:
+ build_ddk(config, 'tap', 'all')
+ build_ddk(config, 'tapinstall', 'all')
+ else:
+ print "Not building the TAP driver"
if signedBuild:
sign(config, 'all')
make_dist(config)
# if we are run directly, and not loaded as a module
-if __name__ == "__main__":\r
- from wb import config\r
- main(config)\r
+if __name__ == "__main__":
+ from wb import config
+ main(config)