#! /bin/sh # $NetBSD: INSTALL,v 1.1.1.1 2002/05/31 13:00:02 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: # Host which skkserv is running on. # # default: localhost # # skkserv_port: # TCP service name or port number of skkserv. # # default: skkserv # # skkserv_host: localhost # skkserv_port: skkserv # skkserv_port: 1178 END fi ;; esac