NetBSD Problem Report #28477
From thorpej@shagadelic.org Tue Nov 30 15:21:39 2004
Return-Path: <thorpej@shagadelic.org>
Received: from mail.shagadelic.org (unknown [208.176.2.162])
by narn.netbsd.org (Postfix) with ESMTP id C56FA251F14
for <gnats-bugs@gnats.NetBSD.org>; Tue, 30 Nov 2004 15:21:35 +0000 (UTC)
Message-Id: <20041130152130.6011A1E08D2@mail.shagadelic.org>
Date: Tue, 30 Nov 2004 07:21:30 -0800 (PST)
From: thorpej@shagadelic.org
Reply-To: thorpej@shagadelic.org
To: gnats-bugs@netbsd.org
Subject: openssl package should provide SSLKEYS location
X-Send-Pr-Version: 3.95
>Number: 28477
>Category: pkg
>Synopsis: openssl package should provide SSLKEYS location
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 30 15:24:00 +0000 2004
>Closed-Date: Sat Dec 11 00:04:39 +0000 2004
>Last-Modified: Sat Dec 11 00:04:39 +0000 2004
>Originator: Jason R Thorpe
>Release: NetBSD 2.99.10
>Organization:
-- Jason R. Thorpe <thorpej@shagadelic.org>
>Environment:
System: NetBSD yeah-baby.shagadelic.org 2.99.10 NetBSD 2.99.10 (YEAH-BABY-XP) #32: Wed Nov 3 16:00:40 PST 2004 thorpej@yeah-baby.shagadelic.org:/u1/netbsd/src/sys/arch/i386/compile/YEAH-BABY-XP i386
Architecture: i386
Machine: i386
>Description:
The OpenSSL package "builtin.mk" in pkgsrc provides an SSLCERTS
variable which points to the system location of the certificates
directory. But it does not provide a corresponding SSLKEYS variable
that points to the system private key directory.
>How-To-Repeat:
I noticed this when trying to fix the imap-uw package to read
the private key from a separate file.
>Fix:
The following patch adds the SSLKEYS variable to the OpenSSL
package "builtin.mk".
Index: builtin.mk
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/builtin.mk,v
retrieving revision 1.5
diff -u -p -r1.5 builtin.mk
--- builtin.mk 2 Apr 2004 23:41:50 -0000 1.5
+++ builtin.mk 30 Nov 2004 15:16:38 -0000
@@ -133,13 +133,17 @@ PKG_SKIP_REASON= \
.if defined(PKG_SYSCONFDIR.openssl)
SSLCERTS= ${PKG_SYSCONFDIR.openssl}/certs
+SSLKEYS= ${PKG_SYSCONFDIR.openssl}/private
.elif ${OPSYS} == "NetBSD"
SSLCERTS= /etc/openssl/certs
+SSLKEYS= /etc/openssl/private
.elif !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
SSLCERTS= /etc/ssl/certs # likely place where certs live
+SSLKEYS= /etc/ssl/private # likely place where private keys live
.else
SSLCERTS= ${PKG_SYSCONFBASEDIR}/openssl/certs
+SSLKEYS= ${PKG_SYSCONFBASEDIR}/openssl/private
.endif
-BUILD_DEFS+= SSLCERTS
+BUILD_DEFS+= SSLCERTS SSLKEYS
.endif # CHECK_BUILTIN.openssl
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Sat, 11 Dec 2004 00:04:39 +0000
State-Changed-Why:
Patch applied as-is. Thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.