Make sure the Linux bits are loaded before extracting as the extractor is

a Linux binary.
This commit is contained in:
David E. O'Brien 2002-05-28 01:40:07 +00:00
parent c9aed14447
commit 7bc585c253
2 changed files with 24 additions and 0 deletions

View file

@ -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}

View file

@ -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}