summaryrefslogtreecommitdiff
path: root/packages/aws-gateway-load-balancer-tunnel-handler
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-09-13 13:20:25 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-09-13 13:20:25 +0000
commit23cd4575dcdfbf7adfcc4dc36c189e6670e49a23 (patch)
tree0f35347ca480e3bf26172c83587d5c43f5591b3f /packages/aws-gateway-load-balancer-tunnel-handler
parentb933ff44933ffc6d418d212aa5881476ce30cd90 (diff)
downloadvyos-build-23cd4575dcdfbf7adfcc4dc36c189e6670e49a23.tar.gz
vyos-build-23cd4575dcdfbf7adfcc4dc36c189e6670e49a23.zip
T5261: Fix build aws-gwlbtun for binary path
Diffstat (limited to 'packages/aws-gateway-load-balancer-tunnel-handler')
-rwxr-xr-xpackages/aws-gateway-load-balancer-tunnel-handler/build.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/aws-gateway-load-balancer-tunnel-handler/build.py b/packages/aws-gateway-load-balancer-tunnel-handler/build.py
index dd3a7b82..c79b4f12 100755
--- a/packages/aws-gateway-load-balancer-tunnel-handler/build.py
+++ b/packages/aws-gateway-load-balancer-tunnel-handler/build.py
@@ -1,9 +1,18 @@
#!/usr/bin/env python3
from argparse import ArgumentParser
+from pathlib import Path
from subprocess import run
+def prepare_package() -> None:
+ """Prepare a package for Noned
+ """
+ install_file = Path('./debian/install')
+ install_data = 'obj-x86_64-linux-gnu/gwlbtun usr/sbin'
+ install_file.write_text(install_data)
+
+
def build_package(package_name: str, package_ver: str) -> bool:
"""Build a package using commands from external file
@@ -39,6 +48,8 @@ if __name__ == '__main__':
help='Version for the package')
args = arg_parser.parse_args()
+ prepare_package()
+
if not build_package(args.package, args.version):
exit(1)