diff options
author | Christian Breunig <christian@breunig.cc> | 2024-09-08 08:13:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-08 08:13:39 +0200 |
commit | 917325fafc9365a722235222f8635653079a5854 (patch) | |
tree | 26d03e228ca55acc5fc29d4ad18e8331b79e8605 /scripts/package-build/openvpn-otp | |
parent | 70122746469e930a6775e0c42c4d1fd30bc6d514 (diff) | |
parent | c9a5a93834fce33f1e999dd50381cb7ff9e5fabb (diff) | |
download | vyos-build-917325fafc9365a722235222f8635653079a5854.tar.gz vyos-build-917325fafc9365a722235222f8635653079a5854.zip |
Merge pull request #756 from sever-sever/T6674-circ
T6674: Add build-scrips for packages without Jenkins
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 +""" |