summaryrefslogtreecommitdiff
path: root/archivers/rar
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2000-09-02 17:01:27 +0000
committerdmcmahill <dmcmahill>2000-09-02 17:01:27 +0000
commit5e2e3559f88691ab269b3c05049b05188843a538 (patch)
treeefdcf4510d25944c637cf40d2844ac6455540341 /archivers/rar
parentb7728b2cbb93cdc5a0e1453417934e194a66a425 (diff)
downloadpkgsrc-5e2e3559f88691ab269b3c05049b05188843a538.tar.gz
- don't try and execute "sysctl -n machdep.booted_kernel" unless we're on
i386. Fixes recently noted strange error messages when trying to build on arch's which don't support this sysctl.
Diffstat (limited to 'archivers/rar')
-rw-r--r--archivers/rar/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/archivers/rar/Makefile b/archivers/rar/Makefile
index cfa0243bc4d..e801cfa56ff 100644
--- a/archivers/rar/Makefile
+++ b/archivers/rar/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2000/07/31 20:30:15 fredb Exp $
+# $NetBSD: Makefile,v 1.27 2000/09/02 17:01:27 dmcmahill Exp $
# FreeBSD Id: Makefile,v 1.7 1997/08/10 22:31:27 fenner Exp
#
@@ -21,14 +21,13 @@ NO_BIN_ON_FTP= ${RESTRICTED}
NO_WRKSUBDIR= yes
EXTRACT_CMD= ${DOWNLOADED_DISTFILE} >/dev/null
-.ifndef KERNEL
-KERNEL!= env "PATH=${PATH}:/sbin:/usr/sbin" sysctl -n machdep.booted_kernel
-.endif
-
pre-extract:
- @if (${NM} /${KERNEL} | ${GREP} -q compat_12 && \
- ${NM} /${KERNEL} | ${GREP} -q exec_nomid && \
- ${NM} /${KERNEL} | ${GREP} -q exec_aout); then ${TRUE}; \
+ @if [ -z "$$KERNEL" ]; then \
+ KERNEL=`env "PATH=${PATH}:/sbin:/usr/sbin" sysctl -n machdep.booted_kernel` ;\
+ fi ;\
+ if (${NM} /$$KERNEL | ${GREP} -q compat_12 && \
+ ${NM} /$$KERNEL | ${GREP} -q exec_nomid && \
+ ${NM} /$$KERNEL | ${GREP} -q exec_aout); then ${TRUE}; \
else \
${ECHO} "****************************************************************";\
${ECHO} Make can not proceed! In order to extract \(and run\); \