diff --git a/usr.bin/lock/Makefile b/usr.bin/lock/Makefile index 6b79f88bd7a1..e7c4776aed1c 100644 --- a/usr.bin/lock/Makefile +++ b/usr.bin/lock/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2008/03/30 15:30:15 lukem Exp $ +# $NetBSD: Makefile,v 1.14 2008/04/06 09:54:37 lukem Exp $ # @(#)Makefile 8.1 (Berkeley) 6/6/93 .include @@ -14,12 +14,12 @@ BINMODE=4555 CPPFLAGS+=-DUSE_PAM DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} LDADD+= -lpam ${PAM_STATIC_LDADD} -.endif - +.else # USE_PAM == no .if (${USE_SKEY} != "no") CPPFLAGS+=-DSKEY DPADD+= ${LIBSKEY} LDADD+= -lskey .endif +.endif # USE_PAM == no .include diff --git a/usr.bin/login/Makefile b/usr.bin/login/Makefile index 7df0b99427a0..51187d94b69e 100644 --- a/usr.bin/login/Makefile +++ b/usr.bin/login/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.47 2007/05/28 12:06:28 tls Exp $ +# $NetBSD: Makefile,v 1.48 2008/04/06 09:54:37 lukem Exp $ # @(#)Makefile 8.1 (Berkeley) 7/19/93 .include @@ -16,7 +16,7 @@ BINMODE=4555 SRCS+= login_pam.c LDADD+= -lpam ${PAM_STATIC_LDADD} DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} -.else +.else # USE_PAM == no SRCS+= login.c CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX @@ -35,7 +35,7 @@ CPPFLAGS+=-DSKEY DPADD+= ${LIBSKEY} LDADD+= -lskey .endif -.endif +.endif # USE_PAM == no CLEANFILES+= copyrightstr.c diff --git a/usr.bin/ssh/Makefile.inc b/usr.bin/ssh/Makefile.inc index 23e65eb746bf..60d4f85cb869 100644 --- a/usr.bin/ssh/Makefile.inc +++ b/usr.bin/ssh/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.15 2007/05/28 12:06:31 tls Exp $ +# $NetBSD: Makefile.inc,v 1.16 2008/04/06 09:54:37 lukem Exp $ .include @@ -14,22 +14,20 @@ DPADD+= ${LIBSSH} ${LIBCRYPTO} ${LIBCRYPT} ${LIBZ} .if (${USE_PAM} != "no") CPPFLAGS+=-DUSE_PAM +.else # USE_PAM == no +.if (${USE_SKEY} != "no") +CPPFLAGS+=-DSKEY .endif +.endif # USE_PAM == no .if (${USE_KERBEROS} != "no") - CPPFLAGS+=-DGSSAPI -I${DESTDIR}/usr/include/gssapi CPPFLAGS+=-DKRB5 -I${DESTDIR}/usr/include/krb5 -DHEIMDAL - .endif CPPFLAGS+=-DSUPPORT_UTMP -DSUPPORT_UTMPX CPPFLAGS+=-DLIBWRAP -.if (${USE_SKEY} != "no") -CPPFLAGS+=-DSKEY -.endif - .if exists(${.CURDIR}/../../Makefile.inc) .include "${.CURDIR}/../../Makefile.inc" .endif diff --git a/usr.bin/ssh/sshd/Makefile b/usr.bin/ssh/sshd/Makefile index 40d17b859d53..e65ea766d117 100644 --- a/usr.bin/ssh/sshd/Makefile +++ b/usr.bin/ssh/sshd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2006/03/20 04:03:23 christos Exp $ +# $NetBSD: Makefile,v 1.29 2008/04/06 09:54:37 lukem Exp $ .include @@ -26,8 +26,15 @@ LDADD+= -lrpcsvc DPADD+= ${LIBRPCSVC} .endif +.else # USE_PAM == no + +.if (${USE_SKEY} != "no") +LDADD+= -lskey +DPADD+= ${LIBSKEY} .endif +.endif # USE_PAM == no + .if (${USE_KERBEROS} != "no") SRCS += gss-genr.c auth2-gss.c gss-serv.c gss-serv-krb5.c @@ -52,8 +59,3 @@ DPADD+= ${LIBCRYPT} ${LIBUTIL} LDADD+= -lwrap DPADD+= ${LIBWRAP} - -.if (${USE_SKEY} != "no") -LDADD+= -lskey -DPADD+= ${LIBSKEY} -.endif diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile index e46ae71fc098..81c3c866f8f7 100644 --- a/usr.bin/su/Makefile +++ b/usr.bin/su/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.48 2007/10/27 15:37:45 christos Exp $ +# $NetBSD: Makefile,v 1.49 2008/04/06 09:54:37 lukem Exp $ # from: @(#)Makefile 8.1 (Berkeley) 7/19/93 .include @@ -23,7 +23,7 @@ DPADD+= ${LIBPAM} ${LIBCRYPT} ${LIBUTIL} ${PAM_STATIC_DPADD} LDADD+= -lpam -lcrypt -lutil ${PAM_STATIC_LDADD} SRCS=su_pam.c grutil.c suutil.c -.else +.else # USE_PAM == no SRCS=su.c grutil.c suutil.c @@ -63,6 +63,6 @@ LDADD+= -lskey CPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\" .endif -.endif +.endif # USE_PAM == no .include