pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/inputmethod/canna-server canna-server-bin -> canna-server



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d6ccc971de30
branches:  trunk
changeset: 461910:d6ccc971de30
user:      uebayasi <uebayasi%pkgsrc.org@localhost>
date:      Tue Sep 23 15:14:54 2003 +0000

description:
canna-server-bin -> canna-server

diffstat:

 inputmethod/canna-server/DESCR    |   1 +
 inputmethod/canna-server/INSTALL  |  11 +++++
 inputmethod/canna-server/MESSAGE  |  20 ++++++++++
 inputmethod/canna-server/Makefile |  44 ++++++++++++++++++++++
 inputmethod/canna-server/PLIST    |  76 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 152 insertions(+), 0 deletions(-)

diffs (172 lines):

diff -r de35ffed4dab -r d6ccc971de30 inputmethod/canna-server/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/canna-server/DESCR    Tue Sep 23 15:14:54 2003 +0000
@@ -0,0 +1,1 @@
+Server part of Canna Japanese input method.
diff -r de35ffed4dab -r d6ccc971de30 inputmethod/canna-server/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/canna-server/INSTALL  Tue Sep 23 15:14:54 2003 +0000
@@ -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 -r de35ffed4dab -r d6ccc971de30 inputmethod/canna-server/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/canna-server/MESSAGE  Tue Sep 23 15:14:54 2003 +0000
@@ -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 -r de35ffed4dab -r d6ccc971de30 inputmethod/canna-server/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/canna-server/Makefile Tue Sep 23 15:14:54 2003 +0000
@@ -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 -r de35ffed4dab -r d6ccc971de30 inputmethod/canna-server/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/canna-server/PLIST    Tue Sep 23 15:14:54 2003 +0000
@@ -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



Home | Main Index | Thread Index | Old Index