From b2b153cca0e127fd5c533241c64ca70312810785 Mon Sep 17 00:00:00 2001 From: asami Date: Fri, 9 Aug 1996 02:40:20 +0000 Subject: Install startup script in .../etc/rc.d. Submitted by: Masafumi NAKANE --- japanese/Canna/Makefile | 14 ++++++++++++-- japanese/Canna/pkg-descr | 8 -------- japanese/Canna/pkg-plist | 1 + 3 files changed, 13 insertions(+), 10 deletions(-) (limited to 'japanese/Canna') 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 # NIIMI Satoshi # -# $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 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 -- cgit v1.1