summaryrefslogtreecommitdiff
path: root/app-i18n/skkserv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-i18n/skkserv
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/skkserv')
-rw-r--r--app-i18n/skkserv/Manifest9
-rw-r--r--app-i18n/skkserv/files/skkserv-headers.patch19
-rw-r--r--app-i18n/skkserv/files/skkserv-segfault.patch15
-rw-r--r--app-i18n/skkserv/files/skkserv-suffix.patch13
-rw-r--r--app-i18n/skkserv/files/skkserv.initd19
-rw-r--r--app-i18n/skkserv/metadata.xml8
-rw-r--r--app-i18n/skkserv/skkserv-9.6-r3.ebuild34
7 files changed, 117 insertions, 0 deletions
diff --git a/app-i18n/skkserv/Manifest b/app-i18n/skkserv/Manifest
new file mode 100644
index 000000000000..13640314b314
--- /dev/null
+++ b/app-i18n/skkserv/Manifest
@@ -0,0 +1,9 @@
+AUX skkserv-headers.patch 401 SHA256 ea0011f584b716f773b720878fcb51ca62940ec755f91a9bcf31fc9f3c92744b SHA512 cdddc6cab2f5735441627b5238e8fdbb0e65e17f6f8d62b743669f4fc9cd9f514417f7218095f1ffbf52dc78ef0c05fcdbe484bb49460bc00f4ae3e5a6cb6104 WHIRLPOOL 22da84aed08bbc8bc55e019fb35f5e76a6c430e51077c6f4d414b14383784013e0304e006ff3e54aaebf0a58cc965f27f66dafd8cd6596e9aa13caec9e773c1f
+AUX skkserv-segfault.patch 435 SHA256 b524350fd29b2030d4fba66c9c098a234b124e222cdf1f1f41af3f383222ce32 SHA512 4bf7b18a73fbba7e4f2c3bb05bc4db42a637d385cd5e199ea4095007d69eba2171c2bf32224d49df595c08815621968a564c0306b854f2a4bf84a17dcb452cad WHIRLPOOL c2c68ff457f0e4dde3f22e889dbab34888bb89bd119329e24b8b5fe4282a9f89eb1f9ca795a4c14112625a8afb77eb454057ad1eb34f300f1080e8d20f64798f
+AUX skkserv-suffix.patch 331 SHA256 d80db3ee2d1d6e048b65fce1215efaa1d499f4b306c5d308089bdaa9f2316aa0 SHA512 57529bcffd3be4574f73b70f65479e0b9783c62d25f8835e499abf8981e2367a7b7d04333925382b958738bdf7610761953b49545b7b17e00ec6eb27540741e3 WHIRLPOOL d9f2ab156dbc5c45bdf7e8024df47931c1a6c031c9764b7183286a68b3037ef41d21a3a4c55136e2a57724de02d42773662e02e92711e345e9e511de40d3b8bb
+AUX skkserv.initd 383 SHA256 a1efdcf49a96d537c0c00e5f08fea6afcd0a3b56442395ba4e3fbcc71235cf6a SHA512 db3cebf4157e5b680101082cc4d04252a6932660b26aec1366c3fe62c4abc59e4f9f8d395e4664d2e9b44f5f40e8bc6e2c49d0c688685d2b887a7a285047a05e WHIRLPOOL 419845b8a00b6df465030bb523716fc5eb2f37a96ef91aa39eddf44e439004676933bb1001d1127c464db6160150ace57f546ae41a3348c0f2ad0a6df977b8b6
+DIST skk9.6mu.tar.gz 744381 SHA256 3b118ce33ad5f3bf45bea8e74875a0a35764c49c7ddc83ba93b9193fe37e5a28 SHA512 971982ce51142d92b62497da209fb69a8a1c028307f62ec6e81ea45894b597d6bb17b8966032a508531520868a0e3d89e515540d3f8030fe049a7750157b7a33 WHIRLPOOL 5deb23905e4fff4a8bade29278513e9eccff9ae4f2b48704371c0074e44d6b1c81b8ecce371ad84b6e5198e655d0293087cc64c346601f3f0c4d966517684968
+EBUILD skkserv-9.6-r3.ebuild 704 SHA256 34e1e0c1b99fcaf1e1a6b1152618d7da0745f25f53230553e0aa9083b8b46b85 SHA512 1ec079d158c709b700026f7cadf1b746cc8b16e92249ac2ee94a82f8265da42968c308fa4eeaa483f4c0d94f7715d1447eb9306048cd48391aff81053513de72 WHIRLPOOL 4a9077e3832c73d3da2766edf9872d3dca58ad6ebd2aeadd97c0e4f70c1339a8bb84ed3097c338e115ca83186ed3ee29c3b341294e657104f5f6c0f65a63dd55
+MISC ChangeLog 2670 SHA256 e6c9b80c42e33fa5c0e747c105c5801e283abd2c2bd30542efd06d910bb11adc SHA512 f89051bec4e286f45d1abb4e6a9a92faa9400c99c01c7c8e3dccea082db143c6e8b7c8f46b1520cadf6876c5f32ba517a9aef8a56551fa89defefed894390b3f WHIRLPOOL cbe24d0a69d9781d8bfbc3c19d6cdc4be8c4e048e8b21154a48432ea802272ef85b30ecde66eddc7a53426675656fd7e34fb9c8ca9f306f3c9b30cf580b6cac0
+MISC ChangeLog-2015 2891 SHA256 4f4c89fb57d5b447e3358b69173cad1699b4f61933c479deecd7c7bfcd97d7ee SHA512 9b17da0381caa39f39894719d11b5ed23123a730e58159acab6adc620aa6b576a58ae8518fc44eb43c7ffeb046c382341d5b6d37cdd28a0ab3f42fbad6a17804 WHIRLPOOL 76370b7c18db54677d712b35ae5dee0c2b933487b217c09fae07bfff4f86e3676ab6856491a9b711b8a07cb4be4eea817b9e112f86ec6e7747188830007d8582
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/skkserv/files/skkserv-headers.patch b/app-i18n/skkserv/files/skkserv-headers.patch
new file mode 100644
index 000000000000..923f49948e8b
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv-headers.patch
@@ -0,0 +1,19 @@
+--- a/skkserv/skkserv.h
++++ b/skkserv/skkserv.h
+@@ -37,6 +37,8 @@
+ /* Necessary for SunOS 3.x and maybe other old systems */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+
+ #include <sys/types.h>
+ #ifdef HAVE_SYS_IOCTL_H
+@@ -44,6 +46,7 @@
+ #endif
+ #include <sys/socket.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <netdb.h>
+ #include <signal.h>
+ #include <errno.h>
diff --git a/app-i18n/skkserv/files/skkserv-segfault.patch b/app-i18n/skkserv/files/skkserv-segfault.patch
new file mode 100644
index 000000000000..4c35a44d975a
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv-segfault.patch
@@ -0,0 +1,15 @@
+--- a/skkserv/skkserv.c
++++ b/skkserv/skkserv.c
+@@ -723,7 +723,11 @@
+ fprintf(errout, "%s:cannot get hostname, or too long hostname\n", pgmnm);
+ exit(1);
+ }
+- hentry = gethostbyname(hname);
++ if ((hentry = gethostbyname(hname)) == NULL
++ && (hentry = gethostbyname("localhost")) == NULL) {
++ perror("gethostbyname");
++ exit(1);
++ }
+ #ifdef NO_ADDR_LIST
+ strcat(hname, ":");
+ strcat(hname, hentry->h_addr);
diff --git a/app-i18n/skkserv/files/skkserv-suffix.patch b/app-i18n/skkserv/files/skkserv-suffix.patch
new file mode 100644
index 000000000000..0e1f862fd148
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv-suffix.patch
@@ -0,0 +1,13 @@
+--- a/skkserv/skkserv.c
++++ a/skkserv/skkserv.c
+@@ -382,6 +382,10 @@
+ code = KANA_END;
+
+ while ((c = fgetc(jisho)) != EOF) {
++ if (c == '>') {
++ fgets(buf, BUFSIZE, jisho);
++ continue;
++ }
+ target = ((c & 0xff)<< 8) | (fgetc(jisho) & 0xff);
+ if (target == STRMARK) {
+ fgets(buf, BUFSIZE, jisho);
diff --git a/app-i18n/skkserv/files/skkserv.initd b/app-i18n/skkserv/files/skkserv.initd
new file mode 100644
index 000000000000..0721205b355a
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+
+description_reload="Reload the SKK-JISYO.L"
+
+command="/usr/sbin/${RC_SVCNAME}"
+
+depend() {
+ need net
+}
+
+reload() {
+ ebegin "Reloading ${name:-${RC_SVCNAME}}"
+ start-stop-daemon --signal INT --name "${command}"
+ eend ${?}
+}
diff --git a/app-i18n/skkserv/metadata.xml b/app-i18n/skkserv/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/skkserv/metadata.xml
@@ -0,0 +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>
+</pkgmetadata>
diff --git a/app-i18n/skkserv/skkserv-9.6-r3.ebuild b/app-i18n/skkserv/skkserv-9.6-r3.ebuild
new file mode 100644
index 000000000000..b5710e975fdd
--- /dev/null
+++ b/app-i18n/skkserv/skkserv-9.6-r3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="skk${PV}mu"
+
+DESCRIPTION="Dictionary server for the SKK Japanese-input software"
+HOMEPAGE="http://openlab.ring.gr.jp/skk/"
+SRC_URI="http://openlab.ring.gr.jp/skk/maintrunk/museum/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND="app-i18n/skk-jisyo"
+S="${WORKDIR}/skk-${PV}mu"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-segfault.patch
+ "${FILESDIR}"/${PN}-headers.patch
+ "${FILESDIR}"/${PN}-suffix.patch
+)
+
+src_compile() {
+ emake -C ${PN}
+}
+
+src_install() {
+ dosbin ${PN}/${PN}
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}