aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorlesi <lesi@FreeBSD.org>2005-12-28 06:37:09 +0800
committerlesi <lesi@FreeBSD.org>2005-12-28 06:37:09 +0800
commit5f41cace737f298da254ca96ca90feb00788de87 (patch)
tree5c6a070c463a34f0be219ce185bdf286e0332798 /x11
parentb1ca16b765da46b62dd165e38be50b510991cc9a (diff)
downloadfreebsd-ports-gnome-5f41cace737f298da254ca96ca90feb00788de87.tar.gz
freebsd-ports-gnome-5f41cace737f298da254ca96ca90feb00788de87.tar.zst
freebsd-ports-gnome-5f41cace737f298da254ca96ca90feb00788de87.zip
Silence errors on package install/deinstall by using proper if-clauses in
xterm workaround @exec/@unexec lines. Prodded by: edwin
Diffstat (limited to 'x11')
-rw-r--r--x11/XFree86-4-clients/pkg-plist24
1 files changed, 12 insertions, 12 deletions
diff --git a/x11/XFree86-4-clients/pkg-plist b/x11/XFree86-4-clients/pkg-plist
index 08ef81b63b79..f903208f6d18 100644
--- a/x11/XFree86-4-clients/pkg-plist
+++ b/x11/XFree86-4-clients/pkg-plist
@@ -751,18 +751,18 @@ lib/X11/xkb/xkbcomp
lib/X11/xman.help
lib/X11/xsm/system.xsm
@comment xterm workaround
-@exec [ ! -e %D/bin/resize ] && ln -sf %D/bin/resize-static %D/bin/resize
-@exec [ ! -e %D/bin/uxterm ] && ln -sf %D/bin/uxterm-static %D/bin/uxterm
-@exec [ ! -e %D/bin/xterm ] && ln -sf %D/bin/xterm-static %D/bin/xterm
-@exec [ ! -e %D/lib/X11/app-defaults/UXTerm ] && ln -sf %D/lib/X11/app-defaults/UXTerm-static %D/lib/X11/app-defaults/UXTerm
-@exec [ ! -e %D/lib/X11/app-defaults/XTerm-color ] && ln -sf %D/lib/X11/app-defaults/XTerm-color-static %D/lib/X11/app-defaults/XTerm-color
-@exec [ ! -e %D/lib/X11/app-defaults/XTerm ] && ln -s %D/lib/X11/app-defaults/XTerm-static %D/lib/X11/app-defaults/XTerm
-@unexec [ -L %D/bin/resize ] && rm %D/bin/resize
-@unexec [ -L %D/bin/uxterm ] && rm %D/bin/uxterm
-@unexec [ -L %D/bin/xterm ] && rm %D/bin/xterm
-@unexec [ -L %D/lib/X11/app-defaults/UXTerm ] && rm %D/lib/X11/app-defaults/UXTerm
-@unexec [ -L %D/lib/X11/app-defaults/XTerm-color ] && rm %D/lib/X11/app-defaults/XTerm-color
-@unexec [ -L %D/lib/X11/app-defaults/XTerm ] && rm %D/lib/X11/app-defaults/XTerm
+@exec if [ ! -e %D/bin/resize ]; then ln -sf %D/bin/resize-static %D/bin/resize; fi
+@exec if [ ! -e %D/bin/uxterm ]; then ln -sf %D/bin/uxterm-static %D/bin/uxterm; fi
+@exec if [ ! -e %D/bin/xterm ]; then ln -sf %D/bin/xterm-static %D/bin/xterm; fi
+@exec if [ ! -e %D/lib/X11/app-defaults/UXTerm ]; then ln -sf %D/lib/X11/app-defaults/UXTerm-static %D/lib/X11/app-defaults/UXTerm; fi
+@exec if [ ! -e %D/lib/X11/app-defaults/XTerm-color ]; then ln -sf %D/lib/X11/app-defaults/XTerm-color-static %D/lib/X11/app-defaults/XTerm-color; fi
+@exec if [ ! -e %D/lib/X11/app-defaults/XTerm ]; then ln -s %D/lib/X11/app-defaults/XTerm-static %D/lib/X11/app-defaults/XTerm; fi
+@unexec if [ -L %D/bin/resize ]; then rm %D/bin/resize; fi
+@unexec if [ -L %D/bin/uxterm ]; then rm %D/bin/uxterm; fi
+@unexec if [ -L %D/bin/xterm ]; then rm %D/bin/xterm; fi
+@unexec if [ -L %D/lib/X11/app-defaults/UXTerm ]; then rm %D/lib/X11/app-defaults/UXTerm; fi
+@unexec if [ -L %D/lib/X11/app-defaults/XTerm-color ]; then rm %D/lib/X11/app-defaults/XTerm-color; fi
+@unexec if [ -L %D/lib/X11/app-defaults/XTerm ]; then rm %D/lib/X11/app-defaults/XTerm; fi
@dirrm lib/X11/fonts/util
@dirrm lib/X11/icons/default
@dirrm lib/X11/icons/handhelds/cursors