File tree Expand file tree Collapse file tree
scripts/package-build/aws-gwlbtun Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[[packages ]]
22name = " aws-gwlbtun"
3- commit_id = " f78058a "
3+ commit_id = " c1fd48b "
44scm_url = " https://github.com/aws-samples/aws-gateway-load-balancer-tunnel-handler"
55
66
77# # Build cmd start
88build_cmd = ''' \
9+
10+ # Prepare boost headers
11+ export BOOST_INSTALL_DIR=$(pwd)/boost-headers-install
12+ if [ ! -d "$BOOST_INSTALL_DIR" ]; then
13+ wget -c https://github.com/boostorg/boost/releases/download/boost-1.88.0/boost-1.88.0-b2-nodocs.tar.xz
14+ tar -xvf boost-1.88.0-b2-nodocs.tar.xz
15+ cd boost-1.88.0
16+ # Only unordered library is needed, so only headers are required
17+ ./bootstrap.sh --prefix=$BOOST_INSTALL_DIR --with-libraries=unordered
18+ ./b2 headers install
19+ cd ../
20+ fi;
21+
22+
923mkdir -p debian
1024echo 'obj-*-linux-gnu/gwlbtun usr/sbin' > debian/install
1125
@@ -51,6 +65,10 @@ binary:
5165
5266clean:
5367 dh clean
68+
69+ override_dh_auto_configure:
70+ dh_auto_configure -- -DBOOST_ROOT=$BOOST_INSTALL_DIR
71+
5472EOF
5573
5674chmod +x debian/rules
You can’t perform that action at this time.
0 commit comments