aboutsummaryrefslogtreecommitdiff
path: root/security/ca_root_nss
diff options
context:
space:
mode:
Diffstat (limited to 'security/ca_root_nss')
-rw-r--r--security/ca_root_nss/Makefile11
-rw-r--r--security/ca_root_nss/distinfo6
-rw-r--r--security/ca_root_nss/files/pkg-deinstall.in6
-rw-r--r--security/ca_root_nss/files/pkg-install.in12
-rw-r--r--security/ca_root_nss/pkg-plist3
5 files changed, 29 insertions, 9 deletions
diff --git a/security/ca_root_nss/Makefile b/security/ca_root_nss/Makefile
index 581eaf31b155..67da24fce950 100644
--- a/security/ca_root_nss/Makefile
+++ b/security/ca_root_nss/Makefile
@@ -1,5 +1,6 @@
PORTNAME= ca_root_nss
PORTVERSION= ${VERSION_NSS}
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= MOZILLA/security/nss/releases/${DISTNAME:tu:C/[-.]/_/g}_RTM/src
DISTNAME= nss-${VERSION_NSS}${NSS_SUFFIX}
@@ -18,6 +19,8 @@ WRKSRC_SUBDIR= nss
OPTIONS_DEFINE= ETCSYMLINK
OPTIONS_DEFAULT= ETCSYMLINK
+OPTIONS_EXCLUDE_FreeBSD_15= ETCSYMLINK
+OPTIONS_EXCLUDE_FreeBSD_16= ETCSYMLINK
OPTIONS_SUB= yes
@@ -27,12 +30,14 @@ ETCSYMLINK_CONFLICTS_INSTALL= ca-roots-[0-9]*
CERTDIR?= share/certs
PLIST_SUB+= CERTDIR=${CERTDIR}
-VERSION_NSS= 3.115
+VERSION_NSS= 3.117
CERTDATA_TXT_PATH= lib/ckfw/builtins/certdata.txt
BUNDLE_PROCESSOR= MAca-bundle.pl
-SUB_FILES= MAca-bundle.pl pkg-message
-SUB_LIST= VERSION_NSS=${VERSION_NSS}
+CERTCTL_CMD?= /usr/sbin/certctl
+
+SUB_FILES= MAca-bundle.pl pkg-deinstall pkg-install pkg-message
+SUB_LIST= CERTCTL_CMD=${CERTCTL_CMD} VERSION_NSS=${VERSION_NSS}
do-build:
@${SETENV} PATH=${LOCALBASE}/bin:$${PATH} \
diff --git a/security/ca_root_nss/distinfo b/security/ca_root_nss/distinfo
index dd0317cb9911..ad628b103bcb 100644
--- a/security/ca_root_nss/distinfo
+++ b/security/ca_root_nss/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1755292668
-SHA256 (nss-3.115.tar.gz) = ac2a47fb33bd79320159144e01c0d4af9a937a2d928c7c77ff06f5d9507861ab
-SIZE (nss-3.115.tar.gz) = 76656357
+TIMESTAMP = 1759523021
+SHA256 (nss-3.117.tar.gz) = 5786b523a2f2e9295ed10d711960d2e33cd620bb80d6288443eda43553a51996
+SIZE (nss-3.117.tar.gz) = 76684970
diff --git a/security/ca_root_nss/files/pkg-deinstall.in b/security/ca_root_nss/files/pkg-deinstall.in
new file mode 100644
index 000000000000..612219c9e447
--- /dev/null
+++ b/security/ca_root_nss/files/pkg-deinstall.in
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ "$2" = POST-DEINSTALL ]; then
+ CERTCTL_ARGS="-D ${PKG_ROOTDIR}"
+ %%CERTCTL_CMD%% ${CERTCTL_ARGS} rehash
+fi
diff --git a/security/ca_root_nss/files/pkg-install.in b/security/ca_root_nss/files/pkg-install.in
new file mode 100644
index 000000000000..e338a2a6dc08
--- /dev/null
+++ b/security/ca_root_nss/files/pkg-install.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ "$2" = POST-INSTALL ]; then
+ CERTCTL_ARGS="-D ${PKG_ROOTDIR}"
+ if [ -n "${PKG_METALOG}" ]; then
+ CERTCTL_ARGS="${CERTCTL_ARGS} -U -M ${PKG_METALOG}"
+ fi
+ %%CERTCTL_CMD%% ${CERTCTL_ARGS} rehash
+
+ [ ! -e %%LOCALBASE%%/bin/cert-sync ] || \
+ %%LOCALBASE%%/bin/cert-sync --quiet %%PREFIX%%/share/certs/ca-root-nss.crt
+fi
diff --git a/security/ca_root_nss/pkg-plist b/security/ca_root_nss/pkg-plist
index 7899413567aa..79f18017fea6 100644
--- a/security/ca_root_nss/pkg-plist
+++ b/security/ca_root_nss/pkg-plist
@@ -2,6 +2,3 @@
@sample etc/ssl/cert.pem.sample
%%ETCSYMLINK%%openssl/cert.pem
%%ETCSYMLINK%%/etc/ssl/cert.pem
-@postexec certctl rehash
-@postunexec certctl rehash
-@postexec [ ! -e %%LOCALBASE%%/bin/cert-sync ] || %%LOCALBASE%%/bin/cert-sync --quiet %%PREFIX%%/share/certs/ca-root-nss.crt