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

Christian Hesse eworm at archlinux.org
Tue Oct 2 19:47:10 UTC 2018


    Date: Tuesday, October 2, 2018 @ 19:47:09
  Author: eworm
Revision: 335651

archrelease: copy trunk to testing-any

Added:
  easy-rsa/repos/testing-any/
  easy-rsa/repos/testing-any/0001-fix-paths.patch
    (from rev 335650, easy-rsa/trunk/0001-fix-paths.patch)
  easy-rsa/repos/testing-any/PKGBUILD
    (from rev 335650, 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 335650, easy-rsa/trunk/0001-fix-paths.patch)
===================================================================
--- testing-any/0001-fix-paths.patch	                        (rev 0)
+++ testing-any/0001-fix-paths.patch	2018-10-02 19:47:09 UTC (rev 335651)
@@ -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 335650, easy-rsa/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2018-10-02 19:47:09 UTC (rev 335651)
@@ -0,0 +1,47 @@
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=easy-rsa
+pkgver=3.0.5
+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-nix-${pkgver}.tgz"{,.sig}
+        '0001-fix-paths.patch')
+sha256sums=('5ebfe7dfa20008aa15cecb136f2b308f6e23e29f17568969a3ba772aa50bbb37'
+            'SKIP'
+            'c8287a6c3e79c36dcadbf2bd11b0fe2698f2ec8d6824b0dc22783ade36b8d2f6')
+
+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