diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2003-09-23 15:14:54 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2003-09-23 15:14:54 +0000 |
commit | 4397be1a9fe7a70ef60316a75e9ac66e71e938ce (patch) | |
tree | 01a045a7937176823c0a0c65c0f625b02ed9e4a4 | |
parent | dec905464d6b1b3fcd1a7ed2080d579d98beef14 (diff) | |
download | pkgsrc-4397be1a9fe7a70ef60316a75e9ac66e71e938ce.tar.gz |
canna-server-bin -> canna-server
-rw-r--r-- | inputmethod/canna-server/DESCR | 1 | ||||
-rwxr-xr-x | inputmethod/canna-server/INSTALL | 11 | ||||
-rw-r--r-- | inputmethod/canna-server/MESSAGE | 20 | ||||
-rw-r--r-- | inputmethod/canna-server/Makefile | 44 | ||||
-rw-r--r-- | inputmethod/canna-server/PLIST | 76 |
5 files changed, 152 insertions, 0 deletions
diff --git a/inputmethod/canna-server/DESCR b/inputmethod/canna-server/DESCR new file mode 100644 index 00000000000..9b248ec6bde --- /dev/null +++ b/inputmethod/canna-server/DESCR @@ -0,0 +1 @@ +Server part of Canna Japanese input method. diff --git a/inputmethod/canna-server/INSTALL b/inputmethod/canna-server/INSTALL new file mode 100755 index 00000000000..d80cfeef0b2 --- /dev/null +++ b/inputmethod/canna-server/INSTALL @@ -0,0 +1,11 @@ +# $NetBSD: INSTALL,v 1.3 2003/09/23 15:14:54 uebayasi Exp $ + +case ${STAGE} in +POST-INSTALL) + (${GREP} -v ^# /etc/services | ${GREP} 'canna.*5680' >/dev/null) || \ + (${ECHO} "" >> /etc/services; \ + ${ECHO} "# canna package" >> /etc/services; \ + ${ECHO} "canna 5680/tcp" >> /etc/services; \ + ) + ;; +esac diff --git a/inputmethod/canna-server/MESSAGE b/inputmethod/canna-server/MESSAGE new file mode 100644 index 00000000000..131e9f61052 --- /dev/null +++ b/inputmethod/canna-server/MESSAGE @@ -0,0 +1,20 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2003/09/23 15:14:55 uebayasi Exp $ + +If you want Canna server to boot automatically, + + 1) Copy ${PREFIX}/etc/rc.d/canna to /etc/rc.d/. + 2) Add the following line to /etc/rc.conf. + + canna=YES canna_flags="-u ${CANNA_USER}" + +canna_flags="-u ${CANNA_USER}" is not required, but recommended. Note that our +Canna package no longer uses setuid(2) to make the server run as user +"${CANNA_USER}", owing to the implementation of "-u" option (3.6 and above). See +cannaserver(1M). + +Also note that by default cannaserver(1M) no longer allows connections +through tcp port 5680. You need to explicitly specify the port by the +"-inet" option. + +=========================================================================== diff --git a/inputmethod/canna-server/Makefile b/inputmethod/canna-server/Makefile new file mode 100644 index 00000000000..01395cceb10 --- /dev/null +++ b/inputmethod/canna-server/Makefile @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.6 2003/09/23 15:14:55 uebayasi Exp $ +# +.include "../canna/Makefile.common" + +CANNA_MODULE= server + +USE_BUILDLINK2= # defined +INSTALL_TARGET= instserver + +USE_PKGINSTALL= YES +INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL + +.include "../../mk/bsd.prefs.mk" + +BUILD_DEFS+= CANNA_USER CANNA_GROUP +MESSAGE_SUBST+= CANNA_USER="${CANNA_USER}" +MESSAGE_SUBST+= CANNA_GROUP="${CANNA_GROUP}" + +PKG_GROUPS= ${CANNA_GROUP} +PKG_USERS= ${CANNA_USER}:${CANNA_GROUP}::Canna\\ user + +OWN_DIRS_PERMS= ${CANNA_SPOOL} ${CANNA_USER} ${CANNA_GROUP} ${CANNA_MODE} + +RCD_SCRIPTS= canna + +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-install: + @${INSTALL_SCRIPT} ${WRKDIR}/canna ${PREFIX}/etc/rc.d/canna + +.include "../../devel/nbitools/buildlink2.mk" +.include "../../inputmethod/canna-lib/buildlink2.mk" + +.include "../canna/Makefile.include" diff --git a/inputmethod/canna-server/PLIST b/inputmethod/canna-server/PLIST new file mode 100644 index 00000000000..3f0acbb9f94 --- /dev/null +++ b/inputmethod/canna-server/PLIST @@ -0,0 +1,76 @@ +@comment $NetBSD: PLIST,v 1.4 2003/09/23 15:14:55 uebayasi Exp $ +bin/addwords +bin/canlisp +bin/cannacheck +bin/cannastat +bin/catdic +bin/chmoddic +bin/cpdic +bin/crfreq +bin/crxdic +bin/crxgram +bin/cshost +bin/ctow +bin/delwords +bin/dicar +bin/dpbindic +bin/dpromdic +bin/dpxdic +bin/forcpp +bin/forsort +bin/kpdic +bin/lsdic +bin/mergeword +bin/mkbindic +bin/mkdic +bin/mkromdic +bin/mvdic +bin/rmdic +bin/splitword +bin/syncdic +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 +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/cannakill +sbin/cannaserver |