aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/id/Makefile
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-09-23 12:30:31 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-09-23 12:30:31 +0000
commit5bae3124ab6e48e3991b4d914d0b3ab438905903 (patch)
tree78f27e65805d0dc6de2cda4ecdb967ebc9ec36a7 /usr.bin/id/Makefile
parent4af4fcb71aa6b8c448f38a73199c5cf79ad2fabe (diff)
downloadsrc-5bae3124ab6e48e3991b4d914d0b3ab438905903.tar.gz
src-5bae3124ab6e48e3991b4d914d0b3ab438905903.zip
Add a -a argument to id(1), which causes id(1) to print out process
audit properties, including the audit user id. This can be quite helpful in debugging audit problems. Obtained from: TrustedBSD Project MFC after: 3 days
Notes
Notes: svn path=/head/; revision=162571
Diffstat (limited to 'usr.bin/id/Makefile')
-rw-r--r--usr.bin/id/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/id/Makefile b/usr.bin/id/Makefile
index 715456839582..96c162f7565a 100644
--- a/usr.bin/id/Makefile
+++ b/usr.bin/id/Makefile
@@ -1,10 +1,18 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= id
WARNS?= 6
LINKS= ${BINDIR}/id ${BINDIR}/groups
LINKS+= ${BINDIR}/id ${BINDIR}/whoami
MAN= id.1 groups.1 whoami.1
+.if ${MK_AUDIT} != "no"
+CFLAGS+= -DUSE_BSM_AUDIT
+DPADD+= ${LIBBSM}
+LDADD+= -lbsm
+.endif
+
.include <bsd.prog.mk>