summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-05-31 09:44:15 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-05-31 09:44:15 +0000
commit44860f639f0d59ca762ef93867c9497b9808c768 (patch)
tree7f8e31993f90219b5c9618843280ed9dbf7bcfc6 /java
parentUpdate to 0.1.33. I also smacked this port into using the system libintl (diff)
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')
-rw-r--r--java/jdk/Makefile2
-rw-r--r--java/jdk/pkg-plist5
-rw-r--r--java/jdk11/Makefile2
-rw-r--r--java/jdk11/pkg-plist5
4 files changed, 14 insertions, 0 deletions
diff --git a/java/jdk/Makefile b/java/jdk/Makefile
index 72eb66a593ef..63ef68f56879 100644
--- a/java/jdk/Makefile
+++ b/java/jdk/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/jdk/pkg-plist b/java/jdk/pkg-plist
index c30f4a35703e..68a6a3aafe67 100644
--- a/java/jdk/pkg-plist
+++ b/java/jdk/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
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