diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-01-08 02:17:34 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-01-08 02:17:34 +0000 |
commit | e2b96eab4a37de9af0f744c3fb3a9c667ba46812 (patch) | |
tree | ffcd8af679999c82160e4a0bfddee35a235a659e /japanese/multiskkserv | |
parent | Update to 2.6.1-11: bugfixes and better start/stop script; also, some (diff) |
New port: japanese/multiskkserv
multiskkserv is a skk server which can search multiple
dictionaries. This server uses cdb format as the dictionary
format. cdb is the efficient and constant (i.e. cannot
add, delete, modify) database format by Dan J. Bernstein,
which I think is the appropriate format for the system-wide
constant dictionary storage.
This is very experimental.
PR: ports/60645
Submitted by: Takahiro Morishita <morishita@skywing.org>
Notes
Notes:
svn path=/head/; revision=97633
Diffstat (limited to 'japanese/multiskkserv')
-rw-r--r-- | japanese/multiskkserv/Makefile | 48 | ||||
-rw-r--r-- | japanese/multiskkserv/distinfo | 2 | ||||
-rw-r--r-- | japanese/multiskkserv/files/multiskkserv.sh | 31 | ||||
-rw-r--r-- | japanese/multiskkserv/pkg-descr | 10 | ||||
-rw-r--r-- | japanese/multiskkserv/pkg-plist | 4 |
5 files changed, 95 insertions, 0 deletions
diff --git a/japanese/multiskkserv/Makefile b/japanese/multiskkserv/Makefile new file mode 100644 index 000000000000..65c7310b963b --- /dev/null +++ b/japanese/multiskkserv/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: multiskkserv +# Date created: 27 Dec 2003 +# Whom: Takahiro Morishita <morishita@skywing.org> +# +# $FreeBSD$ +# + +PORTNAME= multiskkserv +PORTVERSION= 0.20020201 +CATEGORIES= japanese +MASTER_SITES= http://www3.big.or.jp/~sian/linux/products/ +DISTNAME= ${PORTNAME}-${PORTVERSION:S/0.//g} + +MAINTAINER= morishita@skywing.org +COMMENT= Multiple dictionary server for the SKK + +EXTRACT_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/databases/cdb:build +RUN_DEPENDS= ${LOCALBASE}/${SKKDIR}/SKK-JISYO.${SKKJISYO_TYPE}.cdb:${PORTSDIR}/japanese/skk-jisyo-cdb + +USE_BZIP2= yes + +SKKDIR?= share/skk +SKKJISYO_TYPE?= L + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/0.//g} +USE_RC_SUBR= yes +USE_REINPLACE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-cdb=`cd ${PORTSDIR}/databases/cdb; ${MAKE} -V WRKSRC` + +post-extract: + ${CP} ${FILESDIR}/multiskkserv.sh ${WRKDIR}/multiskkserv.sh + +post-patch: + @${REINPLACE_CMD} \ + -e 's,%%PREFIX%%,${PREFIX},g' \ + -e 's,%%RC_SUBR%%,${RC_SUBR},g' \ + -e 's,%%SKKDIR%%,${SKKDIR},g' \ + -e 's,%%SKKJISYO_TYPE%%,${SKKJISYO_TYPE},g' \ + ${WRKDIR}/multiskkserv.sh + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/src/multiskkserv ${PREFIX}/sbin + @${INSTALL_PROGRAM} ${WRKSRC}/src/multiskkserv-ctl ${PREFIX}/sbin + @${INSTALL_PROGRAM} ${WRKSRC}/tools/skkdic-p2cdb ${PREFIX}/bin + @${INSTALL_SCRIPT} ${WRKDIR}/multiskkserv.sh ${PREFIX}/etc/rc.d/ + +.include <bsd.port.mk> diff --git a/japanese/multiskkserv/distinfo b/japanese/multiskkserv/distinfo new file mode 100644 index 000000000000..8a1407488ccd --- /dev/null +++ b/japanese/multiskkserv/distinfo @@ -0,0 +1,2 @@ +MD5 (multiskkserv-20020201.tar.bz2) = 68b3bc5a57de24d7a8d465802f5f4822 +MD5 (cdb-0.75.tar.gz) = 81fed54d0bde51b147dd6c20cdb92d51 diff --git a/japanese/multiskkserv/files/multiskkserv.sh b/japanese/multiskkserv/files/multiskkserv.sh new file mode 100644 index 000000000000..a733f6122ea0 --- /dev/null +++ b/japanese/multiskkserv/files/multiskkserv.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: multiskkserv +# REQUIRE: LOGIN +# KEYWORD: FreeBSD + +# +# Add the following lines to /etc/rc.conf to enable multiskkserv: +# +#multiskkserv_enable="YES" +# +# See `%%PREFIX%%/sbin/multiskkserv -h` for flags +# + +. %%RC_SUBR%% + +name=multiskkserv +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/multiskkserv + +# set defaults + +multiskkserv_enable=${multiskkserv_enable:-"NO"} +multiskkserv_flags=${multiskkserv_flags:-"%%PREFIX%%/%%SKKDIR%%/SKK-JISYO.%%SKKJISYO_TYPE%%.cdb"} + +load_rc_config ${name} +run_rc_command "$1" diff --git a/japanese/multiskkserv/pkg-descr b/japanese/multiskkserv/pkg-descr new file mode 100644 index 000000000000..7b27c7e5edd3 --- /dev/null +++ b/japanese/multiskkserv/pkg-descr @@ -0,0 +1,10 @@ +multiskkserv is a skk server which can search multiple dictionaries. +This server uses cdb format as the dictionary format. cdb is the +efficient and constant (i.e. cannot add, delete, modify) database +format by Dan J. Bernstein, which I think is the appropriate format +for the system-wide constant dictionary storage. + +This is very experimental. + +WWW: http://www3.big.or.jp/~sian/linux/products/ +Author: Hiroshi Takekawa <sian@big.or.jp> diff --git a/japanese/multiskkserv/pkg-plist b/japanese/multiskkserv/pkg-plist new file mode 100644 index 000000000000..13e2c74211ef --- /dev/null +++ b/japanese/multiskkserv/pkg-plist @@ -0,0 +1,4 @@ +sbin/multiskkserv +sbin/multiskkserv-ctl +bin/skkdic-p2cdb +etc/rc.d/multiskkserv.sh |