summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@mandelbit.com>2026-08-30 02:05:32 +0200
committerAntonio Quartulli <antonio@mandelbit.com>2026-09-10 13:33:04 +0200
commitaf59a46a1a9ae7b7143b4be183b48301c4f81d36 (patch)
treedef13bd05677b85eb7795fafabe436082acb08b1 /scripts
parent18a550b7f857bdea5eb84e1553664bd203173566 (diff)
downloadvyos-build-af59a46a1a9ae7b7143b4be183b48301c4f81d36.tar.gz
vyos-build-af59a46a1a9ae7b7143b4be183b48301c4f81d36.zip
openvpn: T8264: build 2.7.5 backport for the in-tree ovpn module
The in-tree "ovpn" module requires OpenVPN 2.7 or later, while bookworm ships 2.6.14 which speaks only ovpn-dco-v2. DCO stays inert until userspace is upgraded. systemd-dev does not exist in bookworm, so it is stripped before mk-build-deps reads debian/control. The package is also added to the rebuild trigger, without which it would never reach the mirror.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/package-build/openvpn/.gitignore1
l---------scripts/package-build/openvpn/build.py1
-rw-r--r--scripts/package-build/openvpn/package.toml10
3 files changed, 12 insertions, 0 deletions
diff --git a/scripts/package-build/openvpn/.gitignore b/scripts/package-build/openvpn/.gitignore
new file mode 100644
index 00000000..7c543c64
--- /dev/null
+++ b/scripts/package-build/openvpn/.gitignore
@@ -0,0 +1 @@
+/openvpn/
diff --git a/scripts/package-build/openvpn/build.py b/scripts/package-build/openvpn/build.py
new file mode 120000
index 00000000..3c76af73
--- /dev/null
+++ b/scripts/package-build/openvpn/build.py
@@ -0,0 +1 @@
+../build.py \ No newline at end of file
diff --git a/scripts/package-build/openvpn/package.toml b/scripts/package-build/openvpn/package.toml
new file mode 100644
index 00000000..814b688a
--- /dev/null
+++ b/scripts/package-build/openvpn/package.toml
@@ -0,0 +1,10 @@
+[[packages]]
+name = "openvpn"
+commit_id = "debian/2.7.5-1"
+scm_url = "https://salsa.debian.org/debian/openvpn.git"
+
+# bookworm has no systemd-dev package, systemd itself ships the pkg-config
+# files there. Must run before mk-build-deps reads debian/control.
+pre_build_hook = '''git reset --hard HEAD && git clean -ffdx && sed -i '/ systemd-dev /d' debian/control'''
+
+build_cmd = "sed -i '1s/)/+vyos1)/' debian/changelog && dpkg-buildpackage -uc -us -tc -b"