diff options
author | sercari <sercari@esdebian.org> | 2010-05-13 01:00:30 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 01:00:30 +0200 |
commit | 4db9c3ab0a7f46674ba298caab2e8a125be539e4 (patch) | |
tree | de357ed5d9b3312fea4bbc12075b677511669f69 /office/dictd/config | |
parent | 139aca38935fdb1c36ae37d104ecf5e4348d605e (diff) | |
download | slackbuilds-4db9c3ab0a7f46674ba298caab2e8a125be539e4.tar.gz |
office/dictd: Added to 13.0 repository
Diffstat (limited to 'office/dictd/config')
-rw-r--r-- | office/dictd/config/db.list | 17 | ||||
-rw-r--r-- | office/dictd/config/dict.conf | 6 | ||||
-rw-r--r-- | office/dictd/config/dictd.conf | 18 | ||||
-rw-r--r-- | office/dictd/config/dictd.order | 3 | ||||
-rw-r--r-- | office/dictd/config/dictdconfig.alias | 8 | ||||
-rw-r--r-- | office/dictd/config/rc.dictd | 71 |
6 files changed, 123 insertions, 0 deletions
diff --git a/office/dictd/config/db.list b/office/dictd/config/db.list new file mode 100644 index 0000000000..7d69de0b7b --- /dev/null +++ b/office/dictd/config/db.list @@ -0,0 +1,17 @@ + +#database dbname1 +# { +# data /usr/share/dictd/dbname1.dict.dz +# index /usr/share/dictd/dbname1.index +#} +#database dbname2 +# { +# data /usr/share/dictd/dbname2.dict.dz +# index /usr/share/dictd/dbname2.index +#} +#database dbname3 +# { +# data /usr/share/dictd/dbname3.dict.dz +# index /usr/share/dictd/dbname3.index +#} + diff --git a/office/dictd/config/dict.conf b/office/dictd/config/dict.conf new file mode 100644 index 0000000000..b4543ee1e3 --- /dev/null +++ b/office/dictd/config/dict.conf @@ -0,0 +1,6 @@ +#servers +server localhost +server dict.org +server dict0.us.dict.org +server alt0.dict.org + diff --git a/office/dictd/config/dictd.conf b/office/dictd/config/dictd.conf new file mode 100644 index 0000000000..e41ec4f1d4 --- /dev/null +++ b/office/dictd/config/dictd.conf @@ -0,0 +1,18 @@ +# /etc/dictd/dictd.conf + + +# Site section here: + +# Access section here: + +access { +allow localhost +allow 127.0.0.1 +# this allows access only from local host +} + +# Database section here: + +include /etc/dictd/db.list + +# User section here: diff --git a/office/dictd/config/dictd.order b/office/dictd/config/dictd.order new file mode 100644 index 0000000000..2c7381db7f --- /dev/null +++ b/office/dictd/config/dictd.order @@ -0,0 +1,3 @@ + +web1913 gcide wn foldoc jargon vera devil elements easton hitchcock gazetteer +/usr/share/dictd/ diff --git a/office/dictd/config/dictdconfig.alias b/office/dictd/config/dictdconfig.alias new file mode 100644 index 0000000000..811594ea1b --- /dev/null +++ b/office/dictd/config/dictdconfig.alias @@ -0,0 +1,8 @@ +#!/usr/bin/perl -lp + +# The format of each line is: +# s/^<basename-of dictionary-file>/<preferred nickname>/; +# Lines preceded by a hash character (#) are ignored. + +s/^freedict/fd/; +s/^gazetteer/gaz/; diff --git a/office/dictd/config/rc.dictd b/office/dictd/config/rc.dictd new file mode 100644 index 0000000000..047c6c0cbd --- /dev/null +++ b/office/dictd/config/rc.dictd @@ -0,0 +1,71 @@ +#!/bin/sh +# script courtesy of Sergio Vicari <sercari@esdebian.org> + +DICTD=/usr/sbin/dictd + +# DICTD_OPTIONS="-put -command_line -options -for -dictd -here" +DICTD_OPTIONS="" + + +PIDFILE=/var/run/dictd.pid + +start() { + + if [ -x $DICTD ]; then + echo "dictd starting." + $DICTD $DICTD_OPTIONS + else + echo "rc.dictd: cannot find $DICTD or it's not executable" + fi +} + +stop() { + if [ -e "$PIDFILE" ]; then + echo "Stopping the dictd server." + pid=$(cat $PIDFILE) + kill $pid 1> /dev/null 2> /dev/null + # Just in case: + killall dictd 1> /dev/null 2> /dev/null + rm -f $PIDFILE + fi +} +reload() { + echo "Reloading dictd." + if [ -e "$PIDFILE" ]; then + pid=$(cat $PIDFILE) + kill -HUP $pid + else + killall -HUP dictd + fi +} + +status() { + if [ -e /var/run/dictd.pid ]; then + echo "the dictd server is running." + else + echo "dictd server is stopped." + fi +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + start + ;; + reload) + reload + ;; + status) + status + ;; + *) + echo $"Usage: $0 {start|stop|restart|reload|status}" + ;; +esac |