diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-31 17:19:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 17:19:11 +0200 |
commit | 3af908c301b1eed7772f457b4301021474cd8810 (patch) | |
tree | 921a25c68e6b4d9611363f452d3a04dde0650310 /packages/aws-gateway-load-balancer-tunnel-handler/build.sh | |
parent | 7de1a67d801bb045469028168418e6195d3f25ea (diff) | |
parent | 8735d0d83d9baddd37f18e4f4bae4ac54e185683 (diff) | |
download | vyos-build-3af908c301b1eed7772f457b4301021474cd8810.tar.gz vyos-build-3af908c301b1eed7772f457b4301021474cd8810.zip |
Merge pull request #388 from sever-sever/T5261
T5261: Update aws-gwlbtun packet
Diffstat (limited to 'packages/aws-gateway-load-balancer-tunnel-handler/build.sh')
-rwxr-xr-x | packages/aws-gateway-load-balancer-tunnel-handler/build.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/aws-gateway-load-balancer-tunnel-handler/build.sh b/packages/aws-gateway-load-balancer-tunnel-handler/build.sh new file mode 100755 index 00000000..d4feb6ac --- /dev/null +++ b/packages/aws-gateway-load-balancer-tunnel-handler/build.sh @@ -0,0 +1,38 @@ +#!/bin/bash +CWD=$(pwd) +set -e + +SRC=aws-gateway-load-balancer-tunnel-handler + +if [ ! -d ${SRC} ]; then + echo "${SRC} directory does not exists, please 'git clone'" + exit 1 +fi + +# Navigate to the repository directory +cd ${SRC} + +# Build the binary +cmake . +make + +# Create the Debian package directory structure +mkdir -p aws-gwlbtun/DEBIAN +mkdir -p aws-gwlbtun/usr/bin + +# Move the binary to the package directory +cp gwlbtun aws-gwlbtun/usr/bin + +# Create the control file +cat <<EOL > aws-gwlbtun/DEBIAN/control +Package: aws-gwlbtun +Version: 1-eb51d33 +Architecture: amd64 +Maintainer: VyOS Maintainers autobuild@vyos.net +Description: AWS Gateway Load Balancer Tunnel Handler +EOL + +# Build the Debian package +dpkg-deb --build aws-gwlbtun + +cp *.deb ${CWD} |