2021-10-14 14:42:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.18 2021/10/14 12:42:43 wiz Exp $
|
2015-04-18 22:21:25 +02:00
|
|
|
|
2021-10-14 14:40:10 +02:00
|
|
|
PKGNAME= mozilla-rootcerts-openssl-2.7
|
2015-04-18 22:21:25 +02:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
|
|
|
MAINTAINER= dholland@NetBSD.org
|
|
|
|
#HOMEPAGE= none
|
|
|
|
COMMENT= Wedge for installing and managing mozilla-rootcerts
|
|
|
|
LICENSE= modified-bsd
|
|
|
|
|
|
|
|
USE_TOOLS+= openssl
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
BUILD_DIRS= # empty
|
|
|
|
|
2021-10-14 14:42:43 +02:00
|
|
|
BUILD_DEPENDS+= mozilla-rootcerts-1.0.20210916{,nb[0-9]*}:../../security/mozilla-rootcerts
|
2015-04-18 22:21:25 +02:00
|
|
|
SCRIPT= ${LOCALBASE}/sbin/mozilla-rootcerts
|
|
|
|
|
|
|
|
CHECK_BUILTIN.openssl= yes
|
|
|
|
.include "../../security/openssl/builtin.mk"
|
|
|
|
CHECK_BUILTIN.openssl= no
|
|
|
|
|
|
|
|
#
|
|
|
|
# This package needs to install directly into openssl's certs directory
|
|
|
|
# because openssl is dumb and doesn't support multiple cert directories.
|
|
|
|
# (Otherwise we'd install under ${PREFIX}/share.)
|
|
|
|
#
|
|
|
|
# For native openssl this is in /etc outside of ${PREFIX}. Beware.
|
|
|
|
#
|
|
|
|
.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
|
2020-03-12 14:43:35 +01:00
|
|
|
NOT_FOR_UNPRIVILEGED= yes
|
2015-04-18 22:21:25 +02:00
|
|
|
PLACE= /etc
|
|
|
|
SET_PREFIX= yes
|
|
|
|
PLIST_SUBST+= MYETCDIR=etc
|
|
|
|
CHECK_FILES_SUPPORTED= no
|
|
|
|
.else
|
2015-07-05 21:02:04 +02:00
|
|
|
PLACE= ${MY_PKG_SYSCONFDIR}
|
2017-06-22 19:53:59 +02:00
|
|
|
# probably SET_PREFIX should not be set
|
2015-07-05 21:02:04 +02:00
|
|
|
SET_PREFIX= yes
|
|
|
|
PLIST_SUBST+= MYETCDIR=${MY_PKG_SYSCONFDIR:S/^${PREFIX}//}
|
2015-04-18 22:21:25 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
OPENSSLDIR= ${PLACE}/openssl/certs
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${OPENSSLDIR}
|
|
|
|
cd ${WRKSRC} && ${SCRIPT} -d ${DESTDIR} install
|
|
|
|
${CHMOD} go+r ${DESTDIR}${OPENSSLDIR}/*.pem
|
2017-06-22 19:53:59 +02:00
|
|
|
${CHMOD} go+r ${DESTDIR}${OPENSSLDIR}/*.crt
|
2015-04-18 22:21:25 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
|
|
|
|
# This must be after bsd.pkg.mk is included to work.
|
2015-07-05 21:02:04 +02:00
|
|
|
MY_PKG_SYSCONFDIR:= ${PKG_SYSCONFDIR}
|
2015-04-18 22:21:25 +02:00
|
|
|
.if ${SET_PREFIX} == "yes"
|
|
|
|
PREFIX= /
|
|
|
|
.endif
|