blob: 91a31febdcd9f6a5bb13d120dac2230471251037 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild,v 1.10 2005/05/16 03:57:39 usata Exp $
inherit toolchain-funcs
DESCRIPTION="Yet another Dictionary server for the SKK Japanese-input software"
HOMEPAGE="http://www.ne.jp/asahi/bdx/info/software/jp-dbskkd.html"
SRC_URI="http://www.ne.jp/asahi/bdx/info/software/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 ppc sparc alpha amd64"
IUSE=""
DEPEND="dev-db/freecdb"
RDEPEND="app-i18n/skk-jisyo-cdb
virtual/inetd"
PROVIDE="virtual/skkserv"
src_compile() {
emake \
SERVERDIR=/usr/sbin \
COMPAT="-DJISHO_FILE=\\\"/usr/share/skk/SKK-JISYO.L.cdb\\\"" \
LDFLAGS="-lutil -lfreecdb" \
CC="$(tc-getCC) ${CFLAGS}" || die
}
src_install() {
dosbin dbskkd-cdb
einfo "Checking for xinetd..."
if test -f /usr/sbin/xinetd; then
einfo "copying xinetd configuration file for ${PN}"
insinto /etc/xinetd.d
newins ${FILESDIR}/dbskkd-cdb.xinetd dbskkd-cdb
else
einfo "No xinetd found. Config example for inetd is in /etc/inetd.skkserv"
dodir /etc/
echo > ${D}/etc/inetd.skkserv "skkserv stream tcp nowait nobody /usr/sbin/dbskkd-cdb /usr/sbin/dbskkd-cdb"
fi
dodoc LICENSE Release-Notes.{English,Japanese}
}
pkg_postinst() {
ewarn "The skk server is disabled by default."
if test -f ${ROOT}/usr/sbin/xinetd; then
ewarn "Please check /etc/xinetd.d/dbskkd-cdb"
else
ewarn "Please see /etc/inetd.skkserv for an example inetd configuration line"
fi
}
|