pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/mozilla-rootcerts Create /etc/openssl/openssl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6010606cb476
branches:  trunk
changeset: 359218:6010606cb476
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Fri Mar 03 15:46:27 2017 +0000

description:
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:

 security/mozilla-rootcerts/Makefile                   |  3 ++-
 security/mozilla-rootcerts/files/mozilla-rootcerts.sh |  6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r a0ea0c60b7ad -r 6010606cb476 security/mozilla-rootcerts/Makefile
--- a/security/mozilla-rootcerts/Makefile       Fri Mar 03 15:45:14 2017 +0000
+++ b/security/mozilla-rootcerts/Makefile       Fri Mar 03 15:46:27 2017 +0000
@@ -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 -r a0ea0c60b7ad -r 6010606cb476 security/mozilla-rootcerts/files/mozilla-rootcerts.sh
--- a/security/mozilla-rootcerts/files/mozilla-rootcerts.sh     Fri Mar 03 15:45:14 2017 +0000
+++ b/security/mozilla-rootcerts/files/mozilla-rootcerts.sh     Fri Mar 03 15:46:27 2017 +0000
@@ -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 @@
 certfile="@DATADIR@/certdata.txt"
 certdir="/etc/ssl/certs"
 destdir=
+conffile="/etc/openssl/openssl.cnf"
 
 usage()
 {
@@ -187,6 +188,9 @@
        }'
        ;;
 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



Home | Main Index | Thread Index | Old Index