diff options
author | Mamoru Komachi <usata@gentoo.org> | 2003-07-16 18:59:50 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2003-07-16 18:59:50 +0000 |
commit | 5171a51c359873b0cbf7ce359f3595cec48e2692 (patch) | |
tree | f8f76dc0e54923c7018476a0fa366df58faa702a /app-i18n/multiskkserv | |
parent | Initial import, closing bug #23820 (diff) | |
download | gentoo-2-5171a51c359873b0cbf7ce359f3595cec48e2692.tar.gz gentoo-2-5171a51c359873b0cbf7ce359f3595cec48e2692.tar.bz2 gentoo-2-5171a51c359873b0cbf7ce359f3595cec48e2692.zip |
Initial import, closing bug #23820
Diffstat (limited to 'app-i18n/multiskkserv')
-rw-r--r-- | app-i18n/multiskkserv/ChangeLog | 11 | ||||
-rw-r--r-- | app-i18n/multiskkserv/Manifest | 7 | ||||
-rw-r--r-- | app-i18n/multiskkserv/files/cdb-0.75-errno.diff | 11 | ||||
-rw-r--r-- | app-i18n/multiskkserv/files/digest-multiskkserv-20020201 | 2 | ||||
-rw-r--r-- | app-i18n/multiskkserv/files/multiskkserv.conf | 15 | ||||
-rw-r--r-- | app-i18n/multiskkserv/files/multiskkserv.initd | 34 | ||||
-rw-r--r-- | app-i18n/multiskkserv/metadata.xml | 5 | ||||
-rw-r--r-- | app-i18n/multiskkserv/multiskkserv-20020201.ebuild | 77 |
8 files changed, 159 insertions, 3 deletions
diff --git a/app-i18n/multiskkserv/ChangeLog b/app-i18n/multiskkserv/ChangeLog new file mode 100644 index 000000000000..bfe08fbea522 --- /dev/null +++ b/app-i18n/multiskkserv/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-i18n/multiskkserv +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/multiskkserv/ChangeLog,v 1.1 2003/07/16 18:59:43 usata Exp $ + +*multiskkserv-20020201 (17 Jul 2003) + + 17 Jul 2003; Mamoru KOMACHI <usata@gentoo.org> + multiskkserv-20020201.ebuild, files/cdb-0.75-errno.diff, + files/multiskkserv.conf, files/multiskkserv.initd: + New package, closing bug #23820 + diff --git a/app-i18n/multiskkserv/Manifest b/app-i18n/multiskkserv/Manifest index 21dbb0072059..ecb8fb423e98 100644 --- a/app-i18n/multiskkserv/Manifest +++ b/app-i18n/multiskkserv/Manifest @@ -1,6 +1,7 @@ -MD5 d937dd944baa267f52459d23d7c9856e multiskkserv-20020201.ebuild 1524 +MD5 6827d43a13f4be44f16c32898571ec69 multiskkserv-20020201.ebuild 1636 MD5 e92a48548554c80cf90e18df17ff6a82 metadata.xml 156 +MD5 f27f5d630e3cb5094322579e44da0ab8 ChangeLog 457 MD5 1a3e347b6ebfe24f60f255100a2af4a0 files/cdb-0.75-errno.diff 243 -MD5 9c6665659a4ef562597f11c70aec7259 files/multiskkserv.conf 360 -MD5 d3dc74aa35ff4510bbb4d9de96cd75eb files/multiskkserv.initd 868 +MD5 d32eade09ae8aff0d64f065b66337cbe files/multiskkserv.conf 467 +MD5 fbc9c044f3e521ac43de228778f58e3a files/multiskkserv.initd 976 MD5 ce6ff83d1b90b4daa1b1b076c72db6d0 files/digest-multiskkserv-20020201 133 diff --git a/app-i18n/multiskkserv/files/cdb-0.75-errno.diff b/app-i18n/multiskkserv/files/cdb-0.75-errno.diff new file mode 100644 index 000000000000..5f6ac20c59c6 --- /dev/null +++ b/app-i18n/multiskkserv/files/cdb-0.75-errno.diff @@ -0,0 +1,11 @@ +--- error.h.orig 2003-03-29 04:18:26.000000000 -0800 ++++ error.h 2003-03-29 04:19:00.000000000 -0800 +@@ -1,7 +1,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include <errno.h> + + extern int error_intr; + extern int error_nomem; diff --git a/app-i18n/multiskkserv/files/digest-multiskkserv-20020201 b/app-i18n/multiskkserv/files/digest-multiskkserv-20020201 new file mode 100644 index 000000000000..eac5d8c8dab5 --- /dev/null +++ b/app-i18n/multiskkserv/files/digest-multiskkserv-20020201 @@ -0,0 +1,2 @@ +MD5 68b3bc5a57de24d7a8d465802f5f4822 multiskkserv-20020201.tar.bz2 159412 +MD5 81fed54d0bde51b147dd6c20cdb92d51 cdb-0.75.tar.gz 54162 diff --git a/app-i18n/multiskkserv/files/multiskkserv.conf b/app-i18n/multiskkserv/files/multiskkserv.conf new file mode 100644 index 000000000000..2e48b3bd0b16 --- /dev/null +++ b/app-i18n/multiskkserv/files/multiskkserv.conf @@ -0,0 +1,15 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/multiskkserv/files/multiskkserv.conf,v 1.1 2003/07/16 18:59:43 usata Exp $ + +# Config file for /etc/init.d/multiskkserv + +# define which SKK-JISYO to use (you may define multiple files) +# +# Example: +# +# SKKJISYO_CDB="SKK-JISYO.L.cdb SKK-JISYO.JIS2.cdb SKK-JISYO.jinmei.cdb" +# + +SKKJISYO_CDB="SKK-JISYO.L.cdb" + diff --git a/app-i18n/multiskkserv/files/multiskkserv.initd b/app-i18n/multiskkserv/files/multiskkserv.initd new file mode 100644 index 000000000000..eb0b01f903f9 --- /dev/null +++ b/app-i18n/multiskkserv/files/multiskkserv.initd @@ -0,0 +1,34 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/app-i18n/multiskkserv/files/multiskkserv.initd,v 1.1 2003/07/16 18:59:43 usata Exp $ + +opts="start stop" + +depend() { + need net +} + +start() { + if [ -e /var/run/multiskkserv.pid ] ; then + eerror "Anothor pid file is detected." + eerror "If you are sure any multiskkserv is not running," + eerror "please rm /var/run/multiskkserv manually." + fi + + ebegin "Starting multiskkserv" + start-stop-daemon --start --quiet --background \ + --make-pidfile --pidfile /var/run/multiskkserv.pid \ + --startas /usr/sbin/multiskkserv -- \ + -r /usr/share/skk ${SKKJISYO_CDB} + eend $? +} + +stop() { + ebegin "Stopping multiskkserv" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/multiskkserv.pid \ + --startas /usr/sbin/multiskkserv + eend $? + [ -e /var/run/multiskkserv.pid ] && rm /var/run/multiskkserv.pid +} diff --git a/app-i18n/multiskkserv/metadata.xml b/app-i18n/multiskkserv/metadata.xml new file mode 100644 index 000000000000..2d5852c16c60 --- /dev/null +++ b/app-i18n/multiskkserv/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cjk</herd> +</pkgmetadata> diff --git a/app-i18n/multiskkserv/multiskkserv-20020201.ebuild b/app-i18n/multiskkserv/multiskkserv-20020201.ebuild new file mode 100644 index 000000000000..be5e2cf427e2 --- /dev/null +++ b/app-i18n/multiskkserv/multiskkserv-20020201.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/multiskkserv/multiskkserv-20020201.ebuild,v 1.1 2003/07/16 18:59:43 usata Exp $ + +IUSE="" + +CDB_PV=0.75 +CDB_PN=cdb +CDB_P=${CDB_PN}-${CDB_PV} + +DESCRIPTION="SKK server that handles multiple dictionaries" +HOMEPAGE="http://www3.big.or.jp/~sian/linux/products/" +SRC_URI="http://www3.big.or.jp/~sian/linux/products/${P}.tar.bz2 + http://cr.yp.to/cdb/${CDB_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~alpha ~sparc ~ppc" + +DEPEND="virtual/glibc + app-i18n/skk-jisyo-cdb" +PROVIDE="virtual/skkserv" + +S=${WORKDIR}/${P} + +pkg_setup() { + + einfo "If you want to add some extra SKK dictionaries," + einfo "please emerge app-i18n/skk-jisyo-extra first." +} + +src_unpack() { + + unpack ${A} + + cd ${WORKDIR}/${CDB_P} + epatch ${FILESDIR}/${CDB_P}-errno.diff + + cp ${FILESDIR}/multiskkserv.conf ${S} +} + +src_compile() { + + cd ${WORKDIR}/${CDB_P} + make || die + cd - + + cd /usr/share/skk + echo "# Available SKK-JISYO files are:" >> ${S}/multiskkserv.conf + for i in *.cdb ; do + echo "# ${i}" >> ${S}/multiskkserv.conf + done + cd - + + econf --with-cdb=${WORKDIR}/${CDB_P} || die + emake || die +} + +src_install() { + + einstall || die + + insinto /etc/conf.d + newins multiskkserv.conf multiskkserv + + exeinto /etc/init.d + newexe ${FILESDIR}/multiskkserv.initd multiskkserv + + dodoc AUTHORS COPYING* ChangeLog INSTALL NEWS README* +} + +pkg_postinst() { + + einfo "By default, multiskkserv will look up only SKK-JISYO.L." + einfo "If you want to use more dictionaries," + einfo "edit /etc/conf.d/multiskkserv manually." +} |