diff options
Diffstat (limited to 'japanese/canna-server')
-rw-r--r-- | japanese/canna-server/Makefile | 71 | ||||
-rw-r--r-- | japanese/canna-server/pkg/COMMENT | 1 | ||||
-rw-r--r-- | japanese/canna-server/pkg/DESCR | 13 | ||||
-rwxr-xr-x | japanese/canna-server/pkg/INSTALL | 7 | ||||
-rw-r--r-- | japanese/canna-server/pkg/PLIST | 70 |
5 files changed, 162 insertions, 0 deletions
diff --git a/japanese/canna-server/Makefile b/japanese/canna-server/Makefile new file mode 100644 index 00000000000..10cec20ec38 --- /dev/null +++ b/japanese/canna-server/Makefile @@ -0,0 +1,71 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/08/02 04:57:21 sakamoto Exp $ + +DISTNAME= Canna35b2 +PKGNAME= Canna-server-3.5b2 +CATEGORIES= japanese +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/ + +DEPENDS+= Canna-lib-3.5b2:../../japanese/canna-lib + +MASTERDIR= ${.CURDIR}/../../japanese/canna-lib +FILESDIR= ${MASTERDIR}/files +PATCHDIR= ${MASTERDIR}/patches + +.include "../../mk/bsd.prefs.mk" +CANNAOWNER?= daemon +CANNAGROUP?= daemon +CANNA_SPOOL= /var/spool/canna +CANNA_MODE= 0755 +DICT_DIR?= /var/dict +MAKE_ENV+= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \ + CANNA_SPOOL=${CANNA_SPOOL} DICT_DIR=${DICT_DIR} + +STARTUP_SCRIPT= etc/rc.d/canna.sh +STARTUP_SCRIPT_SRC=${WRKDIR}/STARTUP + +PLIST_TMP= ${PKGDIR}/PLIST +PLIST_SRC= ${WRKDIR}/PLIST + +INSTALL_TARGET= instserver instclient + +post-patch: + @${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig + @${SED} -e 's|\(SUBDIRS = .*\) misc\(.*\)|\1\2|' \ + -e 's|\(SERVERDIR = .*\) dic/phono\(.*\)|\1\2|' \ + -e 's|\(CLIENTDIR = .*\) dic/phono misc|\1|' \ + ${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile + +do-configure: + @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF}) + +post-build: + @${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT_SRC} + @${ECHO} 'canna=${PREFIX}/sbin/cannaserver' >> ${STARTUP_SCRIPT_SRC} + @${ECHO} 'if [ -f $$canna ]; then' >> ${STARTUP_SCRIPT_SRC} + @${ECHO} " echo -n ' Canna'" >> ${STARTUP_SCRIPT_SRC} + @${ECHO} ' $$canna' >> ${STARTUP_SCRIPT_SRC} + @${ECHO} "fi" >> ${STARTUP_SCRIPT_SRC} + @${SED} -e 's|$${CANNAOWNER}|${CANNAOWNER}|' \ + -e 's|$${CANNAGROUP}|${CANNAGROUP}|' \ + -e 's|$${CANNA_SPOOL}|${CANNA_SPOOL}|' \ + -e 's|$${CANNA_MODE}|${CANNA_MODE}|' \ + -e 's|$${DICT_DIR}|${DICT_DIR}|g' \ + -e 's|$${PREFIX}|${PREFIX}|' \ + ${PLIST_TMP} > ${PLIST_SRC} + +post-install: + @${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL + @${INSTALL_SCRIPT} ${STARTUP_SCRIPT_SRC} ${PREFIX}/${STARTUP_SCRIPT} + @${MKDIR} ${CANNA_SPOOL} + @${CHMOD} ${CANNA_MODE} ${CANNA_SPOOL} + @${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL} + +.include "../../mk/bsd.pkg.mk" diff --git a/japanese/canna-server/pkg/COMMENT b/japanese/canna-server/pkg/COMMENT new file mode 100644 index 00000000000..fee101a4b4c --- /dev/null +++ b/japanese/canna-server/pkg/COMMENT @@ -0,0 +1 @@ +Kana-Kanji conversion system (server) diff --git a/japanese/canna-server/pkg/DESCR b/japanese/canna-server/pkg/DESCR new file mode 100644 index 00000000000..14268d78991 --- /dev/null +++ b/japanese/canna-server/pkg/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/japanese/canna-server/pkg/INSTALL b/japanese/canna-server/pkg/INSTALL new file mode 100755 index 00000000000..1219a0a90cf --- /dev/null +++ b/japanese/canna-server/pkg/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/japanese/canna-server/pkg/PLIST b/japanese/canna-server/pkg/PLIST new file mode 100644 index 00000000000..51e63aa9615 --- /dev/null +++ b/japanese/canna-server/pkg/PLIST @@ -0,0 +1,70 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/08/02 04:57:21 sakamoto Exp $ +@cwd ${DICT_DIR} +@cwd ${DICT_DIR} +canna/canna/bushu.cld +canna/canna/chimei.ctd +canna/canna/dics.dir +canna/canna/fuzokugo.cbd +canna/canna/fuzokugo.cld +canna/canna/hojomwd.ctd +canna/canna/hojoswd.ctd +canna/canna/iroha.cbd +canna/canna/iroha.cld +canna/canna/kanasmpl.ctd +canna/canna/katakana.ctd +canna/canna/keishiki.ctd +canna/canna/necgaiji.ctd +canna/canna/number.ctd +canna/canna/software.ctd +canna/canna/suffix.ctd +@cwd ${PREFIX} +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.sh +man/man1/addwords.1 +man/man1/cannacheck.1 +man/man1/cannakill.1 +man/man1/cannaserver.1 +man/man1/cannastat.1 +man/man1/catdic.1 +man/man1/cpdic.1 +man/man1/cshost.1 +man/man1/ctow.1 +man/man1/delwords.1 +man/man1/dicar.1 +man/man1/dpbindic.1 +man/man1/dpromdic.1 +man/man1/lsdic.1 +man/man1/mkbindic.1 +man/man1/mkdic.1 +man/man1/mkromdic.1 +man/man1/mvdic.1 +man/man1/rmdic.1 +man/man1/splitword.1 +man/man1/wtoc.1 +sbin/cannaserver +@exec mkdir ${CANNA_SPOOL} +@exec chown ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL} +@exec chmod ${CANNA_MODE} ${CANNA_SPOOL} +@unexec rmdir ${DICT_DIR}/canna/canna +@unexec rmdir ${CANNA_SPOOL} |