pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/go116 go116: Find pkgsrc SSL certificates on SunOS.
details: https://anonhg.NetBSD.org/pkgsrc/rev/d5fea8968f97
branches: trunk
changeset: 449439:d5fea8968f97
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Tue Mar 30 15:08:57 2021 +0000
description:
go116: Find pkgsrc SSL certificates on SunOS.
diffstat:
lang/go116/Makefile | 7 ++++-
lang/go116/distinfo | 3 +-
lang/go116/patches/patch-src_crypto_x509_root__solaris.go | 21 +++++++++++++++
3 files changed, 29 insertions(+), 2 deletions(-)
diffs (61 lines):
diff -r eac689da03d2 -r d5fea8968f97 lang/go116/Makefile
--- a/lang/go116/Makefile Tue Mar 30 14:53:35 2021 +0000
+++ b/lang/go116/Makefile Tue Mar 30 15:08:57 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2021/02/18 11:05:42 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2021/03/30 15:08:57 jperkin Exp $
.include "../../lang/go/version.mk"
.include "../../lang/go/bootstrap.mk"
@@ -67,6 +67,11 @@
CHECK_INTERPRETER_SKIP+= go${GOVERSSUFFIX}/src/make.rc
CHECK_INTERPRETER_SKIP+= go${GOVERSSUFFIX}/src/run.rc
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= src/crypto/x509/root_solaris.go
+SUBST_VARS.paths= PKG_SYSCONFDIR
+
PLIST_SUBST+= GOVERSSUFFIX=${GOVERSSUFFIX}
PLIST_VARS+= pty route
diff -r eac689da03d2 -r d5fea8968f97 lang/go116/distinfo
--- a/lang/go116/distinfo Tue Mar 30 14:53:35 2021 +0000
+++ b/lang/go116/distinfo Tue Mar 30 15:08:57 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2021/03/14 18:15:16 bsiegert Exp $
+$NetBSD: distinfo,v 1.6 2021/03/30 15:08:57 jperkin Exp $
SHA1 (go1.16.2.src.tar.gz) = 78812c9ee656d3f54b8c9b4f3f78e00e81ba81ad
RMD160 (go1.16.2.src.tar.gz) = 0f667e1fd0691890eb282d921ac46c442df62c69
@@ -7,4 +7,5 @@
SHA1 (patch-misc_ios_clangwrap.sh) = 0a06403609cb7bce2e6f65444fd322f486761afe
SHA1 (patch-src_cmd_dist_util.go) = 24e6f1b6ded842a8ce322a40e8766f7d344bc47e
SHA1 (patch-src_crypto_x509_root__bsd.go) = 27636e0d8c121ccec6c46a3a82cd0e0469473a6e
+SHA1 (patch-src_crypto_x509_root__solaris.go) = cce8d78a5a3712a0e7a620ead232a779e4a4b21e
SHA1 (patch-src_syscall_zsysnum__solaris__amd64.go) = ec28a0fa37ba9599ec1651c8e9337a2efc48a26b
diff -r eac689da03d2 -r d5fea8968f97 lang/go116/patches/patch-src_crypto_x509_root__solaris.go
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go116/patches/patch-src_crypto_x509_root__solaris.go Tue Mar 30 15:08:57 2021 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_crypto_x509_root__solaris.go,v 1.1 2021/03/30 15:08:57 jperkin Exp $
+
+Use pkgsrc certificates by default.
+
+--- src/crypto/x509/root_solaris.go.orig 2021-03-11 17:14:31.000000000 +0000
++++ src/crypto/x509/root_solaris.go
+@@ -6,6 +6,7 @@ package x509
+
+ // Possible certificate files; stop after finding one.
+ var certFiles = []string{
++ "@PKG_SYSCONFDIR@/openssl/certs/ca-certificates.crt",
+ "/etc/certs/ca-certificates.crt", // Solaris 11.2+
+ "/etc/ssl/certs/ca-certificates.crt", // Joyent SmartOS
+ "/etc/ssl/cacert.pem", // OmniOS
+@@ -14,5 +15,6 @@ var certFiles = []string{
+ // Possible directories with certificate files; stop after successfully
+ // reading at least one file from a directory.
+ var certDirectories = []string{
++ "@PKG_SYSCONFDIR@/openssl/certs",
+ "/etc/certs/CA",
+ }
Home |
Main Index |
Thread Index |
Old Index