Update to easy-rsa-3.0.5.

This version adds support for LibreSSL. While here switch HOMEPAGE to
https.

OK sthen@
This commit is contained in:
bket 2018-10-24 11:23:12 +00:00
parent a8571eda5e
commit dcd987cf95
4 changed files with 10 additions and 32 deletions

View File

@ -1,33 +1,31 @@
# $OpenBSD: Makefile,v 1.7 2018/01/31 17:10:47 sthen Exp $
# $OpenBSD: Makefile,v 1.8 2018/10/24 11:23:12 bket Exp $
COMMENT = small RSA key management package
V = 3.0.4
V = 3.0.5
PKGNAME = easy-rsa-$V
DISTNAME = EasyRSA-$V
DISTNAME = EasyRSA-nix-$V
EXTRACT_SUFX = .tgz
CATEGORIES = security
HOMEPAGE = http://openvpn.net/
HOMEPAGE = https://openvpn.net/
# GPLv2 only
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = https://github.com/OpenVPN/easy-rsa/releases/download/v$V/
# relies on passing environment variables to $ENV:: in config files
RUN_DEPENDS = security/openssl
NO_BUILD = Yes
NO_TEST = Yes
WRKDIST = ${WRKDIR}/${DISTNAME:S/nix-//}
I = ${PREFIX}/share/easy-rsa
do-install:
sed -i s,/usr/local,${LOCALBASE},g ${WRKSRC}/easyrsa
${INSTALL_DATA_DIR} $I
cd ${WRKSRC}; pax -rw * $I
rm $I/*.orig
chown -R ${SHAREOWN}:${SHAREGRP} $I/*
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (EasyRSA-3.0.4.tgz) = RyFn+XbGy3yGDOxhUKVhbhY64gNlyB8XmBHW7gd57Fo=
SIZE (EasyRSA-3.0.4.tgz) = 37721
SHA256 (EasyRSA-nix-3.0.5.tgz) = Xr/n36IACKoVzssTbyswj24j4p8XVolpo7p3KqULuzc=
SIZE (EasyRSA-nix-3.0.5.tgz) = 50270

View File

@ -1,21 +0,0 @@
$OpenBSD: patch-easyrsa,v 1.3 2018/01/31 17:10:47 sthen Exp $
Makes extensive use of passing environment variables and using
$ENV:: in OpenSSL config files. Bizarrely, parsing of these config
files is done by the library rather than the openssl(1) command
line tool, and this was removed from LibreSSL, so easy-rsa won't
work with LibreSSL without extensive changes, so patching to use
OpenSSL from ports instead.
Index: easyrsa
--- easyrsa.orig
+++ easyrsa
@@ -1061,7 +1061,7 @@ Note: using Easy-RSA configuration from: $vars"
# Set defaults, preferring existing env-vars if present
set_var EASYRSA "${0%/*}"
- set_var EASYRSA_OPENSSL openssl
+ set_var EASYRSA_OPENSSL "/usr/local/bin/eopenssl"
set_var EASYRSA_PKI "$PWD/pki"
set_var EASYRSA_DN cn_only
set_var EASYRSA_REQ_COUNTRY "US"

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.4 2018/01/31 17:10:47 sthen Exp $
@comment $OpenBSD: PLIST,v 1.5 2018/10/24 11:23:12 bket Exp $
@extraunexec rm -rf %D/share/easy-rsa/pki
share/easy-rsa/
share/easy-rsa/COPYING.md
@ -12,6 +12,7 @@ share/easy-rsa/doc/EasyRSA-Upgrade-Notes.md
share/easy-rsa/doc/Hacking.md
share/easy-rsa/doc/Intro-To-PKI.md
share/easy-rsa/easyrsa
@comment share/easy-rsa/easyrsa-e
share/easy-rsa/gpl-2.0.txt
share/easy-rsa/mktemp.txt
share/easy-rsa/openssl-easyrsa.cnf