summaryrefslogtreecommitdiff
path: root/inputmethod/skkfep/INSTALL
blob: 341c360eaf9b77db3691abc68bc0819413953078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /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