[arch-commits] Commit in easy-rsa/repos (3 files)
Christian Hesse
eworm at archlinux.org
Tue Mar 31 20:11:24 UTC 2020
Date: Tuesday, March 31, 2020 @ 20:11:23
Author: eworm
Revision: 379010
archrelease: copy trunk to testing-any
Added:
easy-rsa/repos/testing-any/
easy-rsa/repos/testing-any/0001-fix-paths.patch
(from rev 379009, easy-rsa/trunk/0001-fix-paths.patch)
easy-rsa/repos/testing-any/PKGBUILD
(from rev 379009, 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 379009, easy-rsa/trunk/0001-fix-paths.patch)
===================================================================
--- testing-any/0001-fix-paths.patch (rev 0)
+++ testing-any/0001-fix-paths.patch 2020-03-31 20:11:23 UTC (rev 379010)
@@ -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 379009, easy-rsa/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2020-03-31 20:11:23 UTC (rev 379010)
@@ -0,0 +1,47 @@
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=easy-rsa
+pkgver=3.0.7
+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=('157d2e8c115c3ad070c1b2641a4c9191e06a32a8e50971847a718251eeb510a8'
+ '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