diff options
Diffstat (limited to 'japanese/Canna')
-rw-r--r-- | japanese/Canna/Makefile | 14 | ||||
-rw-r--r-- | japanese/Canna/pkg-descr | 8 | ||||
-rw-r--r-- | japanese/Canna/pkg-plist | 1 |
3 files changed, 13 insertions, 10 deletions
diff --git a/japanese/Canna/Makefile b/japanese/Canna/Makefile index 85a67b8..bfbe673 100644 --- a/japanese/Canna/Makefile +++ b/japanese/Canna/Makefile @@ -4,7 +4,7 @@ # Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp> # NIIMI Satoshi <sa2c@and.or.jp> # -# $Id: Makefile,v 1.6 1995/06/24 11:38:36 asami Exp $ +# $Id: Makefile,v 1.7 1995/06/26 09:27:45 asami Exp $ # DISTNAME= Canna32p2 @@ -22,6 +22,16 @@ pre-configure: @(cd ${WRKSRC}; xmkmf) post-install: - ldconfig -m ${PREFIX}/lib + /sbin/ldconfig -m ${PREFIX}/lib + @if [ ! -f ${PREFIX}/etc/rc.d/canna.sh ]; then \ + echo "Installing ${PREFIX}/etc/rc.d/canna.sh startup file."; \ + echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/canna.sh; \ + echo "canna=/usr/local/canna/bin/cannaserver" >> ${PREFIX}/etc/rc.d/canna.sh ;\ + echo "if [ -f $$canna ]; then" >> ${PREFIX}/etc/rc.d/canna.sh ;\ + echo " rm -f /var/spool/canna/lock/.CANNALOCK*" >> ${PREFIX}/etc/rc.d/canna.sh ;\ + echo " echo -n ' Canna'; $$canna" >> ${PREFIX}/etc/rc.d/canna.sh ;\ + echo "fi" >> ${PREFIX}/etc/rc.d/canna.sh ;\ + chmod 755 ${PREFIX}/etc/rc.d/canna.sh ;\ + fi .include <bsd.port.mk> diff --git a/japanese/Canna/pkg-descr b/japanese/Canna/pkg-descr index 3945645..14268d78 100644 --- a/japanese/Canna/pkg-descr +++ b/japanese/Canna/pkg-descr @@ -2,14 +2,6 @@ Canna is a Kana-Kanji conversion server. Support Mule(Multi-lingal extention Emacs), kinput2 X11 input method, cannum front end and some others. - For example server start at bootup `/etc/rc.local': - - canna=/usr/local/canna/bin/cannaserver - if [ -f $canna ]; then - rm -f /var/spool/canna/lock/.CANNALOCK* - echo -n " Canna"; $canna - fi - To use from Mule (CANNA version), in .emacs file: (if (and (boundp 'CANNA) CANNA) ; Is it CANNA MULE? diff --git a/japanese/Canna/pkg-plist b/japanese/Canna/pkg-plist index 327e2a3..6f89ff5 100644 --- a/japanese/Canna/pkg-plist +++ b/japanese/Canna/pkg-plist @@ -117,6 +117,7 @@ lib/libcanna.a lib/libcanna.so.1.0 lib/libcanna16.a lib/libcanna16.so.1.0 +etc/rc.d/canna.sh @exec ldconfig -m %B @exec chown bin.bin %D/canna/lib/dic/canna @exec chmod ug+w %D/canna/lib/dic/canna |