From c9a5a93834fce33f1e999dd50381cb7ff9e5fabb Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 6 Sep 2024 10:45:27 +0000 Subject: T6674: Add build-scrips for packages without Jenkins Add build scripts for .deb packages without Jenkins. To exclude Jenkins we need some place where we can put new builds-scripts to run in parallel (old/new) during meantime. We will deprecate old Jenkins package builds in the future. --- scripts/package-build/aws-gwlbtun/package.toml | 59 ++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 scripts/package-build/aws-gwlbtun/package.toml (limited to 'scripts/package-build/aws-gwlbtun/package.toml') 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 < debian/changelog +aws-gwlbtun (1.0-1) unstable; urgency=low + + * Initial release + + -- Your Name Wed, 29 Aug 2024 09:00:00 +0000 + +EOF + +# control +/bin/bash -c "cat < debian/control +Source: aws-gwlbtun +Section: net +Priority: optional +Maintainer: VyOS Package Maintainers +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 < 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 -- cgit v1.2.3