pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/easy-rsa set sane default location for config...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a6e72fcb4288
branches:  trunk
changeset: 374062:a6e72fcb4288
user:      jnemeth <jnemeth%pkgsrc.org@localhost>
date:      Mon Jan 15 09:26:23 2018 +0000

description:
set sane default location for config file

diffstat:

 security/easy-rsa/Makefile                       |   8 +++++++-
 security/easy-rsa/distinfo                       |   3 ++-
 security/easy-rsa/patches/patch-easyrsa3_easyrsa |  16 ++++++++++++++++
 3 files changed, 25 insertions(+), 2 deletions(-)

diffs (56 lines):

diff -r 557f383c13be -r a6e72fcb4288 security/easy-rsa/Makefile
--- a/security/easy-rsa/Makefile        Mon Jan 15 09:00:01 2018 +0000
+++ b/security/easy-rsa/Makefile        Mon Jan 15 09:26:23 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2017/12/04 07:19:55 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2018/01/15 09:26:23 jnemeth Exp $
 
 DISTNAME=      easy-rsa-3.0.3
+PKGREVISION=   1
 CATEGORIES=    security
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=OpenVPN/}
 
@@ -32,6 +33,11 @@
 NO_CONFIGURE=          yes
 NO_BUILD=              yes
 
+SUBST_CLASSES+=                sysconf
+SUBST_STAGE.sysconf=   post-patch
+SUBST_FILES.sysconf=   easyrsa3/easyrsa
+SUBST_SED.sysconf=     -e "s|@@@SYSCONF@@@|${PKG_SYSCONFDIR}|"
+
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/easyrsa3/easyrsa ${DESTDIR}${BINDIR}/easyrsa
 #      ${INSTALL_MAN} ${FILESDIR}/easyrsa.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
diff -r 557f383c13be -r a6e72fcb4288 security/easy-rsa/distinfo
--- a/security/easy-rsa/distinfo        Mon Jan 15 09:00:01 2018 +0000
+++ b/security/easy-rsa/distinfo        Mon Jan 15 09:26:23 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2017/12/04 07:19:55 wiz Exp $
+$NetBSD: distinfo,v 1.4 2018/01/15 09:26:23 jnemeth Exp $
 
 SHA1 (easy-rsa-3.0.3.tar.gz) = 18d570d55f342a912780e8c071d65f68746c0e7b
 RMD160 (easy-rsa-3.0.3.tar.gz) = 59a640871a5351f502d9bdb5140aa1396d207523
 SHA512 (easy-rsa-3.0.3.tar.gz) = edc097936bc2400f131e17fe8a94b81d009befa21622d51064262b2ea2f39b28774c51224353f8b1cba790bfc53b9184e5a39abf85aee0a9310f5e08380019d2
 Size (easy-rsa-3.0.3.tar.gz) = 636592 bytes
+SHA1 (patch-easyrsa3_easyrsa) = 7723ff1946999e77a3a95a8e6127b1bc07f7cdd3
diff -r 557f383c13be -r a6e72fcb4288 security/easy-rsa/patches/patch-easyrsa3_easyrsa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/easy-rsa/patches/patch-easyrsa3_easyrsa  Mon Jan 15 09:26:23 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-easyrsa3_easyrsa,v 1.1 2018/01/15 09:26:23 jnemeth Exp $
+
+Set a sane default for config file.  Needs to be SUBSTed.
+
+--- easyrsa3/easyrsa.orig      2017-08-22 12:51:05.000000000 +0000
++++ easyrsa3/easyrsa
+@@ -1027,6 +1027,9 @@ vars_setup() {
+       # EASYRSA, if defined:
+       elif [ -n "$EASYRSA" ] && [ -f "$EASYRSA/vars" ]; then
+               vars="$EASYRSA/vars"
++      # sysconf location:
++      elif [ -f "@@@SYSCONF@@@/vars" ]; then
++              vars="@@@SYSCONF@@@/vars"
+       # program location:
+       elif [ -f "$prog_vars" ]; then
+               vars="$prog_vars"



Home | Main Index | Thread Index | Old Index