svn commit: r278669 - head/usr.bin/passwd

Baptiste Daroussin bapt at FreeBSD.org
Fri Feb 13 09:02:16 UTC 2015


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>


More information about the svn-src-head mailing list