aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk11
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-05-31 17:44:15 +0800
committersobomax <sobomax@FreeBSD.org>2000-05-31 17:44:15 +0800
commitbda254a7c4fe5817dbe862a6fe32d94e2918f127 (patch)
treee7a146d6d2705dc00879df6d3a742573fe6262b5 /java/jdk11
parentc863f66cfe92a840cdc50105f8aba682af412992 (diff)
downloadfreebsd-ports-gnome-bda254a7c4fe5817dbe862a6fe32d94e2918f127.tar.gz
freebsd-ports-gnome-bda254a7c4fe5817dbe862a6fe32d94e2918f127.tar.zst
freebsd-ports-gnome-bda254a7c4fe5817dbe862a6fe32d94e2918f127.zip
Create/remove share/java, share/java/classes and share/java/doc directories upon
install/uninstall, as it is outlined in Java Porters page (http://www.FreeBSD.org/java/docs/howtoports.html). Approved by: asami
Diffstat (limited to 'java/jdk11')
-rw-r--r--java/jdk11/Makefile2
-rw-r--r--java/jdk11/pkg-plist5
2 files changed, 7 insertions, 0 deletions
diff --git a/java/jdk11/Makefile b/java/jdk11/Makefile
index 72eb66a593ef..63ef68f56879 100644
--- a/java/jdk11/Makefile
+++ b/java/jdk11/Makefile
@@ -34,5 +34,7 @@ do-install:
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
(cd ${WRKSRC} && ${TAR} -c -f - .) \
| (cd ${PREFIX}/jdk${JDK_VERSION} && ${TAR} --unlink -x -f -)
+ ${MKDIR} ${PREFIX}/share/java/classes
+ ${MKDIR} ${PREFIX}/share/doc/java
.include <bsd.port.post.mk>
diff --git a/java/jdk11/pkg-plist b/java/jdk11/pkg-plist
index c30f4a35703e..68a6a3aafe67 100644
--- a/java/jdk11/pkg-plist
+++ b/java/jdk11/pkg-plist
@@ -516,6 +516,11 @@ jdk%%JDK_VERSION%%/README
jdk%%JDK_VERSION%%/README.FreeBSD
jdk%%JDK_VERSION%%/CHANGES
jdk%%JDK_VERSION%%/index.html
+@exec mkdir -p %D/share/java/classes
+@exec mkdir -p %D/share/doc/java
+@unexec rmdir %D/share/java/classes
+@unexec rmdir %D/share/java
+@unexec rmdir %D/share/doc/java
@dirrm jdk%%JDK_VERSION%%/lib/security
@dirrm jdk%%JDK_VERSION%%/lib/locale/ja_JP.UTF-8/app-defaults
@dirrm jdk%%JDK_VERSION%%/lib/locale/ja_JP.UTF-8