summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-08-04 12:07:32 +0100
committerGitHub <noreply@github.com>2025-08-04 12:07:32 +0100
commitc5d52ac7b9a2cf4c85a638ef65fbf073e366f9c1 (patch)
treeaa24254b3397fba36b452e28d677d18ad9a738ec
parent2f2bfb56d284381992804c55572eaae829461d72 (diff)
parent4f377768e28ebbed1b519a2a9e75a7c9088bd0e7 (diff)
downloadvyos-build-c5d52ac7b9a2cf4c85a638ef65fbf073e366f9c1.tar.gz
vyos-build-c5d52ac7b9a2cf4c85a638ef65fbf073e366f9c1.zip
Merge pull request #1001 from hedrok/T7537-aws-glbtun-update
T7537: aws-gwlbtun: update to c1fd48b
-rw-r--r--scripts/package-build/aws-gwlbtun/package.toml20
1 files changed, 19 insertions, 1 deletions
diff --git a/scripts/package-build/aws-gwlbtun/package.toml b/scripts/package-build/aws-gwlbtun/package.toml
index 138a5a76..75f2b55f 100644
--- a/scripts/package-build/aws-gwlbtun/package.toml
+++ b/scripts/package-build/aws-gwlbtun/package.toml
@@ -1,11 +1,25 @@
[[packages]]
name = "aws-gwlbtun"
-commit_id = "f78058a"
+commit_id = "c1fd48b"
scm_url = "https://github.com/aws-samples/aws-gateway-load-balancer-tunnel-handler"
## Build cmd start
build_cmd = '''\
+
+# Prepare boost headers
+export BOOST_INSTALL_DIR=$(pwd)/boost-headers-install
+if [ ! -d "$BOOST_INSTALL_DIR" ]; then
+ wget -c https://github.com/boostorg/boost/releases/download/boost-1.88.0/boost-1.88.0-b2-nodocs.tar.xz
+ tar -xvf boost-1.88.0-b2-nodocs.tar.xz
+ cd boost-1.88.0
+ # Only unordered library is needed, so only headers are required
+ ./bootstrap.sh --prefix=$BOOST_INSTALL_DIR --with-libraries=unordered
+ ./b2 headers install
+ cd ../
+fi;
+
+
mkdir -p debian
echo 'obj-*-linux-gnu/gwlbtun usr/sbin' > debian/install
@@ -51,6 +65,10 @@ binary:
clean:
dh clean
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DBOOST_ROOT=$BOOST_INSTALL_DIR
+
EOF
chmod +x debian/rules