Import of pkgsrc-2015Q1

This commit is contained in:
2016-01-21 23:40:00 +01:00
committed by sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870539 additions and 795424 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
===========================================================================
$NetBSD: MESSAGE,v 1.4 2013/03/15 16:14:55 bsiegert Exp $
$NetBSD: MESSAGE,v 1.5 2014/08/10 10:47:42 wiz Exp $
Execute this command to extract and rehash all CA root certificates
distributed by the Mozilla Project, so that they can be used by third
@@ -12,7 +12,7 @@ GnuTLS.
To mark these certificates as trusted for users of gnupg2, do
the following (assuming default PKG_SYSCONFBASE and a Bourne shell):
# mkdir /usr/pkg/etc/gnupg
# mkdir -p /usr/pkg/etc/gnupg
# cd /usr/pkg/etc/gnupg
# for c in /etc/openssl/certs/*.pem; do
> openssl x509 -in $c -noout -fingerprint|sed 's|^.*=\(.*\)|\1 S|'
+6 -7
View File
@@ -1,20 +1,19 @@
# $NetBSD: Makefile,v 1.13 2014/03/03 06:01:26 obache Exp $
# $NetBSD: Makefile,v 1.17 2015/02/16 13:09:10 tnn Exp $
DISTNAME= mozilla-rootcerts-1.0.${CERTDATA_DATE}
PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITES= -https://hg.mozilla.org/mozilla-central/raw-file/7f6a55544bb3/security/nss/lib/ckfw/builtins/certdata.txt
DISTFILES= ${CERTDATA}
EXTRACT_SUFX= # empty
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
HOMEPAGE= https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt
COMMENT= Root CA certificates from the Mozilla Project
LICENSE= mpl-1.1 OR gnu-gpl-v2 OR gnu-lgpl-v2.1
LICENSE= mpl-2.0
USE_TOOLS= awk:run echo:run expr:run ln:run ls:run openssl:run rm:run mkdir:run
CERTDATA_DATE= 20121229
CERTDATA_DATE= 20141117
CERTDATA= certdata-${CERTDATA_DATE}.txt
WRKSRC= ${WRKDIR}
@@ -34,7 +33,7 @@ SUBST_CLASSES= paths
SUBST_MESSAGE.paths= Replacing hard-coded paths.
SUBST_STAGE.paths= post-configure
SUBST_FILES.paths= mozilla-rootcerts.sh
SUBST_VARS.paths= AWK ECHO EXPR LN LS RM DATADIR MKDIR SSLDIR
SUBST_VARS.paths= AWK ECHO EXPR LN LOCALBASE LS RM DATADIR MKDIR SSLDIR
SUBST_SED.paths= -e 's,@OPENSSL@,${TOOLS_PATH.openssl},g'
INSTALLATION_DIRS= sbin ${DATADIR}
+4 -4
View File
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.6 2013/01/31 09:39:00 wiz Exp $
$NetBSD: distinfo,v 1.8 2015/02/16 13:09:10 tnn Exp $
SHA1 (certdata-20121229.txt) = 07f9f6c8a3be4473497fe89174a32d32eb66bdd7
RMD160 (certdata-20121229.txt) = bc21321abe4cf27418880c4ce8e6ebd329df82a1
Size (certdata-20121229.txt) = 1306494 bytes
SHA1 (certdata-20141117.txt) = f9bc9fa76145720d94124527f82a7185d921975e
RMD160 (certdata-20141117.txt) = 1010430418b96a7d12e2243218aaf7d721c6c349
Size (certdata-20141117.txt) = 1644247 bytes
@@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: mozilla-rootcerts.sh,v 1.5 2013/03/15 16:14:55 bsiegert Exp $
# $NetBSD: mozilla-rootcerts.sh,v 1.8 2015/01/27 13:54:10 jperkin Exp $
#
# This script is meant to be used as follows:
#
@@ -19,7 +19,7 @@
: ${SSLDIR=@SSLDIR@}
: ${RM=@RM@}
self="mozilla-rootcerts"
self="@LOCALBASE@/sbin/mozilla-rootcerts"
certfile="@DATADIR@/certdata.txt"
certdir="/etc/ssl/certs"
@@ -162,13 +162,17 @@ extract)
# kill untrusted certificates (not clean, but the script which comes
# with "curl" works the same way)
untrusted = 0
# Read lines only until we find the trust data
# following the certificate, then stop.
while (getline) {
if ($0 ~ /^#$/) break
if ($0 ~ /^CKA_TRUST_SERVER_AUTH.*CK_TRUST.*CKT_NSS_NOT_TRUSTED$/)
untrusted = 1
if ($0 ~ /^CKA_TRUST_SERVER_AUTH.*CK_TRUST.*CKT_NETSCAPE_UNTRUSTED$/)
untrusted = 1
if ($0 ~ /^CKA_TRUST_SERVER_AUTH/) break
}
# Test the result for untrusted status
if ($0 ~ /^CKA_TRUST_SERVER_AUTH.*CK_TRUST.*CKT_NSS_NOT_TRUSTED$/)
untrusted = 1
if ($0 ~ /^CKA_TRUST_SERVER_AUTH.*CK_TRUST.*CKT_NETSCAPE_UNTRUSTED$/)
untrusted = 1
if (untrusted) {
print filename " untrusted"
system("rm -f " filename)