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

Christian Hesse eworm at archlinux.org
Mon Feb 11 10:48:49 UTC 2019


    Date: Monday, February 11, 2019 @ 10:48:47
  Author: eworm
Revision: 345965

archrelease: copy trunk to testing-any

Added:
  easy-rsa/repos/testing-any/
  easy-rsa/repos/testing-any/0001-fix-paths.patch
    (from rev 345964, easy-rsa/trunk/0001-fix-paths.patch)
  easy-rsa/repos/testing-any/PKGBUILD
    (from rev 345964, 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 345964, easy-rsa/trunk/0001-fix-paths.patch)
===================================================================
--- testing-any/0001-fix-paths.patch	                        (rev 0)
+++ testing-any/0001-fix-paths.patch	2019-02-11 10:48:47 UTC (rev 345965)
@@ -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
+@@ -1042,9 +1042,9 @@ Note: using Easy-RSA configuration from: $vars"
+ 	fi
+ 	
+ 	# Set defaults, preferring existing env-vars if present
+-	set_var EASYRSA		"${0%/*}"
++	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 345964, easy-rsa/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2019-02-11 10:48:47 UTC (rev 345965)
@@ -0,0 +1,47 @@
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=easy-rsa
+pkgver=3.0.6
+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-unix-v${pkgver}.tgz"{,.sig}
+        '0001-fix-paths.patch')
+sha256sums=('cb29aed2d27824e59dbaad547f11dcab380a53c9fe05681249e804af436f1396'
+            'SKIP'
+            'c8287a6c3e79c36dcadbf2bd11b0fe2698f2ec8d6824b0dc22783ade36b8d2f6')
+
+prepare() {
+	cd EasyRSA-v${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-v${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