Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] openvpn: add mbedtls build option.
@ 2020-07-06 22:37 travankor
  2020-07-07  0:29 ` travankor
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: travankor @ 2020-07-06 22:37 UTC (permalink / raw)
  To: ml

[-- 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}

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-07-14 11:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 22:37 [PR PATCH] openvpn: add mbedtls build option travankor
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

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).