Set permissions of xorg.db and xetc.tgz 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:36:48 +00:00
parent a76f791a27
commit 014a2c67d0

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2016/10/02 09:16:22 tb Exp $ # $OpenBSD: Makefile,v 1.6 2016/11/19 08:36:48 tb Exp $
DB = /usr/X11R6/lib/locate/xorg.db DB = /usr/X11R6/lib/locate/xorg.db
XETC = ${DESTDIR}/var/sysmerge/xetc.tgz XETC = ${DESTDIR}/var/sysmerge/xetc.tgz
@ -8,10 +8,12 @@ all: tarxetc makedb
makedb: makedb:
MACHINE=${MACHINE} /bin/sh ${.CURDIR}/makelocatedb ${OSrev} >${DESTDIR}${DB} MACHINE=${MACHINE} /bin/sh ${.CURDIR}/makelocatedb ${OSrev} >${DESTDIR}${DB}
chown ${BINOWN}:${BINGRP} ${DESTDIR}${DB} chown ${BINOWN}:${BINGRP} ${DESTDIR}${DB}
chmod 644 ${DESTDIR}${DB}
tarxetc: tarxetc:
MACHINE=${MACHINE} /bin/sh ${.CURDIR}/makexetc MACHINE=${MACHINE} /bin/sh ${.CURDIR}/makexetc
chown root:wheel ${XETC} chown root:wheel ${XETC}
chmod 644 ${XETC}
.PHONY: makedb tarxetc .PHONY: makedb tarxetc