2006-07-13 22:18:09 +04:00
|
|
|
# $NetBSD: Makefile,v 1.45 2006/07/13 18:18:09 christos Exp $
|
1997-01-09 14:43:05 +03:00
|
|
|
# from: @(#)Makefile 8.1 (Berkeley) 7/19/93
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2000-06-23 10:01:10 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= su
|
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
2005-01-10 06:11:50 +03:00
|
|
|
|
2005-12-15 17:03:34 +03:00
|
|
|
CPPFLAGS+=-DLOGIN_CAP
|
|
|
|
|
2005-01-13 03:13:33 +03:00
|
|
|
.if ${USE_PAM} != "no"
|
2005-01-10 06:11:50 +03:00
|
|
|
|
2006-07-13 22:18:09 +04:00
|
|
|
CPPFLAGS+=-DUSE_PAM
|
2005-01-10 06:11:50 +03:00
|
|
|
# XXX: Need libcrypt here, because libcrypto defines it too.
|
2005-03-04 23:41:08 +03:00
|
|
|
DPADD+= ${LIBPAM} ${LIBCRYPT} ${LIBUTIL} ${PAM_STATIC_DPADD}
|
|
|
|
LDADD+= -lpam -lcrypt -lutil ${PAM_STATIC_LDADD}
|
2005-01-10 06:11:50 +03:00
|
|
|
SRCS=su_pam.c
|
|
|
|
|
|
|
|
.else
|
|
|
|
|
|
|
|
SRCS=su.c
|
|
|
|
|
|
|
|
DPADD+= ${LIBCRYPT} ${LIBUTIL}
|
|
|
|
LDADD+= -lcrypt -lutil
|
1996-10-13 03:54:38 +04:00
|
|
|
|
1997-07-02 09:42:11 +04:00
|
|
|
# Uncomment the following line to change the group that may su root to "sugroup"
|
|
|
|
#
|
2003-08-20 18:11:17 +04:00
|
|
|
#CPPFLAGS+=-DSU_GROUP=\"sugroup\"
|
1997-07-02 09:42:11 +04:00
|
|
|
|
2001-01-11 03:54:57 +03:00
|
|
|
# Uncomment the following line to make su
|
|
|
|
# treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect
|
2001-01-11 00:33:13 +03:00
|
|
|
# list of groups.
|
2001-01-11 03:54:57 +03:00
|
|
|
#CPPFLAGS+=-DSU_INDIRECT_GROUP
|
2001-01-11 00:33:13 +03:00
|
|
|
|
2003-12-11 12:46:26 +03:00
|
|
|
.if (${USE_KERBEROS} != "no")
|
2000-06-20 10:00:24 +04:00
|
|
|
.ifdef AFS
|
|
|
|
DPADD+= ${LIBKAFS}
|
|
|
|
LDADD+= -lkafs
|
1999-07-13 02:11:37 +04:00
|
|
|
.endif
|
|
|
|
|
2000-07-10 06:09:15 +04:00
|
|
|
CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
|
2002-10-23 05:25:35 +04:00
|
|
|
DPADD+= ${LIBKRB5} ${LIBASN1}
|
2000-07-24 02:23:14 +04:00
|
|
|
LDADD+= -lkrb5 -lasn1
|
2000-07-10 06:09:15 +04:00
|
|
|
|
2002-10-23 05:25:35 +04:00
|
|
|
DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
|
2000-08-04 02:56:29 +04:00
|
|
|
LDADD+= -lcrypto -lroken -lcom_err
|
2000-06-23 10:01:10 +04:00
|
|
|
.endif
|
2000-06-20 10:00:24 +04:00
|
|
|
|
1996-10-13 03:54:38 +04:00
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${USE_SKEY} != "no")
|
1997-10-12 16:54:20 +04:00
|
|
|
CPPFLAGS+=-DSKEY
|
|
|
|
DPADD+= ${LIBSKEY}
|
|
|
|
LDADD+= -lskey
|
1996-10-13 03:54:38 +04:00
|
|
|
.endif
|
1999-07-12 03:41:10 +04:00
|
|
|
|
2003-08-20 18:11:17 +04:00
|
|
|
.ifdef SU_ROOTAUTH
|
|
|
|
CPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\"
|
1999-07-12 03:41:10 +04:00
|
|
|
.endif
|
2005-01-08 01:34:20 +03:00
|
|
|
|
|
|
|
.endif
|
2005-01-10 06:11:50 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|