openbsd-ports/x11/xfstt/pkg/INSTALL
ish c6fb86505a - fix permissions on socket
- suggest to run the daemon as non-root
- ok matthieu, pval
2003-03-03 06:54:11 +00:00

54 lines
1.0 KiB
Plaintext

#! /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:
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"
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