summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv.confd (renamed from app-i18n/multiskkserv/files/multiskkserv.conf)4
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv.initd30
-rw-r--r--app-i18n/multiskkserv/metadata.xml8
-rw-r--r--app-i18n/multiskkserv/multiskkserv-20100128.ebuild29
4 files changed, 21 insertions, 50 deletions
diff --git a/app-i18n/multiskkserv/files/multiskkserv.conf b/app-i18n/multiskkserv/files/multiskkserv.confd
index 12ca62e3987b..eaaa90def3f8 100644
--- a/app-i18n/multiskkserv/files/multiskkserv.conf
+++ b/app-i18n/multiskkserv/files/multiskkserv.confd
@@ -1,6 +1,3 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
# Config file for /etc/init.d/multiskkserv
# define which SKK-JISYO to use (you may define multiple files)
@@ -11,4 +8,3 @@
#
SKKJISYO_CDB="SKK-JISYO.L.cdb"
-
diff --git a/app-i18n/multiskkserv/files/multiskkserv.initd b/app-i18n/multiskkserv/files/multiskkserv.initd
index 43fd803993f0..31c447da9d5d 100644
--- a/app-i18n/multiskkserv/files/multiskkserv.initd
+++ b/app-i18n/multiskkserv/files/multiskkserv.initd
@@ -1,30 +1,12 @@
#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+command="/usr/sbin/${RC_SVCNAME}"
+command_args="-r /usr/share/skk ${SKKJISYO_CDB}"
+command_background="true"
+pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}"
+
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 \
- /usr/sbin/multiskkserv -- \
- -r /usr/share/skk ${SKKJISYO_CDB}
- eend $?
-}
-
-stop() {
- ebegin "Stopping multiskkserv"
- start-stop-daemon --stop --quiet -R 5 \
- --pidfile /var/run/multiskkserv.pid \
- --exec /usr/sbin/multiskkserv
- eend $?
-}
diff --git a/app-i18n/multiskkserv/metadata.xml b/app-i18n/multiskkserv/metadata.xml
index c921b96adf6c..e1a49f498885 100644
--- a/app-i18n/multiskkserv/metadata.xml
+++ b/app-i18n/multiskkserv/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>cjk@gentoo.org</email>
- <name>Cjk</name>
-</maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
</pkgmetadata>
diff --git a/app-i18n/multiskkserv/multiskkserv-20100128.ebuild b/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
index 0f34d617864b..b6ec66dc57b3 100644
--- a/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
+++ b/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI="6"
-inherit autotools eutils
+inherit autotools
DESCRIPTION="SKK server that handles multiple dictionaries"
HOMEPAGE="http://www3.big.or.jp/~sian/linux/products/"
@@ -14,16 +14,15 @@ SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="test"
-DEPEND="app-arch/xz-utils
- dev-db/cdb
+DEPEND="dev-db/cdb
test? ( app-i18n/nkf )"
-RDEPEND="|| (
- >=app-i18n/skk-jisyo-200705[cdb]
- app-i18n/skk-jisyo-cdb
- )"
+RDEPEND="app-i18n/skk-jisyo[cdb]"
+
+PATCHES=( "${FILESDIR}"/${P}-cdb.patch )
src_prepare() {
- epatch "${FILESDIR}"/${P}-cdb.patch
+ default
+ mv configure.{in,ac}
eautoreconf
}
@@ -34,12 +33,6 @@ src_configure() {
src_install() {
default
- newconfd "${FILESDIR}"/multiskkserv.conf multiskkserv
- newinitd "${FILESDIR}"/multiskkserv.initd multiskkserv
-}
-
-pkg_postinst() {
- elog "By default, multiskkserv will look up only SKK-JISYO.L.cdb."
- elog "If you want to use more dictionaries,"
- elog "edit /etc/conf.d/multiskkserv manually."
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
}