summaryrefslogtreecommitdiff
path: root/inputmethod/sj3-server
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2002-05-31 13:01:13 +0000
committerseb <seb@pkgsrc.org>2002-05-31 13:01:13 +0000
commita8c0d3ebb819ff07b61e8cd2b882f47c8de93570 (patch)
tree6368f6260a41500a83666a7daee88e1f0789f63b /inputmethod/sj3-server
parented04cf412b93117f958c808f760acbfa6f154ccb (diff)
downloadpkgsrc-a8c0d3ebb819ff07b61e8cd2b882f47c8de93570.tar.gz
Reimport of package sj3-server from japanese/sj3-server into inputmethod/sj3-server.
This is part of the japanese category retirement. CATEGORIES and pathnames to japanese/ adjusted.
Diffstat (limited to 'inputmethod/sj3-server')
-rw-r--r--inputmethod/sj3-server/DESCR20
-rw-r--r--inputmethod/sj3-server/INSTALL9
-rw-r--r--inputmethod/sj3-server/Makefile62
-rw-r--r--inputmethod/sj3-server/PLIST33
-rw-r--r--inputmethod/sj3-server/distinfo11
5 files changed, 135 insertions, 0 deletions
diff --git a/inputmethod/sj3-server/DESCR b/inputmethod/sj3-server/DESCR
new file mode 100644
index 00000000000..3daaeb2d9b6
--- /dev/null
+++ b/inputmethod/sj3-server/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/inputmethod/sj3-server/INSTALL b/inputmethod/sj3-server/INSTALL
new file mode 100644
index 00000000000..41b27cf7274
--- /dev/null
+++ b/inputmethod/sj3-server/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/inputmethod/sj3-server/Makefile b/inputmethod/sj3-server/Makefile
new file mode 100644
index 00000000000..a8834d1ab72
--- /dev/null
+++ b/inputmethod/sj3-server/Makefile
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/05/31 13:01:13 seb Exp $
+#
+
+DISTNAME= sj3-2.0.1.20
+PKGNAME= sj3-server-2.0.1.20
+CATEGORIES= japanese inputmethod
+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
+COMMENT= Japanese input method (server)
+
+DEPENDS+= sj3-lib-2.0.1.20:../../inputmethod/sj3-lib
+
+FILESDIR= ${.CURDIR}/../../inputmethod/sj3-lib/files
+PATCHDIR= ${.CURDIR}/../../inputmethod/sj3-lib/patches
+
+.include "../../mk/bsd.prefs.mk"
+SJ3OWNER?= daemon
+SJ3GROUP?= daemon
+DICT_DIR?= /var/dict
+MAKE_ENV+= SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} DICT_DIR=${DICT_DIR} \
+ LOCAL_LDFLAGS="${LDFLAGS}"
+PLIST_SUBST= SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} DICT_DIR=${DICT_DIR} \
+ PREFIX=${PREFIX}
+
+INSTALL_SRC= ${PKGDIR}/INSTALL
+INSTALL_FILE= ${WRKDIR}/INSTALL
+
+STARTUP_SCRIPT= etc/rc.d/sj3
+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}; ${X11BASE}/bin/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}
+
+post-install:
+ @${INSTALL_SCRIPT} ${STARTUP_SCRIPT_SRC} ${PREFIX}/${STARTUP_SCRIPT}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/inputmethod/sj3-server/PLIST b/inputmethod/sj3-server/PLIST
new file mode 100644
index 00000000000..51d13407fdb
--- /dev/null
+++ b/inputmethod/sj3-server/PLIST
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/31 13:01:13 seb 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
+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
diff --git a/inputmethod/sj3-server/distinfo b/inputmethod/sj3-server/distinfo
new file mode 100644
index 00000000000..b758a5fb4ab
--- /dev/null
+++ b/inputmethod/sj3-server/distinfo
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/05/31 13:01:13 seb Exp $
+
+SHA1 (sj3-2.0.1.20.tar.gz) = b1cae59065ebc9caf5e198143ceb9558c932f259
+Size (sj3-2.0.1.20.tar.gz) = 584065 bytes
+SHA1 (patch-aa) = e2c60ca8709f8b78833ebc4f506b4cc63812a5bd
+SHA1 (patch-ab) = a64f78ccb3db3f4349f191abe47c6daebb2bbadd
+SHA1 (patch-ac) = a2a9c21618e7de1e56d371cb05cf866d549d50a1
+SHA1 (patch-ad) = be015448eb4ee267a2228838cc2a08e2586b0a85
+SHA1 (patch-ae) = 3b07eb2ea9d72049a8f322220836a631598ea7dc
+SHA1 (patch-af) = 33ac72303dfa13929d423ecaf5d9b7cb308f8ff5
+SHA1 (patch-ag) = b01fda538eb70a8f66cd42bcc719e24da848929f