mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
e7f43038ad
PR: ports/85024 Submitted by: Marcus Grando <marcus@corp.grupos.com.br> Approved by: maintainer timeout (20 days)
17 lines
492 B
Bash
17 lines
492 B
Bash
#!/bin/sh
|
|
if [ -e ${PKG_PREFIX}/bin/X.bck ]; then
|
|
mv ${PKG_PREFIX}/bin/X.bck ${PKG_PREFIX}/bin/X
|
|
else
|
|
if [ -x ${PKG_PREFIX}/bin/XFree86 ]; then
|
|
ln -sf ${PKG_PREFIX}/bin/XFree86 ${PKG_PREFIX}/bin/X
|
|
exit 0
|
|
elif [ -x ${PKG_PREFIX}/bin/Xorg ]; then
|
|
ln -sf ${PKG_PREFIX}/bin/Xorg ${PKG_PREFIX}/bin/X
|
|
exit 0
|
|
else
|
|
rm -f ${PKG_PREFIX}/bin/X
|
|
fi
|
|
fi
|
|
[ -x ${PKG_PREFIX}/bin/XFree86 ] && chmod u+s ${PKG_PREFIX}/bin/XFree86
|
|
[ -x ${PKG_PREFIX}/bin/Xorg ] && chmod u+s ${PKG_PREFIX}/bin/Xorg
|