aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-06-18 07:28:44 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-06-18 07:28:44 +0000
commit36fa7f4d667e8e4986548e69ff4e495cc60f1c64 (patch)
tree0bc759f26060c811aae609aee8727d732b909d98
parent1ca49c12f5ae21747c54d10762564b75129b844c (diff)
downloadports-36fa7f4d667e8e4986548e69ff4e495cc60f1c64.tar.gz
ports-36fa7f4d667e8e4986548e69ff4e495cc60f1c64.zip
Notes
-rw-r--r--Mk/bsd.commands.mk191
1 files changed, 94 insertions, 97 deletions
diff --git a/Mk/bsd.commands.mk b/Mk/bsd.commands.mk
index 845701a6a35c..a550b9707854 100644
--- a/Mk/bsd.commands.mk
+++ b/Mk/bsd.commands.mk
@@ -1,6 +1,3 @@
-#-*- tab-width: 4; -*-
-# ex:ts=4
-#
# bsd.commands.mk - Common commands used within the ports infrastructure
#
# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
@@ -12,109 +9,109 @@
# UNAUTHORISED CHANGES WILL BE UNCONDITIONALLY REVERTED!
#
-COMMANDS_Include_MAINTAINER= portmgr@FreeBSD.org
+COMMANDS_Include_MAINTAINER= portmgr@FreeBSD.org
.if !defined(_COMMANDSMKINCLUDED)
-_COMMANDSMKINCLUDED= yes
+_COMMANDSMKINCLUDED= yes
-AWK?= /usr/bin/awk
-BASENAME?= /usr/bin/basename
-BRANDELF?= /usr/bin/brandelf
-BZCAT?= /usr/bin/bzcat
-BZIP2_CMD?= /usr/bin/bzip2
-CAT?= /bin/cat
-CHGRP?= /usr/bin/chgrp
-CHMOD?= /bin/chmod
-CHOWN?= /usr/sbin/chown
-CHROOT?= /usr/sbin/chroot
-COMM?= /usr/bin/comm
-CP?= /bin/cp
-CPIO?= /usr/bin/cpio
-CUT?= /usr/bin/cut
-DC?= /usr/bin/dc
-DIALOG?= /usr/bin/dialog
-DIALOG4PORTS?= ${LOCALBASE}/bin/dialog4ports
-DIFF?= /usr/bin/diff
-DIRNAME?= /usr/bin/dirname
-EGREP?= /usr/bin/egrep
-EXPR?= /bin/expr
-FALSE?= false # Shell builtin
-FILE?= /usr/bin/file
-FIND?= /usr/bin/find
-FLEX?= /usr/bin/flex
-FMT?= /usr/bin/fmt
-GMAKE?= gmake
-GREP?= /usr/bin/grep
-GUNZIP_CMD?= /usr/bin/gunzip -f
-GZCAT?= /usr/bin/gzcat
-GZIP?= -9
-GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
-HEAD?= /usr/bin/head
-ID?= /usr/bin/id
-IDENT?= /usr/bin/ident
-JOT?= /usr/bin/jot
-LDCONFIG?= /sbin/ldconfig
-LHA_CMD?= ${LOCALBASE}/bin/lha
-LN?= /bin/ln
-LS?= /bin/ls
-MKDIR?= /bin/mkdir -p
-MKTEMP?= /usr/bin/mktemp
-MOUNT?= /sbin/mount
-MOUNT_DEVFS?= ${MOUNT} -t devfs devfs
+AWK?= /usr/bin/awk
+BASENAME?= /usr/bin/basename
+BRANDELF?= /usr/bin/brandelf
+BZCAT?= /usr/bin/bzcat
+BZIP2_CMD?= /usr/bin/bzip2
+CAT?= /bin/cat
+CHGRP?= /usr/bin/chgrp
+CHMOD?= /bin/chmod
+CHOWN?= /usr/sbin/chown
+CHROOT?= /usr/sbin/chroot
+COMM?= /usr/bin/comm
+CP?= /bin/cp
+CPIO?= /usr/bin/cpio
+CUT?= /usr/bin/cut
+DC?= /usr/bin/dc
+DIALOG?= /usr/bin/dialog
+DIALOG4PORTS?= ${LOCALBASE}/bin/dialog4ports
+DIFF?= /usr/bin/diff
+DIRNAME?= /usr/bin/dirname
+EGREP?= /usr/bin/egrep
+EXPR?= /bin/expr
+FALSE?= false # Shell builtin
+FILE?= /usr/bin/file
+FIND?= /usr/bin/find
+FLEX?= /usr/bin/flex
+FMT?= /usr/bin/fmt
+GMAKE?= gmake
+GREP?= /usr/bin/grep
+GUNZIP_CMD?= /usr/bin/gunzip -f
+GZCAT?= /usr/bin/gzcat
+GZIP?= -9
+GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
+HEAD?= /usr/bin/head
+ID?= /usr/bin/id
+IDENT?= /usr/bin/ident
+JOT?= /usr/bin/jot
+LDCONFIG?= /sbin/ldconfig
+LHA_CMD?= ${LOCALBASE}/bin/lha
+LN?= /bin/ln
+LS?= /bin/ls
+MKDIR?= /bin/mkdir -p
+MKTEMP?= /usr/bin/mktemp
+MOUNT?= /sbin/mount
+MOUNT_DEVFS?= ${MOUNT} -t devfs devfs
# XXX: this is a work-around for an obscure bug where
# mount -t nullfs returns zero status on errors within
# a make target
-MOUNT_NULLFS?= /sbin/mount_nullfs
-MV?= /bin/mv
-OBJCOPY?= /usr/bin/objcopy
-OBJDUMP?= /usr/bin/objdump
-PASTE?= /usr/bin/paste
-PAX?= /bin/pax
-PRINTF?= /usr/bin/printf
-PS_CMD?= /bin/ps
-PW?= /usr/sbin/pw
-REALPATH?= /bin/realpath
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-SED?= /usr/bin/sed
-SETENV?= /usr/bin/env
-SH?= /bin/sh
-SORT?= /usr/bin/sort
-STRIP_CMD?= /usr/bin/strip
-STAT?= /usr/bin/stat
+MOUNT_NULLFS?= /sbin/mount_nullfs
+MV?= /bin/mv
+OBJCOPY?= /usr/bin/objcopy
+OBJDUMP?= /usr/bin/objdump
+PASTE?= /usr/bin/paste
+PAX?= /bin/pax
+PRINTF?= /usr/bin/printf
+PS_CMD?= /bin/ps
+PW?= /usr/sbin/pw
+REALPATH?= /bin/realpath
+RM?= /bin/rm
+RMDIR?= /bin/rmdir
+SED?= /usr/bin/sed
+SETENV?= /usr/bin/env -i PATH="${PATH}"
+SH?= /bin/sh
+SORT?= /usr/bin/sort
+STRIP_CMD?= /usr/bin/strip
+STAT?= /usr/bin/stat
# Command to run commands as privileged user
# Example: "/usr/local/bin/sudo -E sh -c" to use "sudo" instead of "su"
-SU_CMD?= /usr/bin/su root -c
-SYSCTL?= /sbin/sysctl
-TAIL?= /usr/bin/tail
-TEST?= test # Shell builtin
-TR?= LANG=C /usr/bin/tr
-TRUE?= true # Shell builtin
-UMOUNT?= /sbin/umount
-UNAME?= /usr/bin/uname
+SU_CMD?= /usr/bin/su root -c
+SYSCTL?= /sbin/sysctl
+TAIL?= /usr/bin/tail
+TEST?= test # Shell builtin
+TR?= LANG=C /usr/bin/tr
+TRUE?= true # Shell builtin
+UMOUNT?= /sbin/umount
+UNAME?= /usr/bin/uname
UNMAKESELF_CMD?= ${LOCALBASE}/bin/unmakeself
-UNZIP_CMD?= ${LOCALBASE}/bin/unzip
+UNZIP_CMD?= ${LOCALBASE}/bin/unzip
UNZIP_NATIVE_CMD?= /usr/bin/unzip
-WHICH?= /usr/bin/which
-XARGS?= /usr/bin/xargs
-XMKMF?= ${LOCALBASE}/bin/xmkmf
-YACC?= /usr/bin/yacc
+WHICH?= /usr/bin/which
+XARGS?= /usr/bin/xargs
+XMKMF?= ${LOCALBASE}/bin/xmkmf
+YACC?= /usr/bin/yacc
-XZ?= -Mmax
-XZCAT= /usr/bin/xzcat ${XZ}
-XZ_CMD?= /usr/bin/xz ${XZ}
+XZ?= -Mmax
+XZCAT= /usr/bin/xzcat ${XZ}
+XZ_CMD?= /usr/bin/xz ${XZ}
-MD5?= /sbin/md5
-SHA256?= /sbin/sha256
+MD5?= /sbin/md5
+SHA256?= /sbin/sha256
# ECHO is defined in /usr/share/mk/sys.mk, which can either be "echo",
# or "true" if the make flag -s is given. Use ECHO_CMD where you mean
# the echo command.
-ECHO_CMD?= echo # Shell builtin
+ECHO_CMD?= echo # Shell builtin
# Used to print all the '===>' style prompts - override this to turn them off.
-ECHO_MSG?= ${ECHO_CMD}
+ECHO_MSG?= ${ECHO_CMD}
.elif !defined(_PKGTOOLSDEFINED)
_PKGTOOLSDEFINED= yes
@@ -129,17 +126,17 @@ PKG_ADD?= ${PKG_BIN} add
PKG_QUERY?= ${PKG_BIN} query
.else
.if exists(${LOCALBASE}/sbin/pkg_info)
-PKG_CMD?= ${LOCALBASE}/sbin/pkg_create
-PKG_ADD?= ${LOCALBASE}/sbin/pkg_add
-PKG_DELETE?= ${LOCALBASE}/sbin/pkg_delete
-PKG_INFO?= ${LOCALBASE}/sbin/pkg_info
-PKG_VERSION?= ${LOCALBASE}/sbin/pkg_version
+PKG_CMD?= ${LOCALBASE}/sbin/pkg_create
+PKG_ADD?= ${LOCALBASE}/sbin/pkg_add
+PKG_DELETE?= ${LOCALBASE}/sbin/pkg_delete
+PKG_INFO?= ${LOCALBASE}/sbin/pkg_info
+PKG_VERSION?= ${LOCALBASE}/sbin/pkg_version
.else
-PKG_CMD?= /usr/sbin/pkg_create
-PKG_ADD?= /usr/sbin/pkg_add
-PKG_DELETE?= /usr/sbin/pkg_delete
-PKG_INFO?= /usr/sbin/pkg_info
-PKG_VERSION?= /usr/sbin/pkg_version
+PKG_CMD?= /usr/sbin/pkg_create
+PKG_ADD?= /usr/sbin/pkg_add
+PKG_DELETE?= /usr/sbin/pkg_delete
+PKG_INFO?= /usr/sbin/pkg_info
+PKG_VERSION?= /usr/sbin/pkg_version
.endif
.endif