One more: all these symlinks get permissions dependent on the umask
during make build, so set them explicitly to 755.  I don't think there's
enough of them to warrant creating a SYMLINKMODE in bsd.own.mk.

Index: ./bin/chmod/Makefile
===================================================================
RCS file: /var/cvs/src/bin/chmod/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- ./bin/chmod/Makefile        11 Sep 2016 07:06:29 -0000      1.8
+++ ./bin/chmod/Makefile        6 Nov 2016 13:09:15 -0000
@@ -11,10 +11,11 @@ afterinstall:
        (cd ${DESTDIR}/usr/sbin && \
            ln -sf ../../sbin/chown . && \
            ln -sf ../../bin/chgrp . && \
-           chown -h ${BINOWN}:${BINGRP} chown chgrp)
+           chown -h ${BINOWN}:${BINGRP} chown chgrp && \
+           chmod -h 755 chown chgrp)
        (cd ${DESTDIR}/usr/bin && \
            ln -sf ../../bin/chmod chflags && \
-           chown -h ${BINOWN}:${BINGRP} chflags)
-
+           chown -h ${BINOWN}:${BINGRP} chflags && \
+           chmod -h 755 chflags)
 
 .include <bsd.prog.mk>
Index: ./sbin/sysctl/Makefile
===================================================================
RCS file: /var/cvs/src/sbin/sysctl/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- ./sbin/sysctl/Makefile      11 Sep 2016 07:06:29 -0000      1.12
+++ ./sbin/sysctl/Makefile      6 Nov 2016 13:10:01 -0000
@@ -8,5 +8,6 @@ CPPFLAGS+=      -D_LIBKVM
 afterinstall:
        ln -sf ../../sbin/sysctl ${DESTDIR}/usr/sbin
        chown -h ${BINOWN}:${BINGRP} ${DESTDIR}/usr/sbin/sysctl
+       chmod -h 755 ${DESTDIR}/usr/sbin/sysctl
 
 .include <bsd.prog.mk>
Index: ./share/termtypes/Makefile
===================================================================
RCS file: /var/cvs/src/share/termtypes/Makefile,v
retrieving revision 1.25
diff -u -p -r1.25 Makefile
--- ./share/termtypes/Makefile  25 Sep 2016 17:43:11 -0000      1.25
+++ ./share/termtypes/Makefile  6 Nov 2016 13:10:31 -0000
@@ -22,6 +22,7 @@ realinstall:
             ${DESTDIR}${BINDIR}/misc/termcap
        ln -fs ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
        chown -h root:wheel ${DESTDIR}/etc/termcap
+       chmod -h 755 ${DESTDIR}/etc/termcap
 
 clean:
        rm -f termcap
Index: ./usr.sbin/mailwrapper/Makefile
===================================================================
RCS file: /var/cvs/src/usr.sbin/mailwrapper/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- ./usr.sbin/mailwrapper/Makefile     11 Sep 2016 07:06:30 -0000      1.6
+++ ./usr.sbin/mailwrapper/Makefile     6 Nov 2016 13:11:16 -0000
@@ -17,5 +17,9 @@ afterinstall:
            ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq \
            ${DESTDIR}/usr/sbin/makemap ${DESTDIR}/usr/bin/hoststat \
            ${DESTDIR}/usr/bin/purgestat
+       chmod -h 755 ${DESTDIR}/usr/sbin/sendmail \
+           ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq \
+           ${DESTDIR}/usr/sbin/makemap ${DESTDIR}/usr/bin/hoststat \
+           ${DESTDIR}/usr/bin/purgestat
 
 .include <bsd.prog.mk>

Reply via email to