easy-rsa: downgraded to 3.0.4 (3.0.5 has not been released)diff -r1.5 -r1.6 pkgsrc/security/easy-rsa/Makefile
(adam)
@@ -1,54 +1,45 @@ | @@ -1,54 +1,45 @@ | |||
1 | # $NetBSD: Makefile,v 1.5 2018/01/30 14:34:06 mef Exp $ | 1 | # $NetBSD: Makefile,v 1.6 2018/06/24 07:31:09 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= easy-rsa-3.0.5 | 3 | DISTNAME= EasyRSA-3.0.4 | |
4 | PKGNAME= ${DISTNAME:S/EasyRSA/easy-rsa/} | |||
4 | CATEGORIES= security | 5 | CATEGORIES= security | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenVPN/} | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenVPN/} | |
7 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | |||
8 | EXTRACT_SUFX= .tgz | |||
6 | 9 | |||
7 | COMMENT= CLI utility to build and manage a PKI CA | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://github.com/OpenVPN/easy-rsa/ | 11 | HOMEPAGE= https://github.com/OpenVPN/easy-rsa | |
12 | COMMENT= CLI utility to build and manage a PKI CA | |||
10 | LICENSE= gnu-gpl-v2 | 13 | LICENSE= gnu-gpl-v2 | |
11 | 14 | |||
12 | GITHUB_PROJECT= easy-rsa | |||
13 | GITHUB_TAG= v${PKGVERSION_NOREV} | |||
14 | USE_LANGUAGES= # none | 15 | USE_LANGUAGES= # none | |
16 | NO_CONFIGURE= yes | |||
17 | NO_BUILD= yes | |||
15 | 18 | |||
16 | EASYRSA_DOC_FILES= COPYING.md ChangeLog KNOWN_ISSUES README.md | 19 | EASYRSA_CNF_FILES= openssl-easyrsa.cnf vars x509-types/COMMON | |
17 | EASYRSA_DOC_FILES+= README.quickstart.md | 20 | EASYRSA_CNF_FILES+= x509-types/ca x509-types/client x509-types/code-signing | |
21 | EASYRSA_CNF_FILES+= x509-types/server | |||
18 | 22 | |||
19 | EASYRSA_CNF_FILES= openssl-easyrsa.cnf vars.example x509-types/COMMON | 23 | INSTALLATION_DIRS+= bin share/doc/easyrsa share/examples/easyrsa/x509-types | |
20 | EASYRSA_CNF_FILES+= x509-types/ca x509-types/client x509-types/server | |||
21 | ||||
22 | INSTALLATION_DIRS+= ${BINDIR} ${DOCDIR} ${EGDIR} # ${PKGMANDIR}/man1 | |||
23 | BINDIR= ${PREFIX}/bin | |||
24 | DOCDIR= ${PREFIX}/share/doc/easyrsa | |||
25 | EGDIR= ${PREFIX}/share/examples/easyrsa | 24 | EGDIR= ${PREFIX}/share/examples/easyrsa | |
26 | PKG_SYSCONFSUBDIR= easyrsa | 25 | PKG_SYSCONFSUBDIR= easyrsa | |
27 | OWN_DIRS= ${PKG_SYSCONFDIR}/x509-types | 26 | OWN_DIRS= ${PKG_SYSCONFDIR}/x509-types | |
28 | .for f in ${EASYRSA_CNF_FILES} | 27 | .for f in ${EASYRSA_CNF_FILES} | |
29 | REQD_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | 28 | REQD_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | |
30 | .endfor | 29 | .endfor | |
31 | 30 | |||
32 | NO_CONFIGURE= yes | |||
33 | NO_BUILD= yes | |||
34 | ||||
35 | SUBST_CLASSES+= sysconf | 31 | SUBST_CLASSES+= sysconf | |
36 | SUBST_STAGE.sysconf= post-patch | 32 | SUBST_STAGE.sysconf= post-patch | |
37 | SUBST_FILES.sysconf= easyrsa3/easyrsa | 33 | SUBST_FILES.sysconf= easyrsa vars.example | |
38 | SUBST_SED.sysconf= -e "s|@@@SYSCONF@@@|${PKG_SYSCONFDIR}|" | 34 | SUBST_SED.sysconf= -e "s|@SYSCONFDIR@|${PKG_SYSCONFDIR}|" | |
39 | 35 | |||
40 | do-install: | 36 | do-install: | |
41 | ${INSTALL_SCRIPT} ${WRKSRC}/easyrsa3/easyrsa ${DESTDIR}${BINDIR}/easyrsa | 37 | ${LN} -f ${WRKSRC}/vars.example ${WRKSRC}/vars | |
42 | # ${INSTALL_MAN} ${FILESDIR}/easyrsa.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | 38 | ${INSTALL_SCRIPT} ${WRKSRC}/easyrsa ${DESTDIR}${PREFIX}/bin/easyrsa | |
43 | 39 | ${INSTALL_DATA} ${WRKSRC}/*.md ${DESTDIR}${PREFIX}/share/doc/easyrsa/ | ||
44 | ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}/x509-types | 40 | ${INSTALL_DATA} ${WRKSRC}/doc/*.md ${DESTDIR}${PREFIX}/share/doc/easyrsa/ | |
45 | .for f in ${EASYRSA_CNF_FILES} | 41 | .for f in ${EASYRSA_CNF_FILES} | |
46 | ${INSTALL_DATA} ${WRKSRC}/easyrsa3/${f} ${DESTDIR}${EGDIR}/${f} | 42 | ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EGDIR}/${f} | |
47 | .endfor | |||
48 | ||||
49 | .for f in ${EASYRSA_DOC_FILES} | |||
50 | ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR} | |||
51 | .endfor | 43 | .endfor | |
52 | ${INSTALL_DATA} ${WRKSRC}/doc/* ${DESTDIR}${DOCDIR} | |||
53 | 44 | |||
54 | .include "../../mk/bsd.pkg.mk" | 45 | .include "../../mk/bsd.pkg.mk" |
@@ -1,7 +1,8 @@ | @@ -1,7 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.5 2018/01/30 14:34:06 mef Exp $ | 1 | $NetBSD: distinfo,v 1.6 2018/06/24 07:31:09 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (easy-rsa-3.0.5.tar.gz) = 0b079ff97e6e69e6169f696190f1cb66b332ade0 | 3 | SHA1 (EasyRSA-3.0.4.tgz) = 7355bb076317b052014086dea5aed212152d0bec | |
4 | RMD160 (easy-rsa-3.0.5.tar.gz) = 9d58b1ef275281627144254cfaad3a171c0dec8f | 4 | RMD160 (EasyRSA-3.0.4.tgz) = 118185837b4c8446d0269e25d43e0bbe2672e1ea | |
5 | SHA512 (easy-rsa-3.0.5.tar.gz) = f22324fa769339513e10fa55c84ae028ad08c0b6825416376c43f08b752c60bb0911fa3329e1d3ffe26f25b394888869fe97df4c13bddd7659cd490e4fa0e4a3 | 5 | SHA512 (EasyRSA-3.0.4.tgz) = 0bc145e510891af022c05427436c3ec7a29fce9d83e022954acd0cc470c88c43f5549af0b6263b46e8dc5fd167621a118cba0c01a514c51032cea8f1efbb9787 | |
6 | Size (easy-rsa-3.0.5.tar.gz) = 637848 bytes | 6 | Size (EasyRSA-3.0.4.tgz) = 37721 bytes | |
7 | SHA1 (patch-easyrsa3_easyrsa) = 7723ff1946999e77a3a95a8e6127b1bc07f7cdd3 | 7 | SHA1 (patch-easyrsa) = a7cb4c837ebddd07c859dbe7f07f67899d410c25 | |
8 | SHA1 (patch-vars.example) = 31ffcf40ced1fb07a7531ec7de373ad24c04455e |
@@ -1,19 +1,17 @@ | @@ -1,19 +1,17 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2018/01/30 14:34:06 mef Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2018/06/24 07:31:09 adam Exp $ | |
2 | bin/easyrsa | 2 | bin/easyrsa | |
3 | share/doc/easyrsa/COPYING.md | 3 | share/doc/easyrsa/COPYING.md | |
4 | share/doc/easyrsa/ChangeLog | |||
5 | share/doc/easyrsa/EasyRSA-Advanced.md | 4 | share/doc/easyrsa/EasyRSA-Advanced.md | |
6 | share/doc/easyrsa/EasyRSA-Readme.md | 5 | share/doc/easyrsa/EasyRSA-Readme.md | |
7 | share/doc/easyrsa/EasyRSA-Upgrade-Notes.md | 6 | share/doc/easyrsa/EasyRSA-Upgrade-Notes.md | |
8 | share/doc/easyrsa/Hacking.md | 7 | share/doc/easyrsa/Hacking.md | |
9 | share/doc/easyrsa/Intro-To-PKI.md | 8 | share/doc/easyrsa/Intro-To-PKI.md | |
10 | share/doc/easyrsa/KNOWN_ISSUES | |||
11 | share/doc/easyrsa/README.md | 9 | share/doc/easyrsa/README.md | |
12 | share/doc/easyrsa/README.quickstart.md | 10 | share/doc/easyrsa/README.quickstart.md | |
13 | share/doc/easyrsa/TODO | |||
14 | share/examples/easyrsa/openssl-easyrsa.cnf | 11 | share/examples/easyrsa/openssl-easyrsa.cnf | |
15 | share/examples/easyrsa/vars.example | 12 | share/examples/easyrsa/vars | |
16 | share/examples/easyrsa/x509-types/COMMON | 13 | share/examples/easyrsa/x509-types/COMMON | |
17 | share/examples/easyrsa/x509-types/ca | 14 | share/examples/easyrsa/x509-types/ca | |
18 | share/examples/easyrsa/x509-types/client | 15 | share/examples/easyrsa/x509-types/client | |
16 | share/examples/easyrsa/x509-types/code-signing | |||
19 | share/examples/easyrsa/x509-types/server | 17 | share/examples/easyrsa/x509-types/server |
$NetBSD: patch-easyrsa,v 1.1 2018/06/24 07:31:09 adam Exp $
Set a sane default for config file. Needs to be SUBSTed.
--- easyrsa.orig 2017-08-22 12:51:05.000000000 +0000
+++ easyrsa
@@ -1046,6 +1046,9 @@ vars_setup() {
# EASYRSA, if defined:
elif [ -n "$EASYRSA" ] && [ -f "$EASYRSA/vars" ]; then
vars="$EASYRSA/vars"
+ # sysconf location:
+ elif [ -f "@SYSCONFDIR@/vars" ]; then
+ vars="@SYSCONFDIR@/vars"
# program location:
elif [ -f "$prog_vars" ]; then
vars="$prog_vars"
$NetBSD: patch-vars.example,v 1.1 2018/06/24 07:31:09 adam Exp $
Set default location for configuration files.
--- vars.example.orig 2018-01-21 15:37:26.000000000 +0000
+++ vars.example
@@ -42,12 +42,8 @@ fi
# This variable is used as the base location of configuration files needed by
# easyrsa. More specific variables for specific files (e.g., EASYRSA_SSL_CONF)
# may override this default.
-#
-# The default value of this variable is the location of the easyrsa script
-# itself, which is also where the configuration files are located in the
-# easy-rsa tree.
-#set_var EASYRSA "${0%/*}"
+set_var EASYRSA "@SYSCONFDIR@"
# If your OpenSSL command is not in the system PATH, you will need to define the
# path to it here. Normally this means a full path to the executable, otherwise