Revert r278642
install(1) does not handle chflags on hardlinks
This commit is contained in:
parent
e707eb9bc2
commit
5c5b28d0d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278669
@ -7,10 +7,20 @@ PROG = passwd
|
|||||||
BINOWN = root
|
BINOWN = root
|
||||||
BINMODE = 4555
|
BINMODE = 4555
|
||||||
LIBADD = pam
|
LIBADD = pam
|
||||||
PRECIOUSPROG=
|
|
||||||
.if ${MK_NIS} != "no"
|
.if ${MK_NIS} != "no"
|
||||||
LINKS = ${BINDIR}/passwd ${BINDIR}/yppasswd
|
LINKS = ${BINDIR}/passwd ${BINDIR}/yppasswd
|
||||||
MLINKS = passwd.1 yppasswd.1
|
MLINKS = passwd.1 yppasswd.1
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
beforeinstall:
|
||||||
|
.for i in passwd yppasswd
|
||||||
|
[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
|
||||||
|
chflags noschg ${DESTDIR}${BINDIR}/$i || true
|
||||||
|
.endfor
|
||||||
|
|
||||||
|
.if !defined(NO_FSCHG)
|
||||||
|
afterinstall:
|
||||||
|
-chflags schg ${DESTDIR}${BINDIR}/passwd
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user