]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - chpass/Makefile
Remove bogus ${DESTDIR}s from LINKS.
[pw-darwin.git] / chpass / Makefile
index b68ad108919dba33e7119f08ef2ea2c679346834..a1e2947522509711dd047851250f282038396cd0 100644 (file)
@@ -6,10 +6,22 @@ BINOWN=       root
 BINMODE=4555
 .PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw
 CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw
-LINKS= ${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh
+LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
+LINKS+=        ${BINDIR}/chpass ${BINDIR}/chsh
+LINKS+=        ${BINDIR}/chpass ${BINDIR}/ypchpass
+LINKS+=        ${BINDIR}/chpass ${BINDIR}/ypchfn
+LINKS+=        ${BINDIR}/chpass ${BINDIR}/ypchsh
 MLINKS=        chpass.1 chfn.1 chpass.1 chsh.1
+COPTS+=        -DYP
+SRCS+= pw_yp.c
+DPADD= ${LIBRPCSVC} ${LIBCRYPT}
+LDADD+=        -lrpcsvc -lcrypt
+
+beforeinstall:
+       [ ! -e ${DESTDIR}${BINDIR}/chpass ] || \
+               chflags noschg ${DESTDIR}${BINDIR}/chpass
 
 afterinstall:
-       chflags schg /usr/bin/chpass
+       chflags schg ${DESTDIR}${BINDIR}/chpass
 
 .include <bsd.prog.mk>