Github messages for voidlinux
 help / color / mirror / Atom feed
From: kruceter <kruceter@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] openvpn: update to 2.6.0.
Date: Sun, 05 Feb 2023 07:10:16 +0100	[thread overview]
Message-ID: <20230205061016.K8_fCbZvY3cDp6AQy3ItLKvIoVwHwzpdNTj5KTwO3tQ@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42086@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]

There is an updated pull request by kruceter against master on the void-packages repository

https://github.com/kruceter/void-packages openvpn
https://github.com/void-linux/void-packages/pull/42086

openvpn: update to 2.6.0.
#### Testing the changes
- I tested the changes in this PR: **briefly** (I will set it to yes once I deploy the package to the server side properly).

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl

A patch file from https://github.com/void-linux/void-packages/pull/42086.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-openvpn-42086.patch --]
[-- Type: text/x-diff, Size: 2844 bytes --]

From 210fbd2e0beebdc7af0b112087646db018276a15 Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Sun, 5 Feb 2023 07:52:23 +0300
Subject: [PATCH] openvpn: update to 2.6.0.

* lz4 now is a build dependency because upstream dropped compat-lz4
  (OpenVPN@openvpn/24596b258aa3a9c0bd79e7e7bd4753c48a435408).

* systemd integration is not enabled by default.
---
 srcpkgs/openvpn/files/openvpn/run |  4 ++++
 srcpkgs/openvpn/template          | 23 ++++++++++++++---------
 2 files changed, 18 insertions(+), 9 deletions(-)
 create mode 100644 srcpkgs/openvpn/files/openvpn/run

diff --git a/srcpkgs/openvpn/files/openvpn/run b/srcpkgs/openvpn/files/openvpn/run
new file mode 100644
index 000000000000..405c89b41c34
--- /dev/null
+++ b/srcpkgs/openvpn/files/openvpn/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+exec openvpn --user _openvpn --group _openvpn ${OPTS:- --config /etc/openvpn/server.conf} 2>&1
diff --git a/srcpkgs/openvpn/template b/srcpkgs/openvpn/template
index 44e51a3da094..4d62ba2a8d06 100644
--- a/srcpkgs/openvpn/template
+++ b/srcpkgs/openvpn/template
@@ -1,32 +1,37 @@
 # Template file for 'openvpn'
 pkgname=openvpn
-version=2.5.7
+version=2.6.0
 revision=1
 build_style=gnu-configure
-configure_args="$(vopt_enable pkcs11) --disable-systemd
+configure_args="$(vopt_enable pkcs11)
  $(vopt_if mbedtls --with-crypto-library=mbedtls)"
+make_check_args="V=1"
 hostmakedepends="pkg-config"
 makedepends="$(vopt_if mbedtls mbedtls-devel openssl-devel) lzo-devel pam-devel
- $(vopt_if pkcs11 pkcs11-helper-devel) cmocka-devel"
+ $(vopt_if pkcs11 pkcs11-helper-devel) cmocka-devel libcap-ng-devel
+ liblz4-devel"
+checkdepends="iproute2"
 short_desc="Easy-to-use, robust, and highly configurable VPN"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-only"
 homepage="https://www.openvpn.net"
 changelog="https://raw.githubusercontent.com/OpenVPN/openvpn/release/${version%.*}/Changes.rst"
-distfiles="http://build.openvpn.net/downloads/releases/${pkgname}-${version}.tar.xz"
-checksum=313bca7e996a4f59ef9940dd87c6c4b9168064db9be6cabebd37cd65f13759ed
-
+distfiles="https://build.openvpn.net/downloads/releases/openvpn-${version}.tar.gz"
+checksum=ebec933263c9850ef6f7ce125e2f22214be60b1cbb8ccff18892643fe083ae8f
+system_accounts="_openvpn"
+system_groups="_openvpn"
 build_options="mbedtls pkcs11"
 build_options_default="pkcs11"
 desc_option_mbedtls="Build with mbedtls support"
 desc_option_pkcs11="Enable support for PKCS#11"
 vopt_conflict mbedtls pkcs11
-
-make_check=ci-skip
+# CI does not allow to create dummy network interfaces for testing?
+#make_check=ci-skip
 
 post_install() {
+	vsv openvpn
 	vmkdir usr/share/examples/${pkgname}
 	cp -r sample/sample-config-files/* ${DESTDIR}/usr/share/examples/${pkgname}
 
-	rm -rf ${DESTDIR}/usr/include
+	rm -r ${DESTDIR}/usr/include
 }

  reply	other threads:[~2023-02-05  6:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-05  6:02 [PR PATCH] " kruceter
2023-02-05  6:10 ` kruceter [this message]
2023-02-05  6:19 ` [PR PATCH] [Updated] " kruceter
2023-02-05  7:19 ` kruceter
2023-02-08 23:53 ` [PR PATCH] [Closed]: " kruceter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230205061016.K8_fCbZvY3cDp6AQy3ItLKvIoVwHwzpdNTj5KTwO3tQ@z \
    --to=kruceter@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).