73d8c4238e
Fix non-root S/key support with USE_SKEY!=no (which is exclusive to USE_PAM!=no); discovered whilst testing the "old" behaviour.
26 lines
451 B
Makefile
26 lines
451 B
Makefile
# $NetBSD: Makefile,v 1.13 2008/03/30 15:30:15 lukem Exp $
|
|
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
USE_FORT?= yes # setuid
|
|
PROG= lock
|
|
DPADD+= ${LIBCRYPT}
|
|
LDADD+= -lcrypt
|
|
BINOWN= root
|
|
BINMODE=4555
|
|
|
|
.if (${USE_PAM} != "no")
|
|
CPPFLAGS+=-DUSE_PAM
|
|
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
|
|
LDADD+= -lpam ${PAM_STATIC_LDADD}
|
|
.endif
|
|
|
|
.if (${USE_SKEY} != "no")
|
|
CPPFLAGS+=-DSKEY
|
|
DPADD+= ${LIBSKEY}
|
|
LDADD+= -lskey
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|