aboutsummaryrefslogtreecommitdiff
path: root/games/qix/pkg-deinstall
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2000-06-06 00:56:18 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2000-06-06 00:56:18 +0000
commit31fca295ef2a43ba1ae5ee175142b85147133fe3 (patch)
tree48808ceea04aa38083f15b929e6a52a620165b59 /games/qix/pkg-deinstall
parent7e6117eb7a25ed68f2f24dff0f169b2cb3d73b0c (diff)
downloadports-31fca295ef2a43ba1ae5ee175142b85147133fe3.tar.gz
ports-31fca295ef2a43ba1ae5ee175142b85147133fe3.zip
qix - the classic arcade game.
Notes
Notes: svn path=/head/; revision=29239
Diffstat (limited to 'games/qix/pkg-deinstall')
-rw-r--r--games/qix/pkg-deinstall18
1 files changed, 18 insertions, 0 deletions
diff --git a/games/qix/pkg-deinstall b/games/qix/pkg-deinstall
new file mode 100644
index 000000000000..aa9faf7ceff0
--- /dev/null
+++ b/games/qix/pkg-deinstall
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+X11BASE=/usr/X11R6
+FONTDIR=$X11BASE/lib/X11/fonts/local
+ALIAS=$FONTDIR/fonts.alias
+
+sed -e /qix/d $ALIAS > $ALIAS.tmp
+mv $ALIAS.tmp $ALIAS
+if [ ! -s $ALIAS ]; then rm -f $ALIAS; fi
+
+$X11BASE/bin/mkfontdir $FONTDIR
+if [ `ls -l $FONTDIR/fonts.dir|awk '{print $5}'` = 2 ]; then
+ rm $FONTDIR/fonts.dir
+fi
+exit 0 \ No newline at end of file