2012-05-23 08:17:49 +00:00
|
|
|
#-*- tab-width: 4; -*-
|
2007-08-04 11:37:24 +00:00
|
|
|
# ex:ts=4
|
|
|
|
#
|
|
|
|
# bsd.commands.mk - Common commands used within the ports infrastructure
|
|
|
|
#
|
|
|
|
# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# DO NOT COMMIT CHANGES TO THIS FILE BY YOURSELF, EVEN IF YOU DID NOT GET
|
|
|
|
# A RESPONSE FROM THE MAINTAINER(S) WITHIN A REASONABLE TIMEFRAME! ALL
|
|
|
|
# UNAUTHORISED CHANGES WILL BE UNCONDITIONALLY REVERTED!
|
|
|
|
#
|
|
|
|
|
|
|
|
COMMANDS_Include_MAINTAINER= portmgr@FreeBSD.org
|
|
|
|
|
|
|
|
.if !defined(_COMMANDSMKINCLUDED)
|
|
|
|
|
|
|
|
_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
|
|
|
|
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
|
2009-08-03 15:36:58 +00:00
|
|
|
FLEX?= /usr/bin/flex
|
2007-08-04 11:37:24 +00:00
|
|
|
FMT?= /usr/bin/fmt
|
2008-04-14 16:46:41 +00:00
|
|
|
GMAKE?= gmake
|
2007-08-04 11:37:24 +00:00
|
|
|
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
|
|
|
|
LDCONFIG?= /sbin/ldconfig
|
|
|
|
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
|
2008-04-14 16:46:41 +00:00
|
|
|
PW?= /usr/sbin/pw
|
2007-08-04 11:37:24 +00:00
|
|
|
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
|
2010-11-08 04:47:44 +00:00
|
|
|
# Command to run commands as privileged user
|
2011-12-23 16:19:31 +00:00
|
|
|
# Example: "/usr/local/bin/sudo -E sh -c" to use "sudo" instead of "su"
|
2007-08-04 11:37:24 +00:00
|
|
|
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
|
2008-03-11 23:31:29 +00:00
|
|
|
UNMAKESELF_CMD?= ${LOCALBASE}/bin/unmakeself
|
2007-08-04 11:37:24 +00:00
|
|
|
UNZIP_CMD?= ${LOCALBASE}/bin/unzip
|
|
|
|
WHICH?= /usr/bin/which
|
|
|
|
XARGS?= /usr/bin/xargs
|
2008-04-14 16:46:41 +00:00
|
|
|
XMKMF?= ${LOCALBASE}/bin/xmkmf -a
|
2007-08-04 11:37:24 +00:00
|
|
|
YACC?= /usr/bin/yacc
|
|
|
|
|
2010-08-20 12:15:02 +00:00
|
|
|
XZ?= -Mmax
|
2010-06-04 08:09:20 +00:00
|
|
|
.if exists(/usr/bin/xz)
|
2010-08-20 12:15:02 +00:00
|
|
|
XZ_CMD?= /usr/bin/xz ${XZ}
|
2010-06-04 08:09:20 +00:00
|
|
|
.else
|
2010-08-20 12:15:02 +00:00
|
|
|
XZ_CMD?= ${LOCALBASE}/bin/xz ${XZ}
|
2010-06-04 08:09:20 +00:00
|
|
|
.endif
|
|
|
|
|
2008-04-14 16:46:41 +00:00
|
|
|
MD5?= /sbin/md5
|
|
|
|
SHA256?= /sbin/sha256
|
|
|
|
|
2007-08-04 11:37:24 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
# Used to print all the '===>' style prompts - override this to turn them off.
|
|
|
|
ECHO_MSG?= ${ECHO_CMD}
|
|
|
|
|
2012-02-22 17:34:47 +00:00
|
|
|
.if defined(WITH_PKGNG)
|
|
|
|
PKG_BIN?= ${LOCALBASE}/sbin/pkg
|
|
|
|
PKG_CMD?= ${PKG_BIN} register
|
|
|
|
PKG_DELETE?= ${PKG_BIN} delete -y
|
|
|
|
PKG_INFO?= ${PKG_BIN} info -g
|
|
|
|
PKG_VERSION?= ${PKG_BIN} version
|
|
|
|
PKG_CREATE?= ${PKG_BIN} create
|
|
|
|
PKG_ADD?= ${PKG_BIN} add
|
|
|
|
PKG_QUERY?= ${PKG_BIN} query
|
|
|
|
.else
|
2009-08-03 15:36:58 +00:00
|
|
|
.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
|
|
|
|
.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
|
|
|
|
.endif
|
2012-02-22 17:34:47 +00:00
|
|
|
.endif
|
2009-08-03 15:36:58 +00:00
|
|
|
|
2007-08-04 11:37:24 +00:00
|
|
|
.endif
|