openbsd-ports/x11/xfstt/pkg/INSTALL

54 lines
1.0 KiB
Plaintext
Raw Normal View History

#! /bin/sh
# $OpenBSD: INSTALL,v 1.7 2003/03/03 06:54:11 ish Exp $
#
# Pre/port-installation setup of xfstt
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
do_notice()
{
cat <<END
***
To start the TrueType font server for X11 at boot time, put
the following in /etc/rc.local:
2000-03-13 03:42:52 -05:00
if [ -x /usr/local/bin/xfstt ]; then
echo -n ' xfstt'; /usr/local/bin/xfstt --user nobody --daemon
fi
You should also add the following to your FontPath in /etc/X11/XF86Config:
FontPath "unix/:7101"
2000-01-29 19:07:39 -05:00
Note that previous versions used unix/:7100.
TrueType fonts should be placed in /usr/local/lib/X11/fonts/TrueType.
2000-03-13 03:42:52 -05:00
Additional documentation can be found in /usr/local/share/doc/xfstt.
***
END
}
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
do_notice $1
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0