summaryrefslogtreecommitdiff
path: root/scripts/package-build/openvpn-otp
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-09-02 15:46:50 +0100
committerGitHub <noreply@github.com>2024-09-02 15:46:50 +0100
commit9833897b7c70d7a00caef420edea5dd2e359d522 (patch)
tree7282e5fe204b1aece7985d9397ee49341d715cb3 /scripts/package-build/openvpn-otp
parent013e4d5dc9472c6ea48a8f6e175d1cf9d4ca13d5 (diff)
parentcc7d0993b420c3245e628a818f887411d72530ff (diff)
downloadvyos-build-9833897b7c70d7a00caef420edea5dd2e359d522.tar.gz
vyos-build-9833897b7c70d7a00caef420edea5dd2e359d522.zip
Merge pull request #745 from sever-sever/T6674
T6674: Add build-scrips for packages without Jenkins
Diffstat (limited to 'scripts/package-build/openvpn-otp')
-rw-r--r--scripts/package-build/openvpn-otp/.gitignore6
l---------scripts/package-build/openvpn-otp/build.py1
-rw-r--r--scripts/package-build/openvpn-otp/package.toml19
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
+"""