bd70c48813
OK'd by maintainer <jasoni@>
54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
#! /bin/sh
|
|
# $OpenBSD: INSTALL,v 1.5 2001/01/19 03:43:02 kevlo 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:
|
|
|
|
if [ -x /usr/local/bin/xfstt ]; then
|
|
echo -n ' xfstt'; /usr/local/bin/xfstt &
|
|
fi
|
|
|
|
You should also add the following to your FontPath in /etc/XF86Config:
|
|
|
|
FontPath "unix/:7101"
|
|
|
|
Note that previous versions used unix/:7100.
|
|
|
|
TrueType fonts should be placed in /usr/local/lib/X11/fonts/TrueType.
|
|
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
|