pkgsrc/inputmethod/skkfep/INSTALL
seb 15040bf4af Reimport of package skkfep from japanese/skkfep into inputmethod/skkfep.
This is part of the japanese category retirement.
CATEGORIES adjusted.
2002-05-31 13:00:04 +00:00

39 lines
837 B
Text

#! /bin/sh
# $NetBSD: INSTALL,v 1.1.1.1 2002/05/31 13:00:04 seb Exp $
conf=@PKGBASE@/etc/skk.conf
case "$2" in
POST-INSTALL)
# install skkserv port number
if grep '^skkserv[ ]' /etc/services >/dev/null; then
:
else
echo '
skkserv 1178/tcp # SKK server' >>/etc/services
fi
# install skk.conf
if [ -f $conf ] && grep -v -e '^#' -e '^$' $conf >/dev/null; then
: file exists and it seems to have some configurations
else
cat <<'END' >$conf
# skk.conf - configuration file for SKK client programs
# Syntax
# Lines start with '#' are comments.
#
# skkserv_host: <hostnme> # Host which skkserv is running on.
# # default: localhost
#
# skkserv_port: <port> # TCP service name or port number of skkserv.
# # default: skkserv
#
# skkserv_host: localhost
# skkserv_port: skkserv
# skkserv_port: 1178
END
fi
;;
esac