diff options
author | Michael Osipov <michaelo@FreeBSD.org> | 2023-11-22 13:08:23 +0000 |
---|---|---|
committer | Michael Osipov <michaelo@FreeBSD.org> | 2024-02-09 19:52:07 +0000 |
commit | d901bf5df9d22af271582c28d9dc279a6794f3d0 (patch) | |
tree | 886f26cdcd900324b6dc7aa7a17b5967bedd6b88 /java/openjdk11 | |
parent | 5c8f11b7ced5cd5d7a08c429fe7f12ea017a4e99 (diff) | |
download | ports-d901bf5df9d22af271582c28d9dc279a6794f3d0.tar.gz ports-d901bf5df9d22af271582c28d9dc279a6794f3d0.zip |
java/openjdk*: Allow users to specify an alternative cacerts file
Similar to certificate management with certctl(8) users can use custom
enterprise CAs. These need to be assembled into a custom cacerts file.
Therefore, an admin can install a custom truststore to an arbitrary
location and have the OpenJDK port symlink to it by adding
OPENJDK_SYMLINK_CACERTS to make.conf.
E.g., OPENJDK_SYMLINK_CACERTS=/usr/local/etc/ssl/cacerts.
PR: 229329
Approved by: jrm (mentor), otis (mentor), glewis
Differential Revision: https://reviews.freebsd.org/D42720
Diffstat (limited to 'java/openjdk11')
-rw-r--r-- | java/openjdk11/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/openjdk11/Makefile b/java/openjdk11/Makefile index 65dd031607ae..01bac3655923 100644 --- a/java/openjdk11/Makefile +++ b/java/openjdk11/Makefile @@ -1,6 +1,7 @@ PORTNAME= openjdk DISTVERSIONPREFIX= jdk- DISTVERSION= ${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_PATCH_VERSION}+${JDK_BUILD_NUMBER}-${BSD_JDK_VERSION} +PORTREVISION= 1 CATEGORIES= java devel PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION} @@ -192,6 +193,12 @@ post-patch: -e 's|%%ICONV_LIBS%%|${ICONV_LIBS}|' \ ${WRKSRC}/make/autoconf/libraries.m4 +post-build: +.if defined(OPENJDK_SYMLINK_CACERTS) + @${RM} ${JDK_IMAGEDIR}/lib/security/cacerts + @${LN} -sf ${OPENJDK_SYMLINK_CACERTS} ${JDK_IMAGEDIR}/lib/security/cacerts +.endif + do-install: @${MKDIR} ${STAGEDIR}${INSTALLDIR} @cd ${JDK_IMAGEDIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${INSTALLDIR} |