Set permissions of mandoc.db and xetcsum explicitly, so they don't

depend on the umask.

push forward deraadt; no objections matthieu
This commit is contained in:
tb 2016-11-19 08:56:27 +00:00
parent 750df2fcc6
commit 07352edf5d

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.75 2016/10/14 10:14:00 natano Exp $ # $OpenBSD: Makefile,v 1.76 2016/11/19 08:56:27 tb Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include <bsd.xconf.mk> .include <bsd.xconf.mk>
@ -57,11 +57,13 @@ afterinstall afterbuild:
exec ${MAKE} fix-appd exec ${MAKE} fix-appd
/usr/sbin/makewhatis -Qv ${DESTDIR}/usr/X11R6/man /usr/sbin/makewhatis -Qv ${DESTDIR}/usr/X11R6/man
chown root:wheel ${DESTDIR}/usr/X11R6/man/mandoc.db chown root:wheel ${DESTDIR}/usr/X11R6/man/mandoc.db
chmod 644 ${DESTDIR}/usr/X11R6/man/mandoc.db
touch ${DESTDIR}/var/sysmerge/xetcsum touch ${DESTDIR}/var/sysmerge/xetcsum
cd ${DESTDIR}/ && \ cd ${DESTDIR}/ && \
sort ${.CURDIR}/distrib/sets/lists/xetc/{mi,md.${MACHINE}} | \ sort ${.CURDIR}/distrib/sets/lists/xetc/{mi,md.${MACHINE}} | \
xargs sha256 -h ${DESTDIR}/var/sysmerge/xetcsum || true xargs sha256 -h ${DESTDIR}/var/sysmerge/xetcsum || true
chown root:wheel ${DESTDIR}/var/sysmerge/xetcsum chown root:wheel ${DESTDIR}/var/sysmerge/xetcsum
chmod 644 ${DESTDIR}/var/sysmerge/xetcsum
cd distrib/sets && exec ${MAKE} cd distrib/sets && exec ${MAKE}
install-mk: install-mk: