diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2002-03-11 13:04:28 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2002-03-11 13:04:28 +0000 |
commit | a53d52dd67ef9b6200753ff305652f3993e6dfa1 (patch) | |
tree | ab580acdd4f1fd0b37b0fb2ba2a7b674bc8daafb /x11/wrapper | |
parent | eed586005d34b1d4b1fb61cadeb20e9402a0ed22 (diff) | |
download | ports-a53d52dd67ef9b6200753ff305652f3993e6dfa1.tar.gz ports-a53d52dd67ef9b6200753ff305652f3993e6dfa1.zip |
Notes
Diffstat (limited to 'x11/wrapper')
-rw-r--r-- | x11/wrapper/Makefile | 6 | ||||
-rw-r--r-- | x11/wrapper/pkg-deinstall | 2 | ||||
-rw-r--r-- | x11/wrapper/pkg-install | 7 |
3 files changed, 9 insertions, 6 deletions
diff --git a/x11/wrapper/Makefile b/x11/wrapper/Makefile index 9f228ad65092..42e5c8027109 100644 --- a/x11/wrapper/Makefile +++ b/x11/wrapper/Makefile @@ -12,16 +12,18 @@ CATEGORIES= x11 MAINTAINER= trevor@FreeBSD.org +RUN_DEPENDS= XFree86:${PORTSDIR}/x11-servers/XFree86-4-Server + NO_WRKSUBDIR= yes USE_X_PREFIX= yes do-fetch: do-build: - ${CC} ${CFLAGS} -o ${WRKSRC}/Xwrapper ${FILESDIR}/wrapper.c + ${CC} ${CFLAGS} -o ${WRKSRC}/Xwrapper-4 ${FILESDIR}/wrapper.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/Xwrapper ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/Xwrapper-4 ${PREFIX}/bin @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include <bsd.port.mk> diff --git a/x11/wrapper/pkg-deinstall b/x11/wrapper/pkg-deinstall index eac97e189897..c6760606424c 100644 --- a/x11/wrapper/pkg-deinstall +++ b/x11/wrapper/pkg-deinstall @@ -1,2 +1,2 @@ #!/bin/sh -ln -sf ${PKG_PREFIX}/bin/XFree86 ${PKG_PREFIX}/bin/X +mv -f ${PKG_PREFIX}/bin/X.bck ${PKG_PREFIX}/bin/X 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 |