Author: bapt
Date: Fri Feb 13 09:02:15 2015
New Revision: 278669
URL: https://svnweb.freebsd.org/changeset/base/278669

Log:
  Revert r278642
  
  install(1) does not handle chflags on hardlinks

Modified:
  head/usr.bin/passwd/Makefile

Modified: head/usr.bin/passwd/Makefile
==============================================================================
--- head/usr.bin/passwd/Makefile        Fri Feb 13 08:42:01 2015        
(r278668)
+++ head/usr.bin/passwd/Makefile        Fri Feb 13 09:02:15 2015        
(r278669)
@@ -7,10 +7,20 @@ PROG   = passwd
 BINOWN  = root
 BINMODE         = 4555
 LIBADD   = pam
-PRECIOUSPROG=
 .if ${MK_NIS} != "no"
 LINKS   = ${BINDIR}/passwd ${BINDIR}/yppasswd
 MLINKS  = passwd.1 yppasswd.1
 .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>
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to