diff options
Diffstat (limited to 'scripts/package-build/aws-gwlbtun')
-rw-r--r-- | scripts/package-build/aws-gwlbtun/.gitignore | 8 | ||||
l--------- | scripts/package-build/aws-gwlbtun/build.py | 1 | ||||
-rw-r--r-- | scripts/package-build/aws-gwlbtun/package.toml | 59 |
3 files changed, 68 insertions, 0 deletions
diff --git a/scripts/package-build/aws-gwlbtun/.gitignore b/scripts/package-build/aws-gwlbtun/.gitignore new file mode 100644 index 00000000..0fe7946f --- /dev/null +++ b/scripts/package-build/aws-gwlbtun/.gitignore @@ -0,0 +1,8 @@ +aws-gwlbtun*/ +*.tar.gz +*.tar.xz +*.deb +*.dsc +*.buildinfo +*.build +*.changes
\ No newline at end of file diff --git a/scripts/package-build/aws-gwlbtun/build.py b/scripts/package-build/aws-gwlbtun/build.py new file mode 120000 index 00000000..3c76af73 --- /dev/null +++ b/scripts/package-build/aws-gwlbtun/build.py @@ -0,0 +1 @@ +../build.py
\ No newline at end of file diff --git a/scripts/package-build/aws-gwlbtun/package.toml b/scripts/package-build/aws-gwlbtun/package.toml new file mode 100644 index 00000000..1c4e53f6 --- /dev/null +++ b/scripts/package-build/aws-gwlbtun/package.toml @@ -0,0 +1,59 @@ +[[packages]] +name = "aws-gwlbtun" +commit_id = "f78058a" +scm_url = "https://github.com/aws-samples/aws-gateway-load-balancer-tunnel-handler" + + +## Build cmd start +build_cmd = '''\ +mkdir -p debian +echo 'obj-*-linux-gnu/gwlbtun usr/sbin' > debian/install + +# changelog +cat <<EOF > debian/changelog +aws-gwlbtun (1.0-1) unstable; urgency=low + + * Initial release + + -- Your Name <your.email@example.com> Wed, 29 Aug 2024 09:00:00 +0000 + +EOF + +# control +/bin/bash -c "cat <<EOF > debian/control +Source: aws-gwlbtun +Section: net +Priority: optional +Maintainer: VyOS Package Maintainers <maintainers@vyos.net> +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.5.1 +Homepage: https://github.com/aws-samples/aws-gateway-load-balancer-tunnel-handler + +Package: aws-gwlbtun +Architecture: any +Depends: \${shlibs:Depends}, \${misc:Depends} +Description: AWS Gateway Load Balancer Tunnel Handler + This is a simple package that handles tunneling for the AWS Gateway Load Balancer. +EOF +" + +# rules +cat <<EOF > debian/rules +#!/usr/bin/make -f + +%: dh $@ + +build: + dh build + +binary: + dh binary + +clean: + dh clean +EOF + +chmod +x debian/rules +debuild -us -uc -b +''' +## Build cmd end |