1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/x11/wrapper/pkg-install
Trevor Johnson 25c66e3af2 Add x.org support.
Submitted by:	Davide D'Amico
2005-03-15 06:12:06 +00:00

12 lines
368 B
Bash

#!/bin/sh
if [ "X$2" != "XPOST-INSTALL" ]; then
exit 0
fi
[ -e ${PKG_PREFIX}/bin/X ] && mv ${PKG_PREFIX}/bin/X ${PKG_PREFIX}/bin/X.bck
ln -sf ${PKG_PREFIX}/bin/Xwrapper ${PKG_PREFIX}/bin/X
[ -x ${PKG_PREFIX}/bin/XFree86 ] && chmod -s ${PKG_PREFIX}/bin/XFree86
[ -x ${PKG_PREFIX}/bin/Xorg ] && chmod -s ${PKG_PREFIX}/bin/Xorg
chmod u+s ${PKG_PREFIX}/bin/Xwrapper