summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2000-09-02 17:01:27 +0000
committerdmcmahill <dmcmahill>2000-09-02 17:01:27 +0000
commitc0dc7e9ceca4b5cf7492d427d2eca6c7ab788cbe (patch)
treeefdcf4510d25944c637cf40d2844ac6455540341 /archivers
parent87e1a3c406d97b4c9b825af49536d9ca3b07cf46 (diff)
downloadpkgsrc-c0dc7e9ceca4b5cf7492d427d2eca6c7ab788cbe.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')
-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\); \