summaryrefslogtreecommitdiff
path: root/mk/defs.Linux.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-02-27 06:05:21 +0000
committergrant <grant@pkgsrc.org>2003-02-27 06:05:21 +0000
commit78404ecd1fc613f07a27580b7863baf87501017a (patch)
tree67f3209d700cc8c4efed3df865ec97f85f3e932d /mk/defs.Linux.mk
parent0c1fd2da121993a51f78af7ba4cfef3c9e5dd813 (diff)
downloadpkgsrc-78404ecd1fc613f07a27580b7863baf87501017a.tar.gz
look for basename, egrep, fgrep, grep and sed in both /bin and
/usr/bin, to deal with varying linux distributions. addresses PR pkg/20477 from Tracy Di Marco White.
Diffstat (limited to 'mk/defs.Linux.mk')
-rw-r--r--mk/defs.Linux.mk22
1 files changed, 21 insertions, 1 deletions
diff --git a/mk/defs.Linux.mk b/mk/defs.Linux.mk
index 007d417ec25..d974ac58d53 100644
--- a/mk/defs.Linux.mk
+++ b/mk/defs.Linux.mk
@@ -1,9 +1,13 @@
-# $NetBSD: defs.Linux.mk,v 1.45 2003/02/24 19:49:47 jschauma Exp $
+# $NetBSD: defs.Linux.mk,v 1.46 2003/02/27 06:05:21 grant Exp $
#
# Variable definitions for the Linux operating system.
AWK?= /usr/bin/awk
+.if exists(/bin/basename)
BASENAME?= /bin/basename
+.elif exists(/usr/bin/basename)
+BASENAME?= /usr/bin/basename
+.endif
CAT?= /bin/cat
CHMOD?= /bin/chmod
CHOWN?= /bin/chown
@@ -15,14 +19,26 @@ DATE?= /bin/date
DC?= /usr/bin/dc
DIRNAME?= /usr/bin/dirname
ECHO?= /bin/echo
+.if exists(/bin/egrep)
EGREP?= /bin/egrep
+.elif exists(/usr/bin/egrep)
+EGREP?= /usr/bin/egrep
+.endif
EXPR?= /usr/bin/expr
FALSE?= /bin/false
+.if exists(/bin/fgrep)
FGREP?= /bin/fgrep
+.elif exists(/usr/bin/fgrep)
+FGREP?= /usr/bin/fgrep
+.endif
FILE_CMD?= /usr/bin/file
FIND?= /usr/bin/find
GMAKE?= /usr/bin/make
+.if exists(/bin/grep)
GREP?= /bin/grep
+.elif exists(/usr/bin/grep)
+GREP?= /usr/bin/grep
+.endif
GTAR?= /bin/tar
GUNZIP_CMD?= /usr/bin/gunzip -f
GZCAT?= /bin/zcat
@@ -45,7 +61,11 @@ PS?= /bin/ps
PWD_CMD?= /bin/pwd # needs to print physical path
RM?= /bin/rm
RMDIR?= /bin/rmdir
+.if exists(/bin/sed)
SED?= /bin/sed
+.elif exists(/usr/bin/sed)
+SED?= /usr/bin/sed
+.endif
SETENV?= /usr/bin/env
SH?= /bin/sh
SHLOCK= ${LOCALBASE}/bin/shlock