blob: 29dd840b087f9dd8f87222cc3646145be696ca8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Michael Conrad Tilstra <michael@gentoo.org> <tadpol@tadpol.org>
# $Header: /var/cvsroot/gentoo-x86/app-text/dictd-web1913/dictd-web1913-1.4.ebuild,v 1.2 2001/04/24 22:58:35 michael Exp $
#P=
A=dict-web1913-1.4-pre.tar.gz
S=${WORKDIR}
DESCRIPTION=""
SRC_URI="ftp://ftp.dict.org/pub/dict/pre/${A}"
HOMEPAGE="http://www.dict.org"
DEPEND=">=app-text/dictd-1.5.5"
src_install () {
dodir /usr/lib/dict
insinto /usr/lib/dict
doins web1913.dict.dz
doins web1913.index
}
pkg_postinst() {
if [ -f /etc/dict/dictd.conf ]; then
cat >> /etc/dict/dictd.conf << __EOF__
database web1913 { data "/usr/lib/dict/web1913.dict.dz"
index "/usr/lib/dict/web1913.index" }
__EOF__
fi
}
pkg_postrm() {
if [ -f /etc/dict/dictd.conf ]; then
cat /etc/dict/dictd.conf | sed -e '/web1913/d' > /etc/dict/dictd.conf.$$
mv /etc/dict/dictd.conf.$$ /etc/dict/dictd.conf
fi
}
# vim: ai et sw=4 ts=4
|