Build custom getpwent.o only if USE_YP==no. Otherwise, chpass will not

get the current passwd entry from NIS. Problem reported by Stephen M. Jone
on tech-net.
This commit is contained in:
bouyer 2003-04-05 20:32:26 +00:00
parent acab734a9e
commit 726dca87dc
1 changed files with 4 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile,v 1.12 2002/09/18 14:00:35 lukem Exp $
# $NetBSD: Makefile,v 1.13 2003/04/05 20:32:26 bouyer Exp $
# @(#)Makefile 8.2 (Berkeley) 4/2/94
.include <bsd.own.mk>
PROG= chpass
SRCS= chpass.c edit.c field.c table.c util.c getpwent.c
SRCS= chpass.c edit.c field.c table.c util.c
BINOWN= root
BINMODE=4555
.PATH: ${NETBSDSRCDIR}/lib/libc/gen
@ -18,6 +18,8 @@ SRCS+= pw_yp.c
CPPFLAGS+=-DYP
DPADD+= ${LIBRPCSVC}
LDADD+= -lrpcsvc
.else
SRCS+= getpwent.c
.endif
DPADD+= ${LIBUTIL}