aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su/Makefile
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2001-03-27 19:40:51 +0000
committerMark Murray <markm@FreeBSD.org>2001-03-27 19:40:51 +0000
commit5bc9d93db3afcaeaf216735a9bf5a7f1056982fd (patch)
tree15be773ba1d429b1714c62933bd1e03f97a9dcb5 /usr.bin/su/Makefile
parentb2f6bdeeaa582305f8fed21855ac3078856937f2 (diff)
downloadsrc-5bc9d93db3afcaeaf216735a9bf5a7f1056982fd.tar.gz
src-5bc9d93db3afcaeaf216735a9bf5a7f1056982fd.zip
Add full PAM support for account management and sessions.
The PAM_FAIL_CHECK and PAM_END macros in su.c came from the util-linux package's PAM patches to the BSD login.c Submitted by: "David J. MacKenzie" <djm@web.us.uu.net>
Notes
Notes: svn path=/head/; revision=74874
Diffstat (limited to 'usr.bin/su/Makefile')
-rw-r--r--usr.bin/su/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile
index 99b44fbb133f..c20800da330c 100644
--- a/usr.bin/su/Makefile
+++ b/usr.bin/su/Makefile
@@ -4,9 +4,18 @@
PROG= su
SRCS= su.c
-COPTS+= -DLOGIN_CAP -DSKEY
-DPADD= ${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
-LDADD= -lutil -lskey -lmd -lcrypt
+DPADD+= ${LIBUTIL}
+LDADD+= -lutil
+
+.if !defined(NOPAM)
+CFLAGS+= -DUSE_PAM
+DPADD+= ${LIBPAM}
+LDADD+= ${MINUSLPAM}
+.else
+COPTS+= -DSKEY
+DPADD+= ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
+LDADD+= -lskey -lmd -lcrypt
+.endif
.if defined(WHEELSU)
COPTS+= -DWHEELSU