summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/chpass/Makefile6
-rw-r--r--usr.bin/passwd/Makefile8
2 files changed, 9 insertions, 5 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile
index 45d2767..cef2d57 100644
--- a/usr.bin/chpass/Makefile
+++ b/usr.bin/chpass/Makefile
@@ -52,8 +52,10 @@ yppasswd_private_xdr.c: ${RPCSRC_PRIV} yppasswd_private.h
${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV}
beforeinstall:
- [ ! -e ${DESTDIR}${BINDIR}/chpass ] || \
- chflags noschg ${DESTDIR}${BINDIR}/chpass
+.for i in chpass chfn chsh ypchpass ypchfn ypchsh
+ [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
+ chflags noschg ${DESTDIR}${BINDIR}/$i
+.endfor
afterinstall:
chflags schg ${DESTDIR}${BINDIR}/chpass
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile
index a9fc4cf..49c303c 100644
--- a/usr.bin/passwd/Makefile
+++ b/usr.bin/passwd/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
-# $Id$
+# $Id: Makefile,v 1.23 1997/02/22 19:56:34 peter Exp $
PROG= passwd
SRCS= local_passwd.c yppasswd_private_xdr.c yppasswd_comm.c yp_passwd.c \
@@ -68,8 +68,10 @@ DISTRIBUTION= krb
.endif
beforeinstall:
- [ ! -e ${DESTDIR}${BINDIR}/passwd ] || \
- chflags noschg ${DESTDIR}${BINDIR}/passwd
+.for i in passwd yppasswd
+ [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
+ chflags noschg ${DESTDIR}${BINDIR}/$i
+.endfor
afterinstall:
chflags schg ${DESTDIR}${BINDIR}/passwd
OpenPOWER on IntegriCloud