diff options
author | taoka <taoka@FreeBSD.org> | 1999-09-09 01:08:42 +0800 |
---|---|---|
committer | taoka <taoka@FreeBSD.org> | 1999-09-09 01:08:42 +0800 |
commit | 4d8471e6aadcd2ee1ea49efa621859b567b65c3c (patch) | |
tree | 77618e50ca6e8693f21522f429ca07f4e462ac01 | |
parent | 1dd22e7f96cbed7b66e0fe08b7923b115f782a90 (diff) | |
download | freebsd-ports-gnome-4d8471e6aadcd2ee1ea49efa621859b567b65c3c.tar.gz freebsd-ports-gnome-4d8471e6aadcd2ee1ea49efa621859b567b65c3c.tar.zst freebsd-ports-gnome-4d8471e6aadcd2ee1ea49efa621859b567b65c3c.zip |
Yet another dictionary server for SKK
PR: 12513
Submitted by: Makoto Matsushita <matusita@jp.FreeBSD.ORG>
-rw-r--r-- | japanese/dbskkd-cdb/Makefile | 63 | ||||
-rw-r--r-- | japanese/dbskkd-cdb/distinfo | 1 | ||||
-rw-r--r-- | japanese/dbskkd-cdb/files/patch-aa | 21 | ||||
-rw-r--r-- | japanese/dbskkd-cdb/files/patch-ab | 9 | ||||
-rw-r--r-- | japanese/dbskkd-cdb/files/patch-ac | 43 | ||||
-rw-r--r-- | japanese/dbskkd-cdb/files/patch-ad | 39 | ||||
-rw-r--r-- | japanese/dbskkd-cdb/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/dbskkd-cdb/pkg-descr | 16 | ||||
-rw-r--r-- | japanese/dbskkd-cdb/pkg-plist | 7 |
9 files changed, 200 insertions, 0 deletions
diff --git a/japanese/dbskkd-cdb/Makefile b/japanese/dbskkd-cdb/Makefile new file mode 100644 index 000000000000..5f224bf14e5b --- /dev/null +++ b/japanese/dbskkd-cdb/Makefile @@ -0,0 +1,63 @@ +# New ports collection makefile for: dbskkd-cdb +# Version required: 1.00 +# Date created: 17 Jun 1999 +# Whom: Makoto Matsushita <matusita@jp.FreeBSD.ORG> +# +# $FreeBSD$ +# + +DISTNAME= dbskkd-cdb-1.00 +PKGNAME= ja-dbskkd-cdb-1.00 +CATEGORIES= japanese +MASTER_SITES= http://www.k2r.org/kenji/software/ + +MAINTAINER= matusita@jp.Freebsd.ORG + +SKKJISYO_SIZE?= L +SKKJISYO?= SKK-JISYO.${SKKJISYO_SIZE} +DOCS= Release-Notes.English Release-Notes.Japanese LICENSE + +MAKE_ENV+= SKKJISYO=${SKKJISYO} +PLIST_SUB= JISYONAME=${SKKJISYO} + +post-patch: +.for docs in ${DOCS} + @${SED} -e "s!%%PREFIX%%!${PREFIX}!g" -e "s!%%JISYONAME%%!${SKKJISYO}!g" < ${WRKSRC}/${docs} > ${WRKSRC}/.tmp + @${MV} -f ${WRKSRC}/.tmp ${WRKSRC}/${docs} +.endfor + +post-install: + @${MKDIR} ${PREFIX}/share/dbskkd-cdb ${PREFIX}/share/doc/dbskkd-cdb + ${INSTALL_DATA} ${WRKSRC}/${SKKJISYO}.cdb ${PREFIX}/share/dbskkd-cdb +.for docs in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${docs} ${PREFIX}/share/doc/dbskkd-cdb +.endfor + +.include <bsd.port.pre.mk> + +.if defined(USE_INSTALLED_JISYO) && ${USE_INSTALLED_JISYO} == YES || \ + exists(${LOCALBASE}/share/skk/${SKKJISYO}) && \ + (!defined(USE_INSTALLED_JISYO) || ${USE_INSTALLED_JISYO} != NO) +pre-build:: + @${CP} ${LOCALBASE}/share/skk/${SKKJISYO} ${WRKSRC} +.else +BUILD_DEPENDS+= /nonexistent:${PORTSDIR}/japanese/skk-jisyo:extract +pre-build:: + @${CP} ${PORTSDIR}/japanese/skk-jisyo/work/*/jisyo/${SKKJISYO} ${WRKSRC} +.endif + +.if defined(USE_INSTALLED_CDB) && ${USE_INSTALLED_CDB} == YES || \ + exists(${LOCALBASE}/lib/libcdb.a) && exists(${LOCALBASE}/bin/cdbmake) && \ + (!defined(USE_INSTALLED_CDB) || ${USE_INSTALLED_CDB} != NO) +pre-build:: + @${CP} ${LOCALBASE}/lib/libcdb.a ${LOCALBASE}/bin/cdbmake ${WRKSRC} + @(cd ${WRKSRC}; SKKJISYO=${SKKJISYO} ./makeskkcdb.sh) +.else +BUILD_DEPENDS+= /nonexistent:${PORTSDIR}/databases/cdb:build +pre-build:: + @${CP} ${PORTSDIR}/databases/cdb/work/*/libcdb.a ${WRKSRC} + @${CP} ${PORTSDIR}/databases/cdb/work/*/cdbmake ${WRKSRC} + @(cd ${WRKSRC}; SKKJISYO=${SKKJISYO} ./makeskkcdb.sh) +.endif + +.include <bsd.port.post.mk> diff --git a/japanese/dbskkd-cdb/distinfo b/japanese/dbskkd-cdb/distinfo new file mode 100644 index 000000000000..d6796f3b8c76 --- /dev/null +++ b/japanese/dbskkd-cdb/distinfo @@ -0,0 +1 @@ +MD5 (dbskkd-cdb-1.00.tar.gz) = fb2b8b60b51b99a735ccfb5001d54eaa diff --git a/japanese/dbskkd-cdb/files/patch-aa b/japanese/dbskkd-cdb/files/patch-aa new file mode 100644 index 000000000000..27e5c1e27152 --- /dev/null +++ b/japanese/dbskkd-cdb/files/patch-aa @@ -0,0 +1,21 @@ +--- Makefile.dist Wed Jun 16 15:26:04 1999 ++++ Makefile Fri Jun 18 14:17:15 1999 +@@ -2,7 +2,8 @@ + # $Id: Makefile,v 1.6 1998/12/12 11:24:36 kenji Exp $ + + # please define SERVERDIR +-SERVERDIR = /usr/local/libexec ++SERVERDIR = ${PREFIX}/libexec ++JISHOFILE = ${PREFIX}/share/dbskkd-cdb/${SKKJISYO}.cdb + # for FreeBSD-2.x and BSD/OS (without shlib) + CC = gcc -O -g + COMPAT = +@@ -17,7 +18,7 @@ + $(CC) $(LDFLAGS) -o dbskkd-cdb dbskkd-cdb.o $(LDFLAGS) + + dbskkd-cdb.o: dbskkd-cdb.c +- $(CC) $(COMPAT) $(PRIVATE) -DSERVER_DIR=\"$(SERVERDIR)\" -c dbskkd-cdb.c ++ $(CC) $(COMPAT) $(PRIVATE) -DJISHO_FILE=\"$(JISHOFILE)\" -DSERVER_DIR=\"$(SERVERDIR)\" -c dbskkd-cdb.c + + install: dbskkd-cdb + cp dbskkd-cdb $(SERVERDIR); chmod 755 $(SERVERDIR)/dbskkd-cdb diff --git a/japanese/dbskkd-cdb/files/patch-ab b/japanese/dbskkd-cdb/files/patch-ab new file mode 100644 index 000000000000..dff95357e6a9 --- /dev/null +++ b/japanese/dbskkd-cdb/files/patch-ab @@ -0,0 +1,9 @@ +--- makeskkcdb.sh.dist Sat Dec 12 20:01:39 1998 ++++ makeskkcdb.sh Fri Jun 18 14:36:58 1999 +@@ -1,4 +1,4 @@ + #!/bin/sh + #$Id: makeskkcdb.sh,v 1.1 1998/12/12 11:01:36 kenji Exp $ +-./skktocdbm.sh < /usr/local/share/skk/SKK-JISYO.L | \ +- cdbmake SKK-JISYO.L.cdb SKK-JISYO.L.tmp ++./skktocdbm.sh < ./${SKKJISYO} | \ ++ ./cdbmake ${SKKJISYO}.cdb ${SKKJISYO}.tmp diff --git a/japanese/dbskkd-cdb/files/patch-ac b/japanese/dbskkd-cdb/files/patch-ac new file mode 100644 index 000000000000..5407e75f4b6f --- /dev/null +++ b/japanese/dbskkd-cdb/files/patch-ac @@ -0,0 +1,43 @@ +--- Release-Notes.English.dist Wed Jun 16 15:20:45 1999 ++++ Release-Notes.English Thu Jun 17 14:08:39 1999 +@@ -91,13 +91,13 @@ + Make a copy of libcdb.a to the current directory, because you need this + to compile dbskkd-cdb. + +-3. Run makeskkcdb.sh and make SKK-JISYO.L.cdb. ++3. Run makeskkcdb.sh and make %%JISYONAME%%.cdb. + This script invokes skktocdbm.sh and +- redirect /usr/local/share/skk/SKK-JISYO.L as the stdin of skktocdbm.sh. +- The SKK-JISYO.L.cdb is created under the current directory as default. ++ redirect %%PREFIX%%/share/skk/%%JISYONAME%% as the stdin of skktocdbm.sh. ++ The %%JISYONAME%%.cdb is created under the current directory as default. + Change the default pathnames if you need to do so. + +-4. Install the SKK-JISYO.L.cdb. The author recommend installing it to ++4. Install the %%JISYONAME%%.cdb. The author recommend installing it to + the same directory where the SKK directory resides. The consistency + of this cdb-style directory can be verified by cdbtest or cdbstats + utilities of the cdb package. +@@ -108,11 +108,11 @@ + --------------------------------------- + + 1. Set the pathname of SERVER_DIR in dbskkd-cdb.c to the directory +- where the server resides. The default value is /usr/local/etc/dbskkd. ++ where the server resides. The default value is %%PREFIX%%/libexec. + + 2. Set the pathname of JISHO_FILE in dbskkd-cdb.c to the directory + where the cdb-style dictionary resides. +- The defaule value is /usr/local/share/skk/SKK-JISYO.L.cdb. ++ The defaule value is %%PREFIX%%/share/dbskkd-cdb/%%JISYONAME%%.cdb. + + 3. Setting the compile-time flag LOG_PEERINFO lets the dbskkd-cdb log the + source address of the client connected to the server. This flag is +@@ -135,7 +135,7 @@ + 2. Add the following line (or something similar) to /etc/inetd.conf: + (This example is for a FreeBSD 2.2.8-RELEASE system using tcp_wrapper) + +-skkserv stream tcp nowait nobody /usr/local/libexec/tcpd /usr/local/etc/dbskkd/dbskkd ++skkserv stream tcp nowait nobody %%PREFIX%%/libexec/tcpd %%PREFIX%%/libexec/dbskkd-cdb + + *NEVER* run dbskkd-cdb with the root privilege. Use nobody or + a dedicated uid for running dbskkd-cdb. diff --git a/japanese/dbskkd-cdb/files/patch-ad b/japanese/dbskkd-cdb/files/patch-ad new file mode 100644 index 000000000000..9a01491f9e53 --- /dev/null +++ b/japanese/dbskkd-cdb/files/patch-ad @@ -0,0 +1,39 @@ +--- Release-Notes.Japanese.dist Wed Jun 16 15:22:29 1999 ++++ Release-Notes.Japanese Thu Jun 17 14:07:08 1999 +@@ -75,11 +75,11 @@ + + 3. $BE:IU$N(Bmakeskkcdb.sh$B$r<B9T$9$k!#$3$N%9%/%j%W%H$G$O(B + $B<-=q%U%!%$%k$O(Bskktocdbm.sh$B$NI8=`F~NO$KM?$($k$h$&$K$J$C$F$$$k!#(B +- $B%G%U%)%k%H$O(B /usr/local/share/skk/SKK-JISYO.L$B$r;XDj$7$F$$$k!#(B +- $B$^$?!"%G%U%)%k%H$G$O%+%l%s%H%G%#%l%/%H%j$K(B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?$+$r5-O?$9$k$?$a$N$b$N$G$"$k!#(B +@@ -111,7 +111,7 @@ + + 2. /etc/inetd.conf$B$K(B + +-skkserv stream tcp nowait nobody /usr/local/libexec/tcpd /usr/local/etc/dbskkd/dbskkd-cdb ++skkserv stream tcp nowait nobody %%PREFIX%%/libexec/tcpd %%PREFIX%%/libexec/dbskkd-cdb + + $B$r2C$($k!#(B(FreeBSD 2.2.8-RELEASE$B$G(Btcp_wrapper$B;HMQ$N>l9g(B) + root$B8"8B$G$OF0:n$5$;$F$O$J$i$J$$!#(Bnobody$B$GF0$+$9$3$H!#(B diff --git a/japanese/dbskkd-cdb/pkg-comment b/japanese/dbskkd-cdb/pkg-comment new file mode 100644 index 000000000000..d67c361f34b6 --- /dev/null +++ b/japanese/dbskkd-cdb/pkg-comment @@ -0,0 +1 @@ +Yet another dictionary server for SKK diff --git a/japanese/dbskkd-cdb/pkg-descr b/japanese/dbskkd-cdb/pkg-descr new file mode 100644 index 000000000000..e149ffb11c63 --- /dev/null +++ b/japanese/dbskkd-cdb/pkg-descr @@ -0,0 +1,16 @@ +dbskkd-cdb is a dictionary server for the SKK Japanese input method +system. dbskkd-cdb is based on the code of skkserv (the original SKK +server) 3.9.3, using the cdb constant database package of +D. J. Bernstein (DJB) for faster dictionary access. + +dbskkd-cdb is compatible with skkserv on the protocol behavior. It is +called from "super-server" programs such as inetd or tcpserver, and the +I/O operation is solely with the stdio interface, so the code is compact +and the access to the server can be easily restricted. + +You should invoke dbskkd-cdb via inetd. Add + +skkserv stream tcp nowait nobody ${PREFIX}/libexec/dbskkd-cdb dbskkd-cdb + +to your /etc/inetd.conf (usually, ${PREFIX} will be replaced to `/usr/local'), +and send SIGHUP to your inetd. diff --git a/japanese/dbskkd-cdb/pkg-plist b/japanese/dbskkd-cdb/pkg-plist new file mode 100644 index 000000000000..015a614a4b3b --- /dev/null +++ b/japanese/dbskkd-cdb/pkg-plist @@ -0,0 +1,7 @@ +libexec/dbskkd-cdb +share/dbskkd-cdb/%%JISYONAME%%.cdb +share/doc/dbskkd-cdb/Release-Notes.English +share/doc/dbskkd-cdb/Release-Notes.Japanese +share/doc/dbskkd-cdb/LICENSE +@dirrm share/dbskkd-cdb +@dirrm share/doc/dbskkd-cdb |