pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/go115 go115: Find pkgsrc SSL certificates on SunOS.
details: https://anonhg.NetBSD.org/pkgsrc/rev/eac689da03d2
branches: trunk
changeset: 449438:eac689da03d2
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Tue Mar 30 14:53:35 2021 +0000
description:
go115: Find pkgsrc SSL certificates on SunOS.
diffstat:
lang/go115/Makefile | 7 ++++++-
lang/go115/distinfo | 3 ++-
lang/go115/patches/patch-src_crypto_x509_root__solaris.go | 14 ++++++++++++++
3 files changed, 22 insertions(+), 2 deletions(-)
diffs (56 lines):
diff -r e4d104bc158b -r eac689da03d2 lang/go115/Makefile
--- a/lang/go115/Makefile Tue Mar 30 14:45:36 2021 +0000
+++ b/lang/go115/Makefile Tue Mar 30 14:53:35 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2021/02/18 11:05:42 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2021/03/30 14:53:35 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 e4d104bc158b -r eac689da03d2 lang/go115/distinfo
--- a/lang/go115/distinfo Tue Mar 30 14:45:36 2021 +0000
+++ b/lang/go115/distinfo Tue Mar 30 14:53:35 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2021/03/19 17:22:55 bsiegert Exp $
+$NetBSD: distinfo,v 1.8 2021/03/30 14:53:35 jperkin Exp $
SHA1 (go1.15.10.src.tar.gz) = 4c9ecfbe1e1aace59de5d8a5e9945a3c6e6b4bc1
RMD160 (go1.15.10.src.tar.gz) = 55bb5bdfdd80f075ca2777fccc3288ed40269b8f
@@ -8,6 +8,7 @@
SHA1 (patch-src_cmd_dist_util.go) = 24e6f1b6ded842a8ce322a40e8766f7d344bc47e
SHA1 (patch-src_cmd_link_internal_ld_elf.go) = 3dfcb5c824d4201fadda0cfb6b48e5938899baf0
SHA1 (patch-src_crypto_x509_root__bsd.go) = 93a2de7c685a0919fe93f5bc99f156e105dace4d
+SHA1 (patch-src_crypto_x509_root__solaris.go) = ee75e00992d04967c690d716be89b9ecbc356866
SHA1 (patch-src_runtime_cgo_gcc__netbsd__arm64.c) = d2fc1cebc104ad2e35f488e5edebcecd6f0323be
SHA1 (patch-src_runtime_os__netbsd.go) = 9b80de94667e3f8d8d1ae3648ab1fe43dd55d577
SHA1 (patch-src_runtime_sys__netbsd__arm64.s) = c8d3dfddd7930794a6ff9b2919c42632aa9358cd
diff -r e4d104bc158b -r eac689da03d2 lang/go115/patches/patch-src_crypto_x509_root__solaris.go
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go115/patches/patch-src_crypto_x509_root__solaris.go Tue Mar 30 14:53:35 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_crypto_x509_root__solaris.go,v 1.1 2021/03/30 14:53:35 jperkin Exp $
+
+Use pkgsrc certificates by default.
+
+--- src/crypto/x509/root_solaris.go.orig 2021-01-19 20:01:09.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
Home |
Main Index |
Thread Index |
Old Index