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

Re: canna



Makefile の共通する部分を inputmethod/canna/Makefile.{common,include} 
というファイルにまとめてみました。

今は、 canna-server っていうのが Canna をまとめたメタパッケージになっ
ているんですけど、これは単純に canna の方が分かりやすいと思うんですけ
ど、いかがでしょうか?

あと、今 canuum を見てたら、 ftp.nec.co.jp にも ftp.tokyonet.ad.jp に
も繋がらないようです。ナンデダロ〜

(上)
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	canna
#	canna/Makefile.common
#	canna/Makefile.include
#	canna/distinfo
#	canna/patches
#	canna/patches/patch-aa
#	canna/patches/patch-ab
#	canna/patches/patch-ad
#	canna/patches/patch-ac
#	canna/patches/patch-af
#	canna/files
#	canna/files/canna
#	canna/Makefile
#	canna/PLIST
#	canna/DESCR
#
echo c - canna
mkdir -p canna > /dev/null 2>&1
echo x - canna/Makefile.common
sed 's/^X//' >canna/Makefile.common << 'END-of-canna/Makefile.common'
X# $NetBSD$
X#
X# Canna common makefile.
X#
X
XDISTNAME=	Canna${CANNA_VERSION:S|.||}
XPKGNAME=	Canna-${CANNA_MODULE}-${CANNA_VERSION}
XCATEGORIES=	japanese inputmethod
XMASTER_SITES=	http://downloads.sourceforge.jp/canna/2181/
X
XMAINTAINER=	tech-pkg-ja@jp.netbsd.org
XHOMEPAGE=	http://canna.sourceforge.jp/
XCOMMENT=	Kana-Kanji conversion system (${CANNA_MODULE})
X
XFILESDIR=	${.CURDIR}/../canna/files
XDISTINFO_FILE=	${.CURDIR}/../canna/distinfo
XPATCHDIR=	${.CURDIR}/../canna/patches
X
X# To be done.
X#USE_BUILDLINK2=	# defined
X
XBUILD_DEFS+=	USE_INET6
X
X.include "../../mk/bsd.prefs.mk"
X.if 0	# defined(USE_INET6) && ${USE_INET6} == "YES"
XINET6=		-DINET6
X.else
XINET6=		# empty
X.endif
X
XCANNA_VERSION=	3.6p3
X
XCANNAOWNER?=    daemon
XCANNAGROUP?=    daemon
XCANNA_SPOOL=	${DESTDIR}/var/spool/canna
XCANNA_MODE=	0755
X
XMAKE_ENV+=      CANNAOWNER=${CANNAOWNER}
XMAKE_ENV+=	CANNAGROUP=${CANNAGROUP}
XMAKE_ENV+=	CANNA_SPOOL=${CANNA_SPOOL}
XMAKE_ENV+=	CANNA_MODE=${CANNA_MODE}
XMAKE_ENV+=	IMDICTDIR=${IMDICTDIR}
XMAKE_ENV+=	INET6=${INET6}
X
XPLIST_SUBST+=	CANNAOWNER=${CANNAOWNER}
XPLIST_SUBST+=	CANNAGROUP=${CANNAGROUP}
XPLIST_SUBST+=	CANNA_SPOOL=${CANNA_SPOOL}
XPLIST_SUBST+=	CANNA_MODE=${CANNA_MODE}
XPLIST_SUBST+=	IMDICTDIR=${IMDICTDIR}
END-of-canna/Makefile.common
echo x - canna/Makefile.include
sed 's/^X//' >canna/Makefile.include << 'END-of-canna/Makefile.include'
X# $NetBSD$
X#
X
X.include "../../devel/nbitools/nbitools.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-canna/Makefile.include
echo x - canna/distinfo
sed 's/^X//' >canna/distinfo << 'END-of-canna/distinfo'
X$NetBSD: distinfo,v 1.5 2002/12/27 08:41:24 uebayasi Exp $
X
XSHA1 (Canna36p3.tar.gz) = 183c4e160babd49d5d8c542fbf06db980e3965da
XSize (Canna36p3.tar.gz) = 1441598 bytes
XSHA1 (patch-aa) = d0d8f83be2890c9a0b95a152a5ad32ce98e10ea1
XSHA1 (patch-ab) = b203ad0cb1285ffed0037e0eced3ae298bec5eb9
XSHA1 (patch-ac) = 8f9f999eb8abd9c8e3d3e5c66cf55150ce700919
XSHA1 (patch-ad) = d4b5720c206f81124e0d53e71590de86f66c524c
XSHA1 (patch-af) = 2700fc8395895176c16562af66ea5bf0b13d4e10
END-of-canna/distinfo
echo c - canna/patches
mkdir -p canna/patches > /dev/null 2>&1
echo x - canna/patches/patch-aa
sed 's/^X//' >canna/patches/patch-aa << 'END-of-canna/patches/patch-aa'
X$NetBSD$
X
X--- Canna.conf.orig	Sat Jan 25 17:47:47 2003
X+++ Canna.conf
X@@ -133,18 +133,18 @@
X /* rootにならずにインストールする時はこれを定義して下さい */
X /* #define InstallAsUser */
X /* 従来と互換のディレクトリ構造にする場合はこれを定義してください */
X-#define ObsoleteInstallDir
X+/* #define ObsoleteInstallDir */
X #ifdef InstallAsUser
X # define DefCannaPrefix $(HOME)/canna
X # define DefErrDir $(cannaPrefix)/log
X # define DefLibCannaDir $(cannaExecPrefix)/lib
X #else 
X-# define DefCannaPrefix /usr/local/canna
X+# define DefCannaPrefix ${PREFIX}
X # ifdef ObsoleteInstallDir
X #  define DefErrDir /usr/spool/canna
X #  define DefLibCannaDir /usr/lib
X # else
X-#  define DefErrDir /var/log
X+#  define DefErrDir ${CANNA_SPOOL}
X #  define DefLibCannaDir $(cannaExecPrefix)/lib
X # endif
X #endif
X@@ -173,10 +173,10 @@
X /* 次の3行は変更しないでください */
X wcharDefinition = -DCANNA_WCHAR
X Wlib =
X-JapaneseLocale = japanese
X+JapaneseLocale = ja_JP.eucJP
X 
X-cannaOwner = bin
X-cannaGroup = bin
X+cannaOwner = ${CANNAOWNER}
X+cannaGroup = ${CANNAGROUP}
X 
X #ifdef InstallAsUser
X cannaOwnerGroup =
X@@ -246,7 +246,7 @@
X  * コマンド類をリンクする時は、次を YES にしてくだい。
X  */
X /* #define UseInstalledLibCanna YES */
X-#define UseInstalledLibCanna NO
X+#define UseInstalledLibCanna YES
X 
X DicDir   = $(cannaLibDir)/dic
X 
X@@ -291,18 +291,18 @@
X     DEPCANNALIB = $(libCannaDir)/libcanna.a
X #endif
X # endif
X-       CANNALIB = -L$(libCannaDir) -lcanna $(DLLIB)
X+       CANNALIB = -Wl,-rpath,$(libCannaDir) -L$(libCannaDir) -lcanna $(DLLIB)
X #else /* ! UseInstalledLibCanna */
X # if DoSharedLib
X-    DEPCANNALIB = $(CANNASRC)/libcanna.$(sharedLibExtension)
X+    DEPCANNALIB = $(libCannaDir)/libcanna.$(sharedLibExtension)
X # else
X #ifdef __EMX__
X-    DEPCANNALIB = $(CANNASRC)/canna.a
X+    DEPCANNALIB = $(libCannaDir)/canna.a
X #else
X-    DEPCANNALIB = $(CANNASRC)/libcanna.a
X+    DEPCANNALIB = $(libCannaDir)/libcanna.a
X #endif
X # endif
X-       CANNALIB = -L$(CANNASRC) -lcanna $(DLLIB)
X+       CANNALIB = -Wl,-rpath,$(libCannaDir) -L$(CANNASRC) -lcanna $(DLLIB)
X #endif /* UseInstalledLibCanna */
X 
X #if UseInstalledLibCanna
X@@ -311,14 +311,14 @@
X # else
X     DEPCANNALIB16 = $(libCannaDir)/libcanna16.a
X # endif
X-       CANNALIB16 = -L$(libCannaDir) -lcanna16 $(DLLIB)
X+       CANNALIB16 = -Wl,-rpath,$(libCannaDir) -L$(libCannaDir) -lcanna16 $(DLLIB)
X #else /* ! UseInstalledLibCanna */
X # if DoSharedLib
X-    DEPCANNALIB16 = $(CANNASRC)/libcanna16.$(sharedLibExtension)
X+    DEPCANNALIB16 = $(libCannaDir)/libcanna16.$(sharedLibExtension)
X # else
X-    DEPCANNALIB16 = $(CANNASRC)/libcanna16.a
X+    DEPCANNALIB16 = $(libCannaDir)/libcanna16.a
X # endif
X-       CANNALIB16 = -L$(CANNASRC) -lcanna16 $(DLLIB)
X+       CANNALIB16 = -Wl,-rpath,$(libCannaDir) -L$(CANNASRC) -lcanna16 $(DLLIB)
X #endif /* UseInstalledLibCanna */
X 
X /*
X@@ -335,7 +335,7 @@
X      SCRIPTS_DEFINES = 
X 
X #ifdef JAPANESEMAN
X-JMNLOCALE = ja
X+JMNLOCALE = ja_JP.EUC
X #endif
X 
X /* USE_OBSOLETE_STYLE_FILENAME を定義するための定義 */
END-of-canna/patches/patch-aa
echo x - canna/patches/patch-ab
sed 's/^X//' >canna/patches/patch-ab << 'END-of-canna/patches/patch-ab'
X$NetBSD: patch-ab,v 1.4 2002/12/27 08:41:24 uebayasi Exp $
X--- Imakefile.orig	Thu Dec  5 22:39:41 2002
X+++ Imakefile	Thu Dec  5 22:40:03 2002
X@@ -60,7 +60,7 @@
X 	for i in $(SERVERDIR) ;\
X 	do \
X 		(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
X-		$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
X+		$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install install.man); \
X 	done
X 
X instclient::
X@@ -68,7 +68,7 @@
X 	for i in $(CLIENTDIR) ;\
X 	do \
X 		(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
X-		$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
X+		$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install install.man); \
X 	done
X 
X instsgs::
END-of-canna/patches/patch-ab
echo x - canna/patches/patch-ad
sed 's/^X//' >canna/patches/patch-ad << 'END-of-canna/patches/patch-ad'
X$NetBSD: patch-ad,v 1.4 2002/12/27 08:41:24 uebayasi Exp $
X--- dic/ideo/pubdic/Imakefile.orig	Thu Dec  5 23:43:40 2002
X+++ dic/ideo/pubdic/Imakefile	Thu Dec  5 23:43:52 2002
X@@ -9,7 +9,7 @@
X       CANNAROOT = ../../..
X     CANNACMDDIR = $(CANNAROOT)/cmd
X           MERGE = $(CANNACMDDIR)/mergewd/mergeword
X-       INCLUDES = -I$(CANNAROOT)/include
X+       INCLUDES = -I$(CANNAROOT)/canna
X #endif
X         TARGETS = iroha.t
X         PUBDICS = a.p k.p s.p t.p n.p h.p m.p y.p r.p w.p x.p
END-of-canna/patches/patch-ad
echo x - canna/patches/patch-ac
sed 's/^X//' >canna/patches/patch-ac << 'END-of-canna/patches/patch-ac'
X$NetBSD: patch-ac,v 1.3 2002/08/25 19:22:56 jlam Exp $
X
X--- dic/phono/Imakefile.orig	Wed Nov 27 16:15:14 1996
X+++ dic/phono/Imakefile	Fri Jul 30 19:57:02 1999
X@@ -27,7 +27,7 @@
X 
X        ROMAJI_DIC_DEF = -DSHIFT
X 
X-               DICDIR = $(cannaLibDir)/dic
X-            SAMPLEDIR = $(cannaLibDir)/sample
X-         SAMPLESRCDIR = $(cannaLibDir)/sample/src
X+               DICDIR = $(DicDir)
X+            SAMPLEDIR = $(DicDir)/sample
X+         SAMPLESRCDIR = $(DicDir)/sample/src
X
END-of-canna/patches/patch-ac
echo x - canna/patches/patch-af
sed 's/^X//' >canna/patches/patch-af << 'END-of-canna/patches/patch-af'
X$NetBSD: patch-af,v 1.3 2002/08/25 19:22:56 jlam Exp $
X
X--- lib/RKC/convert.c.orig	Wed May 22 22:02:57 1996
X+++ lib/RKC/convert.c
X@@ -32,7 +32,7 @@
X #ifndef WIN
X #include "sglobal.h"
X #endif
X-#include "IRproto.h"
X+#include "../server/IRproto.h"
X 
X #include <errno.h>
X #include <sys/types.h>
END-of-canna/patches/patch-af
echo c - canna/files
mkdir -p canna/files > /dev/null 2>&1
echo x - canna/files/canna
sed 's/^X//' >canna/files/canna << 'END-of-canna/files/canna'
X#! /bin/sh
X#
X# $NetBSD: canna,v 1.4 2002/08/25 19:22:55 jlam Exp $
X#
X# PROVIDE: canna
X# REQUIRE: DAEMON
X
Xif [ -f /etc/rc.subr ]
Xthen
X	. /etc/rc.subr
Xfi
X
Xname="canna"
Xrcvar=$name
Xcommand="@PREFIX@/sbin/cannaserver"
Xstop_cmd="@PREFIX@/sbin/cannakill"
X
Xif [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
Xthen
X	load_rc_config $name
X	run_rc_command "$1"
Xelse
X	@ECHO@ -n ' ${name}'
X	${command} ${canna_flags} ${command_args}
Xfi
END-of-canna/files/canna
echo x - canna/Makefile
sed 's/^X//' >canna/Makefile << 'END-of-canna/Makefile'
X# $NetBSD: Makefile,v 1.4 2002/12/27 08:41:25 uebayasi Exp $
X#
X.include "../canna/Makefile.common"
X
XCANNA_MODULE=	server
X
XDEPENDS+=	Canna-server-bin>=${CANNA_VERSION}:../canna-server-bin
XDEPENDS+=	Canna-dict>=${CANNA_VERSION}:../canna-dict
X
XEXTRACT_ONLY=	# empty
XNO_BUILD=	YES
XNO_CHECKSUM=	YES
X
Xdo-install:	# empty
X
X.include "../../mk/bsd.pkg.mk"
END-of-canna/Makefile
echo x - canna/PLIST
sed 's/^X//' >canna/PLIST << 'END-of-canna/PLIST'
X@comment $NetBSD: PLIST,v 1.2 2002/06/10 09:52:15 sakamoto Exp $
END-of-canna/PLIST
echo x - canna/DESCR
sed 's/^X//' >canna/DESCR << 'END-of-canna/DESCR'
XCanna is a Kana-Kanji conversion server.
XSupport Mule (Multi-lingal extention Emacs), kinput2 X11 input method,
Xcannum front end and some others.
X
X  To use from Mule (CANNA version), in .emacs file:
X
X     (if (and (boundp 'CANNA) CANNA) ; Is it CANNA MULE?
X        (progn
X         (load-library "canna")
X         (canna) ))
X
X  Then kana-kanji conversion begin to `C-o' key.  Show more detail
XInfo, and/or documents.
END-of-canna/DESCR
exit
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	canna-dict
#	canna-dict/Makefile
#	canna-dict/DESCR
#	canna-dict/PLIST
#
echo c - canna-dict
mkdir -p canna-dict > /dev/null 2>&1
echo x - canna-dict/Makefile
sed 's/^X//' >canna-dict/Makefile << 'END-of-canna-dict/Makefile'
X# $NetBSD: Makefile,v 1.4 2002/12/29 01:03:21 seb Exp $
X#
X.include "../canna/Makefile.common"
X
XCANNA_MODULE=	dict
X
XBUILD_DEPENDS+=	Canna-server-bin>=${CANNA_VERSION}:../canna-server-bin
X
XEVAL_PREFIX+=	CANNASERVERBINDIR=Canna-server-bin
X.for cmd in MERGE FORCPP FORSORT SPLITWORD MERGEWORD CRXGRAM CRXDIC CRFREQ KPDIC
XCANNA_CMD_SED_SCRIPT+=-e 's|\(${cmd} = \).*/\(.*\)|\1${CANNASERVERBINDIR}/bin/\2|'
X.endfor
X
Xpost-patch:
X	@${MV} ${WRKSRC}/Canna.conf ${WRKSRC}/Canna.conf.orig
X	@${SED} -e 's|\(DicDir.*=\).*|\1${IMDICTDIR}/canna|' \
X		${WRKSRC}/Canna.conf.orig > ${WRKSRC}/Canna.conf
X	@for file in `${FIND} ${WRKSRC}/dic/ideo -name Imakefile`; do \
X		${MV} $$file $$file.orig;	\
X		${SED} ${CANNA_CMD_SED_SCRIPT} $$file.orig > $$file;	\
X	 done
X
Xdo-configure:
X	@cd ${WRKSRC}/dic/ideo; ${XMKMF}
X
Xdo-build:
X	@cd ${WRKSRC}/dic/ideo; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
X
Xdo-install:
X	@cd ${WRKSRC}/dic/ideo; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} install
X
X.include "../canna/Makefile.include"
X
X# Need to set this here _after_ bsd.pkg.mk
XPREFIX=		${IMDICTDIR}
END-of-canna-dict/Makefile
echo x - canna-dict/DESCR
sed 's/^X//' >canna-dict/DESCR << 'END-of-canna-dict/DESCR'
XCanna is a Kana-Kanji conversion server.
XSupport Mule(Multi-lingal extention Emacs), kinput2 X11 input method,
Xcannum front end and some others.
X
X  To use from Mule (CANNA version), in .emacs file:
X
X     (if (and (boundp 'CANNA) CANNA) ; Is it CANNA MULE?
X        (progn
X         (load-library "canna")
X         (canna) ))
X
X  Then kana-kanji conversion begin to `C-o' key. Show more detail
XInfo, and/or documents.
END-of-canna-dict/DESCR
echo x - canna-dict/PLIST
sed 's/^X//' >canna-dict/PLIST << 'END-of-canna-dict/PLIST'
X@comment $NetBSD: PLIST,v 1.1 2002/06/10 09:05:09 sakamoto Exp $
Xcanna/canna/bushu.cld
Xcanna/canna/chimei.ctd
Xcanna/canna/dics.dir
Xcanna/canna/fuzokugo.cbd
Xcanna/canna/fuzokugo.cld
Xcanna/canna/hojomwd.ctd
Xcanna/canna/hojoswd.ctd
Xcanna/canna/iroha.cbd
Xcanna/canna/iroha.cld
Xcanna/canna/kanasmpl.ctd
Xcanna/canna/katakana.ctd
Xcanna/canna/keishiki.ctd
Xcanna/canna/necgaiji.ctd
Xcanna/canna/number.ctd
Xcanna/canna/software.ctd
Xcanna/canna/suffix.ctd
X@dirrm canna/canna
X@dirrm canna
END-of-canna-dict/PLIST
exit

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	canna-lib
#	canna-lib/Makefile
#	canna-lib/DESCR
#	canna-lib/PLIST
#	canna-lib/files
#	canna-lib/buildlink2.mk
#	canna-lib/patches
#
echo c - canna-lib
mkdir -p canna-lib > /dev/null 2>&1
echo x - canna-lib/Makefile
sed 's/^X//' >canna-lib/Makefile << 'END-of-canna-lib/Makefile'
X# $NetBSD: Makefile,v 1.5 2002/12/27 08:41:24 uebayasi Exp $
X#
X.include "../canna/Makefile.common"
X
XCANNA_MODULE=	lib
X
XINSTALL_TARGET=	install install.man
X
X# (1) Change SUBDIRS.
X# (2) Don't install `forcpp', `kpdic'.
Xpost-patch:
X	@${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
X	@${SED}	-e 's|\(SUBDIRS = lib canna\).*\( misc\)|\1 cmd/forcpp cmd/kpdic dic/phono\2|' \
X		-e 's|\(SGSDIR = \).*|\1 lib canna dic/phono misc doc|'	\
X		${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
X.for f in forcpp kpdic
X	@${MV} ${WRKSRC}/cmd/${f}/Imakefile ${WRKSRC}/cmd/${f}/Imakefile.orig
X	@${SED} -e '/InstallProgram/d' ${WRKSRC}/cmd/${f}/Imakefile.orig \
X		> ${WRKSRC}/cmd/${f}/Imakefile
X.endfor
X
X# We need to pass ${MAKE_ENV} to ${XMKMF}
Xdo-configure:
X	@cd ${WRKSRC} && \
X	    ${SETENV} ${SCRIPTS_ENV} ${MAKE_ENV} ${XMKMF}
X
Xpost-configure:
X	@${LN} -s ${WRKSRC}/server/*.h ${WRKSRC}/include
X
X.include "../canna/Makefile.include"
END-of-canna-lib/Makefile
echo x - canna-lib/DESCR
sed 's/^X//' >canna-lib/DESCR << 'END-of-canna-lib/DESCR'
XCanna is a Kana-Kanji conversion server.
XSupport Mule(Multi-lingal extention Emacs), kinput2 X11 input method,
Xcannum front end and some others.
X
X  To use from Mule (CANNA version), in .emacs file:
X
X     (if (and (boundp 'CANNA) CANNA) ; Is it CANNA MULE?
X        (progn
X         (load-library "canna")
X         (canna) ))
X
X  Then kana-kanji conversion begin to `C-o' key. Show more detail
XInfo, and/or documents.
END-of-canna-lib/DESCR
echo x - canna-lib/PLIST
sed 's/^X//' >canna-lib/PLIST << 'END-of-canna-lib/PLIST'
X@comment $NetBSD: PLIST,v 1.5 2002/12/27 08:41:24 uebayasi Exp $
Xinclude/canna/RK.h
Xinclude/canna/jrkanji.h
Xinclude/canna/keydef.h
Xinclude/canna/mfdef.h
Xlib/libRKC.a
Xlib/libRKC.so
Xlib/libRKC.so.1
Xlib/libRKC.so.1.1
Xlib/libRKC16.a
Xlib/libRKC16.so
Xlib/libRKC16.so.1
Xlib/libRKC16.so.1.1
Xlib/libcanna.a
Xlib/libcanna.so
Xlib/libcanna.so.1
Xlib/libcanna.so.1.1
Xlib/libcanna16.a
Xlib/libcanna16.so
Xlib/libcanna16.so.1
Xlib/libcanna16.so.1.1
Xman/ja_JP.EUC/man3/RkBgnBun.3
Xman/ja_JP.EUC/man3/RkCloseRoma.3
Xman/ja_JP.EUC/man3/RkCvtEuc.3
Xman/ja_JP.EUC/man3/RkCvtHan.3
Xman/ja_JP.EUC/man3/RkCvtHira.3
Xman/ja_JP.EUC/man3/RkCvtKana.3
Xman/ja_JP.EUC/man3/RkCvtRoma.3
Xman/ja_JP.EUC/man3/RkCvtZen.3
Xman/ja_JP.EUC/man3/RkDefineDic.3
Xman/ja_JP.EUC/man3/RkDeleteDic.3
Xman/ja_JP.EUC/man3/RkEndBun.3
Xman/ja_JP.EUC/man3/RkEnlarge.3
Xman/ja_JP.EUC/man3/RkFinalize.3
Xman/ja_JP.EUC/man3/RkGetDicList.3
Xman/ja_JP.EUC/man3/RkGetKanji.3
Xman/ja_JP.EUC/man3/RkGetLex.3
Xman/ja_JP.EUC/man3/RkGetStat.3
Xman/ja_JP.EUC/man3/RkGetYomi.3
Xman/ja_JP.EUC/man3/RkGoto.3
Xman/ja_JP.EUC/man3/RkInitialize.3
Xman/ja_JP.EUC/man3/RkIntro.3
Xman/ja_JP.EUC/man3/RkLeft.3
Xman/ja_JP.EUC/man3/RkMapPhonogram.3
Xman/ja_JP.EUC/man3/RkMapRoma.3
Xman/ja_JP.EUC/man3/RkMountDic.3
Xman/ja_JP.EUC/man3/RkNext.3
Xman/ja_JP.EUC/man3/RkNfer.3
Xman/ja_JP.EUC/man3/RkOpenRoma.3
Xman/ja_JP.EUC/man3/RkPrev.3
Xman/ja_JP.EUC/man3/RkRemountDic.3
Xman/ja_JP.EUC/man3/RkResize.3
Xman/ja_JP.EUC/man3/RkRight.3
Xman/ja_JP.EUC/man3/RkShorten.3
Xman/ja_JP.EUC/man3/RkStoreYomi.3
Xman/ja_JP.EUC/man3/RkUnmountDic.3
Xman/ja_JP.EUC/man3/RkXfer.3
Xman/ja_JP.EUC/man3/XKanjiControl.3
Xman/ja_JP.EUC/man3/XLookupKanjiString.3
Xman/ja_JP.EUC/man3/cannalib.3
Xman/ja_JP.EUC/man3/jrKanjiControl.3
Xman/ja_JP.EUC/man3/jrKanjiString.3
Xman/ja_JP.EUC/man3/uilib.3
Xman/man3/RkBgnBun.3
Xman/man3/RkCloseRoma.3
Xman/man3/RkCvtEuc.3
Xman/man3/RkCvtHan.3
Xman/man3/RkCvtHira.3
Xman/man3/RkCvtKana.3
Xman/man3/RkCvtRoma.3
Xman/man3/RkCvtZen.3
Xman/man3/RkDefineDic.3
Xman/man3/RkDeleteDic.3
Xman/man3/RkEndBun.3
Xman/man3/RkEnlarge.3
Xman/man3/RkFinalize.3
Xman/man3/RkGetDicList.3
Xman/man3/RkGetKanji.3
Xman/man3/RkGetLex.3
Xman/man3/RkGetStat.3
Xman/man3/RkGetYomi.3
Xman/man3/RkGoto.3
Xman/man3/RkInitialize.3
Xman/man3/RkIntro.3
Xman/man3/RkLeft.3
Xman/man3/RkMapPhonogram.3
Xman/man3/RkMapRoma.3
Xman/man3/RkMountDic.3
Xman/man3/RkNext.3
Xman/man3/RkNfer.3
Xman/man3/RkOpenRoma.3
Xman/man3/RkPrev.3
Xman/man3/RkRemountDic.3
Xman/man3/RkResize.3
Xman/man3/RkRight.3
Xman/man3/RkShorten.3
Xman/man3/RkStoreYomi.3
Xman/man3/RkUnmountDic.3
Xman/man3/RkXfer.3
Xman/man3/XKanjiControl.3
Xman/man3/XLookupKanjiString.3
Xman/man3/cannalib.3
Xman/man3/jrKanjiControl.3
Xman/man3/jrKanjiString.3
Xman/man3/uilib.3
Xshare/canna/default.canna
Xshare/canna/dic/default.cbp
Xshare/canna/dic/english.cbp
Xshare/canna/dic/jdaemon.cbp
Xshare/canna/dic/just.cbp
Xshare/canna/dic/kaisoku.cbp
Xshare/canna/dic/kana.cbp
Xshare/canna/dic/lan5.cbp
Xshare/canna/dic/matsu.cbp
Xshare/canna/dic/newjis.cbp
Xshare/canna/dic/romaji.cbp
Xshare/canna/dic/sample/src/default.ctd
Xshare/canna/dic/sample/src/english.ctd
Xshare/canna/dic/sample/src/jdaemon.ctd
Xshare/canna/dic/sample/src/just.ctd
Xshare/canna/dic/sample/src/kaisoku.ctd
Xshare/canna/dic/sample/src/kana.ctd
Xshare/canna/dic/sample/src/lan5.ctd
Xshare/canna/dic/sample/src/matsu.ctd
Xshare/canna/dic/sample/src/newjis.ctd
Xshare/canna/dic/sample/src/romaji.ctd
Xshare/canna/dic/sample/src/sokuon.ctd
Xshare/canna/dic/sample/src/tut.ctd
Xshare/canna/dic/sample/src/vje.ctd
Xshare/canna/dic/sample/src/wx2+.ctd
Xshare/canna/dic/sokuon.cbp
Xshare/canna/dic/tut.cbp
Xshare/canna/dic/vje.cbp
Xshare/canna/dic/wx2+.cbp
Xshare/canna/sample/1.1.canna
Xshare/canna/sample/1.2.canna
Xshare/canna/sample/fixer.canna
Xshare/canna/sample/jdemon.canna
Xshare/canna/sample/just.canna
Xshare/canna/sample/lan5.canna
Xshare/canna/sample/matsu.canna
Xshare/canna/sample/modes.canna
Xshare/canna/sample/sample.canna
Xshare/canna/sample/skk.canna
Xshare/canna/sample/src/Makefile
Xshare/canna/sample/src/is.c
Xshare/canna/sample/tut.canna
Xshare/canna/sample/unix.canna
Xshare/canna/sample/vje.canna
Xshare/canna/sample/wx2+.canna
X@dirrm share/canna/sample/src
X@dirrm share/canna/sample
X@dirrm share/canna/dic/sample/src
X@dirrm share/canna/dic/sample
X@dirrm share/canna/dic
X@dirrm share/canna
X@dirrm include/canna
END-of-canna-lib/PLIST
echo c - canna-lib/files
mkdir -p canna-lib/files > /dev/null 2>&1
echo x - canna-lib/buildlink2.mk
sed 's/^X//' >canna-lib/buildlink2.mk << 'END-of-canna-lib/buildlink2.mk'
X# $NetBSD: buildlink2.mk,v 1.3 2002/12/27 08:41:24 uebayasi Exp $
X
X.if !defined(CANNA_BUILDLINK2_MK)
XCANNA_BUILDLINK2_MK=	# defined
X
XBUILDLINK_PACKAGES+=		canna
XBUILDLINK_DEPENDS.canna?=	Canna-lib>=3.6p3
XBUILDLINK_PKGSRCDIR.canna?=	../../inputmethod/canna-lib
X
XEVAL_PREFIX+=			BUILDLINK_PREFIX.canna=canna-lib
XBUILDLINK_PREFIX.canna_DEFAULT=	${LOCALBASE}
XBUILDLINK_FILES.canna=		include/canna/RK.h
XBUILDLINK_FILES.canna+=		include/canna/jrkanji.h
XBUILDLINK_FILES.canna+=		include/canna/keydef.h
XBUILDLINK_FILES.canna+=		include/canna/mfdef.h
XBUILDLINK_FILES.canna+=		lib/libRKC.*
XBUILDLINK_FILES.canna+=		lib/libRKC16.*
XBUILDLINK_FILES.canna+=		lib/libcanna.*
XBUILDLINK_FILES.canna+=		lib/libcanna16.*
X
XBUILDLINK_TARGETS+=	canna-buildlink
X
Xcanna-buildlink: _BUILDLINK_USE
X
X.endif	# CANNA_BUILDLINK2_MK
END-of-canna-lib/buildlink2.mk
echo c - canna-lib/patches
mkdir -p canna-lib/patches > /dev/null 2>&1
exit

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	canna-server-bin
#	canna-server-bin/INSTALL
#	canna-server-bin/DESCR
#	canna-server-bin/Makefile
#	canna-server-bin/PLIST
#
echo c - canna-server-bin
mkdir -p canna-server-bin > /dev/null 2>&1
echo x - canna-server-bin/INSTALL
sed 's/^X//' >canna-server-bin/INSTALL << 'END-of-canna-server-bin/INSTALL'
X#!/bin/sh
Xif [ "$2" != "POST-INSTALL" ]; then exit 0; fi
X(grep -v ^# /etc/services | grep 'canna.*5680' >/dev/null) ||	\
X	(echo "" >> /etc/services;			\
X	 echo "# canna package" >> /etc/services;	\
X	 echo "canna		5680/tcp" >> /etc/services;	\
X	 )
END-of-canna-server-bin/INSTALL
echo x - canna-server-bin/DESCR
sed 's/^X//' >canna-server-bin/DESCR << 'END-of-canna-server-bin/DESCR'
XCanna is a Kana-Kanji conversion server.
X
XThis package just contains the binary for the server; install
Xthe canna-server package for all files.
X
XSupport Mule(Multi-lingal extention Emacs), kinput2 X11 input method,
Xcannum front end and some others.
X
X  To use from Mule (CANNA version), in .emacs file:
X
X     (if (and (boundp 'CANNA) CANNA) ; Is it CANNA MULE?
X        (progn
X         (load-library "canna")
X         (canna) ))
X
X  Then kana-kanji conversion begin to `C-o' key. Show more detail
XInfo, and/or documents.
END-of-canna-server-bin/DESCR
echo x - canna-server-bin/Makefile
sed 's/^X//' >canna-server-bin/Makefile << 'END-of-canna-server-bin/Makefile'
X# $NetBSD: Makefile,v 1.4 2002/12/27 08:41:25 uebayasi Exp $
X#
X.include "../canna/Makefile.common"
X
XCANNA_MODULE=	server-bin
X
XINSTALL_TARGET=	instserver
X
Xpost-patch:
X	${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
X	${SED} -e 's|\(SUBDIRS = \).*|\1 canna lib server cmd doc|' \
X		-e 's|\(SERVERDIR = \).*|\1 server cmd doc|' \
X		${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
X	${MV} ${WRKSRC}/Canna.conf ${WRKSRC}/Canna.conf.orig
X	${SED} -e 's|\(DicDir.*=\).*|\1${IMDICTDIR}/canna|' \
X		${WRKSRC}/Canna.conf.orig > ${WRKSRC}/Canna.conf
X
Xdo-configure:
X	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF}
X
Xpost-build:
X	@${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/canna \
X		> ${WRKDIR}/canna
X
Xpost-install:
X	@${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
X	@${INSTALL_SCRIPT} ${WRKDIR}/canna ${PREFIX}/etc/rc.d/canna
X	@${INSTALL_DATA_DIR} ${CANNA_SPOOL}
X	@${CHMOD} ${CANNA_MODE} ${CANNA_SPOOL}
X	@${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL}
X
X.include "../canna/Makefile.include"
END-of-canna-server-bin/Makefile
echo x - canna-server-bin/PLIST
sed 's/^X//' >canna-server-bin/PLIST << 'END-of-canna-server-bin/PLIST'
X@comment $NetBSD: PLIST,v 1.3 2003/03/28 21:24:24 wiz Exp $
Xbin/addwords
Xbin/canlisp
Xbin/cannacheck
Xbin/cannastat
Xbin/catdic
Xbin/chmoddic
Xbin/cpdic
Xbin/crfreq
Xbin/crxdic
Xbin/crxgram
Xbin/cshost
Xbin/ctow
Xbin/delwords
Xbin/dicar
Xbin/dpbindic
Xbin/dpromdic
Xbin/dpxdic
Xbin/forcpp
Xbin/forsort
Xbin/kpdic
Xbin/lsdic
Xbin/mergeword
Xbin/mkbindic
Xbin/mkdic
Xbin/mkromdic
Xbin/mvdic
Xbin/rmdic
Xbin/splitword
Xbin/syncdic
Xbin/wtoc
Xetc/rc.d/canna
Xman/ja_JP.EUC/man1/addwords.1
Xman/ja_JP.EUC/man1/cannacheck.1
Xman/ja_JP.EUC/man1/cannakill.1
Xman/ja_JP.EUC/man1/cannaserver.1
Xman/ja_JP.EUC/man1/cannastat.1
Xman/ja_JP.EUC/man1/catdic.1
Xman/ja_JP.EUC/man1/cpdic.1
Xman/ja_JP.EUC/man1/cshost.1
Xman/ja_JP.EUC/man1/ctow.1
Xman/ja_JP.EUC/man1/delwords.1
Xman/ja_JP.EUC/man1/dicar.1
Xman/ja_JP.EUC/man1/dpbindic.1
Xman/ja_JP.EUC/man1/dpromdic.1
Xman/ja_JP.EUC/man1/lsdic.1
Xman/ja_JP.EUC/man1/mkbindic.1
Xman/ja_JP.EUC/man1/mkdic.1
Xman/ja_JP.EUC/man1/mkromdic.1
Xman/ja_JP.EUC/man1/mvdic.1
Xman/ja_JP.EUC/man1/rmdic.1
Xman/ja_JP.EUC/man1/splitword.1
Xman/ja_JP.EUC/man1/wtoc.1
Xman/man1/addwords.1
Xman/man1/cannacheck.1
Xman/man1/cannakill.1
Xman/man1/cannaserver.1
Xman/man1/cannastat.1
Xman/man1/catdic.1
Xman/man1/cpdic.1
Xman/man1/cshost.1
Xman/man1/ctow.1
Xman/man1/delwords.1
Xman/man1/dicar.1
Xman/man1/dpbindic.1
Xman/man1/dpromdic.1
Xman/man1/lsdic.1
Xman/man1/mkbindic.1
Xman/man1/mkdic.1
Xman/man1/mkromdic.1
Xman/man1/mvdic.1
Xman/man1/rmdic.1
Xman/man1/splitword.1
Xman/man1/wtoc.1
Xsbin/cannakill
Xsbin/cannaserver
X@exec ${MKDIR} ${CANNA_SPOOL}
X@exec ${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL}
X@exec ${CHMOD} ${CANNA_MODE} ${CANNA_SPOOL}
X@unexec ${RMDIR} ${CANNA_SPOOL}
END-of-canna-server-bin/PLIST
exit