From af59a46a1a9ae7b7143b4be183b48301c4f81d36 Mon Sep 17 00:00:00 2001 From: Antonio Quartulli Date: Sun, 30 Aug 2026 02:05:32 +0200 Subject: 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. --- scripts/package-build/openvpn/.gitignore | 1 + scripts/package-build/openvpn/build.py | 1 + scripts/package-build/openvpn/package.toml | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 scripts/package-build/openvpn/.gitignore create mode 120000 scripts/package-build/openvpn/build.py create mode 100644 scripts/package-build/openvpn/package.toml (limited to 'scripts') 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" -- cgit v1.2.3