summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-09-12 19:20:58 +0000
committerPeter Volkov <pva@gentoo.org>2008-09-12 19:20:58 +0000
commit8d796da332b3a964b010b2208472e560c000b359 (patch)
tree0e2422bac537d5d5aab3a8d8d2bfca5aad6a07c2 /app-text/dictd
parentAdded license under which some RFCs (namely after 2156) are distributed. (diff)
downloadgentoo-2-8d796da332b3a964b010b2208472e560c000b359.tar.gz
gentoo-2-8d796da332b3a964b010b2208472e560c000b359.tar.bz2
gentoo-2-8d796da332b3a964b010b2208472e560c000b359.zip
Fixed inability to stop dictd, bug #236451, thank David B. Ferguson for report and fix. Cleaned up ebuild. Install again colorit and provide config file (back to bug #107376). Create initd user and make initrc script to work with permissions on its own (back to bug #90657). Took some patches from debian most important of which backports upstream fix for first connection denied problem. Removed old.
(Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r7 i686)
Diffstat (limited to 'app-text/dictd')
-rw-r--r--app-text/dictd/ChangeLog22
-rw-r--r--app-text/dictd/dictd-1.10.0.ebuild46
-rw-r--r--app-text/dictd/dictd-1.10.11-r1.ebuild81
-rw-r--r--app-text/dictd/dictd-1.10.9.ebuild80
-rw-r--r--app-text/dictd/dictd-1.9.11-r1.ebuild10
-rw-r--r--app-text/dictd/dictd-1.9.14.ebuild10
-rw-r--r--app-text/dictd/files/1.10.11/colorit.conf32
-rw-r--r--app-text/dictd/files/1.10.11/dict.conf (renamed from app-text/dictd/files/1.9.7/dict.conf)0
-rw-r--r--app-text/dictd/files/1.10.11/dictd.conf22
-rw-r--r--app-text/dictd/files/1.10.11/dictd.confd5
-rw-r--r--app-text/dictd/files/1.10.11/dictd.initd72
-rw-r--r--app-text/dictd/files/1.10.11/site.info (renamed from app-text/dictd/files/1.9.7/site.info)0
-rw-r--r--app-text/dictd/files/1.9.7/dictd72
-rw-r--r--app-text/dictd/files/1.9.7/dictd.conf22
-rw-r--r--app-text/dictd/files/1.9.7/dictd.confd7
-rw-r--r--app-text/dictd/files/dictd-1.10.11-colorit-nopp-fix.patch14
-rw-r--r--app-text/dictd/files/dictd-1.10.11-dictd.8-man.patch24
-rw-r--r--app-text/dictd/files/dictd-1.10.11-dictd.c-alen-init.patch14
-rw-r--r--app-text/dictd/files/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch15
-rw-r--r--app-text/dictd/files/dictd-1.10.11-dictl-konwert.patch35
-rw-r--r--app-text/dictd/files/dictd-1.10.11-dictl-translit.patch16
21 files changed, 361 insertions, 238 deletions
diff --git a/app-text/dictd/ChangeLog b/app-text/dictd/ChangeLog
index ba8fea75fcf1..89072ad13daf 100644
--- a/app-text/dictd/ChangeLog
+++ b/app-text/dictd/ChangeLog
@@ -1,6 +1,26 @@
# ChangeLog for app-text/dictd
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/ChangeLog,v 1.40 2008/04/14 11:10:59 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/ChangeLog,v 1.41 2008/09/12 19:20:55 pva Exp $
+
+*dictd-1.10.11-r1 (12 Sep 2008)
+
+ 12 Sep 2008; Peter Volkov <pva@gentoo.org> -files/1.9.7/dict.conf,
+ -files/1.9.7/dictd, -files/1.9.7/dictd.conf, -files/1.9.7/dictd.confd,
+ -files/1.9.7/site.info, +files/dictd-1.10.11-colorit-nopp-fix.patch,
+ +files/1.10.11/dict.conf, +files/dictd-1.10.11-dictd.8-man.patch,
+ +files/1.10.11/dictd.conf, +files/dictd-1.10.11-dictd.c-alen-init.patch,
+ +files/1.10.11/dictd.confd,
+ +files/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch,
+ +files/1.10.11/dictd.initd, +files/dictd-1.10.11-dictl-konwert.patch,
+ +files/1.10.11/site.info, +files/dictd-1.10.11-dictl-translit.patch,
+ +files/1.10.11/colorit.conf, dictd-1.9.11-r1.ebuild, dictd-1.9.14.ebuild,
+ -dictd-1.10.0.ebuild, -dictd-1.10.9.ebuild, +dictd-1.10.11-r1.ebuild:
+ Fixed inability to stop dictd, bug #236451, thank David B. Ferguson for
+ report and fix. Cleaned up ebuild. Install again colorit and provide
+ config file (back to bug #107376). Create initd user and make initrc
+ script to work with permissions on its own (back to bug #90657). Took some
+ patches from debian most important of which backports upstream fix for
+ first connection denied problem. Removed old.
*dictd-1.10.11 (14 Apr 2008)
diff --git a/app-text/dictd/dictd-1.10.0.ebuild b/app-text/dictd/dictd-1.10.0.ebuild
deleted file mode 100644
index c5ed1df60a9c..000000000000
--- a/app-text/dictd/dictd-1.10.0.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.10.0.ebuild,v 1.6 2007/08/18 01:15:54 philantrop Exp $
-
-DESCRIPTION="Dictionary Client/Server for the DICT protocol"
-HOMEPAGE="http://www.dict.org/"
-SRC_URI="mirror://sourceforge/dict/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE=""
-
-DEPEND="virtual/libc"
-
-src_compile() {
- econf \
- --with-cflags="${CFLAGS}" \
- --sysconfdir=/etc/dict || die
- make || die
-}
-
-src_install() {
- # Now install it.
- make DESTDIR="${D}" install || die "install failed"
-
- # Install docs
- dodoc README TODO COPYING ChangeLog ANNOUNCE
- dodoc doc/dicf.ms doc/rfc.ms doc/rfc.sh doc/rfc2229.txt
- dodoc doc/security.doc doc/toc.ms
-
- # conf files.
- dodir /etc/dict
- insinto /etc/dict
- doins "${FILESDIR}"/1.9.11-r1/dict.conf
- doins dictd.conf
- doins "${FILESDIR}"/1.9.11-r1/site.info
-
- # startups for dictd
- newinitd "${FILESDIR}"/1.9.11-r1/dictd dictd
- newconfd "${FILESDIR}"/1.9.11-r1/dictd.confd dictd
-
- # Remove useless cruft, fixes bug 107376
- rm -f ${D}/usr/bin/colorit
- rm -f ${D}/usr/share/man/man1/colorit.1
-}
diff --git a/app-text/dictd/dictd-1.10.11-r1.ebuild b/app-text/dictd/dictd-1.10.11-r1.ebuild
new file mode 100644
index 000000000000..a14624e70892
--- /dev/null
+++ b/app-text/dictd/dictd-1.10.11-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.10.11-r1.ebuild,v 1.1 2008/09/12 19:20:55 pva Exp $
+
+inherit eutils
+
+DESCRIPTION="Dictionary Client/Server for the DICT protocol"
+HOMEPAGE="http://www.dict.org/"
+SRC_URI="mirror://sourceforge/dict/${P}.tar.gz"
+
+SLOT="0"
+# We install rfc so - ISOC-rfc
+LICENSE="GPL-2 ISOC-rfc"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+# <gawk-3.1.6 makes tests fail.
+DEPEND="sys-apps/coreutils
+ sys-libs/zlib
+ || ( >=sys-apps/coreutils-6.10 sys-apps/mktemp )
+ sys-apps/sed"
+RDEPEND="${DEPEND}
+ >=sys-apps/gawk-3.1.6"
+
+pkg_setup() {
+ enewgroup dictd
+ enewuser dictd -1 -1 -1 dictd
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/dictd-1.10.11-colorit-nopp-fix.patch
+ epatch "${FILESDIR}"/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch
+ epatch "${FILESDIR}"/dictd-1.10.11-dictd.8-man.patch
+ epatch "${FILESDIR}"/dictd-1.10.11-dictl-konwert.patch
+ epatch "${FILESDIR}"/dictd-1.10.11-dictd.c-alen-init.patch
+ epatch "${FILESDIR}"/dictd-1.10.11-dictl-translit.patch
+}
+
+src_compile() {
+ # with-local-libmaa is needed because libmaa is not in the tree
+ # because nothing in the whole wide world but dictd uses it.
+ # There are no sources apart from those in dictd, no homepage, nothing.
+ # Doesn't really make sense to split it off from dictd into its own package
+ # and add that just for dictd.
+ econf \
+ --sysconfdir=/etc/dict \
+ --with-cflags="${CFLAGS}" \
+ --with-local-libmaa
+ emake || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+
+ # Install docs
+ dodoc README TODO ChangeLog ANNOUNCE NEWS || die "installing docs part 1 failed"
+ dodoc doc/{dicf.ms,rfc.ms,rfc.sh,rfc2229.txt} || die "installing docs part 2 failed"
+ dodoc doc/{security.doc,toc.ms} || die "installing docs part 3 failed"
+
+ # conf files.
+ insinto /etc/dict
+ for f in dict.conf dictd.conf site.info colorit.conf; do
+ doins "${FILESDIR}"/1.10.11/${f} || die "failed to install ${f}"
+ done
+
+ # startups for dictd
+ newinitd "${FILESDIR}"/1.10.11/dictd.initd dictd || die "failed to install dictd.initd"
+ newconfd "${FILESDIR}"/1.10.11/dictd.confd dictd || die "failed to install dictd.confd"
+}
+
+pkg_postinst() {
+ echo
+ elog "To start and use ${PN} you will have to emerge at least one dictionary from"
+ elog "the app-dicts category with the package name starting with 'dictd-'."
+ elog "To install all available dictionaries, emerge app-dicts/dictd-dicts."
+ elog "${PN} will NOT start without at least one dictionary."
+ echo
+}
diff --git a/app-text/dictd/dictd-1.10.9.ebuild b/app-text/dictd/dictd-1.10.9.ebuild
deleted file mode 100644
index f918e0ae4a9d..000000000000
--- a/app-text/dictd/dictd-1.10.9.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.10.9.ebuild,v 1.1 2007/08/18 01:15:54 philantrop Exp $
-
-DESCRIPTION="Dictionary Client/Server for the DICT protocol"
-HOMEPAGE="http://www.dict.org/"
-SRC_URI="mirror://sourceforge/dict/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND="${DEPEND}"
-
-# The dictd tests are broken.
-RESTRICT="test"
-
-src_unpack() {
- unpack ${A}
-
- cd "${S}"
- sed -i -e 's:^CFLAGS=\(.*\):CFLAGS=\1 -fPIC:' libmaa/Makefile.in
-}
-
-src_compile() {
- # with-local-libmaa is needed because libmaa is not in the tree
- # because nothing in the whole wide world but dictd uses it.
- # There are no sources apart from those in dictd, no homepage, nothing.
- # Doesn't really make sense to split it off from dictd into its own package
- # and add that just for dictd.
- econf \
- --with-cflags="${CFLAGS}" \
- --with-local-libmaa \
- --without-local-zlib \
- --without-local-dmalloc \
- --without-local-regex \
- --without-checker \
- --without-efence \
- --without-insure \
- --without-purify \
- --disable-plugin \
- --sysconfdir=/etc/dict || die "econf failed"
- emake || die "make failed"
-}
-
-src_install() {
- # Now install it.
- make DESTDIR="${D}" install || die "install failed"
-
- # Install docs
- dodoc README TODO COPYING ChangeLog ANNOUNCE || die "installing docs part 1 failed"
- dodoc doc/dicf.ms doc/rfc.ms doc/rfc.sh doc/rfc2229.txt || die "installing docs part 2 failed"
- dodoc doc/security.doc doc/toc.ms || die "installing docs part 3 failed"
-
- # conf files.
- dodir /etc/dict
- insinto /etc/dict
- doins "${FILESDIR}"/${PVR}/dict.conf
- doins "${FILESDIR}"/${PVR}/dictd.conf
- doins "${FILESDIR}"/${PVR}/site.info
-
- # startups for dictd
- newinitd "${FILESDIR}"/${PVR}/dictd dictd
- newconfd "${FILESDIR}"/${PVR}/dictd.confd dictd
-
- # Remove useless cruft, fixes bug 107376
- rm -f ${D}/usr/bin/colorit
- rm -f ${D}/usr/share/man/man1/colorit.1
-}
-
-pkg_postinst() {
- echo
- elog "To start and use ${PN} you will have to emerge at least one dictionary from"
- elog "the app-dicts category with the package name starting with 'dictd-'."
- elog "To install all available dictionaries, emerge app-dicts/dictd-dicts."
- elog "${PN} will NOT start without at least one dictionary."
- echo
-}
diff --git a/app-text/dictd/dictd-1.9.11-r1.ebuild b/app-text/dictd/dictd-1.9.11-r1.ebuild
index 1ecb5ca1fbd2..e8e4fde56b41 100644
--- a/app-text/dictd/dictd-1.9.11-r1.ebuild
+++ b/app-text/dictd/dictd-1.9.11-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.9.11-r1.ebuild,v 1.13 2007/08/18 01:15:54 philantrop Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.9.11-r1.ebuild,v 1.14 2008/09/12 19:20:55 pva Exp $
DESCRIPTION="Dictionary Client/Server for the DICT protocol"
HOMEPAGE="http://www.dict.org/"
@@ -25,7 +25,7 @@ src_install() {
make DESTDIR="${D}" install || die "install failed"
# Install docs
- dodoc README TODO COPYING ChangeLog ANNOUNCE
+ dodoc README TODO ChangeLog ANNOUNCE
dodoc doc/dicf.ms doc/rfc.ms doc/rfc.sh doc/rfc2229.txt
dodoc doc/security.doc doc/toc.ms
@@ -41,6 +41,6 @@ src_install() {
newconfd "${FILESDIR}"/${PVR}/dictd.confd dictd
# Remove useless cruft, fixes bug 107376
- rm -f ${D}/usr/bin/colorit
- rm -f ${D}/usr/share/man/man1/colorit.1
+ rm -f "${D}"/usr/bin/colorit
+ rm -f "${D}"/usr/share/man/man1/colorit.1
}
diff --git a/app-text/dictd/dictd-1.9.14.ebuild b/app-text/dictd/dictd-1.9.14.ebuild
index 4a468db42f6b..47ed46d4e562 100644
--- a/app-text/dictd/dictd-1.9.14.ebuild
+++ b/app-text/dictd/dictd-1.9.14.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.9.14.ebuild,v 1.15 2007/08/25 16:52:11 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.9.14.ebuild,v 1.16 2008/09/12 19:20:55 pva Exp $
DESCRIPTION="Dictionary Client/Server for the DICT protocol"
HOMEPAGE="http://www.dict.org/"
@@ -25,7 +25,7 @@ src_install() {
make DESTDIR="${D}" install || die "install failed"
# Install docs
- dodoc README TODO COPYING ChangeLog ANNOUNCE
+ dodoc README TODO ChangeLog ANNOUNCE
dodoc doc/dicf.ms doc/rfc.ms doc/rfc.sh doc/rfc2229.txt
dodoc doc/security.doc doc/toc.ms
@@ -41,6 +41,6 @@ src_install() {
newconfd "${FILESDIR}"/1.9.11-r1/dictd.confd dictd
# Remove useless cruft, fixes bug 107376
- rm -f ${D}/usr/bin/colorit
- rm -f ${D}/usr/share/man/man1/colorit.1
+ rm -f "${D}"/usr/bin/colorit
+ rm -f "${D}"/usr/share/man/man1/colorit.1
}
diff --git a/app-text/dictd/files/1.10.11/colorit.conf b/app-text/dictd/files/1.10.11/colorit.conf
new file mode 100644
index 000000000000..22b00e9ec07d
--- /dev/null
+++ b/app-text/dictd/files/1.10.11/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)
diff --git a/app-text/dictd/files/1.9.7/dict.conf b/app-text/dictd/files/1.10.11/dict.conf
index e06c3d296ec3..e06c3d296ec3 100644
--- a/app-text/dictd/files/1.9.7/dict.conf
+++ b/app-text/dictd/files/1.10.11/dict.conf
diff --git a/app-text/dictd/files/1.10.11/dictd.conf b/app-text/dictd/files/1.10.11/dictd.conf
new file mode 100644
index 000000000000..16e41e5cac76
--- /dev/null
+++ b/app-text/dictd/files/1.10.11/dictd.conf
@@ -0,0 +1,22 @@
+# dictd configuration file
+
+global {
+ # Informational message
+ site site.info
+}
+
+# who's allowed. You might want to change this.
+access {
+ allow *
+}
+
+# Dictionaries are listed below. During dictd startup the initrc script will
+# scan ${DLIBDIR} (see /etc/conf.d/dictd) and adds all of the dictionaries it
+# finds here.
+#
+# NOTE: Initrc script will wipe everything below #LASTLINE and replace it with
+# what it finds. So add all of your things above. If this is a problem, report
+# bug at https://bugs.gentoo.org, please.
+#
+# Do not remove next line!
+#LASTLINE
diff --git a/app-text/dictd/files/1.10.11/dictd.confd b/app-text/dictd/files/1.10.11/dictd.confd
new file mode 100644
index 000000000000..4db9f001e790
--- /dev/null
+++ b/app-text/dictd/files/1.10.11/dictd.confd
@@ -0,0 +1,5 @@
+# If have problems starting dictd in an UTF-8 locale, add an appropriate
+# --locale switch to DICTD_OPTS, e. g. "--locale=en_US.utf8"
+DICTD_OPTS="-s "
+DICTDCONF=/etc/dict/dictd.conf
+DLIBDIR=/usr/lib/dict
diff --git a/app-text/dictd/files/1.10.11/dictd.initd b/app-text/dictd/files/1.10.11/dictd.initd
new file mode 100644
index 000000000000..65ae3a38b359
--- /dev/null
+++ b/app-text/dictd/files/1.10.11/dictd.initd
@@ -0,0 +1,72 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/files/1.10.11/dictd.initd,v 1.1 2008/09/12 19:20:57 pva Exp $
+
+prepconfig() {
+ local TMPCONF INDEXFILES CNT DNAME DICT
+ if [ ! -e "${DICTDCONF}" ]; then
+ eerror "Config file ${DICTDCONF} not found."
+ return 1
+ fi
+
+ # if no dictionaries, skip startup.
+ # The new way of doing this is to scan /usr/lib/dict and tweek the conf
+ einfo "Scanning for dictionaries..."
+ if [ ! -d "${DLIBDIR}" ]; then
+ eerror "${DLIBDIR} doesn't exist, no dictionaries found."
+ return 1
+ fi
+ pushd ${DLIBDIR} >/dev/null
+ INDEXFILES=$(ls *.index)
+ if [ -z "${INDEXFILES}" ]; then
+ eerror "No dictionaries found at ${DLIBDIR}."
+ eerror "Please, emerge at least one of app-dicts/dictd-* dictionaries."
+ return 1
+ fi
+
+ TMPCONF=$(mktemp -t dictd.conf.XXXXXXXXXX)
+ cat ${DICTDCONF} | sed -e '/^#LASTLINE/,$d' > ${TMPCONF}
+ echo "#LASTLINE" >> ${TMPCONF}
+
+ CNT=0
+ for i in "${INDEXFILES}"; do
+ DNAME=$(echo $i | sed -e 's/[.]index$//')
+ #two possible names for a matching dictionary, check which is there.
+ if [ -f ${DNAME}.dict.dz ]; then
+ DICT=${DNAME}.dict.dz
+ elif [ -f ${DNAME}.dict ];then
+ DICT=${DNAME}.dict
+ else
+ ewarn "Index $i has no matching dictionaray..."
+ fi
+
+ #ok, go an index, and a dixtionary, append.
+ echo "database ${DNAME} { data \"${DLIBDIR}/${DICT}\"" >> ${TMPCONF}
+ echo " index \"${DLIBDIR}/$i\" }" >> ${TMPCONF}
+
+ CNT=$(expr ${CNT} + 1)
+ done
+ popd >/dev/null
+ mv "${TMPCONF}" "${DICTDCONF}"
+ chown 0:dictd "${DICTDCONF}"
+ chmod g+r "${DICTDCONF}"
+ einfo "Done, ${CNT} dictionaries found."
+}
+
+depend() {
+ need localmount
+}
+
+start() {
+ prepconfig || return 1
+ ebegin "Starting dictd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/dictd -- ${DICTD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping dictd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/dictd
+ eend $?
+}
diff --git a/app-text/dictd/files/1.9.7/site.info b/app-text/dictd/files/1.10.11/site.info
index 23bfdeb61102..23bfdeb61102 100644
--- a/app-text/dictd/files/1.9.7/site.info
+++ b/app-text/dictd/files/1.10.11/site.info
diff --git a/app-text/dictd/files/1.9.7/dictd b/app-text/dictd/files/1.9.7/dictd
deleted file mode 100644
index 554c9540023a..000000000000
--- a/app-text/dictd/files/1.9.7/dictd
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/files/1.9.7/dictd,v 1.3 2004/07/14 21:37:57 agriffis Exp $
-
-# NB: Config is in /etc/conf.d/dictd
-
-
-prepconfig() {
- if [ ! -e ${DICTDCONF} ]
- then
- eerror "dictd not started. Config file not found."
- return 1
- fi
- # if no dictionaries, skip startup.
-
- # The new way of doing this is to scan /usr/lib/dict and tweek the conf
- einfo "Scanning for dictionaries..."
- if [ ! -d "${DLIBDIR}" ]; then
- eerror "${DLIBDIR} doesn't exist, no dictionaries found."
- return 1
- fi
- pushd ${DLIBDIR} >/dev/null
- INDEXFILES=`ls *.index`
- if [ -z "$INDEXFILES" ]; then
- eerror "No dictionaries installed."
- return 1
- fi
-
- cat $DICTDCONF | sed -e '/^#LASTLINE/,$d' > $TMPCONF
- echo "#LASTLINE" >> $TMPCONF
-
- CNT=0
- for i in $INDEXFILES
- do
- DNAME=`echo $i | awk -F . '{print $1;}'`
- #two possible names for a matching dictionary, check which is there.
- if [ -f ${DNAME}.dict.dz ]; then
- DICT=${DNAME}.dict.dz
- elif [ -f ${DNAME}.dict ];then
- DICT=${DNAME}.dict
- else
- einfo "Index $i has no matching dictionaray..."
- fi
-
- #ok, go an index, and a dixtionary, append.
- echo "database $DNAME { data \"${DLIBDIR}/${DICT}\"" >> $TMPCONF
- echo " index \"${DLIBDIR}/$i\" }" >> $TMPCONF
-
- CNT=`expr $CNT + 1`
- done
- popd >/dev/null
- mv ${TMPCONF} ${DICTDCONF}
- einfo "Done, $CNT dictionary indexes found."
-}
-
-depend() {
- need localmount
-}
-
-start() {
- ebegin "Starting dictd"
- prepconfig || return 1
- start-stop-daemon --start --quiet --exec /usr/sbin/dictd -- $EARGS
- eend $?
-}
-
-stop() {
- ebegin "Stopping dictd"
- start-stop-daemon --stop --quiet --exec /usr/sbin/dictd
- eend $?
-}
diff --git a/app-text/dictd/files/1.9.7/dictd.conf b/app-text/dictd/files/1.9.7/dictd.conf
deleted file mode 100644
index 4cded974f973..000000000000
--- a/app-text/dictd/files/1.9.7/dictd.conf
+++ /dev/null
@@ -1,22 +0,0 @@
-# dictd configuration file.
-# whipped up by michael conrad tilstra <michael@gentoo.org>
-
-# Informational message
-site site.info
-
-# who's allowed. You might want to change this.
-access {
- allow *
-}
-
-# Dictionaries are listed below.
-# The initrc script scans /usr/lib/dict and adds all of the dictionaries
-# it finds here.
-#
-# The initrc script will delete everything after the the last line and
-# replace it with what it finds. So add all of your things above.
-#
-# If this is a problem for people, contact me and
-# we can work out a different method.
-#
-#LASTLINE
diff --git a/app-text/dictd/files/1.9.7/dictd.confd b/app-text/dictd/files/1.9.7/dictd.confd
deleted file mode 100644
index 91b9d43884bc..000000000000
--- a/app-text/dictd/files/1.9.7/dictd.confd
+++ /dev/null
@@ -1,7 +0,0 @@
-# Config file for /etc/init.d/dictd
-
-EARGS="-s "
-DICTDCONF=/etc/dict/dictd.conf
-DLIBDIR=/usr/lib/dict
-TMPCONF=/etc/dict/dictd.conf.$$
-
diff --git a/app-text/dictd/files/dictd-1.10.11-colorit-nopp-fix.patch b/app-text/dictd/files/dictd-1.10.11-colorit-nopp-fix.patch
new file mode 100644
index 000000000000..a78d13c9620c
--- /dev/null
+++ b/app-text/dictd/files/dictd-1.10.11-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()
+ }
diff --git a/app-text/dictd/files/dictd-1.10.11-dictd.8-man.patch b/app-text/dictd/files/dictd-1.10.11-dictd.8-man.patch
new file mode 100644
index 000000000000..1a49a47b182c
--- /dev/null
+++ b/app-text/dictd/files/dictd-1.10.11-dictd.8-man.patch
@@ -0,0 +1,24 @@
+Use @SYSCONFDIR@ instead of /etc/
+
+Index: dictd/dictd.8.in
+===================================================================
+--- dictd.orig/dictd.8.in 2008-01-25 21:25:49.000000000 +0100
++++ dictd/dictd.8.in 2008-01-25 21:26:42.000000000 +0100
+@@ -120,7 +120,7 @@
+ .TP
+ .BI \-c " file\fR or " \-\-config " file"
+ Specify configuration file. The default is
+-.I /etc/dictd.conf
++.I @SYSCONFDIR@/dictd.conf
+ , but may be changed in the
+ .I defs.h
+ file at compile time (DICTD_CONFIG_FILE).
+@@ -283,7 +283,7 @@
+ .TP
+ .B Introduction
+ The configuration file defaults to
+-.I /etc/dictd.conf
++.I @SYSCONFDIR@/dictd.conf
+ but can be specified on the command line with the
+ .B \-c
+ option (see above).
diff --git a/app-text/dictd/files/dictd-1.10.11-dictd.c-alen-init.patch b/app-text/dictd/files/dictd-1.10.11-dictd.c-alen-init.patch
new file mode 100644
index 000000000000..68faa156047d
--- /dev/null
+++ b/app-text/dictd/files/dictd-1.10.11-dictd.c-alen-init.patch
@@ -0,0 +1,14 @@
+Fix for http://sourceforge.net/tracker/index.php?func=detail&aid=1941358&group_id=605&atid=100605
+Index: dictd/dictd.c
+===================================================================
+--- dictd.orig/dictd.c 2008-04-13 16:15:58.000000000 +0200
++++ dictd/dictd.c 2008-04-13 16:16:17.000000000 +0200
+@@ -1455,7 +1455,7 @@
+ struct sockaddr_in csin;
+ int c;
+ time_t startTime;
+- socklen_t alen = 0;
++ socklen_t alen = sizeof(csin);
+ int detach = 1;
+ int forceStartup = 0;
+ int i;
diff --git a/app-text/dictd/files/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch b/app-text/dictd/files/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch
new file mode 100644
index 000000000000..1b1753bab6cf
--- /dev/null
+++ b/app-text/dictd/files/dictd-1.10.11-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>
diff --git a/app-text/dictd/files/dictd-1.10.11-dictl-konwert.patch b/app-text/dictd/files/dictd-1.10.11-dictl-konwert.patch
new file mode 100644
index 000000000000..254fdd1c3a90
--- /dev/null
+++ b/app-text/dictd/files/dictd-1.10.11-dictl-konwert.patch
@@ -0,0 +1,35 @@
+Patch for #401666: dictl: doesn't work with DICTL_USE_KONWERT
+
+Index: dictd/dictl.in
+===================================================================
+--- dictd.orig/dictl.in 2008-01-20 17:58:41.000000000 +0100
++++ dictd/dictl.in 2008-01-20 18:02:40.000000000 +0100
+@@ -24,11 +24,25 @@
+ # `iconv --help' gives more options than `man iconv' (on my SuSE 9.0 system at least)
+ # the -c makes iconv omit invalid characters from output
+ iconv -c -f $1 -t $2
+- else if test "$DICTL_USE_KONWERT"; then
+- konwert $1-$2
++ elif test "$DICTL_USE_KONWERT"; then
++ 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"
+ else
+ recode -f $1..$2
+- fi fi
++ fi
+ }
+
+ #####################################
diff --git a/app-text/dictd/files/dictd-1.10.11-dictl-translit.patch b/app-text/dictd/files/dictd-1.10.11-dictl-translit.patch
new file mode 100644
index 000000000000..6341120c8eb8
--- /dev/null
+++ b/app-text/dictd/files/dictd-1.10.11-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 2008-01-21 22:28:01.000000000 +0100
++++ dictd/dictl.in 2008-01-21 22:28:20.000000000 +0100
+@@ -23,7 +23,7 @@
+ if test "$DICTL_USE_ICONV"; then
+ # `iconv --help' gives more options than `man iconv' (on my SuSE 9.0 system at least)
+ # the -c makes iconv omit invalid characters from output
+- iconv -c -f $1 -t $2
++ iconv -c -f $1 -t $2//TRANSLIT
+ elif test "$DICTL_USE_KONWERT"; then
+ sedexpr='
+ /(CP)?(437|8(5[0257]|6[0-69]|74))/ { s//cp\2/; q }