| @@ -1,46 +1,46 @@ | | | @@ -1,46 +1,46 @@ |
1 | # $NetBSD: Makefile,v 1.48 2022/12/04 16:09:47 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.49 2022/12/04 16:12:46 wiz Exp $ |
2 | # | | 2 | # |
3 | # Please also update the dependency pattern in mozilla-rootcerts-openssl | | 3 | # Please also update the dependency pattern in mozilla-rootcerts-openssl |
4 | # and bump its version when updating this package. | | 4 | # and bump its version when updating this package. |
5 | | | 5 | |
6 | DISTNAME= mozilla-rootcerts-1.0.${CERTDATA_DATE} | | 6 | DISTNAME= mozilla-rootcerts-1.0.${CERTDATA_DATE} |
7 | CATEGORIES= security | | 7 | CATEGORIES= security |
8 | MASTER_SITES= -https://hg.mozilla.org/mozilla-central/raw-file/8a140b71769579902156914a69ba4849c5598db3/security/nss/lib/ckfw/builtins/certdata.txt | | 8 | MASTER_SITES= -https://hg.mozilla.org/mozilla-central/raw-file/fc546cbeb1cc7a486bc5147bcff3a879374cf213/security/nss/lib/ckfw/builtins/certdata.txt |
9 | EXTRACT_SUFX= # empty | | 9 | EXTRACT_SUFX= # empty |
10 | DISTFILES= ${CERTDATA} | | 10 | DISTFILES= ${CERTDATA} |
11 | | | 11 | |
12 | MAINTAINER= pkgsrc-users@NetBSD.org | | 12 | MAINTAINER= pkgsrc-users@NetBSD.org |
13 | HOMEPAGE= https://hg.mozilla.org/mozilla-central/log/tip/security/nss/lib/ckfw/builtins/certdata.txt | | 13 | HOMEPAGE= https://hg.mozilla.org/mozilla-central/log/tip/security/nss/lib/ckfw/builtins/certdata.txt |
14 | COMMENT= Root CA certificates from the Mozilla Project | | 14 | COMMENT= Root CA certificates from the Mozilla Project |
15 | LICENSE= mpl-2.0 | | 15 | LICENSE= mpl-2.0 |
16 | | | 16 | |
17 | USE_TOOLS= awk:run echo:run expr:run ln:run ls:run openssl:run rm:run mkdir:run | | 17 | USE_TOOLS= awk:run echo:run expr:run ln:run ls:run openssl:run rm:run mkdir:run |
18 | | | 18 | |
19 | # This must be kept in sync with security/mozilla-rootcerts-openssl | | 19 | # This must be kept in sync with security/mozilla-rootcerts-openssl |
20 | CERTDATA_DATE= 20221204 | | 20 | CERTDATA_DATE= 20221204 |
21 | CERTDATA= certdata-${CERTDATA_DATE}.txt | | 21 | CERTDATA= certdata-${CERTDATA_DATE}.txt |
22 | | | 22 | |
23 | WRKSRC= ${WRKDIR} | | 23 | WRKSRC= ${WRKDIR} |
24 | DATADIR= ${PREFIX}/share/${PKGBASE} | | 24 | DATADIR= ${PREFIX}/share/${PKGBASE} |
25 | | | 25 | |
26 | # Set paths depending on whether we depend on builtin or pkgsrc | | 26 | # Set paths depending on whether we depend on builtin or pkgsrc |
27 | # openssl. \todo Arguably, we should consider installing into both | | 27 | # openssl. \todo Arguably, we should consider installing into both |
28 | # builtin and pkgsrc, if both exist, but this requires much more | | 28 | # builtin and pkgsrc, if both exist, but this requires much more |
29 | # thought. | | 29 | # thought. |
30 | CHECK_BUILTIN.openssl= yes | | 30 | CHECK_BUILTIN.openssl= yes |
31 | .include "../../security/openssl/builtin.mk" | | 31 | .include "../../security/openssl/builtin.mk" |
32 | CHECK_BUILTIN.openssl= no | | 32 | CHECK_BUILTIN.openssl= no |
33 | .if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) | | 33 | .if ${USE_BUILTIN.openssl:U:tl} == yes |
34 | SSLDIR= /etc/openssl | | 34 | SSLDIR= /etc/openssl |
35 | .else | | 35 | .else |
36 | SSLDIR= ${PKG_SYSCONFDIR}/openssl | | 36 | SSLDIR= ${PKG_SYSCONFDIR}/openssl |
37 | .endif | | 37 | .endif |
38 | | | 38 | |
39 | CERT_SCRIPT= mozilla-rootcerts.sh | | 39 | CERT_SCRIPT= mozilla-rootcerts.sh |
40 | | | 40 | |
41 | SUBST_CLASSES= paths | | 41 | SUBST_CLASSES= paths |
42 | SUBST_MESSAGE.paths= Replacing hard-coded paths. | | 42 | SUBST_MESSAGE.paths= Replacing hard-coded paths. |
43 | SUBST_STAGE.paths= post-configure | | 43 | SUBST_STAGE.paths= post-configure |
44 | SUBST_FILES.paths= ${CERT_SCRIPT} | | 44 | SUBST_FILES.paths= ${CERT_SCRIPT} |
45 | SUBST_VARS.paths= AWK DATADIR ECHO EXPR LN LS MKDIR PREFIX RM SH SSLDIR | | 45 | SUBST_VARS.paths= AWK DATADIR ECHO EXPR LN LS MKDIR PREFIX RM SH SSLDIR |
46 | SUBST_SED.paths= -e 's,@OPENSSL@,${TOOLS_PATH.openssl},g' | | 46 | SUBST_SED.paths= -e 's,@OPENSSL@,${TOOLS_PATH.openssl},g' |