diff options
| author | Kyrylo Yatsenko <hedrok@gmail.com> | 2025-07-30 07:30:07 +0300 |
|---|---|---|
| committer | Kyrylo Yatsenko <hedrok@gmail.com> | 2025-07-30 07:30:07 +0300 |
| commit | 4f377768e28ebbed1b519a2a9e75a7c9088bd0e7 (patch) | |
| tree | 46b7e9176d5fed24423da00e37c3a782823105c9 /scripts | |
| parent | 3222553a260ae524a5c47801f4819a1825e999c2 (diff) | |
| download | vyos-build-4f377768e28ebbed1b519a2a9e75a7c9088bd0e7.tar.gz vyos-build-4f377768e28ebbed1b519a2a9e75a7c9088bd0e7.zip | |
T7537: aws-gwlbtun: update to c1fd48b
Updated aws-gwlbtun requires boost too new for Debian bookworm,
but requires only one header-only library.
* Add download/installation of thist boost header library.
* Set path to this boost installation via cmake options.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/package-build/aws-gwlbtun/package.toml | 20 |
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 |
