Date: Tue, 11 May 1999 20:30:48 +0200 (CEST) From: sst@hermes.vmunix.dk.eu.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/11652: Semi-new port: net/dictd Message-ID: <199905111830.UAA47701@hermes.vmunix.dk.eu.org>
next in thread | raw e-mail | index | archive | help
>Number: 11652 >Category: ports >Synopsis: New port (net/dictd) >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: Tue May 11 11:30:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Sune Stjerneby >Release: FreeBSD 3.1-RELEASE i386 >Organization: Koege Gymnasium, Koege, Denmark >Environment: FreeBSD hermes.koege-gym.dk 3.1-RELEASE FreeBSD 3.1-RELEASE #0: Sun May 2 17:19:29 CEST 1999 root@hermes.koege-gym.dk:/usr/src/sys/compile/HERMES i386 >Description: We were in need of a local dict-service (on a non-routed net), thus this modification of net/dict to include dictd and dictzip. It will install a sample dictd.conf with /usr/local/share/dict as a base for dictionary data. >How-To-Repeat: n/a >Fix: n/a ports/net/dictd: # 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: # # dictd # dictd/files # dictd/files/md5 # dictd/patches # dictd/patches/patch-aa # dictd/patches/patch-ab # dictd/patches/patch-ac # dictd/patches/patch-ad # dictd/patches/patch-ae # dictd/pkg # dictd/pkg/COMMENT # dictd/pkg/DESCR # dictd/pkg/PLIST # dictd/pkg/MESSAGE # dictd/Makefile # echo c - dictd mkdir -p dictd > /dev/null 2>&1 echo c - dictd/files mkdir -p dictd/files > /dev/null 2>&1 echo x - dictd/files/md5 sed 's/^X//' >dictd/files/md5 << 'END-of-dictd/files/md5' XMD5 (dictd-1.4.9.tar.gz) = 90e69ac4783b8836dbe98f8367b5f391 END-of-dictd/files/md5 echo c - dictd/patches mkdir -p dictd/patches > /dev/null 2>&1 echo x - dictd/patches/patch-aa sed 's/^X//' >dictd/patches/patch-aa << 'END-of-dictd/patches/patch-aa' X--- configure.orig Mon May 10 22:24:24 1999 X+++ configure Mon May 10 22:25:41 1999 X@@ -549,8 +549,8 @@ X X X X-prefix=/usr X-etcdir=/etc X+#prefix=/usr X+etcdir=$prefix/etc X piddir=/var/run X X echo Configuring for dict END-of-dictd/patches/patch-aa echo x - dictd/patches/patch-ab sed 's/^X//' >dictd/patches/patch-ab << 'END-of-dictd/patches/patch-ab' X--- Makefile.in.orig Mon Jul 6 00:09:59 1998 X+++ Makefile.in Tue May 11 00:06:18 1999 X@@ -141,16 +141,17 @@ X $(CC) -c $(XTRACFLAGS) $(CFLAGS) -Wno-implicit $< X X install.dict: dict X- install dict $(bindir) X- install -m 644 dict.1 $(man1_prefix) X+ $(INSTALL) -m 755 -o bin -g bin dict $(bindir) X+ $(INSTALL) -m 644 -o bin -g bin dict.1 $(man1_prefix) X X install.dictzip: dictzip X- install dictzip $(bindir) X- install -m 644 dictzip.1 $(man1_prefix) X+ $(INSTALL) -m 755 -o bin -g bin dictzip $(bindir) X+ $(INSTALL) -m 644 -o bin -g bin dictzip.1 $(man1_prefix) X X install.dictd: dictd X- install dictd $(sbindir) X- install -m 644 dictd.8 $(man8_prefix) X+ $(INSTALL) -m 755 -o bin -g bin dictd $(sbindir) X+ $(INSTALL) -m 644 -o bin -g bin dictd.8 $(man8_prefix) X+ $(INSTALL) -m 644 -o bin -g bin dictd.conf $(prefix)/etc/dictd.conf.default X X install: $(EXES) install.dict install.dictzip install.dictd X END-of-dictd/patches/patch-ab echo x - dictd/patches/patch-ac sed 's/^X//' >dictd/patches/patch-ac << 'END-of-dictd/patches/patch-ac' X--- dict.1.orig Mon May 10 22:32:44 1999 X+++ dict.1 Mon May 10 22:32:53 1999 X@@ -237,7 +237,7 @@ X .SH FILES X .I ~/.dictrc X .br X-.I /etc/dict.conf X+.I /usr/local/etc/dict.conf X .SH "SEE ALSO" X .BR dictd (8), X .BR dictzip (1), END-of-dictd/patches/patch-ac echo x - dictd/patches/patch-ad sed 's/^X//' >dictd/patches/patch-ad << 'END-of-dictd/patches/patch-ad' X--- dictd.8.orig Mon May 10 22:31:44 1999 X+++ dictd.8 Mon May 10 22:32:23 1999 X@@ -620,9 +620,9 @@ X There is no way to get a running server to re-read the configuration file, X so databases cannot be added or deleted on the fly. X .SH "FILES" X-.I /etc/dictd.conf X+.I /usr/local/etc/dictd.conf X .br X-.I /usr/lib/dictd X+.I /usr/local/share/dict X .SH "SEE ALSO" X .BR dict (1), X .BR dictzip (1), END-of-dictd/patches/patch-ad echo x - dictd/patches/patch-ae sed 's/^X//' >dictd/patches/patch-ae << 'END-of-dictd/patches/patch-ae' X--- dictd.conf.orig Sun Feb 22 19:53:29 1998 X+++ dictd.conf Mon May 10 23:53:11 1999 X@@ -1,16 +1,16 @@ X-database web1913 { data "/usr/lib/dict/web1913.dict.dz" X- index "/usr/lib/dict/web1913.index" } X-database wn { data "/usr/lib/dict/wn.dict.dz" X- index "/usr/lib/dict/wn.index" } X-database gazetteer { data "/usr/lib/dict/gazetteer.dict.dz" X- index "/usr/lib/dict/gazetteer.index" } X-database jargon { data "/usr/lib/dict/jargon.dict.dz" X- index "/usr/lib/dict/jargon.index" } X-database foldoc { data "/usr/lib/dict/foldoc.dict.dz" X- index "/usr/lib/dict/foldoc.index" } X-database elements { data "/usr/lib/dict/elements.dict.dz" X- index "/usr/lib/dict/elements.index" } X-database easton { data "/usr/lib/dict/easton.dict.dz" X- index "/usr/lib/dict/easton.index" } X-database hitchcock { data "/usr/lib/dict/hitchcock.dict.dz" X- index "/usr/lib/dict/hitchcock.index" } X+database web1913 { data "/usr/local/share/dict/web1913.dict.dz" X+ index "/usr/local/share/dict/web1913.index" } X+database wn { data "/usr/local/share/dict/wn.dict.dz" X+ index "/usr/local/share/dict/wn.index" } X+database gazetteer { data "/usr/local/share/dict/gazetteer.dict.dz" X+ index "/usr/local/share/dict/gazetteer.index" } X+database jargon { data "/usr/local/share/dict/jargon.dict.dz" X+ index "/usr/local/share/dict/jargon.index" } X+database foldoc { data "/usr/local/share/dict/foldoc.dict.dz" X+ index "/usr/local/share/dict/foldoc.index" } X+database elements { data "/usr/local/share/dict/elements.dict.dz" X+ index "/usr/local/share/dict/elements.index" } X+database easton { data "/usr/local/share/dict/easton.dict.dz" X+ index "/usr/local/share/dict/easton.index" } X+database hitchcock { data "/usr/local/share/dict/hitchcock.dict.dz" X+ index "/usr/local/share/dict/hitchcock.index" } END-of-dictd/patches/patch-ae echo c - dictd/pkg mkdir -p dictd/pkg > /dev/null 2>&1 echo x - dictd/pkg/COMMENT sed 's/^X//' >dictd/pkg/COMMENT << 'END-of-dictd/pkg/COMMENT' XDictionary Server Protocol (RFC2229) server and client END-of-dictd/pkg/COMMENT echo x - dictd/pkg/DESCR sed 's/^X//' >dictd/pkg/DESCR << 'END-of-dictd/pkg/DESCR' XThe Dictionary Server Protocol (DICT) is a TCP transaction based Xquery/response protocol that allows a client to access dictionary Xdefinitions from a set of natural language dictionary databases. X XRFC 2229 describes the DICT client/server protocol. X Xdictd(8) is a server implementation, while dict(1) is a client Xwhich can access DICT servers from the command line. X Xhttp://www.dict.org/ X X X-- XSune Stjerneby <sst@hermes.vmunix.dk.eu.org> END-of-dictd/pkg/DESCR echo x - dictd/pkg/PLIST sed 's/^X//' >dictd/pkg/PLIST << 'END-of-dictd/pkg/PLIST' Xbin/dict Xbin/dictzip Xetc/dictd.conf.default Xetc/rc.d/dictd.sh Xsbin/dictd END-of-dictd/pkg/PLIST echo x - dictd/pkg/MESSAGE sed 's/^X//' >dictd/pkg/MESSAGE << 'END-of-dictd/pkg/MESSAGE' XFinished installation - now go fetch the actual dictionary data at X X ftp://ftp.dict.org/pub/dict/ X XRunning a web-server? Take a look at ftp://ftp.dict.org/pub/dict/www/Dict, Xa rather nifty CGI interface to dictd. END-of-dictd/pkg/MESSAGE echo x - dictd/Makefile sed 's/^X//' >dictd/Makefile << 'END-of-dictd/Makefile' X# New ports collection makefile for: dict X# Version required: 1.4.8 X# Date created: 10 May 1999 X# Whom: Sune Stjerneby <sst@hermes.vmunix.dk.eu.org> X# Remarks: Based on ports/net/dict, created out of need. X# X# $Id: X# X XDISTNAME= dictd-1.4.9 XPKGNAME= dictd-1.4.9 XCATEGORIES= net textproc XMASTER_SITES= ftp://ftp.cs.unc.edu/pub/users/faith/dict/ \ X ftp://ftp.dict.org/pub/dict/ X XMAINTAINER= sst@hermes.vmunix.dk.eu.org X XGNU_CONFIGURE= yes XUSE_GMAKE= yes XMAN1= dict.1 dictzip.1 XMAN8= dictd.8 X Xpost-install: X @if [ ! -f ${PREFIX}/etc/rc.d/dictd.sh ]; then \ X echo "Installing ${PREFIX}/etc/rc.d/dictd.sh startup file."; \ X echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/dictd.sh; \ X echo "[ -x /usr/local/sbin/dictd ] && /usr/local/sbin/dictd -s > /dev/null && echo -n ' dictd'" >> ${PREFIX}/etc/rc.d/dictd.sh; \ X chmod 751 ${PREFIX}/etc/rc.d/dictd.sh; \ X fi X X @echo "" X @echo "Finished installation - now go fetch the actual dictionary data at" X @echo "" X @echo " ftp://ftp.dict.org/pub/dict/pre/" X @echo "" X @echo "Running a web-server? Take a look at ftp://ftp.dict.org/pub/dict/www/Dict," X @echo "a rather nifty CGI interface to dictd." X X.include <bsd.port.mk> END-of-dictd/Makefile 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?199905111830.UAA47701>