1999-10-26 18:12:41 -04:00
|
|
|
#! /bin/sh
|
2003-03-03 01:54:11 -05:00
|
|
|
# $OpenBSD: INSTALL,v 1.7 2003/03/03 06:54:11 ish Exp $
|
1999-10-26 18:12:41 -04:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
***
|
|
|
|
|
2000-01-29 19:06:08 -05:00
|
|
|
To start the TrueType font server for X11 at boot time, put
|
1999-10-26 18:12:41 -04:00
|
|
|
the following in /etc/rc.local:
|
|
|
|
|
2000-03-13 03:42:52 -05:00
|
|
|
if [ -x /usr/local/bin/xfstt ]; then
|
2003-03-03 01:54:11 -05:00
|
|
|
echo -n ' xfstt'; /usr/local/bin/xfstt --user nobody --daemon
|
1999-10-26 18:12:41 -04:00
|
|
|
fi
|
|
|
|
|
2002-07-22 13:09:16 -04:00
|
|
|
You should also add the following to your FontPath in /etc/X11/XF86Config:
|
1999-10-26 18:12:41 -04:00
|
|
|
|
2000-01-29 19:06:08 -05:00
|
|
|
FontPath "unix/:7101"
|
1999-10-26 18:12:41 -04:00
|
|
|
|
2000-01-29 19:07:39 -05:00
|
|
|
Note that previous versions used unix/:7100.
|
|
|
|
|
2001-01-18 22:42:57 -05:00
|
|
|
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.
|
1999-10-26 18:12:41 -04:00
|
|
|
|
|
|
|
***
|
|
|
|
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
|