Github messages for voidlinux
 help / color / mirror / Atom feed
From: travankor <travankor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] openvpn: add mbedtls build option.
Date: Tue, 07 Jul 2020 00:37:01 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23429@inbox.vuxu.org> (raw)

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

There is a new pull request by travankor against master on the void-packages repository

https://github.com/travankor/void-packages openvpn
https://github.com/void-linux/void-packages/pull/23429

openvpn: add mbedtls build option.
Default to it since openvpn is broken with libressl-3.1.X.

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

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

From ab534b57aff132f0c8e2a0e51bbfc013739659e1 Mon Sep 17 00:00:00 2001
From: travankor <travankor@tuta.io>
Date: Mon, 6 Jul 2020 15:13:09 -0700
Subject: [PATCH] openvpn: add mbedtls build option.

Default to it since openvpn is broken with libressl-3.1.X.
---
 srcpkgs/openvpn/template | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/openvpn/template b/srcpkgs/openvpn/template
index a348cfba8d2..ea91ee802de 100644
--- a/srcpkgs/openvpn/template
+++ b/srcpkgs/openvpn/template
@@ -1,12 +1,13 @@
 # Template file for 'openvpn'
 pkgname=openvpn
 version=2.4.9
-revision=2
+revision=3
 build_style=gnu-configure
-configure_args="--enable-pkcs11 --enable-iproute2 --disable-systemd"
+configure_args="$(vopt_enable pkcs11) --enable-iproute2 --disable-systemd
+ $(vopt_with mbedtls crypto-library=mbedtls)"
 hostmakedepends="iproute2 pkg-config"
-makedepends="libressl-devel lzo-devel pam-devel pkcs11-helper-devel
- cmocka-devel"
+makedepends="$(vopt_if mbedtls mbedtls-devel libressl-devel) lzo-devel pam-devel
+ $(vopt_if pkcs11 pkcs11-helper-devel) cmocka-devel"
 depends="iproute2"
 short_desc="Easy-to-use, robust, and highly configurable VPN"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -15,6 +16,12 @@ homepage="https://www.openvpn.net"
 distfiles="http://build.openvpn.net/downloads/releases/${pkgname}-${version}.tar.xz"
 checksum=641f3add8694b2ccc39fd4fd92554e4f089ad16a8db6d2b473ec284839a5ebe2
 
+build_options="mbedtls pkcs11"
+build_options_default="mbedtls"
+desc_option_mbedtls="Build with mbedtls support"
+desc_option_pkcs11="Enable support for PKCS#11"
+vopt_conflict mbedtls pkcs11
+
 post_install() {
 	vmkdir usr/share/examples/${pkgname}
 	cp -r sample/sample-config-files/* ${DESTDIR}/usr/share/examples/${pkgname}

             reply	other threads:[~2020-07-06 22:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06 22:37 travankor [this message]
2020-07-07  0:29 ` travankor
2020-07-07  8:35 ` mobinmob
2020-07-07 13:57 ` jkoderu-git
2020-07-10 16:11 ` Johnnynator
2020-07-10 16:54 ` ericonr
2020-07-10 21:46 ` travankor
2020-07-11  0:48 ` travankor
2020-07-11  1:29 ` ericonr
2020-07-11  1:56 ` travankor
2020-07-12 11:44 ` [PR PATCH] [Merged]: " Johnnynator
2020-07-14 10:47 ` Redcroft
2020-07-14 11:39 ` ericonr
2020-07-14 11:39 ` ericonr

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23429@inbox.vuxu.org \
    --to=travankor@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).