Date: Fri, 8 Jan 2010 23:07:53 GMT From: Goran Tal <goran.tal@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/142504: new port: net/gnu-dico - dict protocol server Message-ID: <201001082307.o08N7rPu064008@www.freebsd.org> Resent-Message-ID: <201001082310.o08NA247055142@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 142504 >Category: ports >Synopsis: new port: net/gnu-dico - dict protocol server >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 08 23:10:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Goran Tal >Release: >Organization: >Environment: >Description: Dico is an implementation of DICT server (RFC 2229) The port is named gnu-dico to avoid the confusion with french/dico port. Likewise, the client is installed as gdico to avoid the conflict. The port installs the sample configuration file for the server etc/dicod.conf.sample, but it doesn't copy it to etc/dicod.conf. The configuration file contains the configuration for dictionaries installed on the user's site. It is not possible to produce a default working configuration. Installation message informs the user to install dictionaries and configure them before the server can be started. The port also installs rc.d script etc/rc.d/dicod with the standard way for starting and stopping the server. >How-To-Repeat: >Fix: Patch attached with submission follows: # 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: # # gnu-dico # gnu-dico/files # gnu-dico/files/dicod.conf # gnu-dico/files/dicod.sh.in # gnu-dico/files/pkg-message.in # gnu-dico/Makefile # gnu-dico/pkg-descr # gnu-dico/pkg-plist # gnu-dico/distinfo # echo c - gnu-dico mkdir -p gnu-dico > /dev/null 2>&1 echo c - gnu-dico/files mkdir -p gnu-dico/files > /dev/null 2>&1 echo x - gnu-dico/files/dicod.conf sed 's/^X//' >gnu-dico/files/dicod.conf << 'aa82822ddefe78b4c860d4c6cb9775a1' X/* A sample configuration for GNU dicod */ X Xcapability (mime,xversion); Xtiming yes; Xaccess-log-file "/var/log/dictd-access_log"; Xaccess-log-format "%h %l %u %t \"%r\" %>s %b \"\" \"%C\""; X Xload-module dict { X command "dictorg dbdir=/usr/local/share/dict"; X} X Xload-module guile { X command "guile debug"; X} X Xload-module python { X command "python"; X} X Xdatabase { X name "devdict"; X handler "dict database=devils"; X} X Xdatabase { X name "plnum"; X handler "guile" X " init-script=/usr/local/share/dict/example.scm" X " init-fun=example-init" X " example.db"; X} X Xdatabase { X name "cznum"; X handler "python " X "load-path=/usr/local/share/dict " X "init-script=example " X "/usr/local/share/dict/example.text"; X} X Xlisten (localhost:dict, "/var/tmp/dict.sock"); Xmax-children 10; Xinactivity-timeout 5; X Xlog-tag "Dico dictd"; X Xserver-info <<EOT XThis is a test Dico server. XEOT; aa82822ddefe78b4c860d4c6cb9775a1 echo x - gnu-dico/files/dicod.sh.in sed 's/^X//' >gnu-dico/files/dicod.sh.in << 'a395d82dd92f8acf5d79d4066afb3150' X#!/bin/sh X# X# PROVIDE: dicod X# REQUIRE: DAEMON X# X# Add the following line to /etc/rc.conf to enable dicod: X# X# dicod_enable="YES" X# X Xdicod_enable=${dicod_enable-"NO"} X X. %%RC_SUBR%% X Xname=dicod Xrcvar=`set_rcvar` Xcommand=%%PREFIX%%/sbin/dicod X Xload_rc_config $name Xrun_rc_command "$1" a395d82dd92f8acf5d79d4066afb3150 echo x - gnu-dico/files/pkg-message.in sed 's/^X//' >gnu-dico/files/pkg-message.in << 'fa0035657cbb1f23868966c772dcfd6b' X================================================================ X XThis port installs Dict server dicod and Dict client gdico. X XTo enable the server, add the following line to /etc/rc.conf: X X dicod_enable="YES" X XBefore you can start dicod, you have to install dictionaries Xand configure them in %%PREFIX%%/etc/dicod.conf X XSee %%PREFIX%%/etc/dicod.conf.sample for examples. X XFor help see info documentation: info Dico X X================================================================ fa0035657cbb1f23868966c772dcfd6b echo x - gnu-dico/Makefile sed 's/^X//' >gnu-dico/Makefile << '7b025603a319136f6d87647b1785428a' X# New ports collection makefile for: gnu dico X# Date created: 27-12-2009 X# Whom: Goran Tal X# X# $FreeBSD$ X# X XPORTNAME= dico XPORTVERSION= 2.0 XCATEGORIES= net textproc XMASTER_SITES= ${MASTER_SITE_GNU} XMASTER_SITE_SUBDIR= ${PORTNAME} XPKGNAMEPREFIX= gnu- X XMAINTAINER= goran.tal@gmail.com XCOMMENT= Flexible modular implementation of DICT server X XUSE_LDCONFIG= yes XUSE_GMAKE= yes XUSE_AUTOTOOLS= libltdl:22 libtool:22 X XGNU_CONFIGURE= yes XCONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ X LDFLAGS="-L${LOCALBASE}/lib" XCONFIGURE_ARGS= --localstatedir=/var X XOPTIONS= PYTHON "With PYTHON support" on \ X GUILE "With GUILE support" on \ X GSASL "With GSASL support" off X X.include <bsd.port.options.mk> X X.if defined(WITH_PYTHON) XUSE_PYTHON= yes XPLIST_SUB+= PYTHON="" X.else XCONFIGURE_ARGS+=--without-python XPLIST_SUB+= PYTHON="@comment " X.endif X X.if defined(WITH_GUILE) XLIB_DEPENDS+= guile.20:${PORTSDIR}/lang/guile XPLIST_SUB+= GUILE="" X.else XCONFIGURE_ARGS+=--without-guile XPLIST_SUB+= GUILE="@comment " X.endif X X.if defined(WITH_GSASL) XLIB_DEPENDS+= gsasl.13:${PORTSDIR}/security/gsasl XCONFIGURE_ARGS+=--with-gsasl X.else XCONFIGURE_ARGS+=--without-gsasl X.endif X X.if !defined(WITHOUT_NLS) XUSE_GETTEXT= yes XPLIST_SUB+= NLS="" X.else XCONFIGURE_ARGS+=--disable-nls XPLIST_SUB+= NLS="@comment " X.endif X XINFO= dico X XPLIST_SUB+= PORTVERSION=${PORTVERSION} XSUB_FILES+= pkg-message XPLIST_FILES+= etc/dicod.conf.sample XUSE_RC_SUBR= dicod.sh X Xpost-patch: X @${REINPLACE_CMD} 's/ENODATA/EIO/' ${WRKSRC}/lib/utf8.c X @${REINPLACE_CMD} 's/@bindir@/@sbindir@/' ${WRKSRC}/dicod/Makefile.in X @${REINPLACE_CMD} 's/(bindir)\//(bindir)\/g/' ${WRKSRC}/dico/Makefile.in X @${REINPLACE_CMD} '/INSTALL.*charset/d' ${WRKSRC}/gnu/Makefile.in X Xpost-install: X @${INSTALL_DATA} ${FILESDIR}/dicod.conf ${PREFIX}/etc/dicod.conf.sample X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> 7b025603a319136f6d87647b1785428a echo x - gnu-dico/pkg-descr sed 's/^X//' >gnu-dico/pkg-descr << '82ec416d68a5efbf0cd27c6080fbb308' XDico is an implementation of DICT server (RFC 2229). It is fully Xmodular: the daemon itself (dicod) provides only the server Xfunctionality, but it knows nothing about database formats. Actual Xsearches are performed by functions supplied in loadable modules. A Xsingle module can serve one or more databases. The package includes Xthe following database modules: dictorg, guile, python, and outline. X XWWW: http://www.gnu.org/software/dico/ 82ec416d68a5efbf0cd27c6080fbb308 echo x - gnu-dico/pkg-plist sed 's/^X//' >gnu-dico/pkg-plist << 'fdd9cef1110e5dae2ae13a0ed25d6549' Xbin/gdico Xinclude/dico/argcv.h Xinclude/dico/assoc.h Xinclude/dico/diag.h Xinclude/dico/dico.h Xinclude/dico/filter.h Xinclude/dico/list.h Xinclude/dico/markup.h Xinclude/dico/parseopt.h Xinclude/dico/strat.h Xinclude/dico/stream.h Xinclude/dico/types.h Xinclude/dico/url.h Xinclude/dico/utf8.h Xinclude/dico/util.h Xinclude/dico/xlat.h Xlib/dico/dictorg.a Xlib/dico/dictorg.la Xlib/dico/dictorg.so X%%GUILE%%lib/dico/guile.a X%%GUILE%%lib/dico/guile.la X%%GUILE%%lib/dico/guile.so Xlib/dico/outline.a Xlib/dico/outline.la Xlib/dico/outline.so X%%PYTHON%%lib/dico/python.a X%%PYTHON%%lib/dico/python.la X%%PYTHON%%lib/dico/python.so Xlib/libdico.a Xlib/libdico.la Xlib/libdico.so Xlib/libdico.so.0 Xsbin/dicod Xshare/dico/%%PORTVERSION%%/include/pp-setup Xshare/dico/gjdict.xbm X%%NLS%%share/locale/pl/LC_MESSAGES/dico.mo X%%NLS%%share/locale/uk/LC_MESSAGES/dico.mo X@dirrm share/dico/%%PORTVERSION%%/include X@dirrm share/dico/%%PORTVERSION%% X@dirrm share/dico X@dirrmtry lib/dico X@dirrm include/dico fdd9cef1110e5dae2ae13a0ed25d6549 echo x - gnu-dico/distinfo sed 's/^X//' >gnu-dico/distinfo << '60352f836e859f0890fa7412d500dd3a' XMD5 (dico-2.0.tar.gz) = 0dffe580c6fb687568be87e0ca117a08 XSHA256 (dico-2.0.tar.gz) = 7b26a51ce26502cf60963e28528640ebb6bb7d3d52fa5d13ec65eb254d78970d XSIZE (dico-2.0.tar.gz) = 1717078 60352f836e859f0890fa7412d500dd3a exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001082307.o08N7rPu064008>