summaryrefslogtreecommitdiff
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/Makefile5
-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
4 files changed, 21 insertions, 5 deletions
diff --git a/security/ca_root_nss/Makefile b/security/ca_root_nss/Makefile
index 5a7cfdd6e5eb..1214762865cf 100644
--- a/security/ca_root_nss/Makefile
+++ b/security/ca_root_nss/Makefile
@@ -1,6 +1,6 @@
PORTNAME= ca_root_nss
PORTVERSION= ${VERSION_NSS}
-PORTREVISION= 1
+PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= MOZILLA/security/nss/releases/${DISTNAME:tu:C/[-.]/_/g}_RTM/src
DISTNAME= nss-${VERSION_NSS}${NSS_SUFFIX}
@@ -20,6 +20,7 @@ WRKSRC_SUBDIR= nss
OPTIONS_DEFINE= ETCSYMLINK
OPTIONS_DEFAULT= ETCSYMLINK
OPTIONS_EXCLUDE_FreeBSD_15= ETCSYMLINK
+OPTIONS_EXCLUDE_FreeBSD_16= ETCSYMLINK
OPTIONS_SUB= yes
@@ -33,7 +34,7 @@ VERSION_NSS= 3.115
CERTDATA_TXT_PATH= lib/ckfw/builtins/certdata.txt
BUNDLE_PROCESSOR= MAca-bundle.pl
-SUB_FILES= MAca-bundle.pl pkg-message
+SUB_FILES= MAca-bundle.pl pkg-deinstall pkg-install pkg-message
SUB_LIST= VERSION_NSS=${VERSION_NSS}
do-build:
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..8e5138c10c22
--- /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 ${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..6f05ab7e72ed
--- /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 ${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