Sat Feb 6 10:22:54 2016 UTC ()
Create and install a file called "share/mozilla-rootcerts/cacert.pem"
which contains all the trusted certificates in PEM format. This file
can e.g. be used with command line clients like "curl" or "wget" to
validate certificates.


(tron)
diff -r1.21 -r1.22 pkgsrc/security/mozilla-rootcerts/Makefile
diff -r1.2 -r1.3 pkgsrc/security/mozilla-rootcerts/PLIST

cvs diff -r1.21 -r1.22 pkgsrc/security/mozilla-rootcerts/Makefile (expand / switch to unified diff)

--- pkgsrc/security/mozilla-rootcerts/Makefile 2015/10/18 19:24:39 1.21
+++ pkgsrc/security/mozilla-rootcerts/Makefile 2016/02/06 10:22:54 1.22
@@ -1,51 +1,60 @@ @@ -1,51 +1,60 @@
1# $NetBSD: Makefile,v 1.21 2015/10/18 19:24:39 tnn Exp $ 1# $NetBSD: Makefile,v 1.22 2016/02/06 10:22:54 tron Exp $
2 2
3DISTNAME= mozilla-rootcerts-1.0.${CERTDATA_DATE} 3DISTNAME= mozilla-rootcerts-1.0.${CERTDATA_DATE}
 4PKGREVISION= 1
4CATEGORIES= security 5CATEGORIES= security
5MASTER_SITES= -https://hg.mozilla.org/mozilla-central/raw-file/2f1a37cb43ac/security/nss/lib/ckfw/builtins/certdata.txt 6MASTER_SITES= -https://hg.mozilla.org/mozilla-central/raw-file/2f1a37cb43ac/security/nss/lib/ckfw/builtins/certdata.txt
6DISTFILES= ${CERTDATA} 7DISTFILES= ${CERTDATA}
7EXTRACT_SUFX= # empty 8EXTRACT_SUFX= # empty
8 9
9MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://hg.mozilla.org/mozilla-central/log/tip/security/nss/lib/ckfw/builtins/certdata.txt 11HOMEPAGE= https://hg.mozilla.org/mozilla-central/log/tip/security/nss/lib/ckfw/builtins/certdata.txt
11COMMENT= Root CA certificates from the Mozilla Project 12COMMENT= Root CA certificates from the Mozilla Project
12LICENSE= mpl-2.0 13LICENSE= mpl-2.0
13 14
14USE_TOOLS= awk:run echo:run expr:run ln:run ls:run openssl:run rm:run mkdir:run 15USE_TOOLS= awk:run echo:run expr:run ln:run ls:run openssl:run rm:run mkdir:run
15 16
16# This must be kept in sync with security/mozilla-rootcerts-openssl 17# This must be kept in sync with security/mozilla-rootcerts-openssl
17CERTDATA_DATE= 20150804 18CERTDATA_DATE= 20150804
18CERTDATA= certdata-${CERTDATA_DATE}.txt 19CERTDATA= certdata-${CERTDATA_DATE}.txt
19 20
20WRKSRC= ${WRKDIR} 21WRKSRC= ${WRKDIR}
21BUILD_DIRS= # empty 
22DATADIR= ${PREFIX}/share/${PKGBASE} 22DATADIR= ${PREFIX}/share/${PKGBASE}
23 23
24CHECK_BUILTIN.openssl= yes 24CHECK_BUILTIN.openssl= yes
25.include "../../security/openssl/builtin.mk" 25.include "../../security/openssl/builtin.mk"
26CHECK_BUILTIN.openssl= no 26CHECK_BUILTIN.openssl= no
27.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) 27.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
28SSLDIR= /etc/openssl/certs 28SSLDIR= /etc/openssl/certs
29.else 29.else
30SSLDIR= ${PKG_SYSCONFDIR}/openssl/certs 30SSLDIR= ${PKG_SYSCONFDIR}/openssl/certs
31.endif 31.endif
32 32
 33CERT_SCRIPT= mozilla-rootcerts.sh
 34
33SUBST_CLASSES= paths 35SUBST_CLASSES= paths
34SUBST_MESSAGE.paths= Replacing hard-coded paths. 36SUBST_MESSAGE.paths= Replacing hard-coded paths.
35SUBST_STAGE.paths= post-configure 37SUBST_STAGE.paths= post-configure
36SUBST_FILES.paths= mozilla-rootcerts.sh 38SUBST_FILES.paths= ${CERT_SCRIPT}
37SUBST_VARS.paths= AWK ECHO EXPR LN LOCALBASE LS RM DATADIR MKDIR SSLDIR 39SUBST_VARS.paths= AWK ECHO EXPR LN LOCALBASE LS RM DATADIR MKDIR SSLDIR
38SUBST_SED.paths= -e 's,@OPENSSL@,${TOOLS_PATH.openssl},g' 40SUBST_SED.paths= -e 's,@OPENSSL@,${TOOLS_PATH.openssl},g'
39 41
40INSTALLATION_DIRS= sbin ${DATADIR} 42INSTALLATION_DIRS= sbin ${DATADIR}
41 43
42do-extract: 44do-extract:
43 ${CP} ${FILESDIR}/mozilla-rootcerts.sh ${WRKSRC} 45 ${CP} ${FILESDIR}/${CERT_SCRIPT} ${WRKSRC}
44 ${CP} ${DISTDIR}/${CERTDATA} ${WRKSRC} 46 ${CP} ${DISTDIR}/${CERTDATA} ${WRKSRC}
45 47
 48do-build:
 49 ${MKDIR} ${WRKSRC}/certs
 50 cd ${WRKSRC}/certs && \
 51 ${SH} ${WRKSRC}/${CERT_SCRIPT} -f ${WRKSRC}/${CERTDATA} extract
 52 ${LS} -rt ${WRKSRC}/certs/*.pem | ${XARGS} ${CAT} >${WRKSRC}/cacert.pem
 53
46do-install: 54do-install:
47 ${INSTALL_SCRIPT} ${WRKSRC}/mozilla-rootcerts.sh \ 55 ${INSTALL_SCRIPT} ${WRKSRC}/${CERT_SCRIPT} \
48 ${DESTDIR}${PREFIX}/sbin/mozilla-rootcerts 56 ${DESTDIR}${PREFIX}/sbin/mozilla-rootcerts
49 ${INSTALL_DATA} ${WRKSRC}/${CERTDATA} ${DESTDIR}${DATADIR}/certdata.txt 57 ${INSTALL_DATA} ${WRKSRC}/${CERTDATA} ${DESTDIR}${DATADIR}/certdata.txt
 58 ${INSTALL_DATA} ${WRKSRC}/cacert.pem ${DESTDIR}${DATADIR}/cacert.pem
50 59
51.include "../../mk/bsd.pkg.mk" 60.include "../../mk/bsd.pkg.mk"

cvs diff -r1.2 -r1.3 pkgsrc/security/mozilla-rootcerts/PLIST (expand / switch to unified diff)

--- pkgsrc/security/mozilla-rootcerts/PLIST 2009/06/14 18:13:33 1.2
+++ pkgsrc/security/mozilla-rootcerts/PLIST 2016/02/06 10:22:54 1.3
@@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
1@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:13:33 joerg Exp $ 1@comment $NetBSD: PLIST,v 1.3 2016/02/06 10:22:54 tron Exp $
2sbin/mozilla-rootcerts 2sbin/mozilla-rootcerts
 3share/mozilla-rootcerts/cacert.pem
3share/mozilla-rootcerts/certdata.txt 4share/mozilla-rootcerts/certdata.txt