aboutsummaryrefslogtreecommitdiff
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
parentc9aed14447ad652b1b2055278b7616daceab84dc (diff)
downloadports-7bc585c253a0a5e3428694a128890c904aef00a0.tar.gz
ports-7bc585c253a0a5e3428694a128890c904aef00a0.zip
Notes
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}