[arch-commits] Commit in easy-rsa/repos (3 files)

Christian Hesse eworm at archlinux.org
Wed Sep 9 23:19:21 UTC 2020


    Date: Wednesday, September 9, 2020 @ 23:19:20
  Author: eworm
Revision: 395669

archrelease: copy trunk to testing-any

Added:
  easy-rsa/repos/testing-any/
  easy-rsa/repos/testing-any/0001-fix-paths.patch
    (from rev 395668, easy-rsa/trunk/0001-fix-paths.patch)
  easy-rsa/repos/testing-any/PKGBUILD
    (from rev 395668, easy-rsa/trunk/PKGBUILD)

----------------------+
 0001-fix-paths.patch |   29 +++++++++++++++++++++++++++++
 PKGBUILD             |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

Copied: easy-rsa/repos/testing-any/0001-fix-paths.patch (from rev 395668, easy-rsa/trunk/0001-fix-paths.patch)
===================================================================
--- testing-any/0001-fix-paths.patch	                        (rev 0)
+++ testing-any/0001-fix-paths.patch	2020-09-09 23:19:20 UTC (rev 395669)
@@ -0,0 +1,29 @@
+From 49facdddb343cefb0cb85bcc7eb52fa01db1f377 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Thu, 28 Sep 2017 11:08:39 +0200
+Subject: [PATCH 1/1] fix paths
+
+We have the easyrsa executable in /usr/bin/ - so use use current working
+directory, not executable path.
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ easyrsa | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/easyrsa b/easyrsa
+index 11d2357..c665ab7 100755
+--- a/easyrsa
++++ b/easyrsa
+@@ -1660,9 +1660,9 @@ Note: using Easy-RSA configuration from: $vars"
+ 	fi
+ 	
+ 	# Set defaults, preferring existing env-vars if present
+-	set_var EASYRSA		"$prog_dir"
++	set_var EASYRSA		"$PWD"
+ 	set_var EASYRSA_OPENSSL	openssl
+-	set_var EASYRSA_PKI	"$PWD/pki"
++	set_var EASYRSA_PKI	"$EASYRSA/pki"
+ 	set_var EASYRSA_DN	cn_only
+ 	set_var EASYRSA_REQ_COUNTRY	"US"
+ 	set_var EASYRSA_REQ_PROVINCE	"California"

Copied: easy-rsa/repos/testing-any/PKGBUILD (from rev 395668, easy-rsa/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2020-09-09 23:19:20 UTC (rev 395669)
@@ -0,0 +1,47 @@
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=easy-rsa
+pkgver=3.0.8
+pkgrel=1
+pkgdesc='Simple shell based CA utility'
+arch=('any')
+url='https://github.com/OpenVPN/easy-rsa'
+depends=('openssl' 'sh')
+license=('custom')
+backup=('etc/easy-rsa/openssl-easyrsa.cnf'
+	'etc/easy-rsa/vars')
+validpgpkeys=(
+	'65FF3F24AA08E882CB444C94D731D97A606FD463'	# Josh Cepek <josh.cepek at usa.net>
+	'6F4056821152F03B6B24F2FCF8489F839D7367F3')	# Eric Crist <ecrist at secure-computing.net>
+source=("https://github.com/OpenVPN/easy-rsa/releases/download/v${pkgver}/EasyRSA-${pkgver}.tgz"{,.sig}
+        '0001-fix-paths.patch')
+sha256sums=('cae114c212a5be4d89f2253d36c70ab94f68d295f24e8b6711c2cab0fabf7e18'
+            'SKIP'
+            '097c0d4980698004b11cc5e4cf12229d1f4a498fd1bd5d0442f4bec2cf7b11ea')
+
+prepare() {
+	cd EasyRSA-${pkgver}/
+
+	# fix output of help command, we have it in PATH
+	sed -i 's|./easyrsa|easyrsa|' easyrsa
+
+	# fix paths
+	patch -Np1 < "${srcdir}"/0001-fix-paths.patch
+}
+
+package() {
+	cd EasyRSA-${pkgver}/
+
+	install -D -m0755 easyrsa "${pkgdir}"/usr/bin/easyrsa
+
+	install -D -m0644 openssl-easyrsa.cnf "${pkgdir}"/etc/easy-rsa/openssl-easyrsa.cnf
+	install -D -m0644 vars.example "${pkgdir}"/etc/easy-rsa/vars
+	install -d -m0755 "${pkgdir}"/etc/easy-rsa/x509-types/
+	install -m0644 x509-types/* "${pkgdir}"/etc/easy-rsa/x509-types/
+
+	install -d -m0755  "${pkgdir}"/usr/share/doc/easy-rsa/
+	install -m0644 doc/* ChangeLog "${pkgdir}"/usr/share/doc/easy-rsa/
+
+	install -D -m0644 COPYING.md "${pkgdir}"/usr/share/licenses/easy-rsa/COPYING
+}
+



More information about the arch-commits mailing list