diff options
author | sakamoto <sakamoto> | 1999-08-02 11:29:21 +0000 |
---|---|---|
committer | sakamoto <sakamoto> | 1999-08-02 11:29:21 +0000 |
commit | 1500f36ca236506c88744c2200b3c8a50945cd13 (patch) | |
tree | cf5637287037273cf044b80d16c2fb057957bb5f /japanese | |
parent | b6a5ecd3827481c8f41e7832297d72f83f02385a (diff) | |
download | pkgsrc-1500f36ca236506c88744c2200b3c8a50945cd13.tar.gz |
A Japanese input method (server)
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/sj3-server/Makefile | 67 | ||||
-rw-r--r-- | japanese/sj3-server/pkg/COMMENT | 1 | ||||
-rw-r--r-- | japanese/sj3-server/pkg/DESCR | 20 | ||||
-rw-r--r-- | japanese/sj3-server/pkg/INSTALL | 9 | ||||
-rw-r--r-- | japanese/sj3-server/pkg/PLIST | 33 |
5 files changed, 130 insertions, 0 deletions
diff --git a/japanese/sj3-server/Makefile b/japanese/sj3-server/Makefile new file mode 100644 index 00000000000..07383ab2a69 --- /dev/null +++ b/japanese/sj3-server/Makefile @@ -0,0 +1,67 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/08/02 11:29:21 sakamoto Exp $ +# + +DISTNAME= sj3-2.0.1.20 +PKGNAME= sj3-server-2.0.1.20 +CATEGORIES= japanese +MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \ + ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/ + +MAINTAINER= tech-pkg-ja@jp.netbsd.org + +DEPENDS+= sj3-lib-2.0.1.20:../../japanese/sj3-lib + +MASTERDIR= ${.CURDIR}/../../japanese/sj3-lib +FILESDIR= ${MASTERDIR}/files +PATCHDIR= ${MASTERDIR}/patches + +.include "../../mk/bsd.prefs.mk" +SJ3OWNER?= daemon +SJ3GROUP?= daemon +DICT_DIR?= /var/dict +MAKE_ENV+= SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} DICT_DIR=${DICT_DIR} + +INSTALL_SRC= ${PKGDIR}/INSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +PLIST_TMP= ${PKGDIR}/PLIST +PLIST_SRC= ${WRKDIR}/PLIST + +STARTUP_SCRIPT= etc/rc.d/sj3.sh +STARTUP_SCRIPT_SRC=${WRKDIR}/STARTUP + +pre-configure: + @${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig + @${SED} -e 's|\(SUBDIRS = .*\)sj3lib \(.*\)|\1\2|' \ + ${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile + @for file in `find ${WRKSRC} -name Imakefile`; do \ + ${MV} -f $$file $$file.orig; \ + ${SED} -e 's|\(= \).*/lib\(sj3lib\).a|\1-l\2|' \ + $$file.orig > $$file; \ + done + +do-configure: + @(cd ${WRKSRC}; xmkmf; ${MAKE} Makefiles) + +post-build: + @${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT_SRC} + @${ECHO} 'sj3=${PREFIX}/bin/sj3serv' >> ${STARTUP_SCRIPT_SRC} + @${ECHO} 'if [ -f $$sj3 ]; then' >> ${STARTUP_SCRIPT_SRC} + @${ECHO} " echo -n ' sj3'" >> ${STARTUP_SCRIPT_SRC} + @${ECHO} ' $$sj3' >> ${STARTUP_SCRIPT_SRC} + @${ECHO} 'fi' >> ${STARTUP_SCRIPT_SRC} + @${SED} -e 's|$${SJ3OWNER}|${SJ3OWNER}|' \ + -e 's|$${SJ3GROUP}|${SJ3GROUP}|' \ + -e 's|$${DICT_DIR}|${DICT_DIR}|' \ + -e 's|$${PREFIX}|${PREFIX}|' \ + ${INSTALL_SRC} > ${INSTALL_FILE} + @${SED} -e 's|$${SJ3OWNER}|${SJ3OWNER}|' \ + -e 's|$${SJ3GROUP}|${SJ3GROUP}|' \ + -e 's|$${DICT_DIR}|${DICT_DIR}|' \ + -e 's|$${PREFIX}|${PREFIX}|' \ + ${PLIST_TMP} > ${PLIST_SRC} + +post-install: + @${INSTALL_SCRIPT} ${STARTUP_SCRIPT_SRC} ${PREFIX}/${STARTUP_SCRIPT} + +.include "../../mk/bsd.pkg.mk" diff --git a/japanese/sj3-server/pkg/COMMENT b/japanese/sj3-server/pkg/COMMENT new file mode 100644 index 00000000000..7b370d2a3ef --- /dev/null +++ b/japanese/sj3-server/pkg/COMMENT @@ -0,0 +1 @@ +A Japanese input method (server) diff --git a/japanese/sj3-server/pkg/DESCR b/japanese/sj3-server/pkg/DESCR new file mode 100644 index 00000000000..3daaeb2d9b6 --- /dev/null +++ b/japanese/sj3-server/pkg/DESCR @@ -0,0 +1,20 @@ +This is SJ3 2.0.1.20, a Japanese input method. +This system developed by Sony Corporation. +SJ3 is composed of Kana-Kanji conversion server(sj3serv), +Kana-Kanji conversion client for terminal(sj3) and Kana-Kanji +conversion library(sj3lib). + +If you start up sj3serv, you must add a following entry into +/etc/services file or NIS/YP services map. + +sj3 3086/tcp + +This port number may be changed by the setup file(See manpages). + +This also include many patches for FreeBSD or others. +(Remove warning, support pseudo-terminal of FreeBSD, + some bug fix and change make rules.) If there are any problem +in this patches, please know me via E-mail. + +Hidekazu Kuroki +(hidekazu@cs.titech.ac.jp) diff --git a/japanese/sj3-server/pkg/INSTALL b/japanese/sj3-server/pkg/INSTALL new file mode 100644 index 00000000000..41b27cf7274 --- /dev/null +++ b/japanese/sj3-server/pkg/INSTALL @@ -0,0 +1,9 @@ +#!/bin/sh + +case $2 in + POST-INSTALL) + dic="${PKG_PREFIX}/libdata/sj3/dict/user" + mkdir -p $dic + chown ${SJ3OWNER}.${SJ3GROUP} $dic + ;; +esac diff --git a/japanese/sj3-server/pkg/PLIST b/japanese/sj3-server/pkg/PLIST new file mode 100644 index 00000000000..09f8110eb35 --- /dev/null +++ b/japanese/sj3-server/pkg/PLIST @@ -0,0 +1,33 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/08/02 11:29:21 sakamoto Exp $ +@cwd ${DICT_DIR} +@cwd ${DICT_DIR} +sj3/sj3main.dic +@cwd ${PREFIX} +bin/sj3 +bin/sj3dic +bin/sj3mkdic +bin/sj3serv +bin/sj3stat +etc/rc.d/sj3.sh +man/ja_JP.EUC/man1/sj3.1 +man/ja_JP.EUC/man1/sj3dic.1 +man/ja_JP.EUC/man1/sj3mkdic.1 +man/ja_JP.EUC/man1/sj3serv.1 +share/sj3/Nihongo.ps.Z +share/sj3/cvtkey.news +share/sj3/cvtkey.nwp511 +share/sj3/cvtkey.nwp517 +share/sj3/cvtkey.xterm +share/sj3/hinsi.ms +share/sj3/makedict.ms +share/sj3/serverrc +share/sj3/sj3lib.ms +share/sj3/sj3serv.ms +share/sj3/sjrc +share/sj3/sjrk +@dirrm share/sj3 +@exec mkdir ${DICT_DIR}/sj3/user +@exec chmod 755 ${DICT_DIR}/sj3/user +@exec chown ${SJ3OWNER}:${SJ3GROUP} ${DICT_DIR}/sj3/user +@unexec rmdir ${DICT_DIR}/sj3/user +@unexec rmdir ${DICT_DIR}/sj3 |