summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2017-03-03 15:46:27 +0000
committerbsiegert <bsiegert@pkgsrc.org>2017-03-03 15:46:27 +0000
commit553ce8795509585f24dc15385ca604481f6f3354 (patch)
tree19b958dc5bae4fd644e014371ed3eebbeafb5e28 /security
parentf081c7f39ac34ee172f2cd9fd118db26a6dcbe6e (diff)
downloadpkgsrc-553ce8795509585f24dc15385ca604481f6f3354.tar.gz
Create /etc/openssl/openssl.cnf if it does not exist.
Otherwise, there is one nonsensical warning on every openssl invocation. I have seen dozens of recipes for NetBSD setups, and each one cargo-cults a "touch openssl.cnf" against that noise. Bump package revision.
Diffstat (limited to 'security')
-rw-r--r--security/mozilla-rootcerts/Makefile3
-rw-r--r--security/mozilla-rootcerts/files/mozilla-rootcerts.sh6
2 files changed, 7 insertions, 2 deletions
diff --git a/security/mozilla-rootcerts/Makefile b/security/mozilla-rootcerts/Makefile
index 01ad69ae298..7fdd5922efe 100644
--- a/security/mozilla-rootcerts/Makefile
+++ b/security/mozilla-rootcerts/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2017/02/03 09:56:49 maya Exp $
+# $NetBSD: Makefile,v 1.25 2017/03/03 15:46:27 bsiegert Exp $
DISTNAME= mozilla-rootcerts-1.0.${CERTDATA_DATE}
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= -https://hg.mozilla.org/mozilla-central/raw-file/052b90b5414f/security/nss/lib/ckfw/builtins/certdata.txt
DISTFILES= ${CERTDATA}
diff --git a/security/mozilla-rootcerts/files/mozilla-rootcerts.sh b/security/mozilla-rootcerts/files/mozilla-rootcerts.sh
index 781e75d9158..49b99734985 100644
--- a/security/mozilla-rootcerts/files/mozilla-rootcerts.sh
+++ b/security/mozilla-rootcerts/files/mozilla-rootcerts.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: mozilla-rootcerts.sh,v 1.11 2017/02/01 01:58:52 yyamano Exp $
+# $NetBSD: mozilla-rootcerts.sh,v 1.12 2017/03/03 15:46:27 bsiegert Exp $
#
# This script is meant to be used as follows:
#
@@ -23,6 +23,7 @@ self="@LOCALBASE@/sbin/mozilla-rootcerts"
certfile="@DATADIR@/certdata.txt"
certdir="/etc/ssl/certs"
destdir=
+conffile="/etc/openssl/openssl.cnf"
usage()
{
@@ -187,6 +188,9 @@ extract)
}'
;;
install)
+ # quell warnings for a missing config file
+ touch $destdir$conffile
+
if [ ! -d $destdir$SSLDIR ]; then
${ECHO} 1>&2 "ERROR: $destdir$SSLDIR does not exist, aborting."
exit 1