2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.44 2013/02/13 23:19:14 christos Exp $
|
2011-09-30 12:18:10 +02:00
|
|
|
# from: @(#)Makefile 8.3 (Berkeley) 4/2/94
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
USE_FORT?= yes # setuid
|
|
|
|
PROG= passwd
|
|
|
|
SRCS= local_passwd.c passwd.c
|
|
|
|
MAN= passwd.1
|
|
|
|
|
2012-11-01 22:55:12 +01:00
|
|
|
# LSC No LOGIN_CAP on Minix?
|
2011-09-30 12:18:10 +02:00
|
|
|
CPPFLAGS+=-I${.CURDIR} #-DLOGIN_CAP
|
|
|
|
|
|
|
|
.if (${USE_YP} != "no")
|
|
|
|
SRCS+= yp_passwd.c
|
|
|
|
CPPFLAGS+=-DYP
|
|
|
|
DPADD+= ${LIBRPCSVC}
|
|
|
|
LDADD+= -lrpcsvc
|
|
|
|
LINKS+= ${BINDIR}/passwd ${BINDIR}/yppasswd
|
|
|
|
MAN+= yppasswd.1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DPADD+= ${LIBCRYPT} ${LIBUTIL}
|
|
|
|
LDADD+= -lcrypt -lutil
|
|
|
|
|
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
|
|
|
|
|
|
|
.if (${USE_KERBEROS} != "no")
|
2012-10-26 15:22:39 +02:00
|
|
|
CPPFLAGS+= -DKERBEROS5
|
2011-09-30 12:18:10 +02:00
|
|
|
SRCS+= krb5_passwd.c
|
|
|
|
|
|
|
|
DPADD+= ${LIBKRB5} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} ${LIBCRYPT}
|
|
|
|
LDADD+= -lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lcrypt
|
2013-12-06 12:04:52 +01:00
|
|
|
.ifdef OVERRIDE_HEIMDAL_KPASSWD
|
2011-09-30 12:18:10 +02:00
|
|
|
LINKS+= ${BINDIR}/passwd ${BINDIR}/kpasswd
|
|
|
|
MAN+= kpasswd.1
|
|
|
|
.endif
|
2013-12-06 12:04:52 +01:00
|
|
|
.endif
|
2011-09-30 12:18:10 +02:00
|
|
|
|
|
|
|
.if (${USE_PAM} != "no")
|
|
|
|
CPPFLAGS+=-DUSE_PAM
|
|
|
|
SRCS+= pam_passwd.c
|
|
|
|
LDADD+=-lpam ${PAM_STATIC_LDADD}
|
|
|
|
DPADD+=${LIBPAM} ${PAM_STATIC_DPADD}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|