summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2002-12-15 00:54:33 +0000
committerSeemant Kulleen <seemant@gentoo.org>2002-12-15 00:54:33 +0000
commitc8efc1f85844b065ca310cf47eac5f274a8e9e1c (patch)
tree2877bbf5c4b61efa987ac44b1ea41012da71e5fd /app-text/dictd/files
parentNew version (diff)
downloadhistorical-c8efc1f85844b065ca310cf47eac5f274a8e9e1c.tar.gz
historical-c8efc1f85844b065ca310cf47eac5f274a8e9e1c.tar.bz2
historical-c8efc1f85844b065ca310cf47eac5f274a8e9e1c.zip
version bump
Diffstat (limited to 'app-text/dictd/files')
-rw-r--r--app-text/dictd/files/1.8.0/dict.conf6
-rw-r--r--app-text/dictd/files/1.8.0/dictd72
-rw-r--r--app-text/dictd/files/1.8.0/dictd.conf22
-rw-r--r--app-text/dictd/files/1.8.0/dictd.confd7
-rw-r--r--app-text/dictd/files/1.8.0/site.info6
-rw-r--r--app-text/dictd/files/digest-dictd-1.8.01
6 files changed, 114 insertions, 0 deletions
diff --git a/app-text/dictd/files/1.8.0/dict.conf b/app-text/dictd/files/1.8.0/dict.conf
new file mode 100644
index 000000000000..e06c3d296ec3
--- /dev/null
+++ b/app-text/dictd/files/1.8.0/dict.conf
@@ -0,0 +1,6 @@
+# This is the configuration file for dict.
+# Usually all you will ever need here is the server keywords.
+# Refer to the dict manpage for other options.
+# It will only check the second server if the first fails
+server localhost
+server dict.org
diff --git a/app-text/dictd/files/1.8.0/dictd b/app-text/dictd/files/1.8.0/dictd
new file mode 100644
index 000000000000..5aef8b767901
--- /dev/null
+++ b/app-text/dictd/files/1.8.0/dictd
@@ -0,0 +1,72 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/files/1.8.0/dictd,v 1.1 2002/12/15 00:54:33 seemant Exp $
+
+# NB: Config is in /etc/conf.d/dictd
+
+
+prepconfig() {
+ if [ ! -e ${DICTDCONF} ]
+ then
+ eerror "dictd not started. Config file not found."
+ return 1
+ fi
+ # if no dictionaries, skip startup.
+
+ # The new way of doing this is to scan /usr/lib/dict and tweek the conf
+ einfo "Scanning for dictionaries..."
+ if [ ! -d "${DLIBDIR}" ]; then
+ eerror "${DLIBDIR} doesn't exist, no dictionaries found."
+ return 1
+ fi
+ pushd ${DLIBDIR} >/dev/null
+ INDEXFILES=`ls *.index`
+ if [ -z "$INDEXFILES" ]; then
+ eerror "No dictionaries installed."
+ return 1
+ fi
+
+ cat $DICTDCONF | sed -e '/^#LASTLINE/,$d' > $TMPCONF
+ echo "#LASTLINE" >> $TMPCONF
+
+ CNT=0
+ for i in $INDEXFILES
+ do
+ DNAME=`echo $i | awk -F . '{print $1;}'`
+ #two possible names for a matching dictionary, check which is there.
+ if [ -f ${DNAME}.dict.dz ]; then
+ DICT=${DNAME}.dict.dz
+ elif [ -f ${DNAME}.dict ];then
+ DICT=${DNAME}.dict
+ else
+ einfo "Index $i has no matching dictionaray..."
+ fi
+
+ #ok, go an index, and a dixtionary, append.
+ echo "database $DNAME { data \"${DLIBDIR}/${DICT}\"" >> $TMPCONF
+ echo " index \"${DLIBDIR}/$i\" }" >> $TMPCONF
+
+ CNT=`expr $CNT + 1`
+ done
+ popd >/dev/null
+ mv ${TMPCONF} ${DICTDCONF}
+ einfo "Done, $CNT dictionary indexes found."
+}
+
+depend() {
+ need localmount
+}
+
+start() {
+ ebegin "Starting dictd"
+ prepconfig || return 1
+ start-stop-daemon --start --quiet --exec /usr/sbin/dictd -- $EARGS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping dictd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/dictd
+ eend $?
+}
diff --git a/app-text/dictd/files/1.8.0/dictd.conf b/app-text/dictd/files/1.8.0/dictd.conf
new file mode 100644
index 000000000000..4cded974f973
--- /dev/null
+++ b/app-text/dictd/files/1.8.0/dictd.conf
@@ -0,0 +1,22 @@
+# dictd configuration file.
+# whipped up by michael conrad tilstra <michael@gentoo.org>
+
+# Informational message
+site site.info
+
+# who's allowed. You might want to change this.
+access {
+ allow *
+}
+
+# Dictionaries are listed below.
+# The initrc script scans /usr/lib/dict and adds all of the dictionaries
+# it finds here.
+#
+# The initrc script will delete everything after the the last line and
+# replace it with what it finds. So add all of your things above.
+#
+# If this is a problem for people, contact me and
+# we can work out a different method.
+#
+#LASTLINE
diff --git a/app-text/dictd/files/1.8.0/dictd.confd b/app-text/dictd/files/1.8.0/dictd.confd
new file mode 100644
index 000000000000..91b9d43884bc
--- /dev/null
+++ b/app-text/dictd/files/1.8.0/dictd.confd
@@ -0,0 +1,7 @@
+# Config file for /etc/init.d/dictd
+
+EARGS="-s "
+DICTDCONF=/etc/dict/dictd.conf
+DLIBDIR=/usr/lib/dict
+TMPCONF=/etc/dict/dictd.conf.$$
+
diff --git a/app-text/dictd/files/1.8.0/site.info b/app-text/dictd/files/1.8.0/site.info
new file mode 100644
index 000000000000..23bfdeb61102
--- /dev/null
+++ b/app-text/dictd/files/1.8.0/site.info
@@ -0,0 +1,6 @@
+Welcome to your dictionary server dictd!
+
+This is an example site information file. It should contain information
+about any restricted databases and how users can obtain access. If may
+also contain other random data as you see fit.
+
diff --git a/app-text/dictd/files/digest-dictd-1.8.0 b/app-text/dictd/files/digest-dictd-1.8.0
new file mode 100644
index 000000000000..42c664aed390
--- /dev/null
+++ b/app-text/dictd/files/digest-dictd-1.8.0
@@ -0,0 +1 @@
+MD5 ce54a5ea05429954e2f743ee0fa661b5 dictd-1.8.0.tar.gz 574796