diff options
author | fredb <fredb@pkgsrc.org> | 2000-07-31 20:30:15 +0000 |
---|---|---|
committer | fredb <fredb@pkgsrc.org> | 2000-07-31 20:30:15 +0000 |
commit | ec53f99c6015cfca2ca6fbf4599aa636eccc34fe (patch) | |
tree | ba1732f84de302aef5171cbcb2e613824c5420d1 /archivers | |
parent | 2e4a639f8779bb6b7eac42dd417e76c9b11af91f (diff) | |
download | pkgsrc-ec53f99c6015cfca2ca6fbf4599aa636eccc34fe.tar.gz |
Get the name of the current kernel only once.
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/rar/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/archivers/rar/Makefile b/archivers/rar/Makefile index 312e60e02af..cfa0243bc4d 100644 --- a/archivers/rar/Makefile +++ b/archivers/rar/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2000/07/20 13:30:59 rh Exp $ +# $NetBSD: Makefile,v 1.26 2000/07/31 20:30:15 fredb Exp $ # FreeBSD Id: Makefile,v 1.7 1997/08/10 22:31:27 fenner Exp # @@ -21,12 +21,14 @@ NO_BIN_ON_FTP= ${RESTRICTED} NO_WRKSUBDIR= yes EXTRACT_CMD= ${DOWNLOADED_DISTFILE} >/dev/null -KERNEL= /`env "PATH=${PATH}:/sbin:/usr/sbin" sysctl -n machdep.booted_kernel` +.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 (${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\); \ |