summaryrefslogtreecommitdiff
path: root/java/linux-sun-jdk13
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-05-28 01:40:07 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-05-28 01:40:07 +0000
commit7bc585c253a0a5e3428694a128890c904aef00a0 (patch)
treec5b312e2ddfd087b10461351d8097b84203d7b11 /java/linux-sun-jdk13
parentUpdate to 1.33.33. (diff)
Make sure the Linux bits are loaded before extracting as the extractor is
a Linux binary.
Notes
Notes: svn path=/head/; revision=60154
Diffstat (limited to 'java/linux-sun-jdk13')
-rw-r--r--java/linux-sun-jdk13/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/linux-sun-jdk13/Makefile b/java/linux-sun-jdk13/Makefile
index b2b3381511be..d8bdec195cf2 100644
--- a/java/linux-sun-jdk13/Makefile
+++ b/java/linux-sun-jdk13/Makefile
@@ -49,6 +49,18 @@ IGNORE= You must manually fetch the Java 2 Development Kit ${PORTVERSION} \
then run make again
.endif
+pre-extract:
+ @if [ -z "`kldstat -v | ${GREP} -E 'linux(aout|elf)'`" ]; then \
+ ${ECHO} 'Linux mode is not enabled.\
+ Loading Linux kernel module...' | fmt; \
+ linux || { \
+ ${ECHO} 'The Linux kernel module could not be loaded.\
+ Please manually load the module and retry.\
+ See "man linux" for details.' | fmt; \
+ ${FALSE}; \
+ };\
+ fi
+
post-fetch:
@${CHMOD} +x ${DISTDIR}/${DISTFILES}