diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-08-26 15:21:14 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-08-29 09:30:52 +0000 |
commit | cc7d0993b420c3245e628a818f887411d72530ff (patch) | |
tree | 53fd8ab2b5dea74c1f7969b8ff853179d81f8fec /scripts/package-build/openvpn-otp | |
parent | 70bb3c5baacb6e0c72b9532f6dda417d395a6bc0 (diff) | |
download | vyos-build-cc7d0993b420c3245e628a818f887411d72530ff.tar.gz vyos-build-cc7d0993b420c3245e628a818f887411d72530ff.zip |
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.
Diffstat (limited to 'scripts/package-build/openvpn-otp')
-rw-r--r-- | scripts/package-build/openvpn-otp/.gitignore | 6 | ||||
l--------- | scripts/package-build/openvpn-otp/build.py | 1 | ||||
-rw-r--r-- | scripts/package-build/openvpn-otp/package.toml | 19 |
3 files changed, 26 insertions, 0 deletions
diff --git a/scripts/package-build/openvpn-otp/.gitignore b/scripts/package-build/openvpn-otp/.gitignore new file mode 100644 index 00000000..7f89da2b --- /dev/null +++ b/scripts/package-build/openvpn-otp/.gitignore @@ -0,0 +1,6 @@ +openvpn-otp/ +*.buildinfo +*.build +*.changes +*.deb +*.dsc diff --git a/scripts/package-build/openvpn-otp/build.py b/scripts/package-build/openvpn-otp/build.py new file mode 120000 index 00000000..3c76af73 --- /dev/null +++ b/scripts/package-build/openvpn-otp/build.py @@ -0,0 +1 @@ +../build.py
\ No newline at end of file diff --git a/scripts/package-build/openvpn-otp/package.toml b/scripts/package-build/openvpn-otp/package.toml new file mode 100644 index 00000000..72209ad1 --- /dev/null +++ b/scripts/package-build/openvpn-otp/package.toml @@ -0,0 +1,19 @@ +[[packages]] +name = "openvpn-otp" +commit_id = "master" +scm_url = "https://github.com/evgeny-gridasov/openvpn-otp" + +# build_cmd = "cd ..; ./build-openvpn-otp.sh" +build_cmd = """ +./autogen.sh +./configure --prefix=/usr +make +mkdir -p usr/lib/openvpn +cp src/.libs/openvpn-otp.so usr/lib/openvpn + +fpm --input-type dir --output-type deb --name openvpn-otp \ + --maintainer "VyOS Package Maintainers <maintainers@vyos.net>" \ + --description "OpenVPN OTP Authentication support." \ + --depends openvpn --architecture $(dpkg --print-architecture) \ + --version $(git describe --tags --always | cut -c2-) --deb-compression gz usr +""" |