diff options
author | sakamoto <sakamoto> | 2002-06-10 09:08:44 +0000 |
---|---|---|
committer | sakamoto <sakamoto> | 2002-06-10 09:08:44 +0000 |
commit | 047b84c4179697f4e19366d492311f02f197d20c (patch) | |
tree | b9768466ae7fb36a2db0786d110c5e12af0cc4b9 /inputmethod | |
parent | cc150085b3ce6ab31d20840b7e1f56ea8da2a588 (diff) | |
download | pkgsrc-047b84c4179697f4e19366d492311f02f197d20c.tar.gz |
Import Canna-server-bin-3.5.2nb2
Kana-Kanji conversion system (server binary)
separated from inputmethod/canna-server, Approved by agc.
Diffstat (limited to 'inputmethod')
-rw-r--r-- | inputmethod/canna-server-bin/DESCR | 13 | ||||
-rw-r--r-- | inputmethod/canna-server-bin/INSTALL | 7 | ||||
-rw-r--r-- | inputmethod/canna-server-bin/Makefile | 66 | ||||
-rw-r--r-- | inputmethod/canna-server-bin/PLIST | 50 |
4 files changed, 136 insertions, 0 deletions
diff --git a/inputmethod/canna-server-bin/DESCR b/inputmethod/canna-server-bin/DESCR new file mode 100644 index 00000000000..14268d78991 --- /dev/null +++ b/inputmethod/canna-server-bin/DESCR @@ -0,0 +1,13 @@ +Canna is a Kana-Kanji conversion server. +Support Mule(Multi-lingal extention Emacs), kinput2 X11 input method, +cannum front end and some others. + + To use from Mule (CANNA version), in .emacs file: + + (if (and (boundp 'CANNA) CANNA) ; Is it CANNA MULE? + (progn + (load-library "canna") + (canna) )) + + Then kana-kanji conversion begin to `C-o' key. Show more detail +Info, and/or documents. diff --git a/inputmethod/canna-server-bin/INSTALL b/inputmethod/canna-server-bin/INSTALL new file mode 100644 index 00000000000..1219a0a90cf --- /dev/null +++ b/inputmethod/canna-server-bin/INSTALL @@ -0,0 +1,7 @@ +#!/bin/sh +if [ "$2" != "POST-INSTALL" ]; then exit 0; fi +(grep -v ^# /etc/services | grep 'canna.*5680' >/dev/null) || \ + (echo "" >> /etc/services; \ + echo "# canna package" >> /etc/services; \ + echo "canna 5680/tcp" >> /etc/services; \ + ) diff --git a/inputmethod/canna-server-bin/Makefile b/inputmethod/canna-server-bin/Makefile new file mode 100644 index 00000000000..a7384bd5efc --- /dev/null +++ b/inputmethod/canna-server-bin/Makefile @@ -0,0 +1,66 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/06/10 09:08:44 sakamoto Exp $ + +DISTNAME= Canna35b2 +PKGNAME= Canna-server-bin-3.5.2 +PKGREVISION= 2 +CATEGORIES= japanese inputmethod +MASTER_SITES= ftp://ftp.nec.co.jp/pub/Canna/Canna35/ + +PATCH_SITES= http://www.jaist.ac.jp/~fujieda/canna/ +PATCHFILES= Canna35b2-unoff1.patch.gz Canna35b2-unoff2.patch.gz \ + Canna35b2-hack1.patch.gz +PATCH_DIST_STRIP= -p1 + +MAINTAINER= tech-pkg-ja@jp.netbsd.org +HOMEPAGE= http://www.nec.co.jp/japanese/product/computer/soft/canna/ +COMMENT= Kana-Kanji conversion system (server binary) + +FILESDIR= ${.CURDIR}/../canna-lib/files +DISTINFO_FILE= ${.CURDIR}/../canna-lib/distinfo +PATCHDIR= ${.CURDIR}/../canna-lib/patches + +BUILD_DEFS+= USE_INET6 + +.include "../../mk/bsd.prefs.mk" +.if 0 # ${USE_INET6} == "YES" +INET6= -DINET6 +.else +INET6= # empty +.endif +CANNAOWNER?= daemon +CANNAGROUP?= daemon +CANNA_SPOOL= /var/spool/canna +CANNA_MODE= 0755 +MAKE_ENV+= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \ + CANNA_SPOOL=${CANNA_SPOOL} IMDICTDIR=${IMDICTDIR} INET6=${INET6} +PLIST_SUBST+= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \ + CANNA_SPOOL=${CANNA_SPOOL} CANNA_MODE=${CANNA_MODE} + +INSTALL_TARGET= instserver + +post-patch: + ${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig + ${SED} -e 's|\(SUBDIRS = \).*|\1 canna lib server cmd doc|' \ + -e 's|\(SERVERDIR = \).*|\1 server cmd doc|' \ + ${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile + ${MV} ${WRKSRC}/Canna.conf ${WRKSRC}/Canna.conf.orig + ${SED} -e 's|\(DicDir.*=\).*|\1${IMDICTDIR}/canna|' \ + ${WRKSRC}/Canna.conf.orig > ${WRKSRC}/Canna.conf + +do-configure: + @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF}) + +post-build: + @${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/canna \ + > ${WRKDIR}/canna + +post-install: + @${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL + @${INSTALL_SCRIPT} ${WRKDIR}/canna ${PREFIX}/etc/rc.d/canna + @${INSTALL_DATA_DIR} ${CANNA_SPOOL} + @${CHMOD} ${CANNA_MODE} ${CANNA_SPOOL} + @${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL} + +.include "../../devel/nbitools/nbitools.mk" +.include "../canna-lib/buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/inputmethod/canna-server-bin/PLIST b/inputmethod/canna-server-bin/PLIST new file mode 100644 index 00000000000..f7422528600 --- /dev/null +++ b/inputmethod/canna-server-bin/PLIST @@ -0,0 +1,50 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/10 09:08:44 sakamoto Exp $ +bin/canlisp +bin/cannacheck +bin/cannakill +bin/cannastat +bin/catdic +bin/crfreq +bin/crxdic +bin/crxgram +bin/cshost +bin/ctow +bin/dicar +bin/dpbindic +bin/dpromdic +bin/dpxdic +bin/forcpp +bin/forsort +bin/kpdic +bin/mergeword +bin/mkbindic +bin/mkromdic +bin/splitword +bin/wtoc +etc/rc.d/canna +man/ja_JP.EUC/man1/addwords.1 +man/ja_JP.EUC/man1/cannacheck.1 +man/ja_JP.EUC/man1/cannakill.1 +man/ja_JP.EUC/man1/cannaserver.1 +man/ja_JP.EUC/man1/cannastat.1 +man/ja_JP.EUC/man1/catdic.1 +man/ja_JP.EUC/man1/cpdic.1 +man/ja_JP.EUC/man1/cshost.1 +man/ja_JP.EUC/man1/ctow.1 +man/ja_JP.EUC/man1/delwords.1 +man/ja_JP.EUC/man1/dicar.1 +man/ja_JP.EUC/man1/dpbindic.1 +man/ja_JP.EUC/man1/dpromdic.1 +man/ja_JP.EUC/man1/lsdic.1 +man/ja_JP.EUC/man1/mkbindic.1 +man/ja_JP.EUC/man1/mkdic.1 +man/ja_JP.EUC/man1/mkromdic.1 +man/ja_JP.EUC/man1/mvdic.1 +man/ja_JP.EUC/man1/rmdic.1 +man/ja_JP.EUC/man1/splitword.1 +man/ja_JP.EUC/man1/wtoc.1 +sbin/cannaserver +@exec ${MKDIR} ${CANNA_SPOOL} +@exec ${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL} +@exec ${CHMOD} ${CANNA_MODE} ${CANNA_SPOOL} +@unexec ${RMDIR} ${CANNA_SPOOL} |