locate db in X, named xorg.db to please matthieu

This commit is contained in:
espie 2014-07-10 07:13:13 +00:00
parent e0538a9554
commit 8c72b1da5a
3 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.57 2014/04/18 10:02:45 schwarze Exp $
# $OpenBSD: Makefile,v 1.58 2014/07/10 07:13:13 espie Exp $
.include <bsd.own.mk>
.include <bsd.xconf.mk>
@ -53,6 +53,7 @@ beforeinstall beforebuild:
afterinstall afterbuild:
exec ${MAKE} fix-appd
/usr/sbin/makewhatis -Qv ${DESTDIR}/usr/X11R6/man
cd distrib/sets && exec ${MAKE}
install-mk:
cd share/mk && exec ${MAKE} X11BASE=${X11BASE} install

8
distrib/sets/Makefile Normal file
View File

@ -0,0 +1,8 @@
# $OpenBSD: Makefile,v 1.1 2014/07/10 07:13:13 espie Exp $
DB = /usr/X11R6/lib/locate/xorg.db
makedb:
MACHINE=${MACHINE} /bin/sh ${.CURDIR}/makelocatedb ${OSrev} >${DESTDIR}${DB}
.PHONY: makedb

20
distrib/sets/makelocatedb Normal file
View File

@ -0,0 +1,20 @@
#!/bin/sh
# $OpenBSD: makelocatedb,v 1.1 2014/07/10 07:13:13 espie Exp $
# xy
RELEASE=$1
if [ "X${RELEASE}" = "X" ]; then
echo "Usage: `basename $0` <OSREVISION>"
exit 1
fi
pwd=`pwd`
listsdir=`pwd`/lists
lists=`sh ./genlists $arch`
for setname in $lists; do
(cd $pwd; sh gensetlist $setname) | \
sed -e "s,^\.,${setname}${RELEASE}:,"
done | sort | /usr/libexec/locate.mklocatedb