mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Make sure the Linux bits are loaded before extracting as the extractor is
a Linux binary.
This commit is contained in:
parent
c9aed14447
commit
7bc585c253
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60154
@ -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}
|
||||
|
||||
|
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user