diff options
author | trevor <trevor@FreeBSD.org> | 2002-03-11 21:04:28 +0800 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2002-03-11 21:04:28 +0800 |
commit | 66e0519f27145a01678b2b2dbc5252051b4fcd27 (patch) | |
tree | 5942a58d245c70145736134fb585f5e85b915317 /x11/wrapper/pkg-install | |
parent | b3e566646a83622bcf1a5678d497ad34b6470a95 (diff) | |
download | freebsd-ports-gnome-66e0519f27145a01678b2b2dbc5252051b4fcd27.tar.gz freebsd-ports-gnome-66e0519f27145a01678b2b2dbc5252051b4fcd27.tar.zst freebsd-ports-gnome-66e0519f27145a01678b2b2dbc5252051b4fcd27.zip |
Add precautions so this won't damage an installation of XFree86 3.X.
Diffstat (limited to 'x11/wrapper/pkg-install')
-rw-r--r-- | x11/wrapper/pkg-install | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/x11/wrapper/pkg-install b/x11/wrapper/pkg-install index 3bbe62675378..a31ebc58082c 100644 --- a/x11/wrapper/pkg-install +++ b/x11/wrapper/pkg-install @@ -4,6 +4,7 @@ if [ "X$2" != "XPOST-INSTALL" ]; then exit 0 fi -/bin/ln -sf ${PKG_PREFIX}/bin/Xwrapper ${PKG_PREFIX}/bin/X -[ -x ${PKG_PREFIX}/bin/XFree86 ] && /bin/chmod -s ${PKG_PREFIX}/bin/XFree86 -/bin/chmod +s ${PKG_PREFIX}/bin/Xwrapper +[ -e ${PKG_PREFIX}/bin/X ] && mv ${PKG_PREFIX}/bin/X ${PKG_PREFIX}/bin/X.bck +ln -sf ${PKG_PREFIX}/bin/Xwrapper-4 ${PKG_PREFIX}/bin/X +[ -x ${PKG_PREFIX}/bin/XFree86 ] && chmod -s ${PKG_PREFIX}/bin/XFree86 +chmod +s ${PKG_PREFIX}/bin/Xwrapper-4 |