Wnn-data is part of Wnn now.
This commit is contained in:
parent
101c71c0dd
commit
c7abc29deb
@ -1,7 +1,6 @@
|
||||
# $OpenBSD: Makefile,v 1.12 2001/02/13 06:54:58 fgsch Exp $
|
||||
# $OpenBSD: Makefile,v 1.13 2001/03/28 15:13:55 espie Exp $
|
||||
|
||||
SUBDIR += Wnn
|
||||
SUBDIR += Wnn-data
|
||||
SUBDIR += canna
|
||||
SUBDIR += kbanner
|
||||
SUBDIR += kinput2,wnn
|
||||
@ -20,7 +19,7 @@
|
||||
SUBDIR += jvim,wnn,canna
|
||||
SUBDIR += kanjips
|
||||
SUBDIR += kterm
|
||||
SUBDIR += kterm:xaw3d
|
||||
SUBDIR += kterm,xaw3d
|
||||
SUBDIR += less
|
||||
SUBDIR += nkf
|
||||
|
||||
|
@ -1,31 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2000/10/10 00:40:36 espie Exp $
|
||||
|
||||
CATEGORIES= japanese chinese korean
|
||||
DISTNAME= Wnn-data-4.2
|
||||
DISTFILES=
|
||||
|
||||
MAINTAINER= Marc Espie <espie@openbsd.org>
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
NO_BUILD= Yes
|
||||
|
||||
pre-extract:
|
||||
@cd ${PORTSDIR} && cd japanese/Wnn && make patch
|
||||
|
||||
post-extract:
|
||||
mkdir -p ${WRKDIST}
|
||||
cd `cd ${PORTSDIR} && cd japanese/Wnn && \
|
||||
make show VARNAME=WRKDIST`; \
|
||||
cp Wnn/jd/sysV/* Wnn/jd/serverdefs ${WRKDIST}
|
||||
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/wnn
|
||||
${INSTALL_DATA} ${WRKDIST}/cvt_key* ${PREFIX}/lib/wnn
|
||||
${INSTALL_DATA} ${WRKDIST}/serverdefs ${PREFIX}/lib/wnn
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/install-script ${PREFIX}/lib/wnn
|
||||
.include <bsd.port.mk>
|
@ -1,103 +0,0 @@
|
||||
#!/bin/sh
|
||||
# installation script for Japanese Wnn 4.2
|
||||
|
||||
DICDIR=/var/dict/Wnn
|
||||
|
||||
yesno() {
|
||||
local question answer
|
||||
|
||||
question=$1
|
||||
while :; do
|
||||
read answer?"${question} (y/n) [y]"
|
||||
case "${answer}" in
|
||||
[Nn]*) return 1;;
|
||||
[Yy]*) return 0;;
|
||||
"") return 0;;
|
||||
esac
|
||||
echo "Please answer yes or no."
|
||||
done
|
||||
}
|
||||
|
||||
create_wnn() {
|
||||
local uname begin gid
|
||||
uname='wnn'
|
||||
begin=128
|
||||
while [ X`id -u $begin 2>/dev/null` == X$begin ]
|
||||
do
|
||||
begin=`expr $begin + 1`
|
||||
done
|
||||
echo "Creating user wnn ($begin)"
|
||||
gid=`id -g bin`
|
||||
chpass -a "wnn:*:${begin}:${gid}::::Wnn server:/root:/sbin/nologin" || exit 1
|
||||
}
|
||||
|
||||
for i in japanese chinese korean
|
||||
do
|
||||
case "$i" in
|
||||
japanese)
|
||||
name=ja
|
||||
base="$DICDIR/ja_JP"
|
||||
sys_dirs="$DICDIR/ja_JP/pubdic $DICDIR/ja_JP/wnncons"
|
||||
wnntouch=/usr/local/bin/wnntouch
|
||||
wnnserver=/usr/local/bin/jserver;;
|
||||
chinese)
|
||||
name=zh
|
||||
base="$DICDIR/zh_CN $DICDIR/zh_TW"
|
||||
sys_dirs="$DICDIR/zh_CN/sys $DICDIR/zh_TW/sys"
|
||||
wnntouch=/usr/local/bin/cwnntouch
|
||||
wnnserver=/usr/local/bin/cserver;;
|
||||
korean)
|
||||
name=ko
|
||||
base="$DICDIR/ko_KR"
|
||||
sys_dirs="$DICDIR/ko_KR/sys"
|
||||
wnntouch=/usr/local/bin/kwnntouch
|
||||
wnnserver=/usr/local/bin/kserver;;
|
||||
esac
|
||||
# no base package present yet, bail out
|
||||
[ -e $wnntouch ] || continue
|
||||
|
||||
if id -u wnn >/dev/null 2>/dev/null
|
||||
then
|
||||
echo "So, user wnn already exists !"
|
||||
else
|
||||
echo "You need a user named wnn"
|
||||
if yesno "Would you like to create it automatically now"; then
|
||||
create_wnn
|
||||
else
|
||||
echo "You still need to run /usr/local/lib/wnn/install-script"
|
||||
echo "to finish Wnn installation later"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
chown wnn $wnnserver
|
||||
chmod u+s $wnnserver
|
||||
|
||||
# base directory not yet present, bail out
|
||||
|
||||
for dir in $base; do
|
||||
if [ -d $dir ]; then
|
||||
if [ `ls -ld $dir |awk '{print $3}'` == wnn ]; then
|
||||
# already installed
|
||||
continue 2
|
||||
else
|
||||
chown -R wnn $dir
|
||||
fi
|
||||
else
|
||||
echo "For a complete server, you need $name-Wnn-dict-4.2 as well"
|
||||
continue 2
|
||||
fi
|
||||
done
|
||||
|
||||
for dir in $sys_dirs; do
|
||||
$wnntouch $dir/*
|
||||
done
|
||||
|
||||
for dir in $base; do
|
||||
if [ ! -d $dir/usr ]; then
|
||||
mkdir -p $dir/usr
|
||||
fi
|
||||
chown wnn $dir/usr
|
||||
chmod u+w $dir/usr
|
||||
done
|
||||
done
|
@ -1 +0,0 @@
|
||||
common files to all languages of Wnn
|
@ -1,2 +0,0 @@
|
||||
This package only exists to provide common files
|
||||
to the Japanese/Korean/Chinese Wnn.
|
@ -1,22 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.4 2000/04/22 12:05:58 espie Exp $
|
||||
lib/wnn/install-script
|
||||
lib/wnn/cvt_key_empty
|
||||
lib/wnn/cvt_key_tbl
|
||||
lib/wnn/cvt_key_tbl.ST
|
||||
lib/wnn/cvt_key_tbl.gm
|
||||
lib/wnn/cvt_key_tbl.kt
|
||||
lib/wnn/cvt_key_tbl.mv
|
||||
lib/wnn/cvt_key_tbl.vt
|
||||
lib/wnn/serverdefs
|
||||
@comment Make those dirs in the common data part because of xwnmo
|
||||
@exec mkdir -p %D/lib/wnn/ja_JP
|
||||
@exec mkdir -p %D/lib/wnn/lt_LN
|
||||
@exec mkdir -p %D/lib/wnn/zh_TW
|
||||
@exec mkdir -p %D/lib/wnn/zh_CN
|
||||
@exec mkdir -p %D/lib/wnn/ko_KR
|
||||
@dirrm lib/wnn/ja_JP
|
||||
@dirrm lib/wnn/lt_LN
|
||||
@dirrm lib/wnn/zh_TW
|
||||
@dirrm lib/wnn/zh_CN
|
||||
@dirrm lib/wnn/ko_KR
|
||||
@dirrm lib/wnn
|
Loading…
Reference in New Issue
Block a user