From eb867c45b8fdb79b20a56bf4800603bcc48df80f Mon Sep 17 00:00:00 2001 From: Jean-Marc Zucconi Date: Mon, 21 Feb 2000 23:17:31 +0000 Subject: Create X11 font directory if it does not exist. PR: ports/16868 Submitted by: KATO Tsuguru --- games/xjewel/pkg-req | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 games/xjewel/pkg-req (limited to 'games/xjewel/pkg-req') diff --git a/games/xjewel/pkg-req b/games/xjewel/pkg-req new file mode 100644 index 000000000000..c245d9493cc4 --- /dev/null +++ b/games/xjewel/pkg-req @@ -0,0 +1,27 @@ +#!/bin/sh + +if [ "x$1" = "x" ]; then + exit 1; +fi +if [ "x$2" != "xINSTALL" -a "x$2" != "xDEINSTALL" ]; then + exit 1; +fi + +export FONTDIR; FONTDIR=${PKG_PREFIX}/lib/X11/fonts/local + +if [ "$2x" = "INSTALLx" -a ! -d ${FONTDIR} ]; then + echo '**********************************************************************' + echo "****** ${FONTDIR}/ doesn't exist." + echo "****** Creating ${FONTDIR}/" + echo '****** Please upgrade your XFree86 to 3.3.3 or upper,' + echo "****** or add this directory to your /etc/XF86Config's FontPath entry." + echo '**********************************************************************' + mkdir ${FONTDIR} +fi + +echo "**********************************************************" +echo "You should restart X server or do 'xset fp rehash' command" +echo "to enable this update." +echo "**********************************************************" + +exit 0; -- cgit v1.2.3