From nobody Sun Aug 18 06:56:24 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WmmjP1ywjz5SWgN; Sun, 18 Aug 2024 06:56:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WmmjP1N9rz59PT; Sun, 18 Aug 2024 06:56:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723964185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WdKovuQkOK5DT7gnK+OkZW92/glKXwgi2BbYQpOarIA=; b=gv9gvWySwnOzbiRJXOcd6ODGr6dq7PxuBEs4nFm6KqafBNsfbbJ17Mw4UDsCbXt05Zy8C3 7kz4/fjHoKqr+QBuwUGFGYmFEQHv8Be3MrArlVTOgHTgncZWz9HCvXPczAm/+mSHR4/OAC e8AUdsJXFx4m03x0DM826uYMQKa8gg6c7r1mQNlXR2VcMTolAhFwb6Vrlqi+WMJ6PYl96v uHk8a6kVKZmCrvfF+ma0hQi2YSAhHLuO/OlVlwILwURW9/ChaWa8+B6RGvDwqA+/iFaD4V D6EZQPszDX1oxVjY6gY+AMLKudn7fxVbOwgChP6QJdvbMpnH1nhjPRf2phrIcA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723964185; a=rsa-sha256; cv=none; b=VzGGKLxX0o307ga9H8jtk4+zic5wxuQ015OhIGnXHCMjciv7FE0VJTrmNU+Fm/PB/yRbo+ jC8alnpm53roidDdecNe+LlGGXo+bUFmHALGDs/C4w/98Jwc/EzI87/LGlzaEcUxooTmmA 1lmne21ysEmWCEYMAjQqYtMd+27AeBYa3c8fAYivzYdgVmzLx+HLQELBCGKQinhCbMJy1u xchWeElDJB9fx+CTv4njgOtVK8pPuZUeOcE7X56FcU/KrDRYdVRpRZLdZw8Bo7CHsujJEW ck5DJpX4OwK0z75TmAGp6dOQrKBW1mcZR0VB29Qslzi6+eJBcubOYPYlJXTryg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723964185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WdKovuQkOK5DT7gnK+OkZW92/glKXwgi2BbYQpOarIA=; b=bDttzJy5BIDA8+PzQG9O6qDvXX1yfTR0y3tZBvIx18w4219Kbq7yc7gvza42q8oEB+dDS2 7Xws3hQMSA/z7PcTQGvYJI5afIbYxXHQWysz+k1GEwvDMHrLbga5oHX4bUcPGqFqbHfaL2 kyjJ5juQmBupHTiEVgD3kh2n7uWVRBQ+rZTf0ia/0BW+ntEX0vuiteadkcS7R0W0LyXcZU MwbaQ2ormRW9jhFIzr1bVj+q7zUXZBDB70xu2/xI7Ygx8h4Jing1+sSto618SgISJMACgX NMRvD4ku5DpEw7wsrX7K8V2cjdo4CGhgKH+WxIQ0j2b0I7rvEW7hPWTckk0SCQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WmmjP0q94zN2W; Sun, 18 Aug 2024 06:56:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47I6uPqB077221; Sun, 18 Aug 2024 06:56:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47I6uOri077218; Sun, 18 Aug 2024 06:56:24 GMT (envelope-from git) Date: Sun, 18 Aug 2024 06:56:24 GMT Message-Id: <202408180656.47I6uOri077218@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: MANTANI Nobutaka Subject: git: 43d00a248a3b - main - japanese/multiskkserv: Resurrect and update to 20240224 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nobutaka X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 43d00a248a3b9e0bbbb98f8ca59881db922b0bd4 Auto-Submitted: auto-generated The branch main has been updated by nobutaka: URL: https://cgit.FreeBSD.org/ports/commit/?id=43d00a248a3b9e0bbbb98f8ca59881db922b0bd4 commit 43d00a248a3b9e0bbbb98f8ca59881db922b0bd4 Author: MANTANI Nobutaka AuthorDate: 2024-08-18 06:52:26 +0000 Commit: MANTANI Nobutaka CommitDate: 2024-08-18 06:52:26 +0000 japanese/multiskkserv: Resurrect and update to 20240224 PR: 278562 Reported by: mew14930xvi --- japanese/Makefile | 1 + japanese/multiskkserv/Makefile | 42 +++++++++++++++++++++++++++++ japanese/multiskkserv/distinfo | 3 +++ japanese/multiskkserv/files/multiskkserv.in | 20 ++++++++++++++ japanese/multiskkserv/pkg-descr | 5 ++++ 5 files changed, 71 insertions(+) diff --git a/japanese/Makefile b/japanese/Makefile index 6bcd8776bf6a..8cd3d2617abd 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -182,6 +182,7 @@ SUBDIR += mozc-el SUBDIR += mozc-server SUBDIR += mozc-tool + SUBDIR += multiskkserv SUBDIR += mypaedia-fpw-package SUBDIR += namazu SUBDIR += namazu2 diff --git a/japanese/multiskkserv/Makefile b/japanese/multiskkserv/Makefile new file mode 100644 index 000000000000..e609ede970a5 --- /dev/null +++ b/japanese/multiskkserv/Makefile @@ -0,0 +1,42 @@ +PORTNAME= multiskkserv +DISTVERSION= 20240224 +CATEGORIES= japanese + +MAINTAINER= mew14930xvi@inbox.lv +COMMENT= Multiple dictionary server for the SKK +WWW= https://github.com/sina-ht/multiskkserv/ + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +RUN_DEPENDS= ${LOCALBASE}/${SKKDIR}/SKK-JISYO.L.cdb:japanese/skk-jisyo-cdb \ + ${LOCALBASE}/${SKKDIR}/SKK-JISYO.jawiki.cdb:japanese/skk-jawiki + +USES= autoreconf libtool +USE_GITHUB= yes +GH_ACCOUNT= sina-ht +GH_TAGNAME= 2ffe7cd + +SKKDIR?= share/skk +SKKJISYO_TYPE?= L JIS2 JIS3_4 jawiki + +USE_RC_SUBR= ${PORTNAME} +GNU_CONFIGURE= yes + +SUB_FILES= ${PORTNAME} +SUB_LIST= SKKDICS="${SKKJISYO_TYPE:S/^/${PREFIX}\/${SKKDIR}\/SKK-JISYO./:S/$/.cdb/}" + +PLIST_FILES= bin/skkdic-p2cdb sbin/multiskkserv sbin/multiskkserv-ctl + +OPTIONS_DEFINE= CDB +OPTIONS_DEFAULT= CDB +CDB_DESC= Use databases/cdb instead of bundled tinycdb +CDB_EXTRACT_DEPENDS= ${NONEXISTENT}:databases/cdb:build +CDB_CONFIGURE_ON= --with-cdb=`${MAKE} -C ${PORTSDIR}/databases/cdb -V WRKSRC` + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/tools/skkdic-p2cdb ${STAGEDIR}${PREFIX}/bin + cd ${WRKSRC}/src && ${INSTALL_PROGRAM} multiskkserv multiskkserv-ctl \ + ${STAGEDIR}${PREFIX}/sbin + +.include diff --git a/japanese/multiskkserv/distinfo b/japanese/multiskkserv/distinfo new file mode 100644 index 000000000000..587b3571d2b3 --- /dev/null +++ b/japanese/multiskkserv/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1713851829 +SHA256 (sina-ht-multiskkserv-20240224-2ffe7cd_GH0.tar.gz) = e40c06236f682296eeac57e935c1373f41e5231fe8efff33a56919f530ccaacc +SIZE (sina-ht-multiskkserv-20240224-2ffe7cd_GH0.tar.gz) = 219138 diff --git a/japanese/multiskkserv/files/multiskkserv.in b/japanese/multiskkserv/files/multiskkserv.in new file mode 100644 index 000000000000..14ccd1a1f5d0 --- /dev/null +++ b/japanese/multiskkserv/files/multiskkserv.in @@ -0,0 +1,20 @@ +#!/bin/sh + +# PROVIDE: multiskkserv +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# See `%%PREFIX%%/sbin/multiskkserv -h` for flags +# NOTE: multiskkserv won't auto-detach itself, use &. + +. /etc/rc.subr + +name=multiskkserv +rcvar=multiskkserv_enable +command=%%PREFIX%%/sbin/multiskkserv + +: ${multiskkserv_enable:="NO"} +: ${multiskkserv_flags:="-s 127.0.0.1 %%SKKDICS%% &"} + +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..b318352ea681 --- /dev/null +++ b/japanese/multiskkserv/pkg-descr @@ -0,0 +1,5 @@ +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.