912a7b12e4
- Update seamonkey to 2.13.2 - Update ESR ports and libxul to 10.0.10 - Update nspr to 4.9.3 - Update nss to 3.14 - with GNOMEVFS2 option build its extension, too [1] - make heap-committed and heap-dirty reporters work in about:memory - properly mark QT4 as experimental (needs love upstream) - *miscellaneous cleanups and fixups* mail/thunderbird will be updated once the tarballs are available. PR: ports/173052 [1] Security: 6b3b1b97-207c-11e2-a03f-c8600054b392 Feature safe: yes In collaboration with: Jan Beich <jbeich@tormail.org>
69 lines
2 KiB
Makefile
69 lines
2 KiB
Makefile
# New ports collection makefile for: ca-root-nss
|
|
# Date created: Thu Jan 25 13:02:14 CST 2007
|
|
# Whom: Brooks Davis <brooks@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ca_root_nss
|
|
PORTVERSION= ${VERSION_NSS}
|
|
CATEGORIES= security
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA}
|
|
MASTER_SITE_SUBDIR= security/nss/releases/NSS_${PORTVERSION:S/./_/g}_RTM/src
|
|
DISTNAME= nss-${VERSION_NSS}${NSS_SUFFIX}
|
|
|
|
MAINTAINER= gecko@FreeBSD.org
|
|
COMMENT= The root certificate bundle from the Mozilla Project
|
|
|
|
OPTIONS_DEFINE= ETCSYMLINK
|
|
ETCSYMLINK_DESC= Add symlink to /etc/ssl/cert.pem
|
|
|
|
USE_PERL5_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
CERTDIR?= share/certs
|
|
PLIST_SUB+= CERTDIR=${CERTDIR}
|
|
|
|
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
# !!! These versions are indented to track security/nss. !!!
|
|
# !!! Please DO NOT submit patches for new version until it has !!!
|
|
# !!! been committed there first. !!!
|
|
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
VERSION_NSS= 3.14
|
|
CERTDATA_TXT_PATH= nss-${VERSION_NSS}/mozilla/security/nss/lib/ckfw/builtins/certdata.txt
|
|
BUNDLE_PROCESSOR= MAca-bundle.pl
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:METCSYMLINK}
|
|
PLIST_SUB+= ETCSYMLINK=
|
|
CONFLICTS= ca-roots-[0-9]*
|
|
.else
|
|
PLIST_SUB+= ETCSYMLINK="@comment "
|
|
.endif
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKDIR}
|
|
@${TAR} -C ${WRKDIR} -xf ${DISTDIR}/nss-${VERSION_NSS}${NSS_SUFFIX}${EXTRACT_SUFX} \
|
|
${CERTDATA_TXT_PATH}
|
|
@${CP} ${WRKDIR}/${CERTDATA_TXT_PATH} ${WRKDIR}
|
|
@${CP} ${FILESDIR}/${BUNDLE_PROCESSOR} ${WRKDIR}
|
|
@${RM} -rf ${WRKDIR}/nss-${VERSION_NSS}
|
|
|
|
post-patch:
|
|
@${PERL} -pi -e 's,%%VERSION_NSS%%,${VERSION_NSS}${NSS_SUFFIX},g;' \
|
|
${WRKDIR}/${BUNDLE_PROCESSOR}
|
|
|
|
do-build:
|
|
@${PERL} ${WRKDIR}/${BUNDLE_PROCESSOR} \
|
|
< ${WRKDIR}/certdata.txt > \
|
|
${WRKDIR}/ca-root-nss.crt
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/${CERTDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/ca-root-nss.crt ${PREFIX}/${CERTDIR}
|
|
.if ${PORT_OPTIONS:METCSYMLINK}
|
|
${LN} -sf ${PREFIX}/${CERTDIR}/ca-root-nss.crt /etc/ssl/cert.pem
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|