dictd (1.11.2+dfsg-3) debian-dir only changes

Summary

 debian/NEWS                                           |   90 +
 debian/README.source                                  |    5 
 debian/changelog                                      | 1250 ++++++++++++++++++
 debian/compat                                         |    1 
 debian/control                                        |   79 +
 debian/copyright                                      |   45 
 debian/dict.README.Debian                             |   43 
 debian/dict.examples                                  |    1 
 debian/dict.install                                   |    8 
 debian/dictd.README.Debian                            |  200 ++
 debian/dictd.config                                   |   33 
 debian/dictd.dirs                                     |    4 
 debian/dictd.docs                                     |    8 
 debian/dictd.examples                                 |    3 
 debian/dictd.init                                     |  169 ++
 debian/dictd.install                                  |    7 
 debian/dictd.links                                    |    1 
 debian/dictd.lintian-overrides                        |    1 
 debian/dictd.manpages                                 |    1 
 debian/dictd.postinst                                 |   72 +
 debian/dictd.postrm                                   |   61 
 debian/dictd.templates                                |   18 
 debian/dictfmt.docs                                   |    4 
 debian/dictfmt.install                                |    8 
 debian/dictzip.install                                |    2 
 debian/dictzip.links                                  |    4 
 debian/doc/README.Debugging                           |   15 
 debian/doc/README.Index2suffix                        |   23 
 debian/doc/README.Index2word                          |   23 
 debian/doc/README.Plugins                             |   37 
 debian/doc/README.Unformat                            |   17 
 debian/doc/README.Virtual_dictionaries                |   44 
 debian/doc/README.inetd                               |   34 
 debian/doc/dictd.8                                    |  959 +++++++++++++
 debian/doc/dictdconfig.8                              |  175 ++
 debian/doc/readme-dictd-locales                       |   66 
 debian/patches/Makefile-clean.patch                   |   17 
 debian/patches/Makefile-debcflags.patch               |   16 
 debian/patches/colorit-manpage-nopager.patch          |   40 
 debian/patches/colorit-nopp-fix.patch                 |   14 
 debian/patches/dictd-close-fds.patch                  |   18 
 debian/patches/dictdplugin_popen-g++-4.3compile.patch |   15 
 debian/patches/dictfmt.1-man.patch                    |   16 
 debian/patches/dictl-konwert.patch                    |   29 
 debian/patches/dictl-translit.patch                   |   16 
 debian/patches/man-hyphens.patch                      |  335 ++++
 debian/patches/series                                 |   12 
 debian/patches/spelling-typos.patch                   |   70 +
 debian/po/POTFILES.in                                 |    1 
 debian/po/cs.po                                       |   58 
 debian/po/de.po                                       |   55 
 debian/po/es.po                                       |   77 +
 debian/po/fi.po                                       |   58 
 debian/po/fr.po                                       |   57 
 debian/po/gl.po                                       |   57 
 debian/po/it.po                                       |   57 
 debian/po/ja.po                                       |   61 
 debian/po/pl.po                                       |   57 
 debian/po/pt.po                                       |   57 
 debian/po/ru.po                                       |   59 
 debian/po/sk.po                                       |   54 
 debian/po/sv.po                                       |   57 
 debian/po/templates.pot                               |   55 
 debian/rules                                          |  175 ++
 debian/sources/colorit.conf                           |   32 
 debian/sources/dict.conf                              |   21 
 debian/sources/dictd.conf                             |   42 
 debian/sources/dictd.order                            |    8 
 debian/sources/dictd_virtual2.conf                    |   94 +
 debian/sources/dictdconfig                            |  232 +++
 debian/sources/dictdconfig.alias                      |   16 
 debian/sources/ucf/.update-sums.sh                    |   15 
 debian/sources/ucf/default.md5sums                    |    4 
 debian/sources/ucf/default.template                   |   22 
 debian/watch                                          |    4 
 75 files changed, 5594 insertions(+)

    
download this patch

Patch contents

--- dictd-1.11.2+dfsg.orig/debian/dict.README.Debian
+++ dictd-1.11.2+dfsg/debian/dict.README.Debian
@@ -0,0 +1,43 @@
+dict client for Debian
+======================
+
+
+ --- CHARACTER ENCODINGS --------------------------------------------
+
+     dict do not convert character encodings from utf-8 to the user's 
+locale encoding.  If your system is not configured to display utf-8 
+characters by default, you may use the script /usr/bin/dictl to convert 
+the input to and output from utf-8 dictionaries to your preferred
+character set.  Refer to the dictl(1) manual page.
+
+
+ --- CONFIGURATION --------------------------------------------------
+
+     The default configuration file is set up to have dict try to
+access a dictd server on the local host, failing that, it will try a
+public server at dict.org, on the Internet.  (You must be online to
+access the public server; the dict client will not make a connection
+automatically.)  In many cases this will be slow, especially when it
+is trying to access a non-existent public server first, so you should
+comment out the line for the server that you don't want to use. To use
+any other server, enter its URL or IP address in place of "dict.org".
+
+     By default, the `dict' client returns all definitions found in
+all databases available to the server, in the order that the
+dictionaries are listed in the server's configuration file.  Command 
+line switches are available for the client to restrict the searches 
+to certain dictionaries, to select among the several available search
+strategies.  See the manual page, dict(1), for all command line options.
+
+
+
+ --- PUBLIC DICTD SERVERS -------------------------------------------
+
+     The DICT Group maintains a number of public servers, which are
+accessed in round-robin fashion by the address dict.org, so delays due
+to busy servers should be minimised.  
+
+     The public servers do not require any userid, password, or other
+authentication.  A private server, such as one on your own or a
+nearby network may require authentication.  See the man page, dict(1),
+or the sample configuration file, in /etc/usr/share/doc/dict/examples.
--- dictd-1.11.2+dfsg.orig/debian/README.source
+++ dictd-1.11.2+dfsg/debian/README.source
@@ -0,0 +1,5 @@
+The package uses quilt(1) for managing patches. `debian/rules patch' will apply 
+all patches to the extracted source; the same can be achieved with `quilt push -a'.
+For unpatching use `debian/rules unpatch' or `quilt pop -a'.
+To add new patch use `quilt add patchname.diff', to edit files in patch use 
+`quilt edit filename.c' and then `quilt refresh'.
--- dictd-1.11.2+dfsg.orig/debian/dictd.README.Debian
+++ dictd-1.11.2+dfsg/debian/dictd.README.Debian
@@ -0,0 +1,200 @@
+dictd server for Debian
+=======================
+
+
+--- CHARACTER ENCODINGS ---------------------------------------------
+
+     RFC2229 specifies the Dict Protocol used by dictd.  To be
+compliant with the RFC, all dictionary databases must be encoded in
+utf-8.  Since 7-bit ASCII is a subset of utf-8, plain ASCII
+dictionaries are compliant.  However, when "utf-8" is used in the
+following discussion, it refers to character sets that include
+characters greater than 0x7F.
+
+     dictd and dict are utf-8 capable, but do not convert character
+encodings from utf-8 to the user's locale encoding.  If your system is
+not configured to display utf-8 characters by default, you may use the
+script /usr/bin/dictl (distributed with the dict package) to convert
+the input to and output from utf-8 dictionaries to your preferred
+character set.  See dictl(1) for information on using dictl.
+
+     Since the 7-bit ASCII encoding used in the English language
+dictionaries is a subset of utf-8, many users can use dictl routinely
+in place of dict.  Such users might consider aliasing dict to dictl.
+
+     As of version 1.10.1, dictd uses internal implementations of
+UCS-2/UTF-8 functions.  Thus, dictd no longer need to specify a utf-8
+locale with the --locale option in order to use dictionaries encoded
+in utf-8.
+
+
+
+--- DICTD DICTIONARIES ----------------------------------------------
+
+     This package does not include any of the dictionary databases
+needed to be useful.  The dictionary databases packaged for Debian
+include:
+
+     The `dict-gcide' package contains the GNU version of the
+Collaborative International Dictionary of English, which is based on
+the Webster's Revised Unabridged Dictionary (G & C. Merriam Co., 1913,
+edited by Noah Porter), supplemented by many definitions from WordNet,
+the Century Dictionary, 1906, and by numerous definitions contributed
+by volunteers.  dict-gcide replaces dict-web1913, which contains the
+1913 Webster, without any supplementation or enhancement.
+ 
+     The 1913 Webster is a very comprehensive dictionary, and includes
+many quotations from literature to illustrate the definitions.  Since
+it is over 85 years old it is lacking in modern words and modern
+definitions of old words, and many of its definitions will be
+considered "politically incorrect" in today's world.  Since this is an
+historical document, bug reports asking for changes to make it more
+"politically correct" will be summarily closed.
+
+     The `dict-wn' package contains WordNet, A Lexical Database for
+English developed by the Cognitive Science Laboratory at Princeton
+University.  WordNet defines only nouns, verbs, adjectives and
+adverbs.  Other parts of speech, such as pronouns and articles, are
+omitted.  Definitions in this dictionary are more concise that in the
+1913 Webster.  This is a modern work, so it fills in many of the gaps
+left by the latter.  The two complement each other nicely, although
+the definitions returned tend to be somewhat duplicative.
+
+     Although either the 1913 Webster or WordNet could be used as a
+stand alone dictionary, I consider the two together to be highly
+desirable for a satisfactory English language dictionary.
+
+     The `dict-foldoc' package is the The Free On-line Dictionary of
+Computing, and the `dict-jargon' package is the same as the Hacker's
+Jargon file available in tex-info format on most Debian systems.
+Using the dict client to access the Jargon file is much faster than
+using the info interface (but doesn't present the same browsing
+opportunities of the latter).  There is a great deal of overlap
+between the Jargon file and the FOLDOC.  Although the FOLDOC is much
+larger than the Jargon file, there are numerous entries in the
+Jargon file that are not found in FOLDOC, so it is desirable to
+install both.
+
+     The `dict-vera' package is a dictionary of acronyms used in the
+computer field.
+   
+     The dict-devil package contains "The Devil's Dictionary", by
+Ambrose Bierce, an amusing, cynical, and irreverent collection of
+alternate definitions of common words.  When a dict search returns a
+definition from dict-devil in addition to ones from the mainstream
+dictionaries it is like a pleasantly surprising  "Easter Egg".
+
+     The `dict-element' package is a concise listing of the physical and
+chemical properties of the elements.
+
+     The `dict-easton' package contains Easton's 1897 Bible Dictionary,
+and the `dict-hitchcock' package contains Hitchcock's Bible Names
+Dictionary.  While many people will not be interested in these two
+packages, religious students may find them helpful.  Apart from any
+religious interest, I find them useful as a literary reference.
+
+     The `dict-gazetteer' package presents a great deal of detailed
+geographic information from the 1990 U. S. Census.  It is partially
+obsoleted by dict-gazetteer2, but contains some material missing from
+the more recent version.  The 'dict-gazetteer2k' package provides
+similar information derived from the 2000 U.S. Census.
+
+     dict-bouvier - The 1856 Revised Sixth Edition of John Bouvier's
+law dictionary.
+
+     dict-moby-thesaurus - the largest and most comprehensive
+thesaurus data source in English available for commercial use.
+
+     The foregoing dictionaries are encoded in 7-bit ASCII, but some,
+particularly dict-foldoc and dict-jargon, may be encoded in utf-8 in
+the future. 
+
+     Other dictionary packages available for Debian include:
+
+     dict-de-en - A German-English translation dictionary.
+Previously, this dictionary was encoded in ISO-8859-1, but starting
+with version 1.2-6, it is encoded in utf-8.  
+
+     mueller7-dict and muller7accent-dict - English/Russian
+dictionaries.  Previously, this was encoded in KOI8-R, an 8-bit
+encoding, but starting with version 2002.02.27-3 it is encoded in
+utf-8.  
+
+     dict-freedict* - over 40 bilingual dictionaries, encoded in
+utf-8. At the present time (March 2004) these packages are broken.
+
+    By default, the `dict' client returns all definitions found in
+all databases available to the server, in the order that the
+dictionaries are listed in the server's configuration file.
+
+
+ --- CONFIGURATION SCRIPT -------------------------------------------
+
+     A configuration script, /usr/sbin/dictdconfig, is included in the
+dictd package.  This script is non-interactive, and is normally run
+automatically when dictd is installed, and when any of the dictionary
+packages are installed or removed.  This means that most users will
+never have to edit, or even look at, a configuration file for dictd.
+
+     If called with the -w option, dictdconfig will scan the
+/usr/share/dictd directory, and create a listing of the available
+databases in /var/lib/dictd/db.list.  This listing is ordered in the
+sequence displayed by `dictdconfig -o'.  This sequence is hard coded
+into dictdconfig, but can be easily changed by the user via the
+optional dictdconfig order override file /etc/dictd.order.  See
+dictdconfig(8) for details.  (This sequence controls the order in
+which definitions are displayed if more than one dictionary has an
+entry corresponding to the word requested.)
+
+     When dictd or any of the dictionary databases are installed,
+`dictdconfig -w' is run, followed by a command to restart the server
+daemon.  Thus all installed dictionaries are immediately available as
+soon as they are installed.
+
+--- CONFIGURATION FILE ----------------------------------------------
+
+     As explained in the manual page dictd(8), the configuration file,
+/etc/dictd/dictd.conf, has four sections that must appear in the
+specified order.  The default /etc/dictd/dictd.conf provided in the
+distribution is a skeleton of a complete configuration file, with each
+of the sections defined but empty, with two exceptions.  The access
+section allows access only from the local host, and the database
+section includes `include /var/lib/dictd/db.list' in the database
+section.  This `include' line enables automatic configuration without
+disturbing the user's entries by causing dictd to read
+/var/lib/dictd/db.list instead of the database section of dictd.conf.
+
+     The vast majority of users do not require any entries in
+dictd.conf other than the available database information.  Users who
+are already using a dictd.conf file with other entries may copy those
+entries to the appropriate section of the default dictd.conf, or may
+replace the database entries in their existing file with `include
+/var/lib/dictd/db.list'.  Users who would prefer a `hand made custom'
+database listing may comment out or remove the `include' line from the
+default dictd.conf, and put their database list in its place.  If
+changes are made to the configuration file, the daemon must be
+restarted for these changes to take effect.  (See BUGS below).
+
+     Information in /etc/dictd/dictd.conf will be protected across
+upgrades by dpkg's conffile mechanism.  It is recommended that users
+not make manual entries in /var/lib/dictd/db.list, since this is not a
+conffile, and is subject to change whenever dictdconfig is run.
+
+     Older dictionary .debs do not call dictdconfig on installation.
+If any old dictionary .debs are installed, or if user-provided
+dictionary databases are installed, it will be necessary to run (as
+root) `/usr/sbin/dictdconfig -w', followed by `invoke-rc.d dictd 
+restart' in order to have dictd recognise these dictionaries.
+
+     By default, dictd allows access from any Internet host without
+authentication. The default /etc/dictd/dictd.conf restricts access to
+the local host. If your machine is acting as a server for a network,
+you probably must add additional access specifications.  See the
+manual page, dictd(8), or the example configuration files in
+`/usr/share/doc/dictd/examples'.
+
+     If you experience difficulties with dict queries, check to see if
+dictd is running, using "ps ax|grep dictd".  If not, you need to
+restart the daemon. If you need to start, restart or stop the daemon
+manually, do, as root, `invoke-rc.d dictd start|stop|restart'.
+
--- dictd-1.11.2+dfsg.orig/debian/dictd.manpages
+++ dictd-1.11.2+dfsg/debian/dictd.manpages
@@ -0,0 +1 @@
+debian/doc/dictdconfig.8
--- dictd-1.11.2+dfsg.orig/debian/dictd.dirs
+++ dictd-1.11.2+dfsg/debian/dictd.dirs
@@ -0,0 +1,4 @@
+usr/sbin
+var/lib/dictd
+usr/lib/dictd
+etc/default
--- dictd-1.11.2+dfsg.orig/debian/changelog
+++ dictd-1.11.2+dfsg/debian/changelog
@@ -0,0 +1,1250 @@
+dictd (1.11.2+dfsg-3) unstable; urgency=low
+
+
+  * Pass AWK=awk to configure (closes: #608701).
+  * Remove dependency on gawk from the dictfmt package, it's no longer needed.
+  * Standards-Version: 3.9.1 (no changes).
+  * Add spelling-typos.patch to fix some typos found by lintian.
+
+ -- Robert Luberda <robert@debian.org>  Tue, 04 Jan 2011 23:25:57 +0100
+
+dictd (1.11.2+dfsg-2) unstable; urgency=low
+
+  * Rebuild with the latest libmaa-dev.
+  * Update Finnish translation of the debconf template (closes: #564510).
+  * dictd.init: Properly initialise the $DEFAULTSFILE variable.
+  * debian/NEWS: remove asterisks (lintian).
+  * debian/rules: support DEB_BUILD_OPTIONS=nocheck.
+
+ -- Robert Luberda <robert@debian.org>  Sun, 10 Jan 2010 11:03:00 +0100
+
+dictd (1.11.2+dfsg-1) unstable; urgency=low
+
+  * New upstream release.
+  * Replace build dependencies on libltdl3-dev with libltdl-dev.
+  * Run `make test' during build.
+  * Add lintian override for `init.d-script-possible-missing-stop'.
+
+ -- Robert Luberda <robert@debian.org>  Sun, 18 Oct 2009 14:53:05 +0200
+
+dictd (1.11.1+dfsg-3) unstable; urgency=low
+
+  * debian/init.d:
+    + add status support (closes: #538666);
+    + made force-reload same as reload (closes: #538663).
+  * [Debconf translation updates]
+    - Czech (closes: #533035)
+    - Finnish (closes: #533596)
+    - Slovak (closes: #534442).
+  * Add debian/README.source.
+  * Standards-Version: 3.8.3 (no changes).
+
+ -- Robert Luberda <robert@debian.org>  Sun, 30 Aug 2009 14:25:13 +0200
+
+dictd (1.11.1+dfsg-2) unstable; urgency=low
+
+  [ Christian Perrier ]
+  * Debconf templates and debian/control reviewed by the debian-l10n-
+    english team as part of the Smith review project. Closes: #522251
+  * [Debconf translation updates]
+    - Japanese. Closes: #522782
+    - Portuguese. Closes: #523189
+    - Italian. Closes: #523418
+    - Swedish. Closes: #523697
+    - Galician. Closes: #524244
+    - Spanish. Closes: #524343
+    - German. Closes: #524399
+    - French. Closes: #524867
+    - Russian. Closes: #524891
+
+  [ Robert Luberda ]
+  * Applied the above patch from Christian.
+  * Standards-Version: 3.8.1 (no changes).
+  * Fix too long lines in extended descriptions (lintian). 
+  * Update Polish debconf translations. 
+
+ -- Robert Luberda <robert@debian.org>  Sat, 02 May 2009 08:56:20 +0200
+
+dictd (1.11.1+dfsg-1) unstable; urgency=low
+
+  * New upstream release:
+    + remove patches applied by upstream: dictd.8-man and dictfmt-sort-base64;
+    + refresh other patches.
+  * s/\.dfsg/+dfsg/ in upstream versions naming scheme (lintian).
+  * Upload to unstable, since libmaa got finally accepted (closes: #512071).
+  * Makefile-clean.patch: remove auto-generated example file.
+  * dictd-close-fds.patch: close all file descriptors on dictd start not to
+    hang dpkg-reconfigure.
+  * copyright: refer to non-symlinked GPL-3 file (lintian).
+  * control: set dictfmt's section back to utils.
+  * debian/watch: use sf.net redirector (lintian).
+  * Minor fixes in debconf templates, update Polish translation of them.
+
+ -- Robert Luberda <robert@debian.org>  Sun, 08 Mar 2009 23:34:43 +0100
+
+dictd (1.11.0.dfsg-1) experimental; urgency=low
+
+  * New upstream release:
+    + remove dictd.c-alen-init.patch, applied upstream;
+    + refresh other patches.
+  * dictd.conf: bind to localhost interface only (closes: #357963, #486784).
+  * Made dictd startup more configurable and allow to disable dictd entirely 
+    or run it via inetd server (closes: #472533, #386009) (LP: #42285):
+    + manage /etc/default/dictd file with debconf and ucf;
+    + modify init and postinst/postrm scripts for the above change;
+    + add "allow: inetd" do dictd.conf;
+    + depend on ucf and update-inetd.
+  * Remove stop links from rc0 and rc6 (closes: #495545).
+  * dictfmt-sort-base64.patch: fix problem with offset overwriting in dicfmt.
+    Thanks to Radovan Garabík  for the patch (closes: #510703).
+  * Fix descriptions (lintian).
+  * Remove pre-sarge stuff from maintainer scripts.
+  * Build-depend on libmaa-dev.
+  * Standards-Version: 3.8.0 (no changes). 
+  * Build with debhelper v7.
+  * Remove duplicated fields from control (lintian). 
+
+ -- Robert Luberda <robert@debian.org>  Sat, 10 Jan 2009 18:08:00 +0100
+
+dictd (1.10.11.dfsg-2) unstable; urgency=low
+
+  * Suggests dictd-dictionary as an alternative to dict-gcide (closes: #477511).
+
+ -- Robert Luberda <robert@debian.org>  Thu, 24 Apr 2008 21:24:47 +0200
+
+dictd (1.10.11.dfsg-1) unstable; urgency=low
+
+  * New upstream release
+  * dictd.c-alen-init.patch: new patch to fix a problem introduced by upstream
+    with first connection being denied.
+  * colorit-bashisms.patch: removed.
+  * Makefile-debcflags.patch, dictdplugin_popen-g++-4.3compile.patch: updated.
+
+ -- Robert Luberda <robert@debian.org>  Sat, 12 Apr 2008 10:37:45 +0200
+
+dictd (1.10.10.dfsg-2) unstable; urgency=low
+
+  * dict: recommend gawk which is needed by colorit (closes: #463509).
+  * colorit-bashisms.patch: patch from upstream CVS to fix colorit bashisms
+    (closes: #464640).
+  * dictfmt.1-man.patch: fix lintian's manpage-has-errors-from-man warning. 
+  * man-hyphens.patch: updated for one another unquoted hyphen found by
+    lintian.
+
+ -- Robert Luberda <robert@debian.org>  Sun, 02 Mar 2008 14:34:51 +0100
+
+dictd (1.10.10.dfsg-1) unstable; urgency=low
+
+  * New upstream release (closes: #390046, #386390):
+    + dict no longer uses pager (closes: #254662), which also  makes a few
+      other bugs irrelevant (closes: #389424, #332372, #324653). Document
+      the change in debian/NEWS.
+    + All our patches seem to be applied by upstream.
+    + The dictfmt_virtual command was removed.
+
+  * Makefile-debcflags.patch: Add support for $(DEBCFLAGS),
+    and remove `-O' from default CFLAGS.
+  * dictdplugin_popen-g++-4.3compile.patch: Fix FTBFS with GCC 4.3
+    (closes: 454819).
+  * dictd.8-man.patch: Use @SYSCONFDIR@ instead of hard-coded /etc.  
+  * man-hyphens.patch: Fix lintian's `hyphen-used-as-minus-sign' warning.
+  * dictl-translit.patch: Use iconv's //TRANSLIT suffix (closes: #378792).
+  * colorit-nopp-fix.patch: Made colorit work with `-pp -'.
+  * colorit-manpage-nopager.patch: Remove references to pager.
+
+  * Use upstream dictd(8) man page instead of our local one.
+  * Install 'colorit' script, provide a sample configuration file for it.
+  * Correct path in dict.conf's  header.
+  * debian/copyright: Refer to GPL v2 instead of v1 (closes: #441060).
+  * Update Debian docs, reorder sections in dict.README.Debian to make
+    it more visible that dict does not convert character sets and dictl
+    should be used in this purpose (closes: #300630).
+
+  * debian/rules:
+    + Add support for DEB_BUILD_OPTIONS=noopt.
+    + Don't compile plugins even if libjudy-dev or libdb-dev is installed.
+    + Samples doesn't compile, so don't try to compile them.
+    + Pass -Wl,-z,defs -Wl,--as-needed to LDFLAGS.
+
+  * debian/control:
+    + Made dictfmt depend on gawk (fixes Ubuntu bug 22669).
+    + Add m4 to dict's recommends since colorit uses it.
+    + Build-depend on libtool.
+    + Standards-Version: 3.7.3.
+
+ -- Robert Luberda <robert@debian.org>  Fri, 25 Jan 2008 21:08:25 +0100
+
+dictd (1.10.2.dfsg-5) unstable; urgency=low
+
+  * Remove non-free doc/rfc* files from debian diff (closes: #393365).
+  * Rewrite init.d script, make it LSB-compliant (closes: #460201).
+  * Fix dictd.postinst script to properly restart dictd after upgrade.
+  * Correct path to configuration files in dictdconfig(8) (closes: #434579),
+    package description (closes: #460937), dictd.conf (closes: #390497),
+    and in READMEs.
+  * Fix typos in dictdconfig.alias (closes: #403054) and in READMEs.
+  * Don't ship empty /usr/bin directory (lintian).
+  * Put homepage information in control file.
+  * Apply patch from bug to make dictl work with DICTL_USE_KONWERT
+    (closes: #401666).
+
+ -- Robert Luberda <robert@debian.org>  Sun, 20 Jan 2008 11:56:44 +0100
+ 
+dictd (1.10.2.dfsg-4) unstable; urgency=low
+
+  * Adopted package (closes: #461566).
+  * Switch hand-made build system to debhelper v6.
+  * Use quilt for maintaining patches.
+  * Reorganise source package's debian dir.
+  * Fix broken lines in debian/NEWS (lintian).
+  * Fix spelling error in description: debian -> Debian (lintian).
+  * Add debian/watch file.
+
+ -- Robert Luberda <robert@debian.org>  Sat, 19 Jan 2008 23:25:03 +0100
+
+dictd (1.10.2.dfsg-3.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS with gcc 4.3 (Closes: 413487).
+  * Repack orig.tar.gz to prune non free RFCs (Closes: 393365).
+
+ -- Pierre Habouzit <madcoder@debian.org>  Sat, 21 Jul 2007 14:03:50 +0200
+
+dictd (1.10.2-3.1) unstable; urgency=low
+
+  * Non-Maintainer Upload.
+  * debian/control:
+    + Bumped Standards-Version to 3.7.2 (no changes).
+  * debian/rules:
+    + Remove libmaa/config.{guess,sub} in clean target.
+    + Remove libmaa/arggram2c in clean target (autogenerated).
+    + Add debian/substvars to FILES_TO_CLEAN.
+    + Fix the way symlinks were created.
+  * debian/copyright:
+    + Update FSF address.
+  * debian/changelog:
+    + Removed bogus changelog entry for version 1.9.9-4.
+  * debian/preinst:
+    + Fix &> bashism.
+  * debian/postrm:
+    + Fix &> bashism.
+  * debian/dict.conf:
+    + Added alternative dict servers to the configuration file, as dict.org
+      seems to be down, making the package unusable (closes: #405863).
+  * debian/preinst-dict, debian/postinst-dict, debian/postrm-dict:
+    + Applied patch from Justin Pryzby, fixing various errors in the maintainer
+      scripts (closes: #372144).
+
+ -- Julien BLACHE <jblache@debian.org>  Fri, 12 Jan 2007 14:23:45 +0100
+
+dictd (1.10.2-3) unstable; urgency=low
+
+  * Changed umask to 022 to avoid "other writable" pid files.
+
+ -- Kirk Hilliard <kirk@debian.org>  Fri,  9 Dec 2005 03:33:25 -0500
+
+dictd (1.10.2-2) unstable; urgency=low
+
+  * Include libmaa/ when linking config.{guess,sub} to local (up-to-date)
+    versions.  Thanks, Petr.  (closes: #342406)
+
+ -- Kirk Hilliard <kirk@debian.org>  Wed,  7 Dec 2005 17:38:26 -0500
+
+dictd (1.10.2-1) unstable; urgency=low
+
+  * New upstream release.  (closes: #339792)
+    See /usr/share/doc/dictd/NEWS for a summary of changes in this version.
+    Most significantly, dictd now uses internal implementations of
+    UCS-2/UTF-8 functions.  Thus, dictd no longer need to specify a utf-8
+    locale with the --locale option in order to use dictionaries encoded
+    in utf-8.  (closes: #232227, #314325, #292068, #297616)
+    Upstream release also fixes a typo for the dict(1) man page.
+    (closes: #310349, #336049)
+  * Fixed typo in package description.  (closes: #311138)
+  * Pached libmaa/log.c to prevent logging buffer overflow.
+  * The pid file is back, so changed /etc/init.d/dictd accordingly.
+    Note that dictd still drops root privileges in favor of dictd.dictd
+    immediately after writing the pid file.
+
+ -- Kirk Hilliard <kirk@debian.org>  Sun,  4 Dec 2005 20:34:50 -0500
+
+dictd (1.9.15-1) unstable; urgency=low
+
+  * New upstream version.
+  * Patched dictl so that the argument may conatain an apostrophe.
+    Closes: #263819
+  * Removed unused colorit script and man page.  Closes: #263012
+
+ -- Kirk Hilliard <kirk@debian.org>  Thu, 13 Jan 2005 14:06:59 -0500
+
+
+dictd (1.9.14-2) unstable; urgency=low
+
+  * Changed home diretory of system user dictd to /var/lib/dictd.
+    Closes: #253130
+  * Stop dictd --inetd from logging to stderr.  Closes: #257886
+
+ -- Kirk Hilliard <kirk@debian.org>  Sat, 31 Jul 2004 04:32:57 -0400
+
+
+dictd (1.9.14-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Kirk Hilliard <kirk@debian.org>  Sun, 13 Jun 2004 18:56:00 -0400
+
+
+dictd (1.9.13-1) unstable; urgency=low
+
+  * New upstream version.
+  * New maintainer.
+  * Patched dict to use /usr/bin/pager as default pager.  Closes: #246981
+  * Added dictd | dict-server "suggests" for dict.  Closes: #240418
+  * Improved error message which had suggested -v option even when -v is
+    used.  Closes: #240274
+
+ -- Kirk Hilliard <kirk@debian.org>  Tue,  8 Jun 2004 07:25:59 -0400
+
+
+dictd (1.9.12-3) unstable; urgency=low
+
+  * Provided NEWS.Debian.gz in each binary package, not just in dictd.
+   Closes: #238612
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Fri, 19 Mar 2004 14:04:33 -0500
+
+
+dictd (1.9.12-2) unstable; urgency=low
+
+  * Patched dict.1 to reflect the Debian location of dict.conf (this was
+    overlooked in 1.9.12-1).
+
+  *  Updated NEWS.Debian.gz
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Wed, 17 Mar 2004 10:08:02 -0500
+
+
+dictd (1.9.12-1) unstable; urgency=low
+
+  * New upstream version.  See /usr/share/doc/dictd/NEWS for a summary of
+    major changes in this version.
+
+  * Wrong DICTL_CHARSET evaluation has ben corrected in dictl, based on a
+    patch submitted by Roland Rosenfeld <roland@spinnaker.de>. Thanks
+    Roland.  Closes: #231545
+
+  * Updated /usr/share/doc/dictd/README.Debian.gz to reflect the
+    conversion of the mueller7-dict and muller7accent-dict to utf-8
+    encoding, and to mention the broken status of the dict-freedict*
+    packages.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Mon, 15 Mar 2004 16:22:07 -0500
+
+dictd (1.9.11-5) unstable; urgency=low
+
+  * Upstream didn't accept the modification to dictl in 1.9.11-2, so I have replaced dictl with dictl from CVS. Closes: #231401 (really this time).
+
+  # Added Depends: recode to dict, needed to make dictl work.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Sat, 07 Feb 2004 18:43:45 -0500
+
+
+dictd (1.9.11-4) unstable; urgency=low
+
+  * Kirk Hilliard <kirk@debian.org> has patched dictfmt.c to improve
+    handling of multipole headwords (added the --break-headwordsoption),
+    and modified dictfmt.1 accordingly.  Thanks, Kirk!
+
+  * Updated /usr/share/doc/dictd/README.Debian.gz to reflect the
+    conversion of dict-de-en to utf-8 encoding.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Wed, 04 Feb 2004 16:35:46 -0500
+
+
+dictd (1.9.11-3) unstable; urgency=low
+
+  * Corrected typo in dictfmt.1
+
+  * Patched dictfmt.c to corrrect formatting of database-info with the -f
+    option.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Mon, 26 Jan 2004 11:58:57 -0500
+
+
+dictd (1.9.11-2) unstable; urgency=low
+
+  * Modified dictl script to test for the presence of /usr/bin/recode, and default to using iconv if recode is not present.  Closes: #228700
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Tue, 20 Jan 2004 18:56:52 -0500
+
+
+dictd (1.9.11-1) unstable; urgency=low
+
+  * New upstream version.  See /usr/share/doc/dictd/NEWS for a summary of
+    major changes in this version.
+
+  * Upstream now provides a NEWS file.  The changelog was inadvertenmtly
+    omitted from the distributed package.  Added symlink from NEWS.gz to
+    changelog.gz as a temporary correction.
+
+  * Moved dict.conf from /etc/ to /etc/dictd/.  This permits using
+    ./configure --sysconfdir=/etc/dictd instead of patching defs.h.
+
+  * The dictd binary package no longer includes the plug-in shared
+    libraries (dictdplugin_exit.so and dictdplugin_popen.so) in
+    /usr/lib/dictd, and the man_popen files (man_popen.dict,
+    man_popen.index, and search_man) in /usr/share/dictd/examples.
+    /usr/share/doc/dictd/README.Plugins.gz has been modified to reflect
+    this change.
+
+  * If dictd fails due to incompatiability of a database locale with
+    dictd's locale, it is now logged.  Closes: #216981
+
+  * Edited dictfmt.1 to clarify what goes into the 00-database-info and
+    what is considered the first headword.  Closes: #209055
+
+  * dictfmt is broken in 1.9.11.  Inserted dictfmt.c, libmaa/string.c and
+    libmaa/maa.h from CVS (Mon, 06 Jan 2004) into source tree, and patched
+    dictfmt.c to fix some formatting problems.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Mon, 05 Jan 2004 14:06:28 -0500
+
+
+dictd (1.9.10-3) unstable; urgency=low
+
+  * Added /usr/share/doc/README.Dictd-locales.gz to clarify the use of the
+    --locale option.  Closes: #213745
+
+  * Added /usr/share/doc/NEWS.Debian.gz
+
+  * Applied patch from Grant Hollingworth <grant@antiflux.org> to
+    dictfmt.c.  This patch eliminates indentation errors in the first
+    headword of a .dict file. This makes `dict -i-' and `dict
+    00-database-info' work correctly.  Thanks, Grant. Closes: #221184
+
+  * Added "Usage:" line to help screens for dict, dictd, and dictfmt.
+    Closes: #221945
+
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Wed, 10 Dec 2003 20:28:30 -0500
+
+
+dictd (1.9.10-2) unstable; urgency=low
+
+  * quoted "$PAGER" in test in dictl Closes: #204284.
+
+  * Applied patch by Kirk Hilliard to clientparse.y to accept the keyword
+    pager (/usr/bin/pager) as the name of the pager in dict.conf.
+    Closes: #204375
+
+  * Modified manpage dictd.8 to clarify the necessity of dictd's --locale
+    setting matching the databases in the configuration file.
+
+  * Modified manpage dict.1 to mention the default pager used.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Wed, 20 Aug 2003 18:37:12 -0400
+
+
+dictd (1.9.10-1) unstable; urgency=low
+
+  * New upstream version.  Major changes include:
+    Added -t option to dictfmt.
+    The predefined DICT servers dict.org and alt0.dict.org are disabled in
+    dict by default.
+    Implemented 'filter' option to dictd.
+    Added several configure variables to specify specific LD_FLAGS for
+    particular executables.  (Not meaningful for users of Debian binary
+    packages.)
+
+  * When purging dictd, postrm now uses rmdir --ignore-fail-on-non-empty
+    instead of rm -fr to remove configuration directories.
+
+  * Patched defs.h to use /etc/dictd/ for dictd.conf
+
+  * Added a conffile, /etc/default/dictd, containing startup options for
+    dictd.  This will make it easier to specify command line options, such
+    as the locale to be used by dictd, and logging options.
+    Closes: #109461, #198402, #174696
+
+  * Added note specifying Debian location of dictd.conf under "FILES" in
+    dictd.8. Closes: #202951
+
+  * Included a script, /usr/bin/dictl, as a wrapper for dict.  This script
+    converts characters encoded in utf-8 to the user's preferred character
+    set. Closes: #147482
+
+  * Deleted statement in dictd.8, under "BUGS", that says there is no way
+    to get a running server to re-read the configuration file.  (This
+    should have been done in 1.9.3-1.)
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Mon, 04 Aug 2003 15:53:01 -0400
+
+
+dictd (1.9.9-3) unstable; urgency=low
+
+  * Added #include <assert.h> in dictdplugin_popen.cpp Closes: # 195405
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Fri, 30 May 2003 16:37:07 -0400
+
+
+dictd (1.9.9-2) unstable; urgency=low
+
+  * Corrected references to configuration file in README.Debian and in
+    dictd.8
+
+  * Changed dictd.8 to mention that a SIGHUP makes dictd re-read the
+    confioguration file.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Fri, 16 May 2003 18:26:18 -0400
+
+
+dictd (1.9.9-1) unstable; urgency=low
+
+  * New upstream version (1.9.8 was not packaged).  Major changes since
+    1.9.7 include:
+
+    debian inetd patch has been included by upstream.
+    dictd may now be compiled and run on Cygwin.
+    dict is patched to prevent segfaulting on abnormally long command
+    lines.  Closes: #166336
+
+  * dictdconfig now recognizes *.sufix and *.word index files and creates
+    appropriate configuration entries.
+
+  * Added `-D_REENTRANT' to CFLAGS for plugin libraries.
+
+  # The definition of DICTD_CONFIG_NAME has moved from dictd.h to defs.h,
+    so patch for config files in /etc/dictd/ ha also moved to defs.h
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Sat, 19 Apr 2003 15:41:40 -0400
+
+
+dictd (1.9.7-2) unstable; urgency=low
+
+  * use -fPIC for plugin libraries Closes: #185092
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Mon, 17 Mar 2003 09:57:50 -0500
+
+
+dictd (1.9.7-1) unstable; urgency=low
+
+  * New upstream version.  (1.9.5, 1.9.6 and 1.9.7 were released too
+    quickly for me to package 1.9.5 and 1.9.6)  Major changes since 1.9.3
+    include:
+
+    Added --add-strategy option
+    Added ability to define plugins in the configuration file.
+    Added ability to define virtual dictionaries in the configuration file.
+    Added keyword 'invisible' for the databse specification of the
+    configuration file.
+    Various bugfixes and code cleanups.
+
+  * Plugin libraries and sample plugin man_popen are compiled and included
+    in the dictd package as examples.
+
+  * Removed emacs variables from changelog.
+
+  * Use `./configure  --verbose --prefix=$(PREFIX) --libexecdir=/usr/lib/dictd
+     --datadir=/usr/share/dictd --sysconfdir=/etc' in
+    rules instead of tweaking Makefile.in
+
+  * changelog for 1.9.3-1 failed to mention that changing the location
+    of dictd configuration files required patching dictd.h (since the
+    configuration directory is in CFLAGS, and all executables use the same
+    CFLAGS).
+
+  * The scripts dictfmt_index2suffix, dictfmt_index2word, dictfmt_virtual,
+    and dictunformat are included in the dictfmt package.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Sun, 16 Mar 2003 15:14:58 -0500
+
+
+dictd (1.9.3-2) unstable; urgency=low
+
+  * Made postrm "rm -fr /etc/dictd when called with purge. Closes: #180562
+
+  * Corected typo in rules file that installed dictfmt_virtual.1 under the
+    name of dictfmt_index2suffix.1
+
+  * Modified default confile dictd.order to have the same order as the
+    dictdconfig default.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Tue, 18 Feb 2003 14:47:43 -0500
+
+
+dictd (1.9.3-1.woody) unstable; urgency=low
+
+  * Compiled for woody (libc6 2.2.5-11.2)
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Sat,  1 Feb 2003 10:41:02 -0500
+
+
+dictd (1.9.3-1) unstable; urgency=low
+
+  * New upstream version.  Major changes in this version include:
+
+    Virtual dictionaries support; script to create them provided
+    New search strategy 'word'
+    Configuration file reloading by SIGHUP
+    A lot of plugin enhancements and two plugin examples.
+    Optional index_suffix and index_word files are supported, and scripts
+    are provided to create them.
+    dict_unformat script is provided to create raw database files from
+    .dict and .index files.
+    Servparse.y now works with bison 1.75.
+    dict -D and dict -S will display long dictionary or stratgey names
+    sanely.  Closes: #165787
+
+  * dictdconfig now reads /etc/dictdconfig.alias to optionally make
+    database name different than basename of .dict.dz file.  This enhances
+    the above fix to #165787.
+
+  * Pached Makefile.in to fix configuration and installation directories
+
+  * Modified init file to use SIGHUP for restart.
+
+  * Patched index.c so dictd will startup without error if the config file
+    includes the  /dev/null default database.  Closes: #171943
+
+  * Added inetd patch.
+
+  * Patched dictzip.c to prevent segfault on excessively long command
+    lines.  Closes: #166325
+
+  * Removed redundant `--' from deluser ----remove-home dictd &>/dev/null
+    in postrm.
+
+  * Prepared manpages dictfmt_virtual.1, dictunformat.1,
+    dictfmt_index2suffix.1, dictfmt_index2word.1.
+
+  * dictdconfig knows about the database_exit directive, and will insert
+    it in /var/lib/dictd/db.list if found in /etc/dictd/dictd.order.
+
+  * Moved dictd and dictdconfig configuration files to /etc/dictd/.
+
+  * Patched dict.c to make --serverinfo work as advertised.
+    Closes: #179127
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Fri, 31 Jan 2003 13:37:52 -0500
+
+
+dictd (1.8.0-1.woody) unstable; urgency=low
+
+  *Compiled in woody, with bison 1.35
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Thu,  7 Nov 2002 15:44:00 -0500
+
+
+dictd (1.8.0-1) unstable; urgency=low
+
+  * New upstream version.  Major changes in this version include:
+
+    Enhanced  8bit, UTF-8, and i18n support in both dictd and dictfmt.
+    dictd supports plugins (but they aren't documented)
+    dictfmt is now part of the dictd source package
+    dictd uses the system libz (the Debian package has done this since
+    1.5.5-10).
+
+  * Updated dictd and dictfmt manpages to reflect new options, and correct
+    the most egregious errors and omissions of the original dictfmt manpage.
+
+  * Patched dictfmt to prevent duplicating index entry for last item and
+    to correct help message.
+
+  * Removed /usr/doc symlinks in all postinst and prerm files.
+
+  * Applied inetd patch.
+
+  * Regenerated configure using autoconf 2.54
+
+  * Modified debugging support to comply with policy version 3.5.7.0.
+
+  * Modified configure target as recommended in autotools-dev package.
+
+  * Added Build-Depends: libltdl3-dev, autotools-dev
+
+  * Bison 1.75 breaks servparse.y.  Hacked Makefile.in to use byacc - this
+    produces a ton of warnings, but seems to work.
+    Changed Build-Depends: from bison to byacc
+
+  * Corrected readme-inetd - s|/etc/init.d/dictd|/etc/inetd.d| Closes: #167596
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Mon, 04 Nov 2002 12:56:12 -0500
+
+
+dictd (1.7.1-2) unstable; urgency=low
+
+  *  Moved dict | dict-client from Suggests: to Recommends:
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Sat, 20 Jul 2002 15:25:21 -0400
+
+dictd (1.7.1-2) unstable; urgency=low
+
+  *  Added `Conflicts: dictd (<< 1.7.1-1)' to dictzip control file.
+    Closes: #153228
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Wed, 17 Jul 2002 14:02:58 -0400
+
+dictd (1.7.1-1) unstable; urgency=low
+
+  *  New upstream version - includes all previous debian patches except
+    inetd patch.  Major changes in this version include:
+
+    Added sanity checks and moved logging so that people get information about
+    unreadable configuration files, unreadable databases files, and other
+    errors that prevent startup (and were previously silent).
+    Closes: #137500
+
+    Improved reporting of authentication matching and access denial.
+
+    Fixed dictunzip problem with single chunk files.
+    Closes: #142672
+
+    Made -l connect log something (under :K:)
+
+    Added --locale option, and applied patches from Aleksey Cheusov to
+    make dictd know about locale.
+    If LC_CTYPE and LC_COLLATE are the same for dictfmt and dictd, then a
+    non C collating order should work.
+
+    Make sure pager is closed when reporting fatal error.
+    Closes: #141846
+
+    Modified code for Access Specification to add a range of IP addresses
+    and an IP address followed by a netmask to the allowable forms of
+    allowed addresses.
+    Closes: #137143
+
+  *  Modified configure.in to link against system zlib instead of local
+    zlib, and modified dict.h, dictd.h, and dictzip.h to #include <zlib,h>
+    instead of "zlib.h".
+
+  *  Modified Makefile.in and libmaa/Makefile.in to not remove configure
+    on distclean and to honor DEB_BUILD_OPTIONS.
+
+  *  Applied inetd patch.
+
+  *  Modified rules file to make a separate dictzip package.  To avoid
+    transition problems, dictd depends on dictzip.  This dependency may be
+    removed when woody+1 is released.
+    Closes: #141190
+
+  *  Added dependencies on netbase and adduser.
+    Closes: #147784
+
+  *  Added -c option to start-stop-daemon in /etc/init.d/dictd.
+    Closes: #140513
+
+  *  Changed user, group and home directory removal in postrm to:
+    "deluser ----remove-home dictd &>/dev/null || true"
+    This will permit this version of dictd to be purged, but, of course it
+    can't do anything about the previous version.  :-(
+    Closes: #147989
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Tue,  9 Jul 2002 15:18:34 -0400
+
+
+dictd (1.5.5-10) unstable; urgency=high
+
+  * Security update for zlib vulnerability
+
+  * Modified configure and dictzip.c to use system library zlib1g-dev and
+    /usr/include/zlib.h instead of local zlib and zlib.h; compiled with
+    zlib1g 1.1.4-1
+
+  * Add to postrm - remove user and group dictd and remove /home/dictd if
+    it is empty. closes: #137984
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Mon, 18 Mar 2002 12:19:59 -0500
+
+
+dictd (1.5.5-9) unstable; urgency=low
+
+  * Added \n to access denied error message. closes: #137499
+
+  * Added  ``allow 127.0.0.1'' to access specification in dictd.conf to
+    avoid failure when localhost is not the first name after the IP
+    address in the /etc/hosts file.  This is a temporary work around for
+    #137500 and #138156.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Thu, 14 Mar 2002 15:41:47 -0500
+
+
+dictd (1.5.5-8) unstable; urgency=low
+
+  * Corrected spelling in long description - s/Amrose/Ambrose/.
+
+  * Patched servscan.l to fix parse error of IP addresses in the access
+    section of /etc/dictd.conf.  (This had been fixed in 1.4.9-3, but
+    wasn't included in 1.5.x.) closes: #136380
+
+  * Added ``allow localhost'' to default /etc/dictd.conf file to prevent
+    unlimited access from the Internet.  Modified README.Debian.gz to
+    mention the default access specification.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Tue,  5 Mar 2002 17:09:02 -0500
+
+
+dictd (1.5.5-7) unstable; urgency=low
+
+  * Really added --no-create-home option to adduser call in preinst
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Mon, 11 Feb 2002 18:13:56 -0500
+
+
+dictd (1.5.5-6) unstable; urgency=low
+
+  * Added --quiet option an || true to adduser invocation in preinst
+    closes: #132968
+
+  * Added closelog() to daemon_terminate() in daemon.c
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Fri,  8 Feb 2002 11:52:27 -0500
+
+
+dictd (1.5.5-5) unstable; urgency=low
+
+  * Removed --html option from dict.c help message
+    closes: #113479
+
+  * Made numerous corrections and clarifications to dictd.8, including
+    conforming option documentation to the code.  Added a note about the
+    include keyword and the Debian dictdconfig script, which partially
+    addresses, but doesn't close Bug #104096.
+
+  * Made dictd informative messages (-h, -L and -V) display on stdout
+    instead of stderr, while still using stderr for error messages.
+
+  * Modified preinst to add user dictd if it doesn't already exist.
+    Patched dictd.c to run as user dictd if that user is present on the
+    system, and as user nobody otherwise.
+
+  * Created an option (--facility) to permit the user to choose which
+    syslog logging facility dictd should use.
+
+  * Included a patch by Joey Hess <joeyh@debian.org> to permit dictd to be
+    started by inetd; included README.inetd.gz explaining use of dictd with
+    inetd.  Thanks, Joey.
+    closes: #62998
+
+  * Removed spurious character (`1') from dictd prerm.
+    closes: #131195
+
+  * Included virtual packages dict-client and dict-server in dependency
+    relationships.
+
+  * Removed -Wwrite-strings from WCFLAGS in configure script.  This
+    removes this flag from XTRACFLAGS in Makefile and avoids 70 compiler
+    warnings caused by libc6-dev Bug #111767.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Mon,  4 Feb 2002 18:16:22 -0500
+
+
+dictd (1.5.5-4) unstable; urgency=low
+
+  * Removed redundant `echo $PID' from preinst
+    Closes: #101866
+
+  * Modified control file and README.Debian to reflect new version of
+    WordNet.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Sat, 23 Jun 2001 15:59:21 -0400
+
+
+dictd (1.5.5-3) unstable; urgency=low
+
+  * Modified Makefile.in and debian/rules to support the environment
+    variable `DEB_BUILD_OPTIONS', per policy section 11.1.
+
+  * Modified debian/rules to strip the .note and .comment sections.
+
+  * Modfied dictdconfig, debian/control and README.Debian to include
+    dict-cide.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Wed, 20 Jun 2001 16:22:50 -0400
+
+
+dictd (1.5.5-2) unstable; urgency=low
+
+  * Made dictunzip.1 and dictzcat.1 as symlinks to dictzip.1
+
+  * Fixed the kludge for PID in preinst.
+    closes #81393
+
+  * Patched dictzip.c to make dictunzip work.  Added /usr/bin/dictunzip
+    and /usr/bin/dictzcat as symlinks to /usr/bin/dictzip
+    closes #92694
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Wed, 25 Apr 2001 16:08:42 -0400
+
+
+dictd (1.5.5-1) unstable; urgency=low
+
+  * new upstream version - incorporates _all_ previous Debian patches
+
+  *  Previous release (1.5.4-1) fixed a parsing error in dict.c that
+     caused it to segauflt in certain unusual cases.  This fixed
+     Bug#77685, but it was omitted from the changelog.
+
+  * Modified Makefile.in and libmaa/Makefile.in as in previous
+    version.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Fri, 19 Jan 2001 13:28:43 -0500
+
+
+dictd (1.5.4-1) unstable; urgency=low
+
+  * new upstream version - incorporates almost all previous debian patches,
+  and fixes the folowing bugs:
+    Fixed typo (s/deby/deny/) in dictd manpage
+    Closes: #78275
+    Corrected output streams so dict help messages (including -V and -L)
+    go to stdout and error messages still go to stderr.
+    Closes #78596
+    Corrected option listing in dict.c so getopt() will complain if
+    argument is omitted for -s, and extended manpage text for the -s
+    option.
+    Closes #78597
+    Disabled --html option in dict, and noted it in manpage.  This
+    responds to, but doesn't fix, Bug#78975.
+
+  * Modified Makefile.in as done for previous version; made same changes
+    in libmaa/Makefile.in.  Fixed man directory in Makefile.in.
+
+  * Patched dict.c to fix pager problem.
+
+  * Changed readme-dictd and my @db_order in dictdconfig to mention
+    dict-devil.
+
+ -- Bob Hilliard <hilliard@debian.org>  Sun, 31 Dec 2000 16:58:04 -0500
+
+
+dictd (1.5.0-1) unstable; urgency=low
+
+  * New upstream version, which includes mnost of the patches applied to
+    1.4.9 in earlier packages.
+
+  * Modifies Makefile.in as done for previous version; made same changes
+    in libmaa/Makefile.in.  Fixed man directory in Makefile.in.
+
+  * Patched dictd.c to make it drop root's groups and become group
+    nogroup.  Even though dictd dropped root privileges on starting,
+    it retained root's group memberships.
+    Closes: #75132
+
+  * Patched dictd.c and servscan.l as was done in 1.4.9-5 and 1.4.9-3.
+
+  * Patched dict.c to fix pager problem.
+
+ -- Bob Hilliard <hilliard@debian.org>  Thu, 26 Oct 2000 08:02:57 -0400
+
+
+dictd (1.4.9-9) stable; urgency=low
+
+  * Note to ftp admins: This fixes a potential security hole, although
+    there is no known exploit.
+
+  * Patched dictd.c to make it drop root's groups and become group
+    nogroup.  As reported by bug#75132, even though dictd dropped root
+    privileges on starting, it retained root's group memberships.
+
+ -- Bob Hilliard <hilliard@debian.org>  Wed, 25 Oct 2000 10:37:38 -0400
+
+
+dictd (1.4.9-8) unstable; urgency=low
+
+  * Added vera to my @db_order in dictdconfig
+
+  * Modified preinst, readm-dictd and control.
+
+ -- Bob Hilliard <hilliard@debian.org>  Fri, 12 May 2000 14:07:15 -0400
+
+
+dictd (1.4.9-7) frozen unstable; urgency=low
+
+  * Rlease Manager: This should be safe for frozen since it only adds a
+    sleep command in /etc/init.d/dictd restart and uogrades the control
+    file for the latest versoinp of the policy manual.
+
+  * Restart is implemented in /etcinit.d/dictd restart by stopping and
+    restarting the daemon.  It is possible for the start command to be
+    issued before the daemon is stopped, in which case the daemon is not
+    started.
+
+    Added a pause between stopping and restarting the daemon.
+    Closes: #59321
+
+  *  Updated to Standards-Version: 3.1.1.1
+
+  *  Added Build-Depends
+
+  *  Postrm now removes automatically generated config file
+    /var/lib/dictd/db.list on purge.
+
+ -- Bob Hilliard <hilliard@debian.org>  Tue,  7 Mar 2000 14:46:03 -0500
+
+
+dictd (1.4.9-6) unstable; urgency=low
+
+  * Upgraded dictdconfig to 1.1:
+
+    No longer ignore uncompressed dictionaries.
+    Closes: bug#57618
+
+    Directories in the order override file which are not absolute are
+    now relative to /usr/share/dictd/, as stated in dictdconfig(8).
+
+    Fixed minor errors in dictdconfig(8).
+
+  * Added -ips to dpkg-gencontrol in rules (two locations) to stop a
+    lintian warning.
+
+ -- Bob Hilliard <hilliard@debian.org>  Fri, 25 Feb 2000 13:47:45 -0500
+
+
+dictd (1.4.9-5) unstable; urgency=low
+  * Add patch from Kirk Hilliard to terminate a string in
+    dict_setproctitle.  Thanks, Kirk  Closes: #54809
+
+ -- Bob Hilliard <hilliard@debian.org>  Fri, 14 Jan 2000 13:59:22 -0500
+
+
+dictd (1.4.9-4) unstable; urgency=low
+
+  * Remove postrm for dict since it does nothing except report
+    "postrm called with unknown argument `purge'" when purging.
+    Closes: bug#52555
+
+  * Minor changes in REEADME's
+
+ -- Bob Hilliard <hilliard@debian.org>  Sun, 12 Dec 1999 14:59:52 -0500
+
+
+dictd (1.4.9-3) unstable; urgency=low
+
+  * Update to Standards version 3.0.1.1:
+    Modified for FHS - /usr/share{doc, man}
+
+    Added scripts to provide and remove symlink  /usr/doc/dict-wn
+    to /usr/share/doc/dict-wn and to reconfigure and restart dictd
+    when this package is installed or removed.
+
+    Corrected location of GPL license
+
+    Fixed man1_prefix and man8_prefix in Makefile.in to include /share.
+
+  * Applied patches from Lars Wirzenius <liw@iki.fi> that add an
+    option to specify the pager used by dict to display the output,
+    and modifies the manpage to document this.  Thank you, Lars.
+    Closes: bug#47603
+
+  * Patched servscan.l based on e-mail from Rick Faith <faith@dict.org>
+    to make dict accept the configuration file syntax described in the
+    ditcd.8 manpage.
+    Closes: bug#48489
+
+  * Patched dictd.c with patch from Kirk Hilliard <kirk@ghoti.com) to
+    cause dictd to drop root privileges as soon as it starts, and to
+    prevent dictd from trying to write a pidfile.  Thanks, Kirk.  This
+    permits eliminating `su nobody' from the init.d script.
+    Closes: bug#40762
+
+ -- Bob Hilliard <hilliard@debian.org>  Fri, 29 Oct 1999 17:11:57 -0400
+
+
+dictd (1.4.9-2) unstable; urgency=low
+
+  * Included greatly expanded mandage dictdconfig.8; enhanced README's.
+
+  * Removed references to dict-web1913 being in non-free
+
+ -- Bob Hilliard <hilliard@debian.org>  Tue, 15 Jun 1999 00:03:12 -0400
+
+
+dictd (1.4.9-1) unstable; urgency=low
+
+  * New upstream version
+
+  * Provided /usr/sbin/dictdconfig to read /usr/share/dictd, and
+    write a list of datbase files in /var/lib/dictd/db.list.
+    closes 24189, 36920
+
+  * Call /usr/sbin/dictdconfig in the postinst.
+
+  * Applied patch to optionally make dictd read the contents of
+    /var/lib/dictd/db.list in lieu of the database section of
+    /etc/ditd/conf
+
+  * /etc/init.d.dictd:
+    displays a message when the unsupported `reload' command is given
+
+    Inserted `cd/' before `su -c nobody . .' to prevent an error when
+    dictd is started from a directory with restricted permissions -
+    closes #34907
+
+  * Applied all patches listed below for 1.4.8 to 1.4.9 source.
+
+  * made changes in Makefile.in and dictd.8 as listed below for 1.4.8-1
+
+ -- Bob Hilliard <hilliard@debian.org>  Tue,  8 Jun 1999 19:34:37 -0400
+
+
+dictd (1.4.8-11) unstable; urgency=low
+
+  * Changed test for null PID in preinst and postrm
+
+ -- Bob Hilliard <hilliard@debian.org>  Sun, 30 May 1999 14:45:52 -0400
+
+
+dictd (1.4.8-10) unstable; urgency=low
+
+  * Compiled with libc6_2.1.1-7 (potato)
+
+  * Patched servscan.l and clientscan.l to fix misaligned error messages.
+    Patch by Kirk Hilliard <kirk@debian.org> - fixes 37326
+
+  * Simplified dictd script.  Set interpreter to /bin/ash for testing,
+    then to /bin/sh for release.
+
+  * Added prerm script
+
+  * Reordered sequence of foldoc,jargon and elements dictionaries in
+    dictd.conf.
+
+  * Patched libmaa/hash.c to fix int/long mix up on Alpha.
+    Patch by Nikita Schmidt <cetus@snowball.ucd.ie> - fixes #36636
+
+  * Patched libmaa/hash.c to remove compiler warnings introduced by
+    libc6_21. Patch by Kirk Hilliard <kirk@debian.org>
+
+  * Corrected format in /etc/init.d files to comply with console message
+    standard - fixes #35519 and #36919
+
+  * removed spurious `F' from /etc/init.d.dictd - fixes #35126 and #35519
+
+ -- Bob Hilliard <hilliard@debian.org>  Fri, 28 May 1999 19:46:07 -0400
+
+
+dictd (1.4.8-9) frozen unstable; urgency=low
+
+  * made /etc/init.d/dictd #!bash (most bashisms are gone, but I still
+    get one error message if run with #!ash)
+
+  * Modified /etc/init.d/dictd to eliminate meaningless error mesage on
+    startup and reduced the numberof redundant kill commands
+
+  * Modified preinst, postinst, and postrm to be consistent with
+    /etc/init.d/dictd
+
+  * noted in control file and README.Debian that dict-web1913 is found in
+    potato non-free.
+
+  * modified README-dictd
+
+ -- Bob Hilliard <hilliard@debian.org>  Wed, 27 Jan 1999 18:49:12 -0500
+
+
+dictd (1.4.8-8) frozen unstable; urgency=low
+
+  * Removed spurious " character in /etc/init.d/dictd
+
+ -- Bob Hilliard <hilliard@debian.org>  Mon, 18 Jan 1999 10:09:41 -0500
+
+dictd (1.4.8-7) frozen unstable; urgency=low
+
+  * On systems where su is secure-su, 'su nobody' gets a path that doesn't
+    include /sbin.  Changed 'su nobody -c "start-stop-daemon . . .'
+    to 'su nobody -c "/sbin/start-stop-daemon . . .'
+    Fixes Bugs #31860 and #31861'
+
+ -- Bob Hilliard <hilliard@debian.org>  Thu, 14 Jan 1999 14:43:06 -0500
+
+
+dictd (1.4.8-6) frozen unstable; urgency=high
+
+  * Modified /etc/init.d script so dictd daemon runs as noboby, thereby
+    eliminating a potential security risk.  Closes #31624.
+
+  * Removed non-free package dict-web1913 from Sugests: list.
+
+ -- Bob Hilliard <hilliard@debian.org>  Tue, 12 Jan 1999 18:23:43 -0500
+
+
+dictd (1.4.8-5) frozen unstable; urgency=low
+
+  * Patched dict.c to initialize stdout as required for glibc2.1 (this may
+    only be needed for (Sparc) ports).
+    Patched decl.h and libmaa/decl.h to eliminate Sun OS stuff when compiling
+    on Sparc/Linux.  Patch supplied by Christian Meder
+    <meder@isr.uni-stuttgart.de> .  Closes #30176
+
+  * Re-commented dictionary location lines in .conf; replaced dummy dict
+    and index in .conf and in rules, and added message in post-inst to
+    advise user to uncomment lines for installed dictionaries.  Removed
+    preinst, modified postrm.
+    Closes #30137, 30212
+
+  * Updated README.Debian.gz files
+
+ -- Bob Hilliard <hilliard@debian.org>  Wed,  2 Dec 1998 16:59:13 -0500
+
+
+dictd (1.4.8-4) frozen unstable; urgency=low
+
+  * Patched dictd.c to remove superfluous %s in format line of "reaper"
+    (Thanks to alexander.schwartz@gmx.net)  Closes #29976
+
+  * Checked for Policy 2.5.0.0 and updated debian/control to
+    Standards-Version 2.5.0.0
+
+  * Fixed typo s/gazetter/gazetteer/ in dictd.conf.
+
+ -- Bob Hilliard <hilliard@debian.org>  Sat, 28 Nov 1998 18:42:25 -0500
+
+
+dictd (1.4.8-3) frozen unstable; urgency=low
+
+  * Removed dummy dict and index from .conf and from rules
+
+  * Uncommented dictionary location lines in .conf
+
+  * Changed description in control file and in README.Debian.gz to reflect
+    dict-web1913 is now available in non-free - fixes #29467
+
+  * Added dict-web1913 to "Suggests"
+
+  * Modified dict.conf to access a server on the local host and then one
+    at dict.org if the localhost server is not available.
+
+ -- Bob Hilliard <hilliard@debian.org>  Sun, 22 Nov 1998 16:18:14 -0500
+
+
+
+dictd (1.4.8-2) unstable; urgency=low
+
+  * Removed "Recommends" for dict-web1913 from dictd - closes #23709
+
+  * Changed expected availability date for dict-web1913 to July 1988 in
+    dictd control
+
+  * Fixed postrm so it doesn't give an error with an argument of upgrade
+
+ -- Bob Hilliard <hilliard@debian.org>  Thu,  2 Jul 1998 15:21:36 -0400
+
+
+dictd (1.4.8-1) unstable; urgency=low
+
+  * Initial release
+
+  * Corrected name of dictd configuration file in two places in the
+    manpage dictd.8
+
+  * Removed configure from the files removed by the distclean target in
+    Makefile.in in top level and libmaa directories so autoconf will not
+    be required to run configure after making distclean.
+
+  * Added doc/Makefile to rm -f line in top level Makefile.in distclean.
+    doc is excluded from $subdirs, so it isn't built or cleaned, but
+    configure makes Makefile.
+
+ -- Bob Hilliard <hilliard@debian.org>  Fri, 17 Apr 1998 18:54:26 -0400
--- dictd-1.11.2+dfsg.orig/debian/dictd.templates
+++ dictd-1.11.2+dfsg/debian/dictd.templates
@@ -0,0 +1,18 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# debian-l10n-english@lists.debian.org for advice.
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+Template: dictd/run_mode
+Type: select
+__Choices: daemon, inetd, disabled
+Default: daemon
+_Description: Method for running dictd:
+ The dictd server can be run either as a stand-alone daemon or from inetd. You can also
+ disable it entirely.
+ .
+ It is recommended to run it as a daemon.
--- dictd-1.11.2+dfsg.orig/debian/dict.install
+++ dictd-1.11.2+dfsg/debian/dict.install
@@ -0,0 +1,8 @@
+../../debian/sources/colorit.conf     etc/dictd/
+../../debian/sources/dict.conf        etc/dictd/
+usr/bin/colorit
+usr/bin/dict
+usr/bin/dictl
+usr/share/man/man1/colorit.1
+usr/share/man/man1/dict.1
+usr/share/man/man1/dictl.1
--- dictd-1.11.2+dfsg.orig/debian/dictd.examples
+++ dictd-1.11.2+dfsg/debian/dictd.examples
@@ -0,0 +1,3 @@
+debian/sources/dictd_virtual2.conf
+examples/dictd*.conf
+examples/dictd*.txt
--- dictd-1.11.2+dfsg.orig/debian/dictd.config
+++ dictd-1.11.2+dfsg/debian/dictd.config
@@ -0,0 +1,33 @@
+#!/bin/sh
+# vim: ts=4:et:sts=4
+# $Id: dictd.config 90 2009-01-03 16:57:14Z robert $
+set -e
+
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+CONFIGFILE=/etc/default/dictd
+
+if [ -f "$CONFIGFILE" ]; then
+
+    RUN_MODE="<not set in config file>"
+
+    . "$CONFIGFILE"
+
+    # preserve user changes from the config file
+    case "$RUN_MODE" in
+        daemon|inetd|disabled)
+	        db_set dictd/run_mode "$RUN_MODE"
+            ;;
+        "<not set in config file>")
+            ;;
+        *)
+	        db_set dictd/run_mode "daemon"
+            ;;
+esac
+fi
+
+
+db_input medium dictd/run_mode || true
+db_go || true
--- dictd-1.11.2+dfsg.orig/debian/control
+++ dictd-1.11.2+dfsg/debian/control
@@ -0,0 +1,79 @@
+Source: dictd
+Section: text
+Priority: optional
+Maintainer: Robert Luberda <robert@debian.org>
+Build-Depends: flex, bison, zlib1g-dev, libltdl-dev, autotools-dev, quilt (>= 0.45), debhelper (>= 7), libtool, libmaa-dev (>= 1.2.0)
+Standards-Version: 3.9.1
+Homepage: http://sourceforge.net/projects/dict/
+
+Package: dictd
+Architecture: any
+Description: dictionary server
+ This package provides a TCP-based server that allows a client to access
+ dictionary definitions from a set of natural language dictionary databases.
+ .
+ Many dictionary databases have been packaged for use with dictd. They are
+ described in the /usr/share/doc/dictd/README.Debian.gz file.
+ .
+ Either dict-gcide or dict-wn is essential for a useful English
+ language dictionary server.  It is strongly recommended that both be
+ installed.  If you are interested in computer terminology, it is
+ recommended to install at least dict-jargon, dict-foldoc, or
+ dict-vera.
+ .
+ The client program, dict, is packaged separately and is needed on all
+ machines that will use the server.
+Depends: ${shlibs:Depends}, ${misc:Depends}, netbase, adduser, dictzip (>= ${source:Upstream-Version}), lsb-base (>= 3.2-13), ucf (>= 3), update-inetd
+Recommends: dict | dict-client
+Suggests: dict-gcide | dictd-dictionary, dict-wn, dict-jargon, dict-foldoc
+Provides: dict-server
+Conflicts: dict-server
+
+Package: dict
+Architecture: any
+Description: dictionary client
+ This package provides a client application to query a dictd server.
+ The client-server protocol is TCP-based; the server may then be local or
+ accessed through the network.
+ .
+ The DICT Development Group maintains several public servers which can
+ be accessed from any machine connected to the Internet.  The default
+ configuration is to query one of these servers first. This may be
+ changed in the configuration file /etc/dictd/dict.conf.
+ .
+ Queries may be customized by numerous command line options, including
+ specifying the database(s) to be queried and the search strategy to
+ be used.
+ .
+ This package also provides dictl, which allows using UTF-8 encoded dictionaries
+ with terminals that do not support UTF-8.
+Depends: ${shlibs:Depends}, ${misc:Depends}, netbase, recode
+Recommends: m4, gawk
+Suggests: dictd | dict-server
+Provides: dict-client
+
+Package: dictzip
+Architecture: any
+Description: compression utility for dictionary databases
+ This package provides a utility to compress dictionary databases with the
+ LZ77 algorithm in a manner which is completely compatible with gzip(1),
+ but using an extension that allows for random access to chunks
+ of about 57kB without the overhead of decompressing the entire file.
+ .
+ This package also includes dictunzip, to decompress dictzipped files,
+ and dictzcat, for viewing dictzipped files.
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Replaces: dictd (<< 1.7.1-1)
+
+Package: dictfmt
+Section: utils
+Architecture: any
+Description: utility to format a file for use by a dictd server
+ This package provides dictfmt. This utility can convert an input file
+ to a dictionary database that conforms to the DICT protocol, and create
+ a corresponding index file.
+ .
+ The package also provides dictunformat, which creates a raw database
+ from a dictionary index and a dictionary database.
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: dictzip
--- dictd-1.11.2+dfsg.orig/debian/dictd.lintian-overrides
+++ dictd-1.11.2+dfsg/debian/dictd.lintian-overrides
@@ -0,0 +1 @@
+dictd: init.d-script-possible-missing-stop /etc/init.d/dictd 0 6
--- dictd-1.11.2+dfsg.orig/debian/dictd.links
+++ dictd-1.11.2+dfsg/debian/dictd.links
@@ -0,0 +1 @@
+/usr/share/doc/dictd/README.Plugins.gz usr/lib/dictd/README.Plugins.gz
--- dictd-1.11.2+dfsg.orig/debian/dictfmt.install
+++ dictd-1.11.2+dfsg/debian/dictfmt.install
@@ -0,0 +1,8 @@
+usr/bin/dictfmt_index2suffix
+usr/bin/dictfmt_index2word
+usr/bin/dictfmt
+usr/bin/dictunformat
+usr/share/man/man1/dictfmt_index2suffix.1
+usr/share/man/man1/dictfmt_index2word.1
+usr/share/man/man1/dictfmt.1
+usr/share/man/man1/dictunformat.1
--- dictd-1.11.2+dfsg.orig/debian/rules
+++ dictd-1.11.2+dfsg/debian/rules
@@ -0,0 +1,175 @@
+#!/usr/bin/make -f
+#
+# $Id: rules 131 2011-01-04 22:27:29Z robert $
+#
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+#  Package specific stuff.  The idea is to try to make the rules
+#  generic (gradually).
+
+export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+  confflags = --build $(DEB_HOST_GNU_TYPE)
+else
+  confflags = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
+
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+  CFLAGS = -g -Wall -O0
+else	
+  CFLAGS = -g -Wall -O2
+endif
+
+LDFLAGS   = -Wl,-z,defs -Wl,--as-needed
+MAKEARGS  = JUDYLIB= DBILIB= DEBCFLAGS="$(CFLAGS)"
+DESTDIR   = $(CURDIR)/debian/tmp
+
+build: autotools patch configure-stamp build-stamp
+
+configure: autotools patch configure-stamp
+
+
+include /usr/share/quilt/quilt.make
+
+
+autotools: autotools-clean
+	tar cvzf configs.tgz  config.sub config.guess
+	rm -f config.sub config.guess
+	ln -s /usr/share/misc/config.sub config.sub
+	ln -s /usr/share/misc/config.guess config.guess
+
+autotools-clean:
+	if [  -f configs.tgz ] ; then \
+		set -e ; \
+		rm -f config.sub config.guess  ; \
+		tar xvzf configs.tgz ; \
+		rm -f configs.tgz ; \
+	fi
+
+	
+
+configure-stamp:
+	dh_testdir
+	
+	LDFLAGS="$(LDFLAGS)" \
+	AWK=awk	\
+	./configure  	--verbose \
+			--prefix=/usr \
+			--libexecdir=/usr/lib/dictd \
+			--datadir=/usr/share/dictd \
+			--sysconfdir=/etc/dictd  \
+			$(confflags)
+	touch "$@"
+
+build-stamp:
+	dh_testdir
+
+	$(MAKE) $(MAKEARGS)
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	$(MAKE) $(MAKEARGS) test
+endif
+
+#	$(MAKE) CFLAGS+='-fPIC -D_REENTRANT' samples
+
+	touch "$@"
+
+clean-upstream:
+	dh_testdir
+	dh_testroot
+	rm -f configure-stamp build-stamp
+
+	test ! -f test/dictd_test || rm -f `find test -maxdepth 1 -type f -newer test/dictd_test` test/dictd_test
+
+	test ! -f Makefile || $(MAKE) $(MAKEARGS) distclean
+
+	rm -f core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
+		-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' -o -name 'config.log' \
+		-o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print` TAGS
+	rm -rf .libs dictunformat examples/dictd_popen.conf
+	dh_clean
+
+
+# make sure `$(MAKE) distclean' is run *before* unpatch 
+clean: clean-upstream unpatch autotools-clean
+
+
+install: DH_OPTIONS=
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs -A
+
+	# Add here commands to install the package into debian/tmp.
+	$(MAKE) $(MAKEARGS) DESTDIR=$(DESTDIR) install
+	rm  $(DESTDIR)/usr/include/dictdplugin.h
+	rm  $(DESTDIR)/usr/bin/dictdplugin-config
+
+	dh_install --list-missing --sourcedir=$(DESTDIR)
+
+# This single target is used to build all the packages, all at once, or
+# one at a time. So keep in mind: any options passed to commands here will
+# affect _all_ packages. Anything you want to only affect one package
+# should be put in another target, such as the install target.
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -k NEWS
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_installdebconf
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installcatalogs
+#	dh_installpam
+#	dh_installmime
+	dh_installinit -- start 20 2 3 4 5 . stop 20 1 .
+	dh_installman
+#	dh_installcron
+#	dh_installinfo
+#	dh_installwm
+#	dh_installudev
+	dh_lintian
+#	dh_bugfiles
+#	dh_undocumented
+	dh_strip
+	dh_link
+	dh_compress
+	dh_fixperms
+
+	find debian -mindepth 6 -maxdepth 7 -path "*/usr/share/doc/*" \
+		'!' -name "*.gz" -name "README.*" -exec gzip -9 {} \;
+	find debian -mindepth 4 -maxdepth 5 -path "*/dictd/etc/dictd/*" \
+		-name dictdconfig.alias -exec chmod 755 {} \;
+
+	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep: build install
+# (Uncomment this next line if you have such packages.)
+#	 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build install
+	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+# Any other binary targets build just one binary package at a time.
+binary-%: build install
+	make -f debian/rules binary-common DH_OPTIONS=-p$*
+
+binary: binary-indep binary-arch
+.PHONY: build clean clean-upstream binary-indep binary-arch binary-common binary install autotools autotools-clean
--- dictd-1.11.2+dfsg.orig/debian/dictd.init
+++ dictd-1.11.2+dfsg/debian/dictd.init
@@ -0,0 +1,169 @@
+#!/bin/sh
+# vim:ts=4:et:sts=4
+### BEGIN INIT INFO
+# Provides:          dictd
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      1
+# Short-Description: Start and stop dictionary server daemon
+### END INIT INFO
+#
+# Script to start and stop dictionary server daemon (/usr/sbin/dictd)
+# written by Bob Hilliard <hilliard@debian.org> 15 April 1988, last
+# modified on 04 Decmeber 2005.
+# based on /etc/init.d/skeleton v1.7  05-May-1997  by miquels@cistron.nl
+
+# dictd now writes a pid file before it drops root permissions (in favor of
+# dictd.dictd), so we no longer start it with -c dictd.
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/dictd
+NAME=dictd
+DESC="dictionary server"
+PIDFILE=/var/run/dictd.pid
+DEFAULTSFILE="/etc/default/$NAME"
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Set defaults
+DICTD_ARG=""
+RUN_MODE="daemon"
+
+# Read configuration variable file if it is present
+[ -r "$DEFAULTSFILE" ] && . "$DEFAULTSFILE"
+
+# Define LSB log_* functions.
+. /lib/lsb/init-functions
+
+
+set -e
+#
+# Function that check if service is enabled - if not it exits the script
+#
+check_runmode()
+{
+    verbose="$1"
+    case "$RUN_MODE" in
+        daemon)
+            return
+            ;;
+        inetd)
+            exit 0
+            ;;
+        disabled)
+            [ "$verbose" -eq 0 ] ||  log_warning_msg "Not staring $NAME - disabled in $DEFAULTSFILE"
+            exit 0
+            ;;
+        *)
+           if [ "$verbose" -eq 1 ]; then 
+                log_failure_msg "Unknown RUN_MODE set in $DEFAULTSFILE: $RUN_MODE"
+                exit 1;
+            fi
+            exit 0
+            ;;
+    esac
+
+}
+
+#
+# Function that cheks if service is running
+#
+is_running()
+{
+    ! start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null
+}   
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+    start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --  ${DICTD_ARGS}
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+    if start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME; then
+        # Wait for children to finish too if this is a daemon that forks
+        # and if the daemon is only ever run from this initscript.
+        # If the above conditions are not satisfied then add some other code
+        # that waits for the process to drop all resources that could be
+        # needed by services started subsequently.  A last resort is to
+        # sleep for some time.
+        start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON || return $?
+        rm -f $PIDFILE
+        return 0;
+    fi      
+    return 1
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+    start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --exec $DAEMON
+}
+
+
+status=0
+
+case "$1" in
+     start)
+        check_runmode 1
+        log_daemon_msg "Starting $DESC" "$NAME"
+        if is_running ; then
+            echo -n  " (already running)"
+        else        
+            do_start || status=$?
+        fi      
+        log_end_msg $status
+        ;;
+
+    stop)
+        check_runmode 0
+        log_daemon_msg "Stopping $DESC" "$NAME"
+        if is_running ; then
+            do_stop || status=$?
+        else        
+            echo -n " (not running)"
+        fi      
+        log_end_msg $status
+        ;;
+
+    restart)
+        check_runmode 0
+        log_daemon_msg "Restarting $DESC" "$NAME"
+        is_running && do_stop || true
+        do_start || status=$?
+        log_end_msg $status
+        ;;
+
+    reload|force-reload)
+        check_runmode 0
+        log_daemon_msg "Reloading $DESC configuration" "$NAME"
+        if is_running ; then
+            do_reload || status=$?
+        else        
+            echo -n " (not running)"
+            status=1
+        fi      
+        log_end_msg $status
+        ;;
+
+    status)
+        check_runmode 0
+        status_of_proc "$DAEMON" "$NAME" || status=$?
+        ;;
+
+    *)
+        log_failure_msg "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload|status}" 2>&1
+        exit 1
+        ;;
+esac
+
+exit $status
--- dictd-1.11.2+dfsg.orig/debian/compat
+++ dictd-1.11.2+dfsg/debian/compat
@@ -0,0 +1 @@
+7
--- dictd-1.11.2+dfsg.orig/debian/dictd.docs
+++ dictd-1.11.2+dfsg/debian/dictd.docs
@@ -0,0 +1,8 @@
+debian/doc/README.Debugging
+debian/doc/README.inetd
+debian/doc/README.Plugins
+debian/doc/README.Index2suffix
+debian/doc/README.Index2word
+debian/doc/README.Virtual_dictionaries
+debian/doc/README.Unformat
+doc/security.doc
--- dictd-1.11.2+dfsg.orig/debian/dictd.install
+++ dictd-1.11.2+dfsg/debian/dictd.install
@@ -0,0 +1,7 @@
+../../debian/sources/dictdconfig.alias        etc/dictd/
+../../debian/sources/dictdconfig              usr/sbin/
+../../debian/sources/dictd.conf               etc/dictd/
+../../debian/sources/dictd.order              etc/dictd/
+../../debian/sources/ucf/*                    usr/share/dictd/ucf/ 
+usr/sbin/dictd
+usr/share/man/man8/dictd.8
--- dictd-1.11.2+dfsg.orig/debian/dictzip.install
+++ dictd-1.11.2+dfsg/debian/dictzip.install
@@ -0,0 +1,2 @@
+usr/bin/dictzip
+usr/share/man/man1/dictzip.1
--- dictd-1.11.2+dfsg.orig/debian/copyright
+++ dictd-1.11.2+dfsg/debian/copyright
@@ -0,0 +1,45 @@
+This is the Debian GNU/Linux prepackaged version of The DICT
+Development Group's (www.dict.org) dictd distribution, containing
+client/server software implementing the Dictionary Server Protocol,
+as described in RFC 2229.
+
+The programs that make up the dictd distribution were written by
+Rickard E. Faith (faith@acm.org).
+
+This package was constructed by Kirk Hilliard <kirk@debian.org> from
+sources obtained from http://sf.net/projects/dict, and was based on
+the original Debian dict packages built and maintained until June 2004
+by Robert D. Hilliard <hilliard@debian.org>.
+
+
+License:
+
+    Copyright 1997-2002 Rickard E. Faith (faith@dict.org)
+    Copyright 2002-2007 Aleksey Cheusov (vle@gmx.net)
+
+
+    This package is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+ 
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+ 
+    You should have received a copy of the GNU General Public License
+    along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-3'.
+
+
+The several dictionary databases that are available for use with this
+software (which are not included in this package) each have their own
+copyright and licensing provisions, which differ from these.  Consult
+the copyright and licensing information at the top of each database
+file for more specific information.
+
+Kirk Hilliard  <kirk@debian.org>
--- dictd-1.11.2+dfsg.orig/debian/watch
+++ dictd-1.11.2+dfsg/debian/watch
@@ -0,0 +1,4 @@
+# control file for the uscan(1) tool
+version=3
+opts=dversionmangle=s/\+dfsg// \
+http://sf.net/dict/dictd-([\d\.]+)\.tar\.gz
--- dictd-1.11.2+dfsg.orig/debian/dictfmt.docs
+++ dictd-1.11.2+dfsg/debian/dictfmt.docs
@@ -0,0 +1,4 @@
+debian/doc/README.Index2suffix
+debian/doc/README.Index2word
+debian/doc/README.Virtual_dictionaries
+debian/doc/README.Unformat
--- dictd-1.11.2+dfsg.orig/debian/dict.examples
+++ dictd-1.11.2+dfsg/debian/dict.examples
@@ -0,0 +1 @@
+examples/dict1.conf
--- dictd-1.11.2+dfsg.orig/debian/dictzip.links
+++ dictd-1.11.2+dfsg/debian/dictzip.links
@@ -0,0 +1,4 @@
+usr/bin/dictzip usr/bin/dictunzip
+usr/bin/dictzip usr/bin/dictzcat
+usr/share/man/man1/dictzip.1 usr/share/man/man1/dictunzip.1
+usr/share/man/man1/dictzip.1 usr/share/man/man1/dictzcat.1
--- dictd-1.11.2+dfsg.orig/debian/dictd.postinst
+++ dictd-1.11.2+dfsg/debian/dictd.postinst
@@ -0,0 +1,72 @@
+#!/bin/sh
+# vim: ts=4:et:sts=4
+# $Id: dictd.postinst 110 2009-03-08 22:43:11Z robert $
+
+set -e
+
+PACKAGE=dictd
+DEFAULTSFILE=/etc/default/$PACKAGE
+
+updateRunMode()
+{
+    RUN_MODE="$1"
+    TMPFILE="$DEFAULTSFILE.dpkg-tmp"
+    TEMPLATEFILE="/usr/share/$PACKAGE/ucf/default.template"
+    MD5SUMSFILE="/usr/share/$PACKAGE/ucf/default.md5sums"
+
+    sed -e "s/^[[:space:]]*RUN_MODE[[:space:]]*=.*/RUN_MODE=\"${RUN_MODE}\"/" \
+                < "$TEMPLATEFILE" > "$TMPFILE"
+    chmod 0644 "$TMPFILE"
+    ucf --debconf-ok --sum-file "$MD5SUMSFILE" --three-way "$TMPFILE" "$DEFAULTSFILE"
+    ucfr "$PACKAGE" "$DEFAULTSFILE"
+    rm -f "$TMPFILE"
+
+    DICTD_ARGS=""
+    . "$DEFAULTSFILE"
+
+    if [ "$RUN_MODE" = "inetd" ] ; then
+        # Add service to /etc/inetd.conf
+        update-inetd \
+            --group OTHER \
+            --add "dict\tstream\ttcp\tnowait\tdictd.dictd\t/usr/sbin/tcpd\t/usr/sbin/dictd $DICTD_ARGS --inetd"
+        update-inetd --enable dict
+    else
+        update-inetd --disable dict
+    fi
+}
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+     configure)
+        # Remove shutdown and reboot links; this init script doesn't need them.
+        if dpkg --compare-versions "$2" lt "1.11.0.dfsg-1~"; then
+            rm -f /etc/rc0.d/K20dictd /etc/rc6.d/K20dictd
+        fi
+
+        # Create dictd system user
+        getent passwd dictd > /dev/null || \
+            adduser --quiet --system --home /var/lib/dictd  --no-create-home \
+            --gecos 'Dictd Server' --group dictd
+
+        db_get dictd/run_mode || true
+        updateRunMode "$RET"
+
+        # Run our config script
+        [ ! -x /usr/sbin/dictdconfig ] || dictdconfig -w
+
+
+        ;;
+
+    failed-upgrade|abort-upgrade|abort-remove|abort-deconfigure|in-favour|removing)
+        ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2;
+        exit 1;
+        ;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- dictd-1.11.2+dfsg.orig/debian/dictd.postrm
+++ dictd-1.11.2+dfsg/debian/dictd.postrm
@@ -0,0 +1,61 @@
+#!/bin/sh
+# vim: ts=4:et:sts=4
+# $Id: dictd.postrm 89 2009-01-03 16:34:01Z robert $
+
+set -e
+
+PACKAGE=dictd
+DEFAULTSFILE=/etc/default/$PACKAGE
+
+
+cleanupUcf() 
+{
+    which ucf >/dev/null && HAS_UCF=yes || HAS_UCF=no
+    which ucfr >/dev/null && HAS_UCFR=yes || HAS_UCFR=no
+    # we mimic dpkg as closely as possible, so we remove configuration
+    # files with dpkg backup extensions too:
+    for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist .dpkg-tmp '';  do
+        rm -f "${DEFAULTSFILE}${ext}"
+    done
+    [ "$HAS_UCF"  != "yes"  ] || ucf  --purge "$DEFAULTSFILE"
+    [ "$HAS_UCFR" != "yes" ]  || ucfr --purge "$PACKAGE" "$DEFAULTSFILE"
+}
+
+#DEBHELPER# 
+
+case "$1" in
+   failed-install|abort-install|abort-upgrade|failed-upgrade)
+        exit 0
+    ;;
+
+    remove)
+        rm -fr /var/lib/dictd/
+        exit 0
+    ;;
+    purge)
+
+        rm -f /var/lib/dictd/db.list
+        rm -rf /var/lib/dictd/ 
+        [ ! -d /etc/dictd ] || rmdir  --ignore-fail-on-non-empty /etc/dictd || true
+        cleanupUcf
+
+
+        # remove inetd entry - due to bug#510406 enable it before removal
+        [ ! -x /usr/sbin/update-inetd ] \
+            || { update-inetd --enable "dict" || true; \
+                update-inetd --remove "dict"; }  \
+            || true
+
+        # remove user, group and home directory dictd
+        deluser --remove-home dictd >/dev/null 2>&1 || true
+
+        exit 0
+    ;;
+    upgrade|disappear)
+        exit 0
+    ;;
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
--- dictd-1.11.2+dfsg.orig/debian/NEWS
+++ dictd-1.11.2+dfsg/debian/NEWS
@@ -0,0 +1,90 @@
+dictd (1.11.0.dfsg-1) experimental; urgency=low
+
+    dictd configuration was changed to bind to the localhost interface only,
+    please edit the dictd.conf file if you don't like the change.
+
+    dictd now uses debconf to switch between daemon and inetd modes, it can also
+    be entirely disabled.  Please make sure to accept configuration file changes
+    for the feature to work properly.
+
+
+ -- Robert Luberda <robert@debian.org>  Wed, 31 Dec 2008 12:24:05 +0100
+
+dictd (1.10.10.dfsg-1) unstable; urgency=low
+
+    'dict' and 'dictl' programs no longer pipe their output to pager. The `-P'
+    option was removed.
+
+    If you run 'dict' or 'dictl' interactively, write to your interactive shell
+    startup script (.ksh, .zsh, .bashrc etc.)
+
+            mydict () { dictl "$@" 2>&1 | colorit | less -R ; }
+
+    and then use 'mydict' instead of 'dict' (or 'dictl').
+
+    Re-added 'colorit' script together with a sample configuration file.
+    Note: you need to install the m4 package for it to work.
+
+    'dictfmt_virtual' was removed by upstream.
+
+
+ -- Robert Luberda <robert@debian.org>  Wed, 23 Jan 2008 21:30:17 +0100
+
+dictd (1.10.2-1) unstable; urgency=low
+
+    dictd now uses internal implementations of UCS-2/UTF-8 functions.
+    Thus, dictd no longer need to specify a UTF-8 locale with the
+    --locale option in order to use dictionaries encoded in UTF-8.
+
+    The pid file is back, so dictd no longer starts as user dictd, but
+    once again as root.  It still drops root privileges in favour of
+    dictd.dictd immediately after opening the log file and writing the
+    pid file.
+
+ -- Kirk Hilliard <kirk@debian.org>  Sun,  4 Dec 2005 20:34:50 -0500
+
+
+dictd (1.9.12-2) unstable; urgency=low
+
+    Starting with version 2002.02.27-3 the mueller7-dict and
+    muller7accent-dict packages have been converted to UTF-8 encoding,
+    so they now work properly with dictd.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Wed, 17 Mar 2004 10:04:11 -0500
+
+
+dictd (1.9.11-4) unstable; urgency=low
+
+    dict-de-en, ver. 1.2-6, is now encoded in UTF-8, so it works
+    properly with dictd.  If your terminal doesn't support UTF-8, use
+    dictl.  I suggest symlinking dictl to dict for transparent conversion
+    of character sets.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Wed, 04 Feb 2004 16:35:46 -0500
+
+
+dictd (1.9.11-1) unstable; urgency=low
+
+    dict.conf has moved from /etc to /etc/dictd.
+
+    The plugin shared libraries and example plugins are no longer
+    shipped with the dictd binary.  If you wish to experiment with
+    plugins see /usr/share/doc/dictd/README.Plugins.gz.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Thu, 25 Dec 2003 11:51:31 -0500
+
+
+dictd (1.9.10-3) unstable; urgency=low
+
+    Support for 8-bit character encodings is broken a this time, and
+    is not expected to be working properly until sometime after the
+    release of dictd 1.9.11.
+
+    This means that dict-de-en, mueller7-dict, and mueller7accent-dict
+    do not work properly.
+
+    /usr/share/doc/README.Dictd-locales has been added in an attempt
+    to clarify the use of the --locale option.
+
+ -- Robert D. Hilliard <hilliard@debian.org>  Sun, 07 Dec 2003 14:43:07 -0500
+
--- dictd-1.11.2+dfsg.orig/debian/patches/Makefile-debcflags.patch
+++ dictd-1.11.2+dfsg/debian/patches/Makefile-debcflags.patch
@@ -0,0 +1,16 @@
+Add $(DEBCFLAGS), remove -O* from CFLAGS in order to support
+DEB_BUILD_FLAGS variable in debian/rules
+
+Index: dictd/Makefile.in
+===================================================================
+--- dictd.orig/Makefile.in	2009-03-08 16:31:11.000000000 +0100
++++ dictd/Makefile.in	2009-03-08 16:49:19.000000000 +0100
+@@ -67,7 +67,7 @@
+ 
+ LEXLIB= 	@LEXLIB@
+ 
+-CFLAGS= @CPPFLAGS@ @DEFS@ @CFLAGS@ -DDICT_PLUGIN_PATH=\"$(PLUGIN_DIR)/\" -DDICT_DICTIONARY_PATH=\"$(DICT_DIR)/\" -DDICT_VERSION=\"$(DICT_VERSION)\" -DDICT_CONFIG_PATH=\"$(CONF_DIR)/\" -I. -I$(srcdir)
++CFLAGS= @CPPFLAGS@ @DEFS@ $(filter-out -O%, @CFLAGS@) -DDICT_PLUGIN_PATH=\"$(PLUGIN_DIR)/\" -DDICT_DICTIONARY_PATH=\"$(DICT_DIR)/\" -DDICT_VERSION=\"$(DICT_VERSION)\" -DDICT_CONFIG_PATH=\"$(CONF_DIR)/\" -I. -I$(srcdir)
+ 
+ LIBMAA=		@LIBMAA@
+ LIBS=		@LIBS@ ${LIBMAA}
--- dictd-1.11.2+dfsg.orig/debian/patches/colorit-nopp-fix.patch
+++ dictd-1.11.2+dfsg/debian/patches/colorit-nopp-fix.patch
@@ -0,0 +1,14 @@
+Made 'colorit -pp -' work
+
+Index: dictd/colorit.in
+===================================================================
+--- dictd.orig/colorit.in	2008-01-23 23:38:35.000000000 +0100
++++ dictd/colorit.in	2008-01-23 23:39:25.000000000 +0100
+@@ -167,6 +167,7 @@
+ 
+     function process_config (){
+ 	if (pp == ""){
++	    pipe = "cat < \"" config_file "\""
+ 	    while (0 < (ret = (pipe | getline))){
+ 		process_config_line()
+ 	    }
--- dictd-1.11.2+dfsg.orig/debian/patches/Makefile-clean.patch
+++ dictd-1.11.2+dfsg/debian/patches/Makefile-clean.patch
@@ -0,0 +1,17 @@
+Clean autogenerated examples/dictd_popen.conf
+Don't remove upstream ChangeLog file
+
+Index: dictd/Makefile.in
+===================================================================
+--- dictd.orig/Makefile.in	2009-03-08 17:15:39.000000000 +0100
++++ dictd/Makefile.in	2009-03-08 17:16:20.000000000 +0100
+@@ -374,7 +374,8 @@
+ 	-rm -f *.dict *.index
+ 	-rm -f *.exe *.dll
+ 	-rm -f test/_* test/testdb.t.txt test/log.txt
+-	-rm -f ChangeLog*
++	-rm -f $(patsubst %.in,%,$(wildcard examples/*.in))
++	#-rm -f ChangeLog*
+ 
+ recursive-clean: clean
+ 	@for subdir in `echo $(subdirs)`; do \
--- dictd-1.11.2+dfsg.orig/debian/patches/dictd-close-fds.patch
+++ dictd-1.11.2+dfsg/debian/patches/dictd-close-fds.patch
@@ -0,0 +1,18 @@
+Close all file descriptors except for the standard ones not to hang
+dpkg-reconfigure
+
+Index: dictd/dictd.c
+===================================================================
+--- dictd.orig/dictd.c	2009-03-08 23:29:36.000000000 +0100
++++ dictd/dictd.c	2009-03-08 23:30:43.000000000 +0100
+@@ -1485,6 +1485,10 @@
+       { 0,                  0, 0, 0  }
+    };
+ 
++   /* close all file descriptors except for the standard ones */
++   for (i=getdtablesize()-1; i > 2; --i)
++ 	close(i);
++
+    set_umask ();
+    init (argv[0]);
+ 
--- dictd-1.11.2+dfsg.orig/debian/patches/series
+++ dictd-1.11.2+dfsg/debian/patches/series
@@ -0,0 +1,12 @@
+Makefile-debcflags.patch
+Makefile-clean.patch
+dictl-konwert.patch
+man-hyphens.patch
+dictdplugin_popen-g++-4.3compile.patch
+dictl-translit.patch
+colorit-nopp-fix.patch
+colorit-manpage-nopager.patch
+dictfmt.1-man.patch
+dictd-close-fds.patch
+spelling-typos.patch
+
--- dictd-1.11.2+dfsg.orig/debian/patches/dictfmt.1-man.patch
+++ dictd-1.11.2+dfsg/debian/patches/dictfmt.1-man.patch
@@ -0,0 +1,16 @@
+Fix the follwing lintian warning:
+W: dictfmt: manpage-has-errors-from-man usr/share/man/man1/dictfmt.1.gz 199: warning: `.br' not defined
+
+Index: dictd/dictfmt.1.in
+===================================================================
+--- dictd.orig/dictfmt.1.in	2008-03-02 14:57:51.000000000 +0100
++++ dictd/dictfmt.1.in	2008-03-02 14:57:56.000000000 +0100
+@@ -196,7 +196,7 @@
+ file, and '%h ' is stripped from in front of the headword.  All
+ text before the first headword is included in the headers.
+ .B The second line beginning '%h' is taken as the first headword.  
+-..br
++.br
+ This option was written to format Jay Kominek's elements database.  
+ .TP
+ .BI \-i \  \-I
--- dictd-1.11.2+dfsg.orig/debian/patches/dictl-konwert.patch
+++ dictd-1.11.2+dfsg/debian/patches/dictl-konwert.patch
@@ -0,0 +1,29 @@
+Patch for #401666: dictl: doesn't work with DICTL_USE_KONWERT
+
+Index: dictd/dictl.in
+===================================================================
+--- dictd.orig/dictl.in	2009-03-08 16:31:11.000000000 +0100
++++ dictd/dictl.in	2009-03-08 16:51:56.000000000 +0100
+@@ -28,7 +28,21 @@
+ }
+ 
+ internal_konwert (){
+-    konwert $1-$2
++ 	sedexpr='
++ 		/(CP)?(437|8(5[0257]|6[0-69]|74))/	{ s//cp\2/; q }
++ 		/8859_([1-9])/				{ s//iso\1/; q }
++ 		/ANSI_X3.4(-19(68|86))?/		{ s//ascii/; q }
++ 		/(US-)?ASCII/				{ s//ascii/; q }
++ 		/(CP|WINDOWS-)(125[0-8])/		{ s//cp\1/; q }
++ 		/ISO([-_]?8859-|8859)([1-9]|1[01345])/	{ s//iso\2/; q }
++ 		/KOI8-?R/				{ s//koi8r/; q }
++ 		/KOI8-?U/				{ s//koi8u/; q }
++ 		/UTF-?8/				{ s//utf8/; q }
++ 		/VISCII/				{ s//viscii/; q }
++ 		/.*/					{ s///; q }'
++ 	from=`echo "$1" | tr a-z A-Z | sed -r -e "$sedexpr"`
++ 	to=`echo "$2" | tr a-z A-Z | sed -r -e "$sedexpr"`
++ 	konwert "$from-$to"
+ }
+ 
+ # for backward compatibility
--- dictd-1.11.2+dfsg.orig/debian/patches/dictdplugin_popen-g++-4.3compile.patch
+++ dictd-1.11.2+dfsg/debian/patches/dictdplugin_popen-g++-4.3compile.patch
@@ -0,0 +1,15 @@
+Patch for #454819: FTBFS with GCC 4.3: missing #includes 
+
+
+Index: dictd/dictdplugin_popen.cpp
+===================================================================
+--- dictd.orig/dictdplugin_popen.cpp	2008-01-20 21:58:30.000000000 +0100
++++ dictd/dictdplugin_popen.cpp	2008-01-20 21:59:06.000000000 +0100
+@@ -43,6 +43,7 @@
+ #include <stdio.h>
+ #include <errno.h>
+ #include <string>
++#include <climits>
+ #include <unistd.h>
+ #include <sstream>
+ #include <list>
--- dictd-1.11.2+dfsg.orig/debian/patches/spelling-typos.patch
+++ dictd-1.11.2+dfsg/debian/patches/spelling-typos.patch
@@ -0,0 +1,70 @@
+Fix spelling typos found by lintian.
+
+Index: dictd/daemon.c
+===================================================================
+--- dictd.orig/daemon.c	2011-01-04 23:18:47.000000000 +0100
++++ dictd/daemon.c	2011-01-04 23:19:17.000000000 +0100
+@@ -253,7 +253,7 @@
+       return DICT_DENY;
+    }
+    if (!*pt) {
+-      log_info( ":E: Misformed range %s, denying access to %s\n", spec, ip);
++      log_info( ":E: Malformed range %s, denying access to %s\n", spec, ip);
+       return DICT_DENY;
+    }
+    
+Index: dictd/dictd.8.in
+===================================================================
+--- dictd.orig/dictd.8.in	2011-01-04 23:19:07.000000000 +0100
++++ dictd/dictd.8.in	2011-01-04 23:19:35.000000000 +0100
+@@ -1009,7 +1009,7 @@
+ .I lev
+ , the strategy
+ .I word
+-may be prefered for databases mainly containing
++may be preffered for databases mainly containing
+ the multiword phrases but the single words.
+ .RE
+ .TP
+@@ -1330,13 +1330,13 @@
+ especially
+ .P
+ .BI 00\-database\-info
+-Containts the informarion about database
++Contains the informarion about database
+ which is 
+ returned by SHOW INFO command,
+ unless it is specified in the configuration file.
+ .P
+ .BI 00\-database\-short
+-Containts the short name of the database
++Contains the short name of the database
+ which is
+ returned by SHOW DB command,
+ unless it is specified in the configuration file.
+Index: dictd/dictfmt.1.in
+===================================================================
+--- dictd.orig/dictfmt.1.in	2011-01-04 23:19:07.000000000 +0100
++++ dictd/dictfmt.1.in	2011-01-04 23:19:17.000000000 +0100
+@@ -278,7 +278,7 @@
+ the first column can be treated as an index column
+ (where the MATCH command searches) and the fourth column as a result column
+ (where the MATCH gets things to be returned),
+-and they (1-st and 4-th columns) are completely independant of each other.
++and they (1-st and 4-th columns) are completely independent of each other.
+ The default value for this separator is ASCII symbol " \\034".
+ .TP
+ .BI \-\-break\-headwords
+Index: dictd/dictfmt.c
+===================================================================
+--- dictd.orig/dictfmt.c	2011-01-04 23:18:47.000000000 +0100
++++ dictd/dictfmt.c	2011-01-04 23:19:17.000000000 +0100
+@@ -849,7 +849,7 @@
+                      Example: autumn%%%fall can be used\n\
+                      if '--headword-separator %%%' is supplied",
+ "--index-data-separator <sep> sets index/data separator which allows\n\
+-                     to explicitely set fourth column in .index file,\n\
++                     to explicitly set fourth column in .index file,\n\
+                      the default is \"\\034\"",
+ "--break-headwords    multiple headwords will be written on separate lines\n\
+                      in the .dict file.  For use with '--headword-separator.",
--- dictd-1.11.2+dfsg.orig/debian/patches/colorit-manpage-nopager.patch
+++ dictd-1.11.2+dfsg/debian/patches/colorit-manpage-nopager.patch
@@ -0,0 +1,40 @@
+Remove references to pager
+
+Index: dictd/colorit.1.in
+===================================================================
+--- dictd.orig/colorit.1.in	2008-01-23 23:39:37.000000000 +0100
++++ dictd/colorit.1.in	2008-01-23 23:41:02.000000000 +0100
+@@ -11,9 +11,8 @@
+ .fi
+ .SH "DESCRIPTION"
+ .B colorit
+-is a script for markuping text input and sending a result to pager (
+-.I less \-r
+-by default) or stdout.
++is a script for markuping text input and sending a result to
++stdout.
+ Markuping rules are described in a configuration file
+ which is filtered by preprocessor (the default is
+ .I m4
+@@ -25,9 +24,7 @@
+ .I cpp.
+ This script can be used for colorizing the text by
+ ANSI escape sequences, or making a simple text conversions
+-and may be used as a pager instead of
+-.I less
+-by
++and may be used for colorizing output of 
+ .I dict
+ or other programs. In particular, log files,
+ .I dict,
+@@ -50,10 +47,6 @@
+ or
+ .I @SYSCONFDIR@/colorit.conf
+ .TP
+-.BI \-P " pager\fR or "  \-\-pager " pager"
+-Specify a pager (- for none). The default is
+-.I less -r
+-.TP
+ .BI \-\-pp " preprocessor"
+ Specify a preprocessor (- for none).
+ .SH "FILES"
--- dictd-1.11.2+dfsg.orig/debian/patches/dictl-translit.patch
+++ dictd-1.11.2+dfsg/debian/patches/dictl-translit.patch
@@ -0,0 +1,16 @@
+Patch for  #378792: dictl should use iconv's //translit suffix
+
+
+Index: dictd/dictl.in
+===================================================================
+--- dictd.orig/dictl.in	2009-03-08 16:54:58.000000000 +0100
++++ dictd/dictl.in	2009-03-08 16:55:53.000000000 +0100
+@@ -20,7 +20,7 @@
+ fi
+ 
+ internal_iconv (){
+-    iconv -c -f $1 -t $2
++    iconv -c -f $1 -t $2//TRANSLIT
+ }
+ 
+ internal_recode (){
--- dictd-1.11.2+dfsg.orig/debian/patches/man-hyphens.patch
+++ dictd-1.11.2+dfsg/debian/patches/man-hyphens.patch
@@ -0,0 +1,335 @@
+Fix lintian's `hyphen-used-as-minus-sign'
+
+
+Index: dictd/dict.1.in
+===================================================================
+--- dictd.orig/dict.1.in	2009-05-01 23:47:41.000000000 +0200
++++ dictd/dict.1.in	2009-10-18 10:20:25.000000000 +0200
+@@ -55,7 +55,7 @@
+ in the configuration file or or on the command line, 
+ .B dict 
+ will fail.  (This is a compile-time option, ./configure
+---enable-dictorg, which is disabled by default.)  If IP lookup for a
++\-\-enable\-dictorg, which is disabled by default.)  If IP lookup for a
+ server expands to a list of IP addresses (as dict.org does currently),
+ then each IP will be tried in the order listed.
+ .TP
+@@ -252,7 +252,7 @@
+ .P
+ Servers are tried in the order listed until a connection is made.  If none
+ of the specified servers are available, and the compile-time option
+-(./configure --enable-dictorg) is enabled, then an attempt will be made to
++(./configure \-\-enable\-dictorg) is enabled, then an attempt will be made to
+ connect on
+ .B localhost
+ and on
+Index: dictd/dictd.8.in
+===================================================================
+--- dictd.orig/dictd.8.in	2009-05-01 23:47:41.000000000 +0200
++++ dictd/dictd.8.in	2009-10-18 10:20:25.000000000 +0200
+@@ -662,7 +662,7 @@
+ or dictd command
+ line.  For instance:
+ .br
+-dictd -s --log stats --log found --log notfound
++dictd \-s \-\-log stats \-\-log found \-\-log notfound
+ .br
+ is a valid command line, and sets three logging options.
+ .RS
+@@ -818,7 +818,7 @@
+ .P
+ .BI NOTE 
+ If utf-8 or 8-bit dictionaries are included in the configuration file,
+-and the appropriate --locale has not been specified,
++and the appropriate \-\-locale has not been specified,
+ .B dictd
+ will fail to start.  This implies that
+ .B dictd 
+@@ -922,7 +922,7 @@
+ Specifies the filename for the flat text database.
+ If the filename does not begin with '.' or '/', it is prepended with
+ $datadir/. It is a compile time option. You can change this behaviour
+-by editing Makefile or running ./configure --datadir=...
++by editing Makefile or running ./configure \-\-datadir=...
+ .TP
+ .BI index " string"
+ Specifies the filename for the index file.
+@@ -931,14 +931,14 @@
+ .BI index_suffix " string"
+ This is optional index file to make 'suffix'
+ search strategy faster (binary search).
+-It is generated by 'dictfmt_index2suffix'. Run "dictfmt_index2suffix --help"
++It is generated by 'dictfmt_index2suffix'. Run "dictfmt_index2suffix \-\-help"
+ for more information.
+ Path matter is similar to that described above in "data" option .
+ .TP
+ .BI index_word " string"
+ This is optional index file to make 'word'
+ search strategy faster (binary search).
+-It is generated by 'dictfmt_index2word'. Run "dictfmt_index2word --help"
++It is generated by 'dictfmt_index2word'. Run "dictfmt_index2word \-\-help"
+ for more information.
+ Path matter is similar to that described above in "data" option .
+ .TP
+@@ -1329,33 +1329,33 @@
+ .I dictd
+ especially
+ .P
+-.BI 00-database-info
++.BI 00\-database\-info
+ Containts the informarion about database
+ which is 
+ returned by SHOW INFO command,
+ unless it is specified in the configuration file.
+ .P
+-.BI 00-database-short
++.BI 00\-database\-short
+ Containts the short name of the database
+ which is
+ returned by SHOW DB command,
+ unless it is specified in the configuration file.
+-See dictfmt -s.
++See dictfmt \-s.
+ .P
+-.BI 00-database-url
++.BI 00\-database\-url
+ URL where original dictionary sources were obtained from.
+-See dictfmt -u.
++See dictfmt \-u.
+ This headword is not used by
+ .I dictd
+ .P
+-.BI 00-database-utf8
++.BI 00\-database\-utf8
+ Presents if dictionary is encoded using UTF-8.
+-See dictfmt --utf8
++See dictfmt \-\-utf8
+ .P
+-.BI 00-database-8bit-new
++.BI 00\-database\-8bit\-new
+ Presents if dictionary is encoded using 8-BIT character set
+ (not ASCII and not UTF8).
+-See dictfmt --locale.
++See dictfmt \-\-locale.
+ .P
+ The flat text file may be compressed using
+ .BR gzip (1)
+Index: dictd/dictfmt.1.in
+===================================================================
+--- dictd.orig/dictfmt.1.in	2009-10-18 10:05:46.000000000 +0200
++++ dictd/dictfmt.1.in	2009-10-18 10:23:14.000000000 +0200
+@@ -41,7 +41,7 @@
+ By default, the index is sorted according to the
+ C locale, and only alphanumeric characters and spaces are used in
+ sorting, however this may be changed with the
+---locale and --allchars
++\-\-locale and \-\-allchars
+ options.  (
+ .IR basename  " is commonly chosen to correspond to the basename of"
+ .I FILE
+@@ -66,11 +66,11 @@
+ 
+ .B dictfmt
+ prepends several headers are to the .dict file.  The 00-database-url
+-header gives the value of the -u option as the URL of the site from
++header gives the value of the \-u option as the URL of the site from
+ which the original database was obtained.  The 00-database-short
+-header gives the value of the -s option as the short name of the
++header gives the value of the \-s option as the short name of the
+ dictionary.  (This "short name" is the identifying name given by the
+-"dict- D" option.)  If the -u and/or -s options are omitted, these
++"dict- D" option.)  If the \-u and/or \-s options are omitted, these
+ values will be shown as "unknown", which is undesirable for a publicly
+ distributed database.
+ 
+@@ -233,14 +233,14 @@
+ .BI \-D 
+ output debugging information
+ .TP
+-.BI \--help
++.BI \-\-help
+ display a help message
+ .TP
+-.BI \--locale " locale"
++.BI \-\-locale " locale"
+ Specifies the locale used for sorting.  If no locale is specified, the
+-"C" locale is used. For using UTF-8 mode, --utf8 is needed.
++"C" locale is used. For using UTF-8 mode, \-\-utf8 is needed.
+ .TP
+-.BI \--8bit
++.BI \-\-8bit
+ generates database in 8-bit mode, see
+ .I \--locale
+ option also.
+@@ -249,30 +249,30 @@
+ This option is deprecated.
+ Use it for creating 8-bit (non-UTF8) dictionaries only.
+ In order to create UTF-8 dictionary, use
+-.I \--utf8
++.I \-\-utf8
+ option instead.
+ .RE
+ .TP
+-.BI \--utf8
++.BI \-\-utf8
+ If specified, UTF-8 database is created.
+ .TP
+-.BI \--allchars
++.BI \-\-allchars
+ Specifies that all characters should be used for the search,
+ by default only alphabetic, numeric
+ characters and spaces are put to .index file and therefore
+ are used in search. Creates the special entry 00-database-allchars.
+ .TP
+-.BI \--case-sensitive
++.BI \-\-case\-sensitive
+ makes the search case sensitive.
+ Creates the special entry 00-database-case-sensitive.
+ .TP
+-.BI \--headword-separator " sep"
++.BI \-\-headword\-separator " sep"
+ sets the headword separator, which allows several words to have the same
+-definition.  For example, if \'--headword-separator %%%' is given,
++definition.  For example, if \'\-\-headword\-separator %%%' is given,
+ and the input file contains \'autumn%%%fall', both 'autumn' and 'fall'
+ will be indexed as  headwords, with the same definition.
+ .TP
+-.BI \--index-data-separator " sep"
++.BI \-\-index\-data\-separator " sep"
+ sets the index/data separator, which allows to set the first and fourth
+ columns of .index file independently. That is
+ the first column can be treated as an index column
+@@ -281,41 +281,41 @@
+ and they (1-st and 4-th columns) are completely independant of each other.
+ The default value for this separator is ASCII symbol " \\034".
+ .TP
+-.BI \--break-headwords
++.BI \-\-break\-headwords
+ multiple headwords will be written on separate lines in the .dict
+-file.  For use with '--headword-separator.
++file.  For use with '\-\-headword\-separator.
+ .TP
+-.BI \--index-keep-orig
+-When \--utf-8 is specified headwords are lowercased and
++.BI \-\-index\-keep\-orig
++When \-\-utf\-8 is specified headwords are lowercased and
+ non-alphanumeric characters are removed from it
+ before saving to .index file
+ in order to simplify the search.
+-When \--index-keep-orig option is used
++When \-\-index\-keep\-orig option is used
+ fourth column is created (if necessary) in .index file,
+ and contains an original headword which is returned by MATCH command.
+ This option may be useful to prevent converting " AT&T" to " ATT"
+ or to keep proper nouns with uppercased first letter.
+ .TP
+-.BI \--without-headword
++.BI \-\-without\-headword
+ headwords will not be included in .dict file
+ .TP
+-.BI \--without-header
++.BI \-\-without\-header
+ header will not be copied to DB info entry
+ .TP
+-.BI \--without-url
++.BI \-\-without\-url
+ URL will not be copied to DB info entry
+ .TP
+-.BI \--without-time
++.BI \-\-without\-time
+ time of creation will not be copied to DB info entry
+ .TP
+-.BI \--without-ver
++.BI \-\-without\-ver
+ By default
+ .B dictfmt
+-creates a special entry 00-database-dictfmt-X.Y.Z that contains
++creates a special entry 00\-database\-dictfmt\-X.Y.Z that contains
+ (in .dict file)
+-dictfmt version in format dictfmt-X.Y.Z. This option suppresses this.
++dictfmt version in format dictfmt\-X.Y.Z. This option suppresses this.
+ .TP
+-.BI \--without-info
++.BI \-\-without\-info
+ DB info entry will not be created.
+ This may be useful if 00-database-info headword
+ is expected from stdin (dictunformat outputs it).
+@@ -346,7 +346,7 @@
+ .I dictd
+ , definitions found in this database
+ are prepended by the specified MIME header. Creates the special entry
+-00-database-mime-header.
++00\-database\-mime\-header.
+ .SH CREDITS
+ .B dictfmt
+ was written by Rik Faith (faith@cs.unc.edu) as part of the dict-misc
+Index: dictd/dictl.1.in
+===================================================================
+--- dictd.orig/dictl.1.in	2009-05-01 23:47:41.000000000 +0200
++++ dictd/dictl.1.in	2009-10-18 10:20:25.000000000 +0200
+@@ -46,7 +46,7 @@
+ omits characters from output that are invalid,
+ .br
+ .B
+-recode -f
++recode \-f
+ is used for character set conversions by default.
+ If you prefer
+ .B iconv,
+Index: dictd/dictunformat.1.in
+===================================================================
+--- dictd.orig/dictunformat.1.in	2009-05-01 23:47:41.000000000 +0200
++++ dictd/dictunformat.1.in	2009-10-18 10:20:25.000000000 +0200
+@@ -12,18 +12,18 @@
+ file on stdin and outputs a raw database that may be used to create a 
+ .B DICT
+ database by 
+-.B dictfmt -t.
++.B dictfmt \-t.
+ This may be useful if it is desired to create a dictionary for a
+ locale other than that for which the original was created, or if it is
+ desired to correct or supplement a pre-existing dictionary. 
+ .SH OPTIONS
+ .TP
+-.B --help
++.B \-\-help
+ displays a usage message and exits.
+ .TP
+-.BI --headword-separator " sep"
++.BI \-\-headword\-separator " sep"
+ sep is the headword separator used when creating the origianl
+-dictionary.  (See --headword-separator in
++dictionary.  (See \-\-headword\-separator in
+ .BR "dictfmt (1)").
+ .TP
+ .B index_filename
+Index: dictd/colorit.1.in
+===================================================================
+--- dictd.orig/colorit.1.in	2009-05-01 23:47:41.000000000 +0200
++++ dictd/colorit.1.in	2009-10-18 10:20:25.000000000 +0200
+@@ -4,7 +4,7 @@
+ 
+ .TH COLORIT 1 "28 Oct 2003" "" ""
+ .SH "NAME"
+-colorit - a script for markuping the text input
++colorit \- a script for markuping the text input
+ .SH "SYNOPSIS"
+ .nf
+ .BI colorit " [OPTIONS] [files...]"
+@@ -12,14 +12,14 @@
+ .SH "DESCRIPTION"
+ .B colorit
+ is a script for markuping text input and sending a result to pager (
+-.I less -r
++.I less \-r
+ by default) or stdout.
+ Markuping rules are described in a configuration file
+ which is filtered by preprocessor (the default is
+ .I m4
+ ).
+ The define HOME equal to your home directory is set for the preprocessor
+-using -D option supported by both
++using \-D option supported by both
+ .I m4
+ and
+ .I cpp.
--- dictd-1.11.2+dfsg.orig/debian/po/pl.po
+++ dictd-1.11.2+dfsg/debian/po/pl.po
@@ -0,0 +1,57 @@
+# Polish translation of dictd debconf templates
+# Copyright (C) 2008 Robert Luberda <robert@debian.org>	
+# This file is distributed under the same license as the dictd package.
+# Robert Luberda <robert@debian.org>, 2008 - 2009
+#
+msgid ""
+msgstr "Project-Id-Version: dictd 1.11.0.dfsg-2\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-05-02 08:54+0200\n"
+"Last-Translator: Robert Luberda <robert@debian.org>\n"
+"Language-Team: Polish <debian-l10n-polish@lists.debian.org>\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"MIME-Version: 1.0\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "usługa systemowa"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "wyłączony"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Sposób uruchamiania serwera dictd:"
+
+#
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"Serwer dictd może być uruchamiany albo jako samodzielna usługa, albo przez "
+"serwer inetd. Można go też całkowicie wyłączyć."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Zalecane jest uruchamianie w trybie usługi."
+
--- dictd-1.11.2+dfsg.orig/debian/po/pt.po
+++ dictd-1.11.2+dfsg/debian/po/pt.po
@@ -0,0 +1,57 @@
+# translation of dictd debconf to Portuguese
+# Copyright (C) 2009 the dictd's copyright holder
+# This file is distributed under the same license as the dictd package.
+#
+# Américo Monteiro <a_monteiro@netcabo.pt>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd 1.11.1+dfsg-2\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-04-06 12:52+0100\n"
+"Last-Translator: Américo Monteiro <a_monteiro@netcabo.pt>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "daemon"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "desactivado"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Método de funcionamento do dictd:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"O servidor dictd pode funcionar como um deamon autónomo ou a partir do "
+"inetd. Também o pode desactivar completamente."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "É recomendado corrê-lo como um deamon."
--- dictd-1.11.2+dfsg.orig/debian/po/de.po
+++ dictd-1.11.2+dfsg/debian/po/de.po
@@ -0,0 +1,55 @@
+# Translation of dictd debconf templates to German
+# Copyright (C) Helge Kreutzmann <debian@helgefjell.de>, 2009.
+# This file is distributed under the same license as the dictd package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd 1.11.1+dfsg-2\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-04-13 22:12+0200\n"
+"Last-Translator: Helge Kreutzmann <debian@helgefjell.de>\n"
+"Language-Team: de <debian-l10n-german@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "Daemon"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "Inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "deaktiviert"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Betriebsart für Dictd:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"Der Dictd-Server kann entweder als unabhängiger Daemon laufen oder von Inetd "
+"ausgeführt werden. Sie können ihn auch komplett deaktivieren."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Es wird empfohlen, ihn als Daemon zu betreiben."
--- dictd-1.11.2+dfsg.orig/debian/po/es.po
+++ dictd-1.11.2+dfsg/debian/po/es.po
@@ -0,0 +1,77 @@
+# dictd po-debconf translation to Spanish
+# Copyright (C) 2009 Software in the Public Interest
+# This file is distributed under the same license as the dictd package.
+#
+# Changes:
+#   - Initial translation
+#       Francisco Javier Cuadrado <fcocuadrado@gmail.com>, 2009
+#
+# Traductores, si no conocen el formato PO, merece la pena leer la
+# documentación de gettext, especialmente las secciones dedicadas a este
+# formato, por ejemplo ejecutando:
+#       info -n '(gettext)PO Files'
+#       info -n '(gettext)Header Entry'
+#
+# Equipo de traducción al español, por favor lean antes de traducir
+# los siguientes documentos:
+#
+#   - El proyecto de traducción de Debian al español
+#     http://www.debian.org/intl/spanish/coordinacion
+#     especialmente las notas de traducción en
+#     http://www.debian.org/intl/spanish/notas
+#
+#   - La guía de traducción de po's de debconf:
+#     /usr/share/doc/po-debconf/README-trans
+#     o http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd 1.11.1+dfsg-2\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-04-06 10:10+0100\n"
+"Last-Translator: Francisco Javier Cuadrado <fcocuadrado@gmail.com>\n"
+"Language-Team: Debian l10n Spanish <debian-l10n-spanish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "demonio"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "desactivado"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Método para ejecutar dictd:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"El servidor de dictd se puede ejecutar como un demonio independiente o desde "
+"inted. También puede desactivarlo completamente."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Se recomienda ejecutarlo como un demonio."
--- dictd-1.11.2+dfsg.orig/debian/po/fi.po
+++ dictd-1.11.2+dfsg/debian/po/fi.po
@@ -0,0 +1,58 @@
+# Copyright (C) 2009
+# This file is distributed under the same license as the dictd package.
+#
+# Esko Arajärvi <edu@iki.fi>, 2010.
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2010-01-09 23:04+0200\n"
+"Last-Translator: Esko Arajärvi <edu@iki.fi>\n"
+"Language-Team: Finnish <debian-l10n-finnish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Lokalize 1.0\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "taustaohjelmana"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetdin kautta"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "poistetaan käytöstä"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Ohjelman dictd ajotapa:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"Dictd-palvelinta voidaan ajaa joko itsenäisenä taustaohjelmana tai "
+"inetdin kautta. Voit myös ottaa sen kokonaan pois käytöstä."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "On suositeltavaa ajaa sitä taustaohjelmana."
+
--- dictd-1.11.2+dfsg.orig/debian/po/sk.po
+++ dictd-1.11.2+dfsg/debian/po/sk.po
@@ -0,0 +1,54 @@
+# Slovak debconf translation of dictd
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the dictd package.
+# Ivan Masár <helix84@centrum.sk>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-06-24 13:39+0100\n"
+"Last-Translator: Ivan Masár <helix84@centrum.sk>\n"
+"Language-Team: Slovak <sk-i18n@lists.linux.sk>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "démon"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "vypnutý"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Spôsob spúšťania dictd:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "The dictd server can be run either as a stand-alone daemon or from inetd. You can also disable it entirely."
+msgstr "Server dictd možno spúšťať ako samostatný démon alebo prostredníctvom inetd. Spúšťanie dictd môžete tiež celkom vypnúť."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Odporúča sa spúšťať dictd ako démon."
+
--- dictd-1.11.2+dfsg.orig/debian/po/sv.po
+++ dictd-1.11.2+dfsg/debian/po/sv.po
@@ -0,0 +1,57 @@
+# translation of dictd.po to swedish
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the dictd package.
+#
+# Martin Bagge <brother@bsnet.se>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-04-11 11:17+0100\n"
+"Last-Translator: Martin Bagge <brother@bsnet.se>\n"
+"Language-Team: swedish <debian-l10n-swedish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "tjänst"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "avstängd"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Metod för att köra dictd:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"Dictd-servern kan köras antingen som en isolerad tjänst eller via inetd. Den "
+"kan också vara helt avstängd."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Typen \"tjänst\" är rekomenderad."
--- dictd-1.11.2+dfsg.orig/debian/po/POTFILES.in
+++ dictd-1.11.2+dfsg/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] dictd.templates
--- dictd-1.11.2+dfsg.orig/debian/po/ja.po
+++ dictd-1.11.2+dfsg/debian/po/ja.po
@@ -0,0 +1,61 @@
+# Copyright (C) 2009 Robert Luberda <robert@debian.org>
+# This file is distributed under the same license as dictd package.
+# Hideki Yamane (Debian-JP) <henrich@debian.or.jp>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd 1.11.1+dfsg-2\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-03-28 11:26+0900\n"
+"Last-Translator: Hideki Yamane (Debian-JP) <henrich@debian.or.jp>\n"
+"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "デーモン"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "無効にする"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "dictd の実行方法:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"dictd サーバはスタンドアロンなデーモン、あるいは inetd からの呼び出しのどちら"
+"でも動作します。完全に無効にすることもできます。"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "デーモンとして動作させるのをお勧めします。"
+
+#~ msgid "How do you want to run dictd?"
+#~ msgstr "どのようにして dictd を実行しますか?"
+
+#~ msgid "Running in the daemon mode is the recommended approach."
+#~ msgstr "デーモンで動作させるのがおすすめのやり方です。"
--- dictd-1.11.2+dfsg.orig/debian/po/ru.po
+++ dictd-1.11.2+dfsg/debian/po/ru.po
@@ -0,0 +1,59 @@
+# translation of ru.po to Russian
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Yuri Kozlov <yuray@komyakino.ru>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd 1.11.1+dfsg-1\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-04-21 20:48+0400\n"
+"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms:  nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
+"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "в виде отдельной службы"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "через inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "вообще не запускать"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Метод запуска dictd:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"Сервер dictd может запускаться как самостоятельная служба или посредством "
+"inetd. Также вы можете отключить запуск вообще."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Рекомендуется запуск в виде службы."
--- dictd-1.11.2+dfsg.orig/debian/po/fr.po
+++ dictd-1.11.2+dfsg/debian/po/fr.po
@@ -0,0 +1,57 @@
+# French po-debconf translation of dictd
+# Copyright (C) 2006-2009 Debian French l10n team <debian-l10n-french@lists.debian.org>
+# This file is distributed under the same license as the dictd package.
+#
+# Translators:
+# Jean-Christophe Lacroix <jc.sid@free.fr>, 2009
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd 1.11.1+dfsg-1\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-04-06 13:05+0100\n"
+"Last-Translator: Jean-Christophe Lacroix <jc.sid@free.fr>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "démon"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "désactivé"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Méthode d'exécution de dictd :"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"Le serveur dictd peut être exécuté soit comme démon autonome, soit par "
+"inetd. Il est aussi possible de le désactiver complètement."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Il est recommandé de l'exécuter comme démon."
--- dictd-1.11.2+dfsg.orig/debian/po/templates.pot
+++ dictd-1.11.2+dfsg/debian/po/templates.pot
@@ -0,0 +1,55 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr ""
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr ""
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr ""
--- dictd-1.11.2+dfsg.orig/debian/po/it.po
+++ dictd-1.11.2+dfsg/debian/po/it.po
@@ -0,0 +1,57 @@
+# ITALIAN TRANSLATION OF DICTD'S.PO-DEBCONF FILE
+# COPYRIGHT (C) 2009 THE DICTS'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the dictd package.
+#
+# Vincenzo Campanella <vinz65@gmail.com>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: dictd 1.11.1+dfsg-2\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-04-06 08:40+0200\n"
+"Last-Translator: Vincenzo Campanella <vinz65@gmail.com>\n"
+"Language-Team: Italian <tp@lists.linux.it>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "demone"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "disabilitato"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Metodo per l'avvio di dictd:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"Il server dictd può essere avviato come demone a sé stante o da inetd. È "
+"anche possibile disabilitarlo del tutto."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Si raccomanda l'avvio come demone."
--- dictd-1.11.2+dfsg.orig/debian/po/gl.po
+++ dictd-1.11.2+dfsg/debian/po/gl.po
@@ -0,0 +1,57 @@
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# marce villarino <mvillarino@users.sourceforge.net>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: templates_[fx3423]\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-04-15 21:16+0200\n"
+"Last-Translator: marce villarino <mvillarino@users.sourceforge.net>\n"
+"Language-Team: Galician <proxecto@trasno.ent>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Lokalize 0.2\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "daemon"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "desactivado"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr " Método para executar dictd:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"O servidor dictd pode executarse ou como daemon independente ou desde inetd. "
+"Tamén pode desactivalo por completo."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Recoméndase executalo como daemon."
--- dictd-1.11.2+dfsg.orig/debian/po/cs.po
+++ dictd-1.11.2+dfsg/debian/po/cs.po
@@ -0,0 +1,58 @@
+# translation of cs.po to Czech
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Vítězslav Kotrla <vitezslav.kotrla@gmail.com>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: dictd@packages.debian.org\n"
+"POT-Creation-Date: 2009-04-06 07:52+0200\n"
+"PO-Revision-Date: 2009-06-14 06:51+0200\n"
+"Last-Translator: Vítězslav Kotrla <vitezslav.kotrla@gmail.com>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "daemon"
+msgstr "démon"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "inetd"
+msgstr "inetd"
+
+#. Type: select
+#. Choices
+#: ../dictd.templates:2001
+msgid "disabled"
+msgstr "zakázán"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "Method for running dictd:"
+msgstr "Způsob spouštění dictd:"
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid ""
+"The dictd server can be run either as a stand-alone daemon or from inetd. "
+"You can also disable it entirely."
+msgstr ""
+"Server dictd může být spouštěn jako samostatný démon, nebo prostřednictvím "
+"inetd. Spouštění dictd můžete také zcela zakázat."
+
+#. Type: select
+#. Description
+#: ../dictd.templates:2002
+msgid "It is recommended to run it as a daemon."
+msgstr "Je doporučeno spouštět dictd jako démon."
+
--- dictd-1.11.2+dfsg.orig/debian/doc/readme-dictd-locales
+++ dictd-1.11.2+dfsg/debian/doc/readme-dictd-locales
@@ -0,0 +1,66 @@
+     RFC2229 specifies the Dict Protocol, which is used by dictd.  To
+be compliant with the RFC, all dictionary databases must be encoded in
+utf-8.  However, dictd supports non-compliant dictionaries encoded in
+an 8-bit character set, if the appropriate locale settings are made.
+Since 7-bit ASCII is a subset of utf-8, plain ASCII dictionaries are
+compliant.  However, when "utf-8" is used in the following discussion,
+it refers to character sets that include characters greater than 0x7F.
+
+     NOTE: dictd is documented to support dictionaries using 8-bit
+encodings, however, that support is broken at this time.  8-bit
+support is not expected to be working properly until sometime after
+the release of dictd 1.9.11.
+
+     dictd and dict are utf-8 capable, but do not convert character
+encodings from utf-8 to the user's locale encoding.  If your system is
+not configured to display utf-8 characters by default, you may use the
+script /usr/bin/dictl (distributed with the dict package) to convert
+the input to and output from utf-8 dictionaries to your preferred
+character set.  See dictl(1) for information on using dictl.
+
+     Since the 7-bit ASCII encoding used in the English language
+dictionaries is a subset of utf-8, many users can use dictl routinely
+in place of dict.  Such users might consider aliasing dict to dictl.
+
+     In order to deal with dictionary databases encoded in various
+encodings, dictd uses a number of library functions that are
+locale-dependent, including strcoll, is*, isw*, tolower and twlower.
+Searching the .index file is also locale-dependent.  ( The command
+line options given to dictfmt when databases are formatted control the
+sorting sequence and which characters are included in the index.)
+
+     The locale used by dictd is determined by the --locale command
+line option, and is independent of the system locale.  (However, the
+specified locale must exist on the system.)  On a Debian system, the
+command line options used when starting the dictd server with the
+/etc/init.d scripts are most conveniently specified in the conffile
+"/etc/default/dictd".  Note that if dictd is started manually,
+"/etc/default/dictd" is not used, and the desired options must be
+given manually.
+
+     dictd will fail on startup if any of databases listed in
+/etc/dictd/dictd.conf are incompatible with dictd's locale.  If no
+--locale is given in the command line, dictd defaults to the "C"
+locale, which is compatible only with 7-bit ASCII databases.  One
+unfortunate effect of this is that it is impossible to use utf-8 and
+8-bit encoded dictionaries in the same dictd server. 
+
+     dictd(8)says "The locale used for the server should be the same
+as that used for dictfmt when the database was built."  In practice,
+any utf-8 or 7-bit ASCII dictionary may be used with any locale that
+includes .utf-8.  In general, if the character set and collating order
+of a dictionary's locale is the same as that of dictd's locale, there
+should be no compatibility problem.  If a dictionary's locale uses the
+latin1 character set, any latin1 locale may be used for dictd.  Since
+7-bit ASCII is a subset of both ISO-8859-1 (latin1) and utf-8 , an
+ASCII dictionary may be used with any ISO-8859 or utf-8 locale.
+
+     When databases are formatted with modern versions of dictfmt, a
+header "00-database-utf8" or "00-database-8bit" is inserted at the top
+of the .dict file.  To provide the user with the information necessary
+to configure a dictd server installation, the description of Debian
+dictionary packages should list the locale used for formatting.  This
+is not current practice, however, and it will be some time before it
+is adopted by all dictionary packages.  Until this policy is generally
+adopted, /usr/share/doc/dictd/README.Debian.gz provides some
+information about the encodings used in Debian dictionary packages.
--- dictd-1.11.2+dfsg.orig/debian/doc/README.Index2word
+++ dictd-1.11.2+dfsg/debian/doc/README.Index2word
@@ -0,0 +1,23 @@
+     The "word" search strategy matches any single word, even if part
+of a longer headword or a multi-word entry.  Since it must search the
+whole index file, it is not as fast as the default "exact" strategy.
+
+     If an optional index_word file is provided, a word search is
+much faster.  The dictfmt_index2word.1 script (provided in the
+dictfmt package) will produce this index_word file (see the manual
+page dictfmt_index2word(1)).
+
+     An index_word file is included in the dictd.conf file as
+follows:
+
+database gcide
+ {
+  data  /usr/share/dictd/gcide.dict.dz
+  index /usr/share/dictd/gcide.index
+  index_word /usr/share/dictd/gcide.word
+}
+
+    Versions 1.2 and higher of dictdconfig handle .word files
+automatically.
+
+Robert D. Hilliard <hilliard@debian.org> 20 April 2003
--- dictd-1.11.2+dfsg.orig/debian/doc/README.Plugins
+++ dictd-1.11.2+dfsg/debian/doc/README.Plugins
@@ -0,0 +1,37 @@
+     dictd plugin support is more extensive than in 1.9.10, including
+support for Judy-based implementations.  Since this increases the
+number of files required, and because plugin creation is not likely to
+interest many Debian users, the plug-in shared libraries and the
+man_popen files are no longer shipped with the dictd binary package.
+     
+     Debian users who wish to work with plugins should get the source
+package - "apt-get source dictd".  In addition to the files listed
+above, the dictfmt executable is required to build plugins.  dictfmt
+is made from the dictd sources, and is available in the Debian dictfmt
+package.
+
+     In this Debian package, dictd is compiled with --libexecdir=/usr
+/lib/dictd.  Plugins are expected in this directory.  (This is a
+compile time option.) 
+
+     A Plugin may be integrated into dictd by the use of
+dictfmt_plugin.  If the plugin .dict and .index files produced by
+dictfmt_plugin are installed in /usr/share/dictd, dictdconfig will
+include them in configuration file.  Alternatively, plugins may be
+defined in dictd.conf (see Plugin Specification in dictd(8)).  If
+dictdconfig is used, it will be necessary to manually insert the
+plugin definition in the database section of dictd.conf on a line
+following the "include /var/lib/dictd/db.list" line.  dictdconfig may
+still be used to incorporate all other dictionaries into the
+configuration file.
+
+     If anyone makes any generally useful plugins, I would like to
+hear about it.  If they seem to have enough utility for general users,
+I would consider adding them to the dictd package.  If enough people
+submit working plugins, dictd may be able to fulfil Zawinski's Law
+(see dict-jargon).
+
+
+Robert D. Hilliard <hilliard@debian.org>,  19 December 2003
+
+
--- dictd-1.11.2+dfsg.orig/debian/doc/dictdconfig.8
+++ dictd-1.11.2+dfsg/debian/doc/dictdconfig.8
@@ -0,0 +1,175 @@
+.\" This manpage is copyright (C) 1999-2000 Kirk Hilliard <kirk@debian.org>.
+.\" This is free software, published under version 2 or (at your option)
+.\" any later version of the GNU General Public License.  You should
+.\" have received a copy of the GNU General Public License with your
+.\" Debian GNU/Linux system as /usr/share/common-licenses/GPL.
+.\" $Id: dictdconfig.8 25 2008-01-20 10:57:18Z robert $
+.\"
+.TH DICTDCONFIG 8 "January 20, 2008" "DEBIAN" "Debian User's Manual"
+.SH NAME
+dictdconfig \- write dictd database configuration section
+.SH SYNOPSIS
+.B dictdconfig
+[\-hlovw]
+[\-\-help]
+[\-\-list]
+[\-\-order]
+[\-\-version]
+[\-\-write]
+.SH DESCRIPTION
+.B dictdconfig
+generates a complete
+.B dictd
+database configuration section for
+available dictionary databases found in
+.I /usr/share/dictd/
+(or possibly elsewhere if an optional order override file is present).
+If a dictionary database contains a <basename>.suffix and/or a
+<basename>.word file, appropriate index_suffix and index_word entries
+are created.
+.PP
+Its output file
+.I /var/lib/dictd/db.list
+may then be included from the
+.B dictd
+configuration file
+.I /etc/dictd/dictd.conf
+with an
+``include /var/lib/dictd/db.list''
+line.
+See
+.BR dictd (8)
+for an explanation of
+.B dictd
+configuration.
+.PP
+In Debian, 
+.B dictdconfig
+is automatically invoked upon installation or removal of
+dictionary database packages,
+so most users will never need to invoke it by hand.
+.SS DATABASE ORDER
+The default order in which database entries are written is hard coded
+into
+.BR dictdconfig ,
+but it may be overridden via the optional order override file
+.IR /etc/dictd/dictd.order .
+This may be desired because
+.B dictd
+returns definitions from dictionary databases in the order in which
+they are listed in its configuration file.
+The order override file may also be used to include local dictionary
+databases which may not necessarily reside in
+.IR /usr/share/dictd/ .
+.PP
+.IR /etc/dictd/dictd.order ,
+if present, should be a whitespace separated list of basenames and
+directories.  It may also include comments starting with # and
+extending to the end of the line.  Virtual dictionaries and the directive 
+.B database_exit 
+may be included in the order override file.  (If virtual dictionaries
+are used, it is necessary to use this directive after the default set
+of dictionaries to avoid returning duplicate entries.  See 
+.IR dictd(8) .)
+.PP
+Dictionary database entries will be generated only for those databases
+found via basename and directory entries in the default order (or the
+order override file, if present), and they will be generated in the
+order in which these entries appear.  No more than one dictionary
+database entry of any given name will be generated.
+.PP
+Entries without a leading / are relative to
+.IR /usr/share/dictd/ .
+.PP
+Entries without a trailing / are basenames.
+A dictionary database entry is generated if
+.I <basename>.index
+and
+.I <basename>.dict.dz
+or
+.I <basename>.dict
+are present.
+.PP
+Entries with a trailing / are directories.
+A dictionary database entry is generated for each <name> where
+.I <directory>/<name>.index
+and
+.I <directory>/<name>.dict.dz
+or
+.I <directory>/<name>.dict
+are present.
+.PP
+The default order includes the directory
+.I /usr/share/dictd/
+as its final entry so that if a previously unknown dictionary database
+(one not explicitly mentioned in the default order)
+is installed, its dictionary database entry will still be generated.
+An order override file should also use this technique, both for
+.I /usr/share/dictd/
+and for any other directory where local dictionary database might be
+installed.
+.PP
+The \-o option may be used to make
+.B dictdconfig
+display the default order information along with the order override
+information if
+.I /etc/dictd/dictd.order
+is present.
+.SS DUMMY ENTRY
+If no dictionary databases are found (via basename or directory
+entries in the default order or the order override file), a dummy
+dictionary database entry will be generated with
+.I /dev/null
+for both data and index.  This allows dictd to start without error.
+.SS DATABASE ALIASES
+If an executable script named 
+.I /etc/dictd/dictdconfig.alias 
+exists, dictdconfig will filter database names through it.  The script
+can be bash, sed, perl, or whatever.  Although 
+.I dict \-D 
+will display database names of any length, names longer than 16
+characters are displayed in a ragged format.  Appropriate entries in
+this alias file can be used to cause 
+.I dict \-D 
+to display the database names in a reasonable format.
+.SH OPTIONS
+.TP
+.I \-w, \-\-write
+Write database section to
+.IR /var/lib/dictd/db.list .
+.TP
+.I \-l, \-\-list
+List database section to standard out.
+.TP
+.I \-o, \-\-order
+Display database order information.
+.TP
+.I \-h, \-\-help
+Display a usage message and exit.
+.TP
+.I \-v, \-\-version
+Display version information and exit.
+.SH FILES
+.TP
+.I /var/lib/dictd/db.list
+Output of
+.BR dictdconfig .
+.TP
+.I /etc/dictd/dictd.config
+.B dictd
+configuration file which "includes"
+.IR /var/lib/dictd/db.list .
+.TP
+.I /etc/dictd/dictd.order
+Optional
+.B dictdconfig
+order override file.
+.SH SEE ALSO
+dictd(8)
+.SH BUGS
+Older dictionary database packages did not automatically invoke
+.B dictdconfig
+upon installation and removal, so you may need to do so
+manually (after which, you should restart dictd).
+.SH AUTHOR
+Kirk Hilliard <kirk@debian.org>.
--- dictd-1.11.2+dfsg.orig/debian/doc/README.inetd
+++ dictd-1.11.2+dfsg/debian/doc/README.inetd
@@ -0,0 +1,34 @@
+     Because the dictd daemon has a significant startup time, the
+author felt it should not be started from inetd.  However, the fast
+processors that are commonly used today make it feasible to start
+dictd from inetd.
+
+     In order to do so, the following steps must be followed:
+
+ 1.  The dictd daemon must not be running.  As root, running
+`invoke-rc.d dictd stop' will stop the daemon.  Inserting `exit 0'
+near the top of /etc/init.d/dictd will prevent it from starting on
+bootup.  If you have installed the file-rc package, the same result
+may be achieved by editing /etc/runlevel.conf.
+
+2.  The following line must be inserted in /etc/inetd.conf:
+
+dict      stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/dictd -i
+
+     (inetd must be restarted by running `invoke-rc.d /inetd reload' as
+root, or made to re-read its configuration file by sending a SIGHUP
+signal to inetd, to give effect to this configuration change.)
+
+3.  The system access controls must allow the dictd daemon to be
+accessed by processes on the local host.  If /etc/hosts.deny restricts
+access, then /etc/hosts.allow must provide it.  `dictd:localhost' in
+/etc/hosts.allow provides the minimum necessary access.  Refer to the
+manual page `hosts_access(5)' for more information on access controls.
+
+4.  The dictd configuration file, /etc/dictd/dictd.conf, must allow
+access to dictd by inetd.  If there is no access specification in
+/etc/dictd/dictd.conf there is no restriction on access to the dictd daemon.
+If there is any access specification present, the following line must
+be present to allow access by inetd:
+          allow inetd
+This line may be in addition to other "allow xxx" lines.
--- dictd-1.11.2+dfsg.orig/debian/doc/README.Virtual_dictionaries
+++ dictd-1.11.2+dfsg/debian/doc/README.Virtual_dictionaries
@@ -0,0 +1,44 @@
+     By default, dictd searches all dictionaries listed in the
+configuration file, and returns all definitions found.  This is
+usually satisfactory, but sometimes a user may want to search over
+some but not all of the available databases.
+
+     One solution is for the server to provide "virtual" databases
+which merge several of the regular databases into one.  For example a
+virtual database may be provided which includes all of the translating
+dictionaries, or all of the computer-related dictionaries.
+
+
+     The dictdconfig script will insert virtual dictionaries and the
+"database_exit" directive in /var/lib/dictd/db.list as specified in
+/etc/dictd/dictd.order.
+
+     Alternatively, a virtual dictionary may defined in the
+configuration file ) see "Virtual Database Specification" in
+dictd(8).  In this case, the virtual definition must be manually
+inserted into the database section of dictd.conf on a line
+following the "include /var/lib/dictd/db.list" line.  dictdconfig may
+still be used to incorporate all other dictionaries into the
+configuration file.
+
+     There are two general ways to use virtual dictionaries.  In one
+approach, one or more virtual dictionaries are treated as the default.
+This is illustrated by /usr/share/doc/dictd/examples/example_virtual.conf.
+
+     Another approach is to leave all available dictionaries as the
+default set, and several virtual dictionaries, that are omitted from
+the default set may be used when restricted searches are desired.
+This is illustrated by
+/usr/share/doc/dictd/examples/example_virtual2.conf. 
+
+     Various combinations of the above approaches may be used.  The
+important thing to remember is that all dictionaries (real and
+virtual) before the database_exit directive are searched by default.  
+
+     The database_exit directive may also be used without virtual
+dictionaries.  For instance, all general dictionaries may be listed
+first, followed by database_exit, with the other dictionaries
+following.  These other dictionaries may be accessed with the -d
+option to dict.
+
+Robert D. Hilliard <hilliard@debian.org>, 15 March, 2003
--- dictd-1.11.2+dfsg.orig/debian/doc/README.Index2suffix
+++ dictd-1.11.2+dfsg/debian/doc/README.Index2suffix
@@ -0,0 +1,23 @@
+     The "suffix" search strategy matches the last portion of the
+headword.  Since it must search the whole index file, it is not as
+fast as the default "exact" strategy.
+
+     If an optional index_suffix file is provided, a suffix search is
+much faster.  The dictfmt_index2suffix.1 script (provided in the
+dictfmt package) will produce this index_suffix file (see the manual
+page dictfmt_index2suffix(1)).
+
+     An index_suffix file is included in the dictd.conf file as
+follows:
+
+database gcide
+ {
+  data  /usr/share/dictd/gcide.dict.dz
+  index /usr/share/dictd/gcide.index
+  index_suffix /usr/share/dictd/gcide.suffix
+}
+
+    Versions 1.2 and higher of dictdconfig handle .suffix files
+automatically.
+
+Robert D. Hilliard <hilliard@debian.org> 20 April 2003
--- dictd-1.11.2+dfsg.orig/debian/doc/README.Unformat
+++ dictd-1.11.2+dfsg/debian/doc/README.Unformat
@@ -0,0 +1,17 @@
+     The script dictunformat (provided with in the dictfmt package)
+takes a dictionary index file as the parameter and a dictionary
+database file on stdin and outputs a raw dictionary database on
+stdout.  The raw database is formatted to use the -c5 option of
+dictfmt. 
+
+     This may be useful for making corrections or other changes to a
+dictionary, or to convert a dictionary from one character encoding to
+another. 
+
+     dictunformat requires an uncompressed file as input.  However,
+most dictionaries are distributed as compressed (.dict.dz) files. One
+convenient way to use dictunformat is:
+
+dictzcat dictname.dict.dz | dictunformat dictname.index > dictname
+
+Robert D. Hilliard <hilliard@debian.org>, 15 March, 2003
--- dictd-1.11.2+dfsg.orig/debian/doc/README.Debugging
+++ dictd-1.11.2+dfsg/debian/doc/README.Debugging
@@ -0,0 +1,15 @@
+     This version of dictd supports the environment variable
+`DEB_BUILD_OPTIONS', as recommended by Debian Policy version 3.5.7.0,
+section 11.1.  (This is a modification of the usage recommended by
+earlier versions of policy, and used in earlier versions of dictd.)
+
+     By default all binaries are compiled with debugging symbols
+included, and with -O2 optimisation, but the copies of them in the
+debian directory will have the debugging symbols stripped.
+
+     If this variable contains the string `noopt', the binaries will be
+compiled without optimisation.
+
+     If this variable contains the string `nostrip' the executables
+under the debian directory, and in the *.deb packages, will contain
+debugging symbols.
--- dictd-1.11.2+dfsg.orig/debian/doc/dictd.8
+++ dictd-1.11.2+dfsg/debian/doc/dictd.8
@@ -0,0 +1,959 @@
+.\" dictd.8 -- 
+.\" Created: Mon Mar 10 16:10:03 1997 by faith@dict.org
+." Revised: Tue Apr 23 09:14:42 2002 by faith@dict.org
+.\" Copyright 1997, 1998, 2002 Rickard E. Faith (faith@dict.org)
+.\" 
+.\" Permission is granted to make and distribute verbatim copies of this
+.\" manual provided the copyright notice and this permission notice are
+.\" preserved on all copies.
+.\" 
+.\" Permission is granted to copy and distribute modified versions of this
+.\" manual under the conditions for verbatim copying, provided that the
+.\" entire resulting derived work is distributed under the terms of a
+.\" permission notice identical to this one
+.\" 
+.\" Since the Linux kernel and libraries are constantly changing, this
+.\" manual page may be incorrect or out-of-date.  The author(s) assume no
+.\" responsibility for errors or omissions, or for damages resulting from
+.\" the use of the information contained herein.  The author(s) may not
+.\" have taken the same level of care in the production of this manual,
+.\" which is licensed free of charge, as they might when working
+.\" professionally.
+.\" 
+.\" Formatted or processed versions of this manual, if unaccompanied by
+.\" the source, must acknowledge the copyright and authors of this work.
+.\" 
+.TH DICTD 8 "29 March 2002" "" ""
+.SH "NAME"
+dictd - a dictionary database server
+.SH "SYNOPSIS"
+.nf
+.BI dictd " [options]"
+.fi
+.SH "DESCRIPTION"
+.B dictd
+is a server for the Dictionary Server Protocol (DICT), a TCP transaction
+based query/response protocol that allows a client to access dictionary
+definitions from a set of natural language dictionary databases.
+.P
+For security reasons, dictd drops root permissions after startup.  If
+user
+.B dictd
+exists on the system, the daemon will run as that user, group
+.BR dictd ", otherwise it will run as user 
+.BR nobody ", group" 
+.BR nobody " or " nogroup
+(depending on the operating system distribution).
+.P
+Since startup time is significant, the server is designed to run
+continuously, and should
+.I not
+be run from
+.BR inetd (8).
+(However, with a fast processor, it is feasible to do so.)
+.P
+Databases are distributed separately from the server.
+.P
+.B dictd
+assumes that the index files are sorted alphabeticaly.  By default, only
+alphanumeric charactares are used for search.  This default may be
+overridden by a header in the data file.  The only such features
+implemented at this time are the headers "00-database-allchars" which
+tells
+.B dictd 
+that non-alphanumeric characters may also be used for search, and the
+header "00-database-utf8" which indicates that the database uses utf8
+encoding. All headwords in the index file are sorted alphabetically.
+.P
+A header "00-database-plugin" may also be present and is used for
+integrating plugins into dictd. See "dictfmt_plugin --help" and
+"dictdplugin.h" for more information.
+.P
+A header "00-database-virtual" identifies "virtual dictionaries",
+which are lists of real dictionaries to be searched by
+.B dictd.
+.SH "BACKGROUND"
+For many years, the Internet community has relied on the "webster" protocol
+for access to natural language definitions.  The webster protocol supports
+access to a single dictionary and (optionally) to a single thesaurus.  In
+recent years, the number of publicly available webster servers on the
+Internet has dramatically decreased.
+.P
+Fortunately, several freely-distributable dictionaries and lexicons have
+recently become available on the Internet.  However, these
+freely-distributable databases are not accessible via a uniform interface,
+and are not accessible from a single site.  They are often small and
+incomplete individually, but would collectively provide an interesting and
+useful database of English words.  Examples include the Jargon file, the
+WordNet database, MICRA's version of the 1913 Webster's Revised Unabridged
+Dictionary, and the Free Online Dictionary of Computing.  (See the DICT
+protocol specification (RFC) for references.)  Translating and non-English
+dictionaries are also becoming available (for example, the FOLDOC
+dictionary is being translated into Spanish).
+.P
+The webster protocol is not suitable for providing access to a large
+number of separate dictionary databases, and extensions to the current
+webster protocol were not felt to be a clean solution to the
+dictionary database problem.
+.P
+The DICT protocol is designed to provide access to multiple databases.
+Word definitions can be requested, the word index can be searched
+(using an easily extended set of algorithms), information about the
+server can be provided (e.g., which index search strategies are
+supported, or which databases are available), and information about a
+database can be provided (e.g., copyright, citation, or distribution
+information).  Further, the DICT protocol has hooks that can be used
+to restrict access to some or all of the databases.
+.P
+.BR dictd (8)
+is a server that implements the DICT protocol.  Bret Martin implemented
+another server, and several people (including Bret and myself) have
+implemented clients in a variety of languages.
+.SH "OPTIONS"
+.TP
+.BR \-V " or " \-\-version
+Display version information.
+.TP
+.B \-\-license
+Display copyright and license information.
+.TP
+.BR \-h " or " \-\-help
+Display help information.
+.TP
+.BR \-v " or " \-\-verbose " or " " \-dverbose"
+Be verbose.
+.TP
+.BI \-c " file\fR or "  \-\-config " file"
+Specify configuration file.  The default is
+.I /etc/dictd.conf (/etc/dictd/dictd.conf
+in Debian systems), but may be changed in the
+.I defs.h
+file at compile time (DICTD_CONFIG_FILE).
+.TP
+.BI \-p " port\fR or " \-\-port " port"
+Specifies the port (e.g., 2628).
+The default is 2628, as specified in the DICT Protocol RFC, but may be
+changed in the
+.I defs.h
+file at compile time (DICT_DEFAULT_SERVICE).
+.TP
+.BR \-i " or " \-\-inetd
+Communicate on standard input/output, suitable for use from inetd.
+Although, due to its rather large startup time, this daemon was not
+intended to run from inetd, with a fast processor it is feasible to do
+so. This option also implies \-\-fast-start.
+.TP
+.BI \-\-depth " length"
+Specify the queue length for
+.BR listen (2).
+Specifies the number of pending socket connections which are queued by the
+operating system.  Some operating systems may silently limit this value to
+5 (older BSD systems) or 128 (Linux).  The default is 10 but may be changed
+in the
+.I defs.h
+file at compile time (DICT_QUEUE_DEPTH).
+.TP
+.BI \-\-delay " seconds"
+Specifies the number of seconds a client may be idle before the server will
+close the connection.  Idle time is defined to be the time the server is
+waiting for input and does not include the time the server spends searching
+the database.  Connections are closed without warning since no provision
+for premature connection termination is specified in the DICT protocol
+RFC.  The default is 600 seconds (10 minutes), but may be changed in the
+.I defs.h
+file at compile time (DICT_DEFAULT_DELAY).
+.TP
+.BI \-\-facility " facility"
+Specifies the syslog facility to use.  The use of this option implies the
+.B \-s
+option to turn on logging via syslog.  When the operating system
+libraries support SYSLOG_NAMES, the names used for this option should be
+those listed in
+.BR syslog.conf (5).
+Otherwise, the following names are used (assuming the particular
+facility is defined in the header files): auth, authpriv, cron, daemon,
+ftp, kern, lpr, mail, news, syslog, user, uucp, local0, local1, local2,
+local3, local4, local5, local6, and local7.
+.TP
+.BR \-f " or " \-\-force
+Force the daemon to start even if an instance of the daemon is already
+running.  (This is of little value unless a non-default port is
+specified with
+.BR \-p ,
+since, if one instance is bound to a port, the second one fails when it
+can not bind to the port.)
+.TP
+.BI \-\-limit " children"
+Specifies the number of daemons that may be running simultaneously.  Each
+daemon services a single connection.  If the limit is exceeded, a
+(serialized) connection will be made by the server process, and a response
+code 420 (server temporarily unavailable) will be sent to the client.  This
+parameter should be adjusted to prevent the server machine from being
+overloaded by dict clients, but should not be set so low that many clients
+are denied useful connections. The default is 100, but may be changed in
+the
+.I defs.h
+file at compile time (DICT_DAEMON_LIMIT).
+.TP
+.BI \-\-locale " locale"
+Specifies the locale used for searching.  If no locale is specified, the
+"C" locale is used.  The locale used for the server should be the same
+as that used for dictfmt when the database was built (specifically, the
+locale under which the index was sorted). The locale should be specified
+for both 8-bit and UTF-8 formats. If locale contains utf8 or utf-8
+substring, UTF-8 format is expected.
+Note that if your database is not in ASCII7 or UTF-8 format,
+then the dictd server will not be compliant to RFC 2229.
+.TP
+.B \-s
+Log using the
+.BR syslog (3)
+facility.
+.TP
+.BI \-L " file\fR or " \-\-logfile " file"
+Specify the file for logging.  The filename specified is recomputed on
+each use using the
+.BR strftime (3)
+call.  For example, a filename ending in ".%Y%m%d" will write to log
+files ending in the year, month, and date that the log entry was
+written.
+.B NOTE:
+If
+.B dictd
+does not have write permission for this file, it will silently fail.
+.TP
+.BI \-m  " minutes \fR or "\-\-mark " minutes"
+How often a timestamp should be logged.  (This is effective only if
+logging has been enabled with the \-s or \-L option, or with a debugging
+option.)
+.TP
+.BI \-\-default-strategy " strategy"
+Set the default strategy for MATCH search type. The default is 'lev'.
+.TP
+.BI \-\-without-strategy " strat1,strat2,..."
+Disable specified strategies.
+By default all search strategies are enabled.
+.TP
+.BI \-\-add-strategy " strat:descr"
+Adds strategy 'strat' with the description 'descr'.
+A new search strategy may be implemented with a help of plugins.
+.TP
+.BI \-\-test " word \fR or "\-t " word"
+self test -- lookup word
+.TP
+.BI \-\-test-file " file \fRor "\-\-ftest " file"
+self test -- lookup all words in file
+.TP
+.BI \-\-test-strategy " strategy"
+self test -- set search strategy for --test and --ftest.
+The default is 'exact'.
+.TP
+.BI \-\-test-db " database"
+self test -- set dictionary to be searched. The default is '*'.
+.TP
+.BI \-\-test-match
+self test -- set search type to MATCH. The default is DEFINE.
+.TP
+.BI \-\-fast-start
+By default, dictd creates (in memory) additional index
+to make the search faster.
+This option disables this behaviour and makes startup faster.
+Use of this option make sense on CYGWIN, but normally you should not use it.
+.TP
+.B \-\-without-mmap
+do not use the mmap() function and read entire files into memory instead.
+Use this option, if you know exactly what you are doing.
+.TP
+
+.BI \-l " option\fR or " \-\-log " option"
+Specify a logging option.  This is effective only if logging has been
+enabled with the
+.BR \-s " or " \-L
+option, or logging to the console has been activated with a debugging
+option (e.g.,
+.BR "\-\-debug nodetach" .
+Only one option may be set with each invocation of this option; however,
+multiple invocations of this option may be made in one dictd command
+line.  For instance:
+.br
+dictd -s --log stats --log found --log notfound
+.br
+is a valid command line, and sets three logging options.
+.RS
+.P
+Some of the more verbose logging options are used primarily for
+debugging the server code, and are not practical for normal use.
+.TP
+.B server
+Log server diagnostics.  This is extremely verbose.
+.TP
+.B connect
+Log all connections.
+.TP
+.B stats
+Log all children terminations.
+.TP
+.B command
+Log all commands.  This is extremely verbose.
+.TP
+.B client
+Log results of CLIENT command.
+.TP
+.B found
+Log all words found in the databases.
+.TP
+.B notfound
+Log all words not found in the databases.
+.TP
+.B timestamp
+When logging to a file, use a full timestamp like that which syslog would
+produce.  Otherwise, no timestamp is made, making the files shorter.
+.TP
+.B host
+Log name of foreign host.
+.TP
+.B auth
+Log authentication failures.
+.TP
+.B min
+Set a minimal number of options.  If logging is activated (to a file, or
+via syslog), and no options are set, then the minimal set of options will
+be used.  If options are set, then only those options specified will be
+used.
+.TP
+.B all
+Set all of the options.
+.TP
+.B none
+Clear all of the options.
+.P
+To facilitate location of interesting information in the log file, entries
+are marked with initial letters indicating the class of the line being
+logged:
+.TP
+.B I
+Information about the server, connections, or termination statistics.
+These lines are generally not designed to be parsed automatically.
+.TP
+.B E
+Error messages.
+.TP
+.B C
+CLIENT command information.
+.TP
+.B D
+Definitions found in the databases searched.
+.TP
+.B M
+Matches found in the database searched.
+.TP
+.B N
+Matches which were not found in the databases searched.
+.TP
+.B T
+Trace of exact line sent by client.
+.TP
+.B A
+Authentication information.
+.P
+To preserve anonymity of the client, do
+.I not
+use the
+.B connect
+or
+.B host
+options.  Clients may or may not send host information using the CLIENT
+command, but this should be an option that is selectable on the client
+side.
+.RE
+.TP
+.BI \-d " option"
+Activate a debugging option.  There are several, all of which are only
+useful to developers.  They are documented here for completeness.  A list
+can be obtained interactively by using
+.B \-d
+with an illegal option.
+.RS
+.TP
+.B verbose
+The same as
+.BR \-v " or " \-\-verbose .
+Adds verbosity to other options.
+.TP
+.B scan
+Debug the scanner for the configuration file.
+.TP
+.B parse
+Debug the parser for the configuration file.
+.TP
+.B search
+Debug the character folding and binary search routines.
+.TP
+.B init
+Report database initialization.
+.TP
+.B port
+Log client-side port number to the log file.
+.TP
+.B lev
+Debug Levenshtein search algorithm.
+.TP
+.B auth
+Debug the authorization routines.
+.TP
+.B nodetach
+Do not detach as a background process.  Implies that a copy of the log
+file will appear on the standard output.
+.TP
+.B nofork
+Do not fork daemons to service requests.  Be a single-threaded server.
+This option implies
+.BR nodetach ,
+and is most useful for using a debugger to find the point at which daemon
+processes are dumping core.
+.TP
+.B alt
+Debugs
+.B altcompare
+in
+.IR index.c .
+.RE
+.SH "CONFIGURATION FILE"
+.TP
+.B Introduction
+The configuration file defaults to
+.I /etc/dictd.conf (/etc/dictd/dictd/conf 
+on Debian systems), 
+but can be specified on the command line with the
+.B \-c
+option (see above).
+.RS
+.P
+The configuration file is read into memory at startup, and is not
+referenced again by
+.B dictd
+unless a signal 1 
+.B (SIGHUP)
+is received, which will cause 
+.B dictd 
+to reread the configuration file.
+.P
+The file is divided into sections.  The Site Section should come
+first, followed by the Access Section, the Database Section, and the
+User Section.  The Database Section is required; the others are
+optional, but they must be in the order listed here.
+.RE
+.TP
+.B Syntax
+The following keywords are valid in a configuration file: access,
+allow, deny, group, database, data, index, filter, prefilter,
+postfilter, name, include, user, authonly, site.  Keywords are case
+sensitive.  String arguments that contain spaces should be surrounded
+by double quotes.  Without quoting, strings may contain alphanumeric
+characters and _, -, ., and *, but not spaces.  Strings can be
+continued between lines.  \\", \\\\, \\n, \\<NL> are treated as double
+quote, backslash, new line and no symbol respectively.  Comments start
+with # and extend to the end of the line.
+.TP
+.B Site Section
+.RS
+.TP
+.BI site " string"
+Used to specify the filename for the site information file, a flat text
+file which will be displayed in response to the SHOW SERVER command.  This
+section, if present, must be first.
+.RE
+.TP
+.B Access Section
+.RS
+.TP
+.BI "access {" " access specification " "}"
+This section, the second if the Site Section is present, contains access
+restrictions for the server and all of the databases collectively.
+Per-database control is specified in the Database Section.
+.RE
+.TP
+.B Database Section
+.RS
+.TP
+.BI database " string " "{ " "database specification " "}"
+The string specifies the name of the database
+(e.g., wn or web1913).  (This is an arbitrary name selected by the
+administrator, and is not necessarily related to the file name or any
+name listed in the data file.  A short, easy to type name is often
+selected for easy use with 
+.BR "dict -d".)
+
+.B NOTE:
+If the files specified in the database specification do not exist on the
+system, dictd may silently fail.
+.TP
+.BI database_virtual " string " "{ " "virtual database specification " "}"
+This section specifies the virtual database.
+The string specifies the name of the database (e.g., en-ru or fren).
+.TP
+.BI database_plugin " string " "{ " "plugin specification " "}"
+This section specifies the plugin.
+The string specifies the name of the database.
+.TP
+.BI database_exit
+Excludes following databases from the '*' database.
+By default '*' means all databases available.
+Look at 'example_virtual.conf' file for example configuration.
+
+.B NOTE:
+If you use 'virtual' dictionaries, you should use this directive,
+otherwise you will search the same dictionary twice.
+.RE
+.TP
+.B User Section
+.RS
+.TP
+.BI user " string" " string"
+The first string specifies the username, and the second string specifies
+the shared secret for this username.  When the AUTH command is used, the
+client will provide the username and a hashed version of the shared
+secret.  If the shared secret matches, the user is said to have
+authenticated, and will have access to databases whose access
+specifications allow that user (by name, or by wildcard).  If present, this
+section must appear last in the configuration file.  There may be many user
+entries.  The shared secret should be kept secret, as anyone who has access
+to it can access the shared databases (assuming access is not denied by
+domain name).
+.RE
+.TP
+.B Access Specification
+.RS
+Access specifications may occur in the Access Section or in the Database
+Section.  The access specification will be described here.
+.P
+For allow, deny, and authonly, a star (*) may be used as a wild card that
+matches any number of characters.  A question mark (?) may be used as a
+wildcard that matches a single character.  For example, 10.0.0.* and *.edu
+are valid strings.
+.P
+Further, a range of IP addresses and an IP address followed by a netmask
+may be specified.  For example, 10.0.0.0:10.0.0.255, 10.0.0.0/24, and
+10.0.0.* all specify the same range of IP numbers.  Notation cannot be
+combined on the same line.  If the notation does not make sense, access
+will be denied by default.  Use the
+.I "--debug auth"
+option to debug related problems.
+.P
+Note that these specifications take only one string per specification
+line.  However, you can have multiple lines of each type.
+.P
+The syntax is as follows:
+.TP
+.BI allow " string"
+The string specifies a domain name or IP address which is allowed access
+to the server (in the Access Section) or to a database (in the Database
+Section).  Note that more than one string is not permitted for a single
+"allow" line, but more than one "allow" lines are permitted in the
+configuration file.
+.TP
+.BI deny " string"
+The string specifies a domain name or IP address which is denied access to
+the server (in the Access Section) or to a database (in the Database
+Section).  Note that if reverse DNS is not working, then only the IP number
+will be checked.  Therefore, it is essential to deny networks based on IP
+number, since a denial based on domain name may not always be checked.
+.TP
+.BI authonly " string"
+This form is only useful in the Access Section.  The string specifies a
+domain name or IP address which is allowed access to the server but not to
+any of the databases.  All commands are valid except DEFINE, MATCH, and
+SHOW DB.  More specifically AUTH is a valid command, and commands which
+access the databases are not allowed.
+.TP
+.BI user " string"
+This form is only useful in the Database Section.  The string specifies a
+username that is allowed to access this database after a successful AUTH
+command is executed.
+.RE
+.TP
+.B Database Specification
+.RS
+The database specification describes the database:
+.TP
+.BI data " string"
+Specifies the filename for the flat text database.
+If the filename does not begin with '.' or '/', it is prepended with
+$datadir/. It is a compile time option. You can change this behaviour
+by editing Makefile or running ./configure --datadir=...
+.TP
+.BI index " string"
+Specifies the filename for the index file.
+Path matter is similar to that described above in "data" option .
+.TP
+.BI index_suffix " string"
+This is optional index file to make 'suffix'
+search strategy faster (binary search).
+It is generated by 'dictfmt_index2suffix'. Run "dictfmt_index2suffix --help"
+for more information.
+Path matter is similar to that described above in "data" option .
+.TP
+.BI index_word " string"
+This is optional index file to make 'word'
+search strategy faster (binary search).
+It is generated by 'dictfmt_index2word'. Run "dictfmt_index2word --help"
+for more information.
+Path matter is similar to that described above in "data" option .
+.TP
+.BI prefilter " string"
+Specifies the  prefilter command.  When  a chunk of the compressed database
+is  read, it will be filtered  with  this filter before being decompressed.
+This may be  used to provide  some additional compression  that knows about
+the data and can provide better compression than the LZ77 algorithm used by
+zlib.
+.TP
+.BI postfilter " string"
+Specifies the postfilter command.  When a chunk of the compressed database
+is read, it will be filtered with this filter before the offset and length
+for the entry are used to access data.  This is provided for symmetry with
+the prefilter command, and may also be useful for providing additional
+database compression.
+.TP
+.BI filter " string"
+Specifies the filter command.  After the entry is extracted from the
+database, it will be filtered with this filter.  This may be used to
+provide formatting for the entry (e.g., for html).
+.B Warning:
+This is not currently implemented.
+.TP
+.BI name " string"
+Specifies the short name of the database (e.g., "1913 Webster's").  If the
+string begins with @, then it specifies the headword to look up in the
+dictionary to find the short name of the database.  The default is
+"@00-database-short", but this may be changed in the
+.I defs.h
+file at compile time (DICT_SHORT_ENTRY_NAME).
+.TP
+.BI info " string"
+Specifies the information about database.  If the
+string begins with @, then it specifies the headword to look up in the
+dictionary to find information.  The default is
+"@00-database-info", but this may be changed in the
+.I defs.h
+file at compile time (DICT_INFO_ENTRY_NAME).
+.TP
+.BI invisible
+Makes dictionary invisible to the clients i.e. this dictionary
+will not be recognized or shown by DEFINE, MATCH, SHOW INFO, SHOW SERVER and
+SHOW DB commands. If some definitions or matches are found in invisible
+dictionary,
+the name of the upper visible virtual dictionary or '*' is returned.
+.B NOTE:
+There is no sense to make dictionary invisible unless it is included
+to the virtual dictionary.
+.RE
+.TP
+.B Virtual Database Specification
+.RS
+The virtual database specification describes the virtual database:
+.TP
+.BI database_list " string"
+Specifies a list of databases which are included into the virtual database.
+Database names are in the string and are separated by comma.
+.TP
+.BI name " string"
+Specifies the short name of the database. String beginning with '@' symbol
+is not treated as an entry name.
+.TP
+.BI info " string"
+Specifies the information about database.  String beginning with '@' symbol
+is not treated as an entry name.
+.TP
+.BI invisible
+Makes dictionary invisible to the clients. See
+.I database specification
+.TP
+.B NOTE:
+Another way to implement a virtual database is to create
+database files by dictfmt_virtual executable
+.RE
+.TP
+.B Plugin Specification
+.RS
+.TP
+.BI plugin " string"
+Specifies a filename of the plugin.
+.TP
+.BI data " string"
+Specifies data for initializing plugin.
+.TP
+.BI name " string"
+Specifies the short name of the database. See
+.I database specification
+.TP
+.BI info " string"
+Specifies the information about database. See
+.I database specification
+.TP
+.BI invisible
+Makes dictionary invisible to the clients. See
+.I database specification
+.TP
+.B NOTE:
+Another way to configure plugin is to create
+database files by dictfmt_plugin executable
+.RE
+.TP
+.BI include " string"
+The text of the file "string" (usually a database specification)
+will be read as if it appeared at this location in the configuration file.
+Nested includes are not permitted.
+
+.SH "DETERMINATION OF ACCESS LEVEL"
+When a client connects, the global access specification is scanned, in
+order, until a specification matches.  If no access specification exists,
+all access is allowed (e.g., the action is the same as if "allow *" was the
+only item in the specification).  For each item, both the hostname and IP
+are checked. For example, consider the following access specification:
+.RS
+allow 10.42.*
+.br
+authonly *.edu
+.br
+deny *
+.RE
+With this specification, all clients in the 10.42 network will be allowed
+access to unrestricted databases; all clients from *.edu sites will be
+allowed to authenticate, but will be denied access to all databases, even
+those which are otherwise unrestricted; and all other clients will have
+their connection terminated immediately.  The 10.42 network clients can
+send an AUTH command and gain access to restricted databases.  The *.edu
+clients must send an AUTH command to gain access to any databases,
+restricted or unrestricted.
+.P
+When the AUTH command is sent, the access list for each database is
+scanned, in order, just as the global access list is scanned.  However,
+after authentication, the client has an associated username.  For example,
+consider the following access specification:
+.RS
+user u1
+.br
+deny *.com
+.br
+user u2
+.br
+allow *
+.RE
+If the client authenticated as u1, then the client will have access to this
+database, even if the client comes from a *.com site.  In contrast, if the
+client authenticated as u2, the client will only have access if it does not
+come from a *.com site.  In this case, the "user u2" is redundant, since
+that client would also match "allow *".
+.P
+.B Warning:
+Checks are performed for domain names and for IP addresses.  However, if
+reverse DNS for a specific site is not working, it is possible that a
+domain name may not be available for checking.  Make sure that all denials
+use IP addresses.  (And consider a future enhancement: if a domain name is
+not available, should denials that depend on a domain name match anything?
+This is the more conservative viewpoint, but it is not currently
+implemented.)
+.SH "SEARCH ALGORITHMS"
+The DICT standard specifies a few search algorithms that must be
+implemented, and permits others to be supported on a server-dependent
+basis.  The following search strategies are supported by this server.  Note
+that
+.I all
+strategies are case insensitive.  Most ignore non-alphanumeric,
+non-whitespace characters.
+.TP
+.B exact
+An exact match.  This algorithm uses a binary search and is one of the
+fastest search algorithms available.
+.TP
+.B lev
+The Levenshtein algorithm (string edit distance of one).  This algorithm
+searches for all words which are within an edit distance of one from the
+target word.  An "edit" means an insertion, deletion, or transposition.
+This is a rapid algorithm for correcting spelling errors, since many
+spelling errors are within a Levenshtein distance of one from the original
+word.
+.TP
+.B prefix
+Prefix match.  This algorithm also uses a binary search and is very fast.
+.TP
+.B re
+POSIX 1003.2 (modern) regular expression search.  Modern regular
+expressions are the ones used by
+.BR egrep (1).
+These regular expressions allow predefined character classes (e.g.,
+[[:alnum:]], [[:alpha:]], [[:digit:]], and [[:xdigit:]] are useful for this
+application); uses * to match a sequence 0 or more matches of the previous
+atom; uses + to match a sequence of 1 or more matches of the previous atom;
+uses ? to match a sequence of 0 or 1 matches of the previous atom; used ^ to
+match the beginning of a word, uses $ to match the end of a word, and
+allows nested subexpression and alternation with () and |.  For example,
+"(foo|bar)" matches all words that contain either "foo" or "bar".  To match
+these special characters, they must be quoted with two backslashes (due to
+the quoting characteristics of the server).
+.B Warning:
+Regular expression matches can take 10 to 300 times longer than substring
+matches.  On a busy server, with many databases, this can required more
+than 5 minutes of waiting time, depending on the complexity of the regular
+expression.
+.TP
+.B regexp
+Old (basic) regular expressions.  These regular expressions don't support
+|, +, or ?.  Groups use escaped parentheses.  While modern regular
+expressions are generally easier to use, basic regular expressions have a
+back reference feature.  This can be used to match a second occurrence of
+something that was already matched.  For example, the following expression
+finds all words that begin and end with the same three letters:
+.RS
+.nf
+    ^\\\\(...\\\\).*\\\\1$
+.fi
+.P
+Note the use of the double backslashes to escape the special characters.
+This is required by the DICT protocol string specification (a single
+backslash quotes the next character -- we use two to get a single backslash
+through to the regular expression engine).
+.B Warning:
+Note that the use of backtracking is even slower than the use of general
+regular expressions.
+.RE
+.TP
+.B soundex
+The Soundex algorithm, a classic algorithm for finding words that sound
+similar to each other.  The algorithm encodes each word using the first
+letter of the word and up to three digits.  Since the first letter is
+known, this search is relatively fast, and it sometimes good for correcting
+spelling errors when the Levenshtein algorithm doesn't help.
+.TP
+.B substring
+Match a substring anywhere in the headword.  This search strategy uses a
+modified Boyer-Moore-Horspool algorithm.  Since it must search the whole
+index file, it is not as fast as the exact and prefix matches.
+.TP
+.B suffix
+Suffix match.  This search strategy also uses a modified
+Boyer-Moore-Horspool algorithm, and is as fast as the substring
+search.  If the optional index_suffix string file is listed in the
+configuration file this search is much faster.
+.TP
+.B word
+Match any single word, even if part of a multi-word entry.  If the
+optional index_word string file is listed in the configuration file
+this search is much faster.
+.SH "DATABASE FORMAT"
+Databases for
+.B dictd
+are distributed separately.  A database consists of two files.  One is a
+flat text file, the other in the index.
+.P
+The flat text file contains dictionary entries (or any other suitable
+data), and the index contains tab-delimited tuples consisting of the
+headword, the byte offset at which this entry begins in the flat text file,
+and the length of the entry in bytes.  The offset and length are encoded
+using base 64 encoding using the 64-character subset of International
+Alphabet IA5 discussed in RFC 1421 (printable encoding) and RFC 1522
+(base64 MIME).  Encoding the offsets in base 64 saves considerable space
+when compared with the usual base 10 encoding, while still permitting tab
+characters (ASCII 9) to be used for delimiting fields in a record.  Each
+record ends with a newline (ASCII 10), so the index file is human readable.
+.P
+The flat text file may be compressed using
+.BR gzip (1)
+(not recommended) or
+.BR dictzip (1)
+(highly recommended).  Optimal speed will be obtained using an uncompressed
+file.  However, the
+.B gzip
+compression algorithm works very well on plain text, and can result in
+space savings typically between 60 and 80%.  Using a file compressed with
+.BR gzip (1)
+is not recommended, however, because random access on the file can only be
+accomplished by serially decompressing the whole file, a process which is
+prohibitively slow.
+.BR dictzip (1)
+uses the same compression algorithm and file format as does
+.BR gzip (1),
+but provides a table that can be used to randomly access compressed blocks
+in the file.  The use of 50-64kB blocks for compression typically degrades
+compression by less than 10%, while maintaining acceptable random access
+capabilities for all data in the file.  As an added benefit, files
+compressed with
+.BR dictzip (1)
+can be decompressed with
+.BR gzip (1)
+or
+.BR zcat (1).
+(Note: recompressing a
+.BR dictzip 'd
+file using, for example,
+.BR znew (1)
+will destroy the random access characteristics of the file.  Always
+compress data files using
+.BR dictzip (1).)
+.SH "ACKNOWLEDGEMENTS"
+Special thanks to Jean-loup Gailly and Mark Adler for writing the
+.B zlib
+general purpose data compression library.  The version contained with
+.B dictd
+is not necessarily an original version and
+.B may have been modified
+(unnecessary files may have been deleted to make the distribution
+smaller; makefiles may have been modified to ease compilation; see
+zlib/README.DICT for any significant changes).  For more information on
+.BR zlib ,
+please see the
+.B zlib
+home page at
+.RS
+.I http://www.gzip.org/zlib/
+.RE
+.P
+The key features of the
+.B dictzip
+random-access compression algorithm utilize a documented extension of the
+gzip format, and do not require any modifications to
+.BR zlib .
+.P
+Special thanks to Henry Spencer for his regex package.  The package
+contained with
+.B dictd
+is not necessarily an original version and
+.B may have been modified
+(unnecessary files may have been deleted to make the distribution
+smaller; makefiles may have been modified to ease compilation; see
+regex/README.DICT for any significant changes).  For more information on
+regex, please see
+.RS
+.I ftp://zoo.toronto.edu/pub/regex.shar
+.RE
+.SH "COPYING"
+The main source files for the
+.B dictd
+server and the
+.B dictzip
+compression program were written by Rik Faith (faith@dict) and are
+distributed under the terms of the GNU General Public License.  If you need
+to distribute under other terms, write to the author.
+.P
+The main libraries used by these programs (zlib, regex, libmaa) are
+distributed under different terms, so you may be able to use the libraries
+for applications which are incompatible with the GPL -- please see the
+copyright notices and license information that come with the libraries for
+more information, and consult with your attorney to resolve these issues.
+.SH "BUGS"
+The regular expression searches do not ignore non-whitespace,
+non-alphanumeric characters as do the other searches.  In practice, this
+isn't much of a problem.
+.SH "FILES"
+.I /etc/dictd.conf
+.br
+.I /usr/sbin/dictd
+.SH "SEE ALSO"
+.BR dictfmt (1),
+.BR dictfmt_virtual (1),
+.BR dict (1),
+.BR dictzip (1),
+.BR gunzip (1),
+.BR zcat (1),
+.BR webster (1),
+.B RFC 2229
--- dictd-1.11.2+dfsg.orig/debian/sources/dictd_virtual2.conf
+++ dictd-1.11.2+dfsg/debian/sources/dictd_virtual2.conf
@@ -0,0 +1,94 @@
+# This is an example database section of a dictd.conf file,
+# illustrating on method of using virtual databases as non-default
+# dictionaries. 
+
+database gcide
+ {
+  data  /usr/share/dictd/gcide.dict.dz
+  index /usr/share/dictd/gcide.index
+}
+database wn
+ {
+  data  /usr/share/dictd/wn.dict.dz
+  index /usr/share/dictd/wn.index
+}
+database foldoc
+ {
+  data  /usr/share/dictd/foldoc.dict.dz
+  index /usr/share/dictd/foldoc.index
+}
+database jargon
+ {
+  data  /usr/share/dictd/jargon.dict.dz
+  index /usr/share/dictd/jargon.index
+}
+database vera
+ {
+  data  /usr/share/dictd/vera.dict.dz
+  index /usr/share/dictd/vera.index
+}
+database devil
+ {
+  data  /usr/share/dictd/devil.dict.dz
+  index /usr/share/dictd/devil.index
+}
+database elements
+ {
+  data  /usr/share/dictd/elements.dict.dz
+  index /usr/share/dictd/elements.index
+}
+database easton
+ {
+  data  /usr/share/dictd/easton.dict.dz
+  index /usr/share/dictd/easton.index
+}
+database hitchcock
+ {
+  data  /usr/share/dictd/hitchcock.dict.dz
+  index /usr/share/dictd/hitchcock.index
+}
+database gazetteer
+ {
+  data  /usr/share/dictd/gazetteer.dict.dz
+  index /usr/share/dictd/gazetteer.index
+}
+database gaz2k-counties
+ {
+  data  /usr/share/dictd/gazetteer2k-counties.dict.dz
+  index /usr/share/dictd/gazetteer2k-counties.index
+}
+database gaz2k-places
+ {
+  data  /usr/share/dictd/gazetteer2k-places.dict.dz
+  index /usr/share/dictd/gazetteer2k-places.index
+}
+database gaz2k-zips
+ {
+  data  /usr/share/dictd/gazetteer2k-zips.dict.dz
+  index /usr/share/dictd/gazetteer2k-zips.index
+}
+database_exit
+# veng consists of gcide, wn, elemnts, and devil
+database veng
+ {
+  data  /usr/share/dictd/veng.dict
+  index /usr/share/dictd/veng.index
+}
+# vcomp consists of foldo, jargon, and vera
+database vcomp
+ {
+  data  /usr/share/dictd/vcomp.dict
+  index /usr/share/dictd/vcomp.index
+}
+# vbible consists of easton and hitchcock
+database vbible
+ {
+  data  /usr/share/dictd/vbible.dict
+  index /usr/share/dictd/vbible.index
+}
+# vgaz consists of gazetteer and all of the gazetteer2k dictionaries
+database vgaz
+ {
+  data  /usr/share/dictd/vgaz.dict
+  index /usr/share/dictd/vgaz.index
+}
--- dictd-1.11.2+dfsg.orig/debian/sources/dictdconfig.alias
+++ dictd-1.11.2+dfsg/debian/sources/dictdconfig.alias
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -lp
+
+# By default, dictdconfig uses the basename of the file in
+# /usr/share/dictd as the name of the database.  This file is an
+# executable filter that substitutes a preferred name for a dictionary
+# in /var/lib/dictd/db.list.  This name is displayed by the dict -D
+# command and is used with the -d option of dict to request
+# definitions from a specific dictionary instead of the default of all
+# installed dictionaries.
+
+# 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/;
--- dictd-1.11.2+dfsg.orig/debian/sources/colorit.conf
+++ dictd-1.11.2+dfsg/debian/sources/colorit.conf
@@ -0,0 +1,32 @@
+dnl /etc/dictd/colorit.conf   vim:ft=m4
+dnl
+dnl Sample configuration file for colorit(1) program
+dnl
+divert(-1)
+dnl
+dnl Define some useful color variables
+dnl
+define(`black',   `0')
+define(`red', 	  `1')
+define(`green',   `2')
+define(`brown',   `3')
+define(`blue', 	  `4')
+define(`magenta', `5')
+define(`cyan',    `6')
+define(`white',   `7')
+dnl
+dnl Mark macro arguments: regexp foreground-color [background-color]
+dnl
+define(`mark', ``mark "$1"''  `ifelse(`$#', `3', ``"\033[3$2;4$3m"'', ``"\033[3$2m"'')' `"\033[m"')
+dnl
+divert
+mark(`^From.*$',red,cyan)
+mark(`^  [^ ]+',green)
+mark(`^ *Note:',red)
+mark(`{[^{]+}',green)
+mark(`^ *\[[^\[]+\]', cyan)
+mark(`^[ 	]*(adj|n|v|adv)? *[0-9]+[\.:]',cyan)  
+mark(`^ *\([a-z]+\)',cyan)  
+mark(`(Syn|Ant|syn|ant):', blue, white)  
+mark(` (t|i|a|adj|adv|n|v)\. ',cyan)  
+mark(` (t|i|a|adj|adv|n|v)\.$',cyan)  
--- dictd-1.11.2+dfsg.orig/debian/sources/dictd.conf
+++ dictd-1.11.2+dfsg/debian/sources/dictd.conf
@@ -0,0 +1,42 @@
+# /etc/dictd/dictd.conf
+
+# This is the configuration file for /usr/sbin/dictd.  The access
+# specification included in this file allows access only from the
+# localhost.  If this machine is acting as a server for a network you
+# will probably want to add additional access specifications in this
+# file.  See the dictd manpage - man dictd.
+
+# A sample database section is generated automatically upon
+# installation or removal of the dictd package or any dictionary
+# database package.  Replace the ``include /var/lib/dictd/db.list''
+# line below if you wish to provide a custom database section.
+# Customization may also be achieved via the optional dictdconfig
+# order override file /etc/dictd/dictd.order.  See the dictdconfig
+# manpage - man dictdconfig.
+
+# Older dictionary database packages did not automatically
+# invoke /usr/sbin/dictdconfig upon installation and removal,
+# so you may need to do so manually.
+
+# Site section here:
+
+global {
+listen_to 127.0.0.1
+# bind to local interfacea only
+}
+
+# Access section here:
+
+access {
+allow localhost
+allow 127.0.0.1
+# this allows access only from local host
+allow inetd
+# this allows access from inetd server
+}
+
+# Database section here:
+
+include /var/lib/dictd/db.list
+
+# User section here:
--- dictd-1.11.2+dfsg.orig/debian/sources/dict.conf
+++ dictd-1.11.2+dfsg/debian/sources/dict.conf
@@ -0,0 +1,21 @@
+#  /etc/dictd/dict.conf 
+
+#  Written by Bob Hilliard <hilliard@debian.org>
+#  1998/03/20.  Last revised Sun, 22 Nov 1998 18:10:04 -0500 This is
+#  the configuration file for /usr/bin/dict.  In most cases only the
+#  server keyword need be specified.  
+
+#  This default configuration will try to access a dictd server on the
+#  local host, failing that, it will try the public server.  In many
+#  cases this will be slow, so you should comment out the line for the
+#  server that you don't want to use. To use any other server, enter
+#  its IP address in place of "dict.org".  
+
+#  Refer to the dict manpage (man dict) for other options that could
+#  be inserted in here.
+
+server localhost 
+server dict.org
+server dict0.us.dict.org
+server alt0.dict.org
+
--- dictd-1.11.2+dfsg.orig/debian/sources/dictd.order
+++ dictd-1.11.2+dfsg/debian/sources/dictd.order
@@ -0,0 +1,8 @@
+# This file defines the order in which dictdconfig lists dictionaries
+# in /var/lib/dictd/db.list.  The entry "/usr/share/dictd/" brings in
+# any dictionaries in that directory that aren't specifically listed
+# in this file.  You should enter the names of the dictionaries you
+# have installed, in the order you would prefer to have them searched.  
+
+web1913 gcide wn foldoc jargon vera devil elements easton hitchcock gazetteer
+/usr/share/dictd/
--- dictd-1.11.2+dfsg.orig/debian/sources/dictdconfig
+++ dictd-1.11.2+dfsg/debian/sources/dictdconfig
@@ -0,0 +1,232 @@
+#!/usr/bin/perl
+
+# dictdconfig -- generate dictd configuration database section
+# Copyright (C) 1999-2000 Kirk Hilliard <kirk@debian.org>
+#
+# This is free software, published under version 2 or (at your option)
+# any later version of the GNU General Public License.  You should
+# have received a copy of the GNU General Public License with your
+# Debian GNU/Linux system as /usr/share/common-licenses/GPL.
+
+# 4/20/03 - version updated to 1.2.  Support for index_suffix and 
+# index_word files added.  (Additional dictionaries were included in 
+# my @db_order and support for dictdconfig.alias and the database_exit 
+# directive was added earlier, without changing the version nmber.)
+
+my @db_order = qw( web1913 gcide wn foldoc jargon vera devil elements easton hitchcock gazetteer );
+my $db_dir      = "/usr/share/dictd";
+push @db_order, "$db_dir/";
+my %token;
+$token{'database_exit'} = "database_exit\n";
+my $dblist_file = "/var/lib/dictd/db.list";
+my $prog_dir    = "/usr/sbin";
+my $prog_name   = "dictdconfig";
+my $conf_file   = "/etc/dictd/dictd.conf";
+my $order_file  = "/etc/dictd/dictd.order";
+my $alias_script = "/etc/dictd/dictdconfig.alias";
+my %db_entered;
+my ( $opt_write, $opt_list,  $opt_order, $opt_help, $opt_version);
+my %opt_matrix = ( '-w' => \$opt_write,   '--write'   => \$opt_write,
+                   '-l' => \$opt_list,    '--list'    => \$opt_list,
+                   '-o' => \$opt_order,   '--order'   => \$opt_order,
+                   '-h' => \$opt_help,    '--help'    => \$opt_help,
+                   '-v' => \$opt_version, '--version' => \$opt_version );
+my $help = <<EOT;
+Usage: $prog_name [OPTIONS]
+Generate dictd configuration database section for available dictionary
+databases found in $db_dir/.
+
+  -w, --write    write database section to $dblist_file
+  -l, --list     list database section to standard out
+  -o, --order    display dictionary database order information
+  -h, --help     display this help and exit
+  -v, --version  display version information and exit
+EOT
+my $version = "$prog_name 1.1\n";
+my $output = <<EOT;
+# Automatically generated file -- do not edit.
+#
+# This file was automatically generated by $prog_name.  Any changes
+# made directly to this file will be lost when $prog_name is run upon
+# installation, removal, or upgrade of a dictionary database package.
+#
+# This file provides a complete database section which may be
+# included from the dictd configuration file $conf_file
+# with an ``include $dblist_file'' line.  The order and
+# presence of the dictionary database entries here may be modified
+# via the optional $prog_name order override file $order_file.
+# See $prog_name(8) for details.
+#
+# Older dictionary database packages did not automatically invoke
+# $prog_dir/$prog_name upon installation and removal, so you may
+# need to do so manually (after which, you should restart dictd).
+
+EOT
+my $order_file_found_comment = <<EOT;
+# Optional order override file $order_file found.
+# Ignoring default order.
+
+EOT
+my $order_file_not_found_comment = <<EOT;
+# Optional order override file $order_file not found.
+# Using default order.
+
+EOT
+my $none_found = <<EOT;
+# No dictionary databases were found.
+# This dummy entry allows dictd to start.
+
+EOT
+my $order_header = <<EOT;
+Dictionary Database Order Summary  [See also $prog_name(8).]
+
+Dictionary database entries will be generated only for those databases
+found via basename and directory entries in the default order (or the
+order override file, if present), and they will be generated in the
+order in which these entries appear.  No more than one dictionary
+database entry of any given name will be generated.
+
+  Entries without a leading / are relative to $db_dir/.
+  Entries without a trailing / are basenames.
+    A dictionary database entry is generated if <basename>.index
+    and <basename>.dict.dz or <basename>.dict are present.
+  Entries with a trailing / are directories.
+    A dictionary database entry is generated for each <name> where
+    <directory>/<name>.index and <directory>/<name>.dict.dz or
+    <directory>/<name>.dict are present.
+
+Default Order:
+EOT
+my $order_file_found = <<EOT;
+Optional order override file $order_file found.
+Ignoring default order.
+
+New Order:
+EOT
+my $order_file_not_found = <<EOT;
+Optional order override file $order_file not found.
+Using default order.
+
+EOT
+
+ParseCommandLine(@ARGV);
+print $version if $opt_version;
+print $help    if $opt_help;
+exit if $opt_help || $opt_version;
+if ( ! $opt_write && ! $opt_list && ! $opt_order ) {
+    print "No action taken.\n";
+    exit;
+}
+if ( $opt_order) {
+    print $order_header;
+    for (@db_order) { print "  $_\n"; }
+    print "\n";
+}
+
+if ( -f $order_file ) {
+    $output .= $order_file_found_comment;
+    if ( $opt_order ) { print $order_file_found }
+    open ORDER, "$order_file"
+        or die "Can't open existing file `$order_file' for read: $!\n";
+    undef @db_order;
+    while (<ORDER>) {
+        chomp;
+        s/#.*//;
+        push @db_order, split;
+    }
+    if ( $opt_order ) {
+        for (@db_order) { print "  $_\n"; }
+        print "\n";
+    }
+} else {
+    $output .= $order_file_not_found_comment;
+    if ( $opt_order) { print $order_file_not_found }
+}
+
+for (@db_order) {
+    if ( $token{$_} ) { $output .= $token{$_} }
+    elsif ( m#/$# ) { CheckDirectory( $_ ) }
+    else { CheckDatabase( $_ ) }
+}
+
+if ( ! keys %db_entered ) {
+    $output .= $none_found;
+    AddEntry( "dummy", "/dev/null", "/dev/null" );
+}
+
+if ( $opt_list ) { print $output }
+
+if ( $opt_write ) {
+    open  DBLIST, ">$dblist_file"
+        or die "Can't write to file $dblist_file: $!\n";
+    print DBLIST $output;
+    close DBLIST;
+}
+
+exit 0;
+
+sub AddEntry {
+    my ( $name, $datafile, $indexfile, $suffixfile, $wordfile ) = @_;
+    $output .= "database $name {\n" .
+               "  data  $datafile\n" .
+               "  index $indexfile\n" .
+               ( $suffixfile ? "  index_suffix $suffixfile\n" : "" ) .
+               ( $wordfile ? "  index_word $wordfile\n" : "" ) .
+               "}\n";
+    ++$db_entered{ $name };
+}
+
+sub AliasName {
+    my ( $name ) = @_;
+    if ( -x $alias_script ) { $name = `echo $name | $alias_script` }
+    return $name;
+}
+
+sub CheckDatabase {
+    my ( $base_name ) = @_;
+    my $name;
+    my $datafile;
+    my $indexfile;
+    my $suffixfile;
+    my $wordfile;
+    if ( $base_name =~ m#.*/(.*)# ) { $name = $1 }
+    else { $name = $base_name }
+    $name = AliasName( $name );
+    $base_name = "$db_dir/$base_name" unless $base_name =~ m#^/#;
+    $datafile = "$base_name.dict.dz";
+    $datafile =~ s/\.dz$// unless -f $datafile;
+    $indexfile = "$base_name.index";
+    $suffixfile = "$base_name.suffix";
+    $wordfile = "$base_name.word";
+    if ( ! $db_entered{ $name } && -f $datafile && -f $indexfile ) {
+        undef $suffixfile unless -f $suffixfile;
+        undef $wordfile unless -f $wordfile;
+        AddEntry( $name, $datafile, $indexfile, $suffixfile, $wordfile );
+    }
+}
+
+sub CheckDirectory {
+    my ( $dir ) = @_;
+    $dir = "$db_dir/$dir" unless $dir =~ m#^/#;
+    opendir DIR, $dir;
+    for (readdir DIR) {
+        if ( /(^.*)\.index$/ ) { CheckDatabase( "$dir$1" ) }
+    }
+    closedir DIR;
+}
+
+sub ParseCommandLine {
+    my $ref;
+    for (@_) {
+        if ( $ref = $opt_matrix{$_} ) { ++$$ref; }
+        elsif ( /^-([^-].*)/ ) {
+            for ( split //, $1 ) {
+                if ( $ref = $opt_matrix{"-$_"} ) { ++$$ref; }
+                else { die "$prog_name: unrecognized option `-$_'.\n" .
+                           "Try `$0 --help' for more information.\n"; }
+            }
+        }
+        else { die "$prog_name: unrecognized option `$_'.\n" .
+                   "Try `$0 --help' for more information.\n"; }
+    }
+}
--- dictd-1.11.2+dfsg.orig/debian/sources/ucf/.update-sums.sh
+++ dictd-1.11.2+dfsg/debian/sources/ucf/.update-sums.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+# vim: ts=4:et:sts=4
+# $Id: .update-sums.sh 78 2008-12-31 10:38:05Z robert $
+
+set -e
+
+PACKAGE=dictd
+VERSION=`dpkg-parsechangelog -l../../changelog |  sed -ne 's/^Version: //p'`
+TEMPLATEFILE="default.template"
+MD5SUMSFILE="default.md5sums"
+
+for mode in daemon inetd disabled; do
+    sum=`sed -e "s/^[[:space:]]*RUN_MODE[[:space:]]*=.*/RUN_MODE=\"${mode}\"/" < "$TEMPLATEFILE" | md5sum | cut -d\  -f1`
+    echo "$sum  v$VERSION/$mode" >> "$MD5SUMSFILE"
+done
--- dictd-1.11.2+dfsg.orig/debian/sources/ucf/default.template
+++ dictd-1.11.2+dfsg/debian/sources/ucf/default.template
@@ -0,0 +1,22 @@
+# This file is sourced by /etc/init.d/dictd to obtain the values of
+# config variables to be passed to dictd on startup.
+
+# How should the dictd server run?
+# Possible values are "daemon" (default), "inetd" or "disabled".
+# Please note that any other value will be automatically
+# overwritten by the debconf script when the package 
+# is upgraded or when you run `dpkg-reconfigure dictd'
+
+RUN_MODE="daemon"
+
+
+# Options passed to dictd.
+# Uncomment appropriate lines, change the text if desired, and/or add
+# new lines using the format of the sample lines.  (They must be legal
+# options, as shown in dictd(8).)  If dictd is running in the inetd mode,
+# please run  `dpkg-reconfigure dictd' after changing the options.
+
+DICTD_ARGS=""
+#DICTD_ARGS="$DICTD_ARGS --locale=en_US.utf-8"
+#DICTD_ARGS="$DICTD_ARGS --facility=user"
+#DICTD_ARGS="$DICTD_ARGS --log=min"
--- dictd-1.11.2+dfsg.orig/debian/sources/ucf/default.md5sums
+++ dictd-1.11.2+dfsg/debian/sources/ucf/default.md5sums
@@ -0,0 +1,4 @@
+b4cb2729584edf31a4f9ea8a5b57c188  v1.10.11.dfsg-2
+c684a431cd2e8596ab8c791fc8711570  v1.11.0.dfsg-1/daemon
+4e715887cff3833635bbaba2784c4152  v1.11.0.dfsg-1/inetd
+d5861df597a2ef00207f90f11c6370ff  v1.11.0.dfsg-1/disabled