Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jul 1999 10:38:21 +0900
From:      Makoto MATSUSHITA <matusita@jp.FreeBSD.ORG>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/12513: New ports: japanese/dbskkd-cdb
Message-ID:  <19990705103821B.matusita@jp.FreeBSD.ORG>

next in thread | raw e-mail | index | archive | help

>Number:         12513
>Category:       ports
>Synopsis:       New ports: japanese/dbskkd-cdb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul  4 18:40:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Makoto MATSUSHITA
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Japan FreeBSD Users' Group
>Environment:

	FreeBSD 4.0-CURRENT / FreeBSD 3.2-RELEASE
	(as of Apr/1999)

>Description:

	Dbskkd-cdb is a yet another SKK (japanese/skk) server.

>How-To-Repeat:

	Attached below is a shell archive of dbskkd-cdb. Committers,
	please review and commit to our greatest ports repository.

>Fix:

# 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:
#
#	dbskkd-cdb/Makefile
#	dbskkd-cdb/files
#	dbskkd-cdb/files/md5
#	dbskkd-cdb/patches
#	dbskkd-cdb/patches/patch-aa
#	dbskkd-cdb/patches/patch-ab
#	dbskkd-cdb/patches/patch-ac
#	dbskkd-cdb/patches/patch-ad
#	dbskkd-cdb/pkg
#	dbskkd-cdb/pkg/COMMENT
#	dbskkd-cdb/pkg/DESCR
#	dbskkd-cdb/pkg/PLIST
#
echo x - dbskkd-cdb/Makefile
sed 's/^X//' >dbskkd-cdb/Makefile << 'END-of-dbskkd-cdb/Makefile'
X# New ports collection makefile for:	dbskkd-cdb
X# Version required:	1.00
X# Date created:		17 Jun 1999
X# Whom:			Makoto Matsushita <matusita@jp.FreeBSD.ORG>
X#
X# $Id:$
X#
X
XDISTNAME=	dbskkd-cdb-1.00
XCATEGORIES=	japanese
XMASTER_SITES=	http://www.k2r.org/kenji/software/
X
XMAINTAINER=	matusita@jp.Freebsd.ORG
X
XSKKJISYO_SIZE?=	L
XSKKJISYO?=	SKK-JISYO.${SKKJISYO_SIZE}
XDOCS=		Release-Notes.English Release-Notes.Japanese LICENSE
X
XMAKE_ENV+=	SKKJISYO=${SKKJISYO}
XPLIST_SUB=	JISYONAME=${SKKJISYO}
X
Xpost-patch:
X.for docs in ${DOCS}
X	@${SED} -e "s!%%PREFIX%%!${PREFIX}!g" -e "s!%%JISYONAME%%!${SKKJISYO}!g" < ${WRKSRC}/${docs} > ${WRKSRC}/.tmp
X	@${MV} -f ${WRKSRC}/.tmp ${WRKSRC}/${docs}
X.endfor
X
Xpost-install:
X	@${MKDIR} ${PREFIX}/share/dbskkd-cdb ${PREFIX}/share/doc/dbskkd-cdb
X	${INSTALL_DATA} ${WRKSRC}/${SKKJISYO}.cdb ${PREFIX}/share/dbskkd-cdb
X.for docs in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/${docs} ${PREFIX}/share/doc/dbskkd-cdb
X.endfor
X
X.include <bsd.port.pre.mk>
X
X.if defined(USE_INSTALLED_JISYO) && ${USE_INSTALLED_JISYO} == YES || \
X    exists(${LOCALBASE}/share/skk/${SKKJISYO}) && \
X    (!defined(USE_INSTALLED_JISYO) || ${USE_INSTALLED_JISYO} != NO)
Xpre-build::
X	@${CP} ${LOCALBASE}/share/skk/${SKKJISYO} ${WRKSRC}
X.else
XBUILD_DEPENDS+=	/nonexistent:${PORTSDIR}/japanese/skk-jisyo:extract
Xpre-build::
X	@${CP} ${PORTSDIR}/japanese/skk-jisyo/work/*/jisyo/${SKKJISYO} ${WRKSRC}
X.endif
X
X.if defined(USE_INSTALLED_CDB) && ${USE_INSTALLED_CDB} == YES || \
X    exists(${LOCALBASE}/lib/libcdb.a) && exists(${LOCALBASE}/bin/cdbmake) && \
X    (!defined(USE_INSTALLED_CDB) || ${USE_INSTALLED_CDB} != NO)
Xpre-build::
X	@${CP} ${LOCALBASE}/lib/libcdb.a ${LOCALBASE}/bin/cdbmake ${WRKSRC}
X	@(cd ${WRKSRC}; SKKJISYO=${SKKJISYO} ./makeskkcdb.sh)
X.else
XBUILD_DEPENDS+=	/nonexistent:${PORTSDIR}/databases/cdb:build
Xpre-build::
X	@${CP} ${PORTSDIR}/databases/cdb/work/*/libcdb.a ${WRKSRC}
X	@${CP} ${PORTSDIR}/databases/cdb/work/*/cdbmake ${WRKSRC}
X	@(cd ${WRKSRC}; SKKJISYO=${SKKJISYO} ./makeskkcdb.sh)
X.endif
X
X.include <bsd.port.post.mk>
END-of-dbskkd-cdb/Makefile
echo c - dbskkd-cdb/files
mkdir -p dbskkd-cdb/files > /dev/null 2>&1
echo x - dbskkd-cdb/files/md5
sed 's/^X//' >dbskkd-cdb/files/md5 << 'END-of-dbskkd-cdb/files/md5'
XMD5 (dbskkd-cdb-1.00.tar.gz) = fb2b8b60b51b99a735ccfb5001d54eaa
END-of-dbskkd-cdb/files/md5
echo c - dbskkd-cdb/patches
mkdir -p dbskkd-cdb/patches > /dev/null 2>&1
echo x - dbskkd-cdb/patches/patch-aa
sed 's/^X//' >dbskkd-cdb/patches/patch-aa << 'END-of-dbskkd-cdb/patches/patch-aa'
X--- Makefile.dist	Wed Jun 16 15:26:04 1999
X+++ Makefile	Fri Jun 18 14:17:15 1999
X@@ -2,7 +2,8 @@
X # $Id: Makefile,v 1.6 1998/12/12 11:24:36 kenji Exp $
X 
X # please define SERVERDIR
X-SERVERDIR = /usr/local/libexec
X+SERVERDIR = ${PREFIX}/libexec
X+JISHOFILE = ${PREFIX}/share/dbskkd-cdb/${SKKJISYO}.cdb
X # for FreeBSD-2.x and BSD/OS (without shlib)
X CC = gcc -O -g
X COMPAT =
X@@ -17,7 +18,7 @@
X 	$(CC) $(LDFLAGS) -o dbskkd-cdb dbskkd-cdb.o $(LDFLAGS)
X 
X dbskkd-cdb.o: dbskkd-cdb.c
X-	$(CC) $(COMPAT) $(PRIVATE) -DSERVER_DIR=\"$(SERVERDIR)\" -c dbskkd-cdb.c
X+	$(CC) $(COMPAT) $(PRIVATE) -DJISHO_FILE=\"$(JISHOFILE)\" -DSERVER_DIR=\"$(SERVERDIR)\" -c dbskkd-cdb.c
X 
X install: dbskkd-cdb 
X 	cp dbskkd-cdb $(SERVERDIR); chmod 755 $(SERVERDIR)/dbskkd-cdb
END-of-dbskkd-cdb/patches/patch-aa
echo x - dbskkd-cdb/patches/patch-ab
sed 's/^X//' >dbskkd-cdb/patches/patch-ab << 'END-of-dbskkd-cdb/patches/patch-ab'
X--- makeskkcdb.sh.dist	Sat Dec 12 20:01:39 1998
X+++ makeskkcdb.sh	Fri Jun 18 14:36:58 1999
X@@ -1,4 +1,4 @@
X #!/bin/sh
X #$Id: makeskkcdb.sh,v 1.1 1998/12/12 11:01:36 kenji Exp $
X-./skktocdbm.sh < /usr/local/share/skk/SKK-JISYO.L | \
X-	cdbmake SKK-JISYO.L.cdb SKK-JISYO.L.tmp
X+./skktocdbm.sh < ./${SKKJISYO} | \
X+	./cdbmake ${SKKJISYO}.cdb ${SKKJISYO}.tmp
END-of-dbskkd-cdb/patches/patch-ab
echo x - dbskkd-cdb/patches/patch-ac
sed 's/^X//' >dbskkd-cdb/patches/patch-ac << 'END-of-dbskkd-cdb/patches/patch-ac'
X--- Release-Notes.English.dist	Wed Jun 16 15:20:45 1999
X+++ Release-Notes.English	Thu Jun 17 14:08:39 1999
X@@ -91,13 +91,13 @@
X    Make a copy of libcdb.a to the current directory, because you need this
X    to compile dbskkd-cdb.
X 
X-3. Run makeskkcdb.sh and make SKK-JISYO.L.cdb.
X+3. Run makeskkcdb.sh and make %%JISYONAME%%.cdb.
X    This script invokes skktocdbm.sh and
X-   redirect /usr/local/share/skk/SKK-JISYO.L as the stdin of skktocdbm.sh.
X-   The SKK-JISYO.L.cdb is created under the current directory as default.
X+   redirect %%PREFIX%%/share/skk/%%JISYONAME%% as the stdin of skktocdbm.sh.
X+   The %%JISYONAME%%.cdb is created under the current directory as default.
X    Change the default pathnames if you need to do so.
X 
X-4. Install the SKK-JISYO.L.cdb.  The author recommend installing it to
X+4. Install the %%JISYONAME%%.cdb.  The author recommend installing it to
X    the same directory where the SKK directory resides.  The consistency
X    of this cdb-style directory can be verified by cdbtest or cdbstats
X    utilities of the cdb package.
X@@ -108,11 +108,11 @@
X ---------------------------------------
X 
X 1. Set the pathname of SERVER_DIR in dbskkd-cdb.c to the directory
X-   where the server resides.  The default value is /usr/local/etc/dbskkd.
X+   where the server resides.  The default value is %%PREFIX%%/libexec.
X 
X 2. Set the pathname of JISHO_FILE in dbskkd-cdb.c to the directory
X    where the cdb-style dictionary resides.
X-   The defaule value is /usr/local/share/skk/SKK-JISYO.L.cdb.
X+   The defaule value is %%PREFIX%%/share/dbskkd-cdb/%%JISYONAME%%.cdb.
X 
X 3. Setting the compile-time flag LOG_PEERINFO lets the dbskkd-cdb log the
X    source address of the client connected to the server.  This flag is
X@@ -135,7 +135,7 @@
X 2. Add the following line (or something similar) to /etc/inetd.conf:
X    (This example is for a FreeBSD 2.2.8-RELEASE system using tcp_wrapper)
X 
X-skkserv stream  tcp     nowait  nobody  /usr/local/libexec/tcpd       /usr/local/etc/dbskkd/dbskkd
X+skkserv stream  tcp     nowait  nobody  %%PREFIX%%/libexec/tcpd       %%PREFIX%%/libexec/dbskkd-cdb
X 
X    *NEVER* run dbskkd-cdb with the root privilege.  Use nobody or
X    a dedicated uid for running dbskkd-cdb.
END-of-dbskkd-cdb/patches/patch-ac
echo x - dbskkd-cdb/patches/patch-ad
sed 's/^X//' >dbskkd-cdb/patches/patch-ad << 'END-of-dbskkd-cdb/patches/patch-ad'
X--- Release-Notes.Japanese.dist	Wed Jun 16 15:22:29 1999
X+++ Release-Notes.Japanese	Thu Jun 17 14:07:08 1999
X@@ -75,11 +75,11 @@
X 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B:]$K(Bcdb$B7A<0$K$7$?<-=q%U%!%$%k$N%Q%9L>$H$9$k!#(B
X-   $B%G%U%)%k%H$O(B /usr/local/share/skk/SKK-JISYO.L.cdb $B!#(B
X+   $B%G%U%)%k%H$O(B %%PREFIX%%/share/dbskkd-cdb/%%JISYONAME%%.cdb $B!#(B
X 
X 3. $B%3%s%Q%$%k%U%i%0$N(BLOG_PEERINFO$B$O(Btcp_wrapper$B$J$I$r;H$o$J$$:]$K(B
X    $B$I$N%[%9%H$+$i@\B3$7$F$-$?$+$r5-O?$9$k$?$a$N$b$N$G$"$k!#(B
X@@ -111,7 +111,7 @@
X 
X 2. /etc/inetd.conf$B$K(B
X 
X-skkserv stream  tcp     nowait  nobody  /usr/local/libexec/tcpd       /usr/local/etc/dbskkd/dbskkd-cdb
X+skkserv stream  tcp     nowait  nobody  %%PREFIX%%/libexec/tcpd       %%PREFIX%%/libexec/dbskkd-cdb
X    
X    $B$r2C$($k!#(B(FreeBSD 2.2.8-RELEASE$B$G(Btcp_wrapper$B;HMQ$N>l9g(B)
X    root$B8"8B$G$OF0:n$5$;$F$O$J$i$J$$!#(Bnobody$B$GF0$+$9$3$H!#(B
END-of-dbskkd-cdb/patches/patch-ad
echo c - dbskkd-cdb/pkg
mkdir -p dbskkd-cdb/pkg > /dev/null 2>&1
echo x - dbskkd-cdb/pkg/COMMENT
sed 's/^X//' >dbskkd-cdb/pkg/COMMENT << 'END-of-dbskkd-cdb/pkg/COMMENT'
XYet another dictionary server for SKK
END-of-dbskkd-cdb/pkg/COMMENT
echo x - dbskkd-cdb/pkg/DESCR
sed 's/^X//' >dbskkd-cdb/pkg/DESCR << 'END-of-dbskkd-cdb/pkg/DESCR'
Xdbskkd-cdb is a dictionary server for the SKK Japanese input method
Xsystem.  dbskkd-cdb is based on the code of skkserv (the original SKK
Xserver) 3.9.3, using the cdb constant database package of
XD. J. Bernstein (DJB) for faster dictionary access.
X
Xdbskkd-cdb is compatible with skkserv on the protocol behavior.  It is
Xcalled from "super-server" programs such as inetd or tcpserver, and the
XI/O operation is solely with the stdio interface, so the code is compact
Xand the access to the server can be easily restricted.
X
XYou should invoke dbskkd-cdb via inetd. Add
X
Xskkserv stream tcp nowait nobody ${PREFIX}/libexec/dbskkd-cdb dbskkd-cdb
X
Xto your /etc/inetd.conf (usually, ${PREFIX} will be replaced to `/usr/local'),
Xand send SIGHUP to your inetd.
END-of-dbskkd-cdb/pkg/DESCR
echo x - dbskkd-cdb/pkg/PLIST
sed 's/^X//' >dbskkd-cdb/pkg/PLIST << 'END-of-dbskkd-cdb/pkg/PLIST'
Xlibexec/dbskkd-cdb
Xshare/dbskkd-cdb/%%JISYONAME%%.cdb
Xshare/doc/dbskkd-cdb/Release-Notes.English
Xshare/doc/dbskkd-cdb/Release-Notes.Japanese
Xshare/doc/dbskkd-cdb/LICENSE
X@dirrm share/dbskkd-cdb
X@dirrm share/doc/dbskkd-cdb
END-of-dbskkd-cdb/pkg/PLIST
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990705103821B.matusita>