diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2003-05-06 15:15:16 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2003-05-06 15:15:16 +0000 |
commit | 2c34700c9686f8953a3d1fc5ccac9f8fb871fe84 (patch) | |
tree | 923cfbe9bed08fc33b726d8e9f363c1470af8d46 /app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild | |
parent | Little bugfixes (diff) | |
download | gentoo-2-2c34700c9686f8953a3d1fc5ccac9f8fb871fe84.tar.gz gentoo-2-2c34700c9686f8953a3d1fc5ccac9f8fb871fe84.tar.bz2 gentoo-2-2c34700c9686f8953a3d1fc5ccac9f8fb871fe84.zip |
Little bugfixes
Diffstat (limited to 'app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild')
-rw-r--r-- | app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild b/app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild new file mode 100644 index 000000000000..e41ce22e1263 --- /dev/null +++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# 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.1 2003/05/06 15:15:08 phosphan Exp $ + +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" + +IUSE="" + +PROVIDE="virtual/skkserv" + +DEPEND="dev-db/freecdb" +RDEPEND="app-i18n/skk-jisyo-cdb + virtual/inetd" + +src_compile() { + emake SERVERDIR=/usr/sbin \ + COMPAT="-DJISHO_FILE=\\\"/usr/share/skk/SKK-JISYO.L.cdb\\\"" \ + LDFLAGS="-lutil -lfreecdb" \ + CC="cc ${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 /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 +} |