diff options
author | garga <garga@FreeBSD.org> | 2005-09-07 03:20:40 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2005-09-07 03:20:40 +0800 |
commit | d3baf32b9cab594fb7b10aac6434a2865cc0b8b6 (patch) | |
tree | cb00a7657c7af2080cc44d81cc75ac383b75cda7 /x11/wrapper | |
parent | 549153ca199bc6288752ee0deffebc35beb19dac (diff) | |
download | freebsd-ports-gnome-d3baf32b9cab594fb7b10aac6434a2865cc0b8b6.tar.gz freebsd-ports-gnome-d3baf32b9cab594fb7b10aac6434a2865cc0b8b6.tar.zst freebsd-ports-gnome-d3baf32b9cab594fb7b10aac6434a2865cc0b8b6.zip |
- Fix PLIST problem and unbreak
PR: ports/85024
Submitted by: Marcus Grando <marcus@corp.grupos.com.br>
Approved by: maintainer timeout (20 days)
Diffstat (limited to 'x11/wrapper')
-rw-r--r-- | x11/wrapper/Makefile | 1 | ||||
-rw-r--r-- | x11/wrapper/pkg-deinstall | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/x11/wrapper/Makefile b/x11/wrapper/Makefile index 2796799e80df..a34dac809572 100644 --- a/x11/wrapper/Makefile +++ b/x11/wrapper/Makefile @@ -24,7 +24,6 @@ USE_X_PREFIX= yes XSERVER= -DXSERVER_PATH=\"/usr/X11R6/bin/Xorg\" PKGNAMEPREFIX= xorg- COMMENT= Wrapper for X.org X11 server -BROKEN= Incomplete pkg-plist .elif ${X_WINDOW_SYSTEM:L} == xfree86-4 XSERVER= -DXSERVER_PATH=\"/usr/X11R6/bin/XFree86\" RUN_DEPENDS= XFree86:${PORTSDIR}/x11-servers/XFree86-4-Server 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 |