1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

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
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60154
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}