aboutsummaryrefslogtreecommitdiff
path: root/x11/wrapper/pkg-deinstall
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-09-06 19:20:40 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-09-06 19:20:40 +0000
commite7f43038ad88c67a41ad09f9160a5d68bd3b7924 (patch)
tree744a77fcb77c9646bac9adc44b9779cc5cdafa97 /x11/wrapper/pkg-deinstall
parent6a4566b7ae35241450be32bcac122c819ffd3b28 (diff)
downloadports-e7f43038ad88c67a41ad09f9160a5d68bd3b7924.tar.gz
ports-e7f43038ad88c67a41ad09f9160a5d68bd3b7924.zip
Notes
Diffstat (limited to 'x11/wrapper/pkg-deinstall')
-rw-r--r--x11/wrapper/pkg-deinstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11/wrapper/pkg-deinstall b/x11/wrapper/pkg-deinstall
index 7b96fa96538b..6108b7064d70 100644
--- a/x11/wrapper/pkg-deinstall
+++ b/x11/wrapper/pkg-deinstall
@@ -1,4 +1,16 @@
#!/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