summaryrefslogtreecommitdiff
path: root/inputmethod/sj3-lib
diff options
context:
space:
mode:
Diffstat (limited to 'inputmethod/sj3-lib')
-rw-r--r--inputmethod/sj3-lib/DESCR6
-rw-r--r--inputmethod/sj3-lib/Makefile24
-rw-r--r--inputmethod/sj3-lib/PLIST3
-rw-r--r--inputmethod/sj3-lib/buildlink3.mk13
-rw-r--r--inputmethod/sj3-lib/distinfo35
-rw-r--r--inputmethod/sj3-lib/patches/patch-aa65
-rw-r--r--inputmethod/sj3-lib/patches/patch-ab20
-rw-r--r--inputmethod/sj3-lib/patches/patch-ac13
-rw-r--r--inputmethod/sj3-lib/patches/patch-ad39
-rw-r--r--inputmethod/sj3-lib/patches/patch-ae28
-rw-r--r--inputmethod/sj3-lib/patches/patch-af16
-rw-r--r--inputmethod/sj3-lib/patches/patch-ag130
-rw-r--r--inputmethod/sj3-lib/patches/patch-ah13
-rw-r--r--inputmethod/sj3-lib/patches/patch-ai21
-rw-r--r--inputmethod/sj3-lib/patches/patch-aj38
-rw-r--r--inputmethod/sj3-lib/patches/patch-ak45
-rw-r--r--inputmethod/sj3-lib/patches/patch-al25
-rw-r--r--inputmethod/sj3-lib/patches/patch-am76
-rw-r--r--inputmethod/sj3-lib/patches/patch-ao13
-rw-r--r--inputmethod/sj3-lib/patches/patch-ap29
-rw-r--r--inputmethod/sj3-lib/patches/patch-aq22
-rw-r--r--inputmethod/sj3-lib/patches/patch-ar13
-rw-r--r--inputmethod/sj3-lib/patches/patch-as13
-rw-r--r--inputmethod/sj3-lib/patches/patch-at13
-rw-r--r--inputmethod/sj3-lib/patches/patch-au12
-rw-r--r--inputmethod/sj3-lib/patches/patch-av21
-rw-r--r--inputmethod/sj3-lib/patches/patch-aw21
-rw-r--r--inputmethod/sj3-lib/patches/patch-ax12
-rw-r--r--inputmethod/sj3-lib/patches/patch-ay21
-rw-r--r--inputmethod/sj3-lib/patches/patch-az15
-rw-r--r--inputmethod/sj3-lib/patches/patch-ba22
-rw-r--r--inputmethod/sj3-lib/patches/patch-bb13
-rw-r--r--inputmethod/sj3-lib/patches/patch-bc13
-rw-r--r--inputmethod/sj3-lib/patches/patch-bd13
-rw-r--r--inputmethod/sj3-lib/patches/patch-be13
35 files changed, 0 insertions, 889 deletions
diff --git a/inputmethod/sj3-lib/DESCR b/inputmethod/sj3-lib/DESCR
deleted file mode 100644
index 93fcb26c55a..00000000000
--- a/inputmethod/sj3-lib/DESCR
+++ /dev/null
@@ -1,6 +0,0 @@
-SJ3 is a Japanese input method developed by Sony Corporation. SJ3 is
-composed of a Kana-Kanji conversion server (sj3serv), a Kana-Kanji
-conversion client for terminals (sj3) and Kana-Kanji conversion library
-(sj3lib).
-
-This package contains the Kana-Kanji conversion library (sj3lib).
diff --git a/inputmethod/sj3-lib/Makefile b/inputmethod/sj3-lib/Makefile
deleted file mode 100644
index b63e74e2a52..00000000000
--- a/inputmethod/sj3-lib/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-# $NetBSD: Makefile,v 1.12 2010/01/09 11:37:10 obache Exp $
-
-DISTNAME= sj3-2.0.1.20
-PKGNAME= sj3-lib-2.0.1.20
-PKGREVISION= 3
-CATEGORIES= japanese inputmethod
-MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \
- ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/
-
-MAINTAINER= tech-pkg-ja@jp.NetBSD.org
-COMMENT= SJ3 Japanese input method library
-
-PKG_DESTDIR_SUPPORT= destdir
-
-USE_TOOLS+= itools
-USE_IMAKE= yes
-MAKE_ENV+= IMDICTDIR=${IMDICTDIR:Q}
-
-pre-configure:
- @${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
- @${SED} -e 's|\(SUBDIRS = \).*\(sj3lib\).*|\1\2|' \
- ${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
-
-.include "../../mk/bsd.pkg.mk"
diff --git a/inputmethod/sj3-lib/PLIST b/inputmethod/sj3-lib/PLIST
deleted file mode 100644
index 7eba911f0b8..00000000000
--- a/inputmethod/sj3-lib/PLIST
+++ /dev/null
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST,v 1.3 2002/08/25 19:23:00 jlam Exp $
-include/sj3lib.h
-lib/libsj3lib.a
diff --git a/inputmethod/sj3-lib/buildlink3.mk b/inputmethod/sj3-lib/buildlink3.mk
deleted file mode 100644
index 74b8f604442..00000000000
--- a/inputmethod/sj3-lib/buildlink3.mk
+++ /dev/null
@@ -1,13 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.9 2009/03/20 19:24:47 joerg Exp $
-
-BUILDLINK_TREE+= sj3-lib
-
-.if !defined(SJ3_LIB_BUILDLINK3_MK)
-SJ3_LIB_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.sj3-lib+= sj3-lib>=2.0.1.20nb1
-BUILDLINK_PKGSRCDIR.sj3-lib?= ../../inputmethod/sj3-lib
-BUILDLINK_DEPMETHOD.sj3-lib?= build
-.endif # SJ3_LIB_BUILDLINK3_MK
-
-BUILDLINK_TREE+= -sj3-lib
diff --git a/inputmethod/sj3-lib/distinfo b/inputmethod/sj3-lib/distinfo
deleted file mode 100644
index e6b68f1bf22..00000000000
--- a/inputmethod/sj3-lib/distinfo
+++ /dev/null
@@ -1,35 +0,0 @@
-$NetBSD: distinfo,v 1.9 2009/10/06 17:41:49 joerg Exp $
-
-SHA1 (sj3-2.0.1.20.tar.gz) = b1cae59065ebc9caf5e198143ceb9558c932f259
-RMD160 (sj3-2.0.1.20.tar.gz) = b25f2c585485516fddf3b9168e4cb8552cd26f71
-Size (sj3-2.0.1.20.tar.gz) = 584065 bytes
-SHA1 (patch-aa) = b818996516360d1cdbef193eed5eb93fb488ef89
-SHA1 (patch-ab) = a64f78ccb3db3f4349f191abe47c6daebb2bbadd
-SHA1 (patch-ac) = a2a9c21618e7de1e56d371cb05cf866d549d50a1
-SHA1 (patch-ad) = 6f45996f04f894e28f2dd5d1276c31b3c6a7b12a
-SHA1 (patch-ae) = 3b07eb2ea9d72049a8f322220836a631598ea7dc
-SHA1 (patch-af) = 33ac72303dfa13929d423ecaf5d9b7cb308f8ff5
-SHA1 (patch-ag) = 14744940b736cee683a59a25a2bda0a2ce85d319
-SHA1 (patch-ah) = 77dd83b13facb0c99fc50ebb883591b590a2cab1
-SHA1 (patch-ai) = c29e6770c8679baa7401e20a7a0e2655382bcd7a
-SHA1 (patch-aj) = a8055ef4e06f70b344f5eadf1c2f0042e22781db
-SHA1 (patch-ak) = 3aab5f0e57212414e0ec2b5a71dd3583a1379e5c
-SHA1 (patch-al) = 330b4580fccb0cb70541376620916dc32662e378
-SHA1 (patch-am) = dd5f2b962b64969c05e3fc020ceae8bfa6e8e220
-SHA1 (patch-ao) = d260a370cafc1943f6063de8e3f6be444e3d18bc
-SHA1 (patch-ap) = a2c619a2f2fe040ba0a3b570ce34b8f72512c970
-SHA1 (patch-aq) = d24e22974b088c02bfdca75cf97d0e8d7a8d8992
-SHA1 (patch-ar) = 3cdbb095338b2052398bbc5c7cd69cd50cd46d31
-SHA1 (patch-as) = fbe7d015904f38ada14ec9ae5cc8332f725bbeac
-SHA1 (patch-at) = a00e1505af56f7b566232338ef910f899b401ac7
-SHA1 (patch-au) = 57ac169871ef5f38fb4d1fd4387fc4197419b7c6
-SHA1 (patch-av) = 6e2569b3240d09bfd57b2dcde8611e5b9ed9bf14
-SHA1 (patch-aw) = 078fa620e5fe099441dbc6fcba36a0441cc222ca
-SHA1 (patch-ax) = 3ea04cd507909c6dd6b0163230dd03b8c21fbced
-SHA1 (patch-ay) = ec24897bab84adda7873995f708eb70e1a6f03a7
-SHA1 (patch-az) = b8cbe3decf83c3b1dca10dfc674988423f3cd998
-SHA1 (patch-ba) = 773d37a4125ecf0c76aaef679a5b944a034bf4c9
-SHA1 (patch-bb) = c75a239de17f67647e3e87ff87b5f371f9614566
-SHA1 (patch-bc) = ccdacbab35ab001f57010af9fc3071eb4c42348f
-SHA1 (patch-bd) = f29a875734c17c7e6d4b51db081b58af1baf4d04
-SHA1 (patch-be) = e59571ea5d7036900f48a8df75a79de77f9a5594
diff --git a/inputmethod/sj3-lib/patches/patch-aa b/inputmethod/sj3-lib/patches/patch-aa
deleted file mode 100644
index 8a1475ef698..00000000000
--- a/inputmethod/sj3-lib/patches/patch-aa
+++ /dev/null
@@ -1,65 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2005/12/02 22:57:32 joerg Exp $
-
---- sj3/sj3.c.orig 2005-12-02 22:27:01.000000000 +0000
-+++ sj3/sj3.c
-@@ -38,14 +38,12 @@
- #include "sj_sysvdef.h"
- #include "wchar16.h"
- #include <signal.h>
--#include <sys/errno.h>
--#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
--#if defined(__NetBSD__) || defined(__bsdi__)
-+#include <errno.h>
-+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
- #define USE_OLD_TTY
- #if defined(__NetBSD__)
- #define LACKOF_SETLOCALE
- #endif
--#endif
- #include <curses.h>
- #endif
-
-@@ -473,7 +471,7 @@ getmaster ()
- * Because FreeBSD's master pseudo-devices are pty[p-sP-S][0-9a-v].
- * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
- */
--#if defined(__FreeBSD__)
-+#if defined(__FreeBSD__) || defined(__DragonFly__)
- struct stat stb;
- int h, i, j, k1, k2;
- #else /* !__FreeBSD__ */
-@@ -492,7 +490,7 @@ getmaster ()
- * Because FreeBSD's master pseudo-devices are pty[p-sP-S][0-9a-v].
- * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
- */
--#if defined(__FreeBSD__)
-+#if defined(__FreeBSD__) || defined(__DragonFly__)
- for (h = 0; h < 8; h++) {
- line[k1] = "pqrsPQRS"[h];
- line[k2] = '0';
-@@ -852,7 +850,7 @@ shellprocess ()
- SCPYN(Utmp.ut_line, strrchr (slave_name, '/') + 1);
- time (&Utmp.ut_time);
-
--#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
-+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
- if (setsid() < 0)
- perror("setsid()");
- #else
-@@ -937,7 +935,7 @@ getslave ()
- done2 ();
- }
- #ifndef SYSV_TERMIOS
--#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
-+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
- ioctl(slave, TIOCSCTTY, NULL);
- #endif
- ioctl (slave, TIOCSETP, (char *)&b);
-@@ -1085,7 +1083,6 @@ suspend ()
- SELECT_FD ifds;
- int nc;
- struct timeval t;
-- extern int errno;
-
- clear_guide_line ();
-
diff --git a/inputmethod/sj3-lib/patches/patch-ab b/inputmethod/sj3-lib/patches/patch-ab
deleted file mode 100644
index 6c976890d62..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ab
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2002/08/25 19:23:01 jlam Exp $
-
---- include/Const.h.orig Thu Jan 23 12:20:52 1997
-+++ include/Const.h Wed Dec 8 10:33:54 1999
-@@ -70,7 +70,15 @@
- #define ProtoName "tcp"
- #define PortNumber "3000"
- #else
-+/*
-+ * Change the default Port number of sj3 for FreeBSD.
-+ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/20
-+ */
-+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
-+#define PortNumber 3086
-+#else /* ! __FreeBSD__ __NetBSD__ __OpenBSD__ */
- #define PortNumber 3000
-+#endif /* ! __FreeBSD__ __NetBSD__ __OpenBSD__ */
- #endif
- #define DirectryMode 0755
- #define DictFileMode 0644
diff --git a/inputmethod/sj3-lib/patches/patch-ac b/inputmethod/sj3-lib/patches/patch-ac
deleted file mode 100644
index 3357d7d607c..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.3 2002/08/25 19:23:01 jlam Exp $
-
---- dict/dict/Imakefile.~1~ Thu Jan 23 20:20:51 1997
-+++ dict/dict/Imakefile Tue Aug 18 10:51:14 1998
-@@ -48,7 +48,7 @@
-
- XCOMM INSTFLAGS = -o $(SJ3OWNER) -g $(SJ3GROUP) -m 444
-
--all: $(OBJS)
-+all:: $(OBJS)
-
- $(OBJS): $(SRCS)
- $(TOOL_DIR)/$(TOOL_NAME) $(SRCS) $(OBJS) > $(OUTPUT)
diff --git a/inputmethod/sj3-lib/patches/patch-ad b/inputmethod/sj3-lib/patches/patch-ad
deleted file mode 100644
index 4f0bef831da..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ad
+++ /dev/null
@@ -1,39 +0,0 @@
-$NetBSD: patch-ad,v 1.3 2002/08/25 19:23:01 jlam Exp $
-
---- sj3.tmpl.orig Thu Jan 23 20:20:58 1997
-+++ sj3.tmpl Fri Jul 30 20:27:08 1999
-@@ -32,12 +32,12 @@
- * $SonyDate: 1997/01/23 11:20:57 $
- */
-
--SJ3TOP = /usr/local
-+SJ3TOP = $(PREFIX)
- SJ3BINDIR = $(SJ3TOP)/bin
- SJ3HDRDIR = $(SJ3TOP)/include
- SJ3LIBDIR = $(SJ3TOP)/lib
--SJ3CONFDIR = $(SJ3TOP)/lib/sj3
--SJ3DICTDIR = $(SJ3CONFDIR)/dict
-+SJ3CONFDIR = $(SJ3TOP)/share/sj3
-+SJ3DICTDIR = $(IMDICTDIR)/sj3
-
- /*
- * Change for FreeBSD.
-@@ -45,10 +45,11 @@
- * return NULL, use it in library libxpg4
- * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
- */
-+#if 0
- #if defined(FreeBSDArchitecture)
-
- CODE_LIBS = -lxpg4
--SJ3OWNER = root
-+SJ3OWNER = bin
- SJ3GROUP = bin
-
- #else
-@@ -61,4 +62,5 @@
- SJ3GROUP = staff
- #endif
-
-+#endif
- #endif
diff --git a/inputmethod/sj3-lib/patches/patch-ae b/inputmethod/sj3-lib/patches/patch-ae
deleted file mode 100644
index 4ab7f251130..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ae
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-ae,v 1.3 2002/08/25 19:23:01 jlam Exp $
-
---- include/Paths.h.in.orig Thu Jan 23 20:20:57 1997
-+++ include/Paths.h.in Tue Aug 18 11:29:00 1998
-@@ -33,7 +33,22 @@
- * $SonyDate: 1997/01/23 11:20:55 $
- */
-
--#define ErrorOutFile "/dev/console"
-+/*
-+ * Change ErrotOutFile variable.
-+ * Because suppress a error when sj3serv start up, change to "/dev/stderr".
-+ * This error is "Cannot Open "/dev/console".".
-+ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
-+ *
-+ * Change ErrotOutFile variable.
-+ * This default value is "/dev/null" in document.
-+ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/11
-+ */
-+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
-+#define ErrorOutFile "/dev/console"
-+#else
-+/* #define ErrorOutFile "/dev/stderr" */ /* for test */
-+#define ErrorOutFile "/dev/null"
-+#endif
-
- #define SocketName "/tmp/sj3sock"
- #define LockFile "/tmp/SJ3SERV.EXIST"
diff --git a/inputmethod/sj3-lib/patches/patch-af b/inputmethod/sj3-lib/patches/patch-af
deleted file mode 100644
index d7fa53c12da..00000000000
--- a/inputmethod/sj3-lib/patches/patch-af
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-af,v 1.3 2002/08/25 19:23:01 jlam Exp $
-
---- server/main.c.orig Mon Mar 23 19:48:03 1998
-+++ server/main.c Mon Aug 2 19:26:45 1999
-@@ -215,9 +215,11 @@
- (void) setlocale(LC_CTYPE, "ja_JP.EUC");
- #endif
- opening();
-+#ifndef __NetBSD__
- if (setuid(geteuid())) {
- fprintf(stderr, "error at setuid.\r\n"); exit(1);
- }
-+#endif
-
- parse_arg(argc, argv);
- read_runcmd();
diff --git a/inputmethod/sj3-lib/patches/patch-ag b/inputmethod/sj3-lib/patches/patch-ag
deleted file mode 100644
index ecb090f0273..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ag
+++ /dev/null
@@ -1,130 +0,0 @@
-$NetBSD: patch-ag,v 1.5 2005/09/28 18:22:11 rillig Exp $
-
-- Don't abuse an int as a pointer (optarg).
-- Consistently provide lowercase and MixedCase options.
-
---- server/setup.c.orig Mon Mar 23 11:48:02 1998
-+++ server/setup.c Wed Sep 28 20:06:34 2005
-@@ -139,10 +139,13 @@ u_char *src, *dst;
-
-
-
--static u_char *get_str(p, dst)
-+static u_char *get_str(p, pv_dst)
- u_char *p;
--char **dst;
-+void *pv_dst;
- {
-+ char **dst;
-+
-+ dst = pv_dst;
- if (!*dst) {
- *dst = malloc(strlen((char *)p) + 1);
- if (!*dst) RcError("no more memory");
-@@ -151,21 +154,26 @@ char **dst;
- while (*p++) ;
- return p;
- }
--static u_char *get_int(p, dst)
-+static u_char *get_int(p, pv_dst)
- u_char *p;
--int *dst;
-+void *pv_dst;
- {
- register char *fmt;
-+ int *dst;
-
-+ dst = pv_dst;
- fmt = (*p == '0') ? "%o" : "%d";
- if (sscanf((char *)p, fmt, dst) != 1) RcError("bad integer");
- while (*p++) ;
- return p;
- }
--static u_char *get_flag(p, dst)
-+static u_char *get_flag(p, pv_dst)
- u_char *p;
--int *dst;
-+void *pv_dst;
- {
-+ int *dst;
-+
-+ dst = pv_dst;
- if (sscanf((char *)p, "%d", dst) == 1)
- ;
- else if (!cmpstr("on", p))
-@@ -219,33 +227,56 @@ StrList **dst;
- struct optlist {
- char *optname;
- u_char *(*optfunc)();
-- int optarg;
-+ void *optarg;
- } option[] = {
-- "DebugOut", get_str, (int)&debug_file,
-- "DebugLevel", get_int, (int)&debug_level,
-- "ForkFlag", get_flag, (int)&fork_flag,
-+/*
-+ * Add option flag.
-+ * Because They are lacked in here. See document.
-+ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
-+ */
-+ "DebugOut", get_str, &debug_file,
-+ "debugout", get_str, &debug_file,
-+ "DebugLevel", get_int, &debug_level,
-+ "debuglevel", get_int, &debug_level,
-+ "ForkFlag", get_flag, &fork_flag,
-+ "forkflag", get_flag, &fork_flag,
-
-- "PortName", get_str, (int)&port_name,
-+ "PortName", get_str, &port_name,
-+ "portname", get_str, &port_name,
- #ifdef TLI
-- "PortNumber", get_str, (int)&port_number,
-- "ProtoName", get_str, (int)&proto_name,
-+ "PortNumber", get_str, &port_number,
-+ "portnumber", get_str, &port_number,
-+ "ProtoName", get_str, &proto_name,
-+ "protoname", get_str, &proto_name,
- #else
-- "PortNumber", get_int, (int)&port_number,
-+ "PortNumber", get_int, &port_number,
-+ "portnumber", get_int, &port_number,
- #endif
-- "SocketName", get_str, (int)&socket_name,
-+ "SocketName", get_str, &socket_name,
-+ "socketname", get_str, &socket_name,
- #ifdef LOCK_FILE
-- "LockFile", get_str, (int)&lock_file;
-+ "LockFile", get_str, &lock_file;
-+ "lockfile", get_str, &lock_file;
- #endif
-
-- "maxclient", get_int, (int)&max_client,
-- "dictdir", get_str, (int)&dict_dir,
-- "readdict", get_list, (int)&read_dict,
-- "opendict", get_list, (int)&open_dict,
-- "errorout", get_str, (int)&error_file,
-- "logout", get_str, (int)&log_file,
-- "dirmode", get_int, (int)&dir_mode,
-- "filemode", get_int, (int)&file_mode,
-- "allowuser", get_list, (int)&allow_user,
-+ "MaxClient", get_int, &max_client,
-+ "maxclient", get_int, &max_client,
-+ "DictDir", get_str, &dict_dir,
-+ "dictdir", get_str, &dict_dir,
-+ "ReadDict", get_list, &read_dict,
-+ "readdict", get_list, &read_dict,
-+ "OpenDict", get_list, &open_dict,
-+ "opendict", get_list, &open_dict,
-+ "ErrorOut", get_str, &error_file,
-+ "errorout", get_str, &error_file,
-+ "LogOut", get_str, &log_file,
-+ "logout", get_str, &log_file,
-+ "DirMode", get_int, &dir_mode,
-+ "dirmode", get_int, &dir_mode,
-+ "FileMode", get_int, &file_mode,
-+ "filemode", get_int, &file_mode,
-+ "AllowUser", get_list, &allow_user,
-+ "allowuser", get_list, &allow_user,
- 0, 0, 0
- };
-
diff --git a/inputmethod/sj3-lib/patches/patch-ah b/inputmethod/sj3-lib/patches/patch-ah
deleted file mode 100644
index f515c0aa2fa..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ah
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ah,v 1.1 2005/09/28 17:32:17 rillig Exp $
-
---- doc/doc/sj3serv.ms.orig Fri Jun 3 10:00:50 1994
-+++ doc/doc/sj3serv.ms Wed Sep 28 19:19:34 2005
-@@ -111,7 +111,7 @@ DictDir \fIdirectory_name\fP
- ¤½¤Î¥Õ¥¡¥¤¥ë̾¤òÀäÂХѥ¹¤È¤·¤Æ¼­½ñ¤Ë¥¢¥¯¥»¥¹¤·¤Þ¤¹¤¬¡¢\'/\'°Ê³°¤Î¤È¤­¤Ë¤Ï¡¢
- ¤³¤³¤Ç»ØÄꤵ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹¤È¤·¤Æ¼­½ñ¤Ë¥¢¥¯¥»¥¹¤·¤Þ¤¹¡£
- .br
--¥Ç¥Õ¥©¥ë¥È¤Ï /usr/dict/sj3 ¤Ç¤¹¡£
-+¥Ç¥Õ¥©¥ë¥È¤Ï /usr/local/lib/sj3/dict ¤Ç¤¹¡£
- .RE
- .sp
- .NH 3
diff --git a/inputmethod/sj3-lib/patches/patch-ai b/inputmethod/sj3-lib/patches/patch-ai
deleted file mode 100644
index 6f5be9bf2ce..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ai
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-ai,v 1.1 2005/09/28 17:32:17 rillig Exp $
-
---- doc/man/sj3.1.orig Fri Jun 3 10:00:51 1994
-+++ doc/man/sj3.1 Wed Sep 28 19:19:34 2005
-@@ -109,13 +109,13 @@ sj3 \- ÆüËܸìÆþÎÏ¥Õ¥í¥ó¥È¥¨¥ó¥É¥×¥í¥»¥Ã¥
- .SH ´ØÏ¢¥Õ¥¡¥¤¥ë
- .PD 0
- .TP 15
--/usr/dict/sj3/user/$USER/private.dic
-+/usr/local/lib/sj3/dict/user/$USER/private.dic
- ²¾Ì¾´Á»úÊÑ´¹¥æ¡¼¥¶¼­½ñ
- .TP
--/usr/dict/sj3/user/$USER/study.dat
-+/usr/local/lib/sj3/dict/user/$USER/study.dat
- ²¾Ì¾´Á»úÊÑ´¹³Ø½¬¥Õ¥¡¥¤¥ë
- .TP
--/usr/lib/sj3/sjrk
-+/usr/local/lib/sj3/sjrk
- ¥Ç¥Õ¥©¥ë¥È¥í¡¼¥Þ»ú²¾Ì¾ÊÑ´¹µ¬Â§ÄêµÁ¥Õ¥¡¥¤¥ë
- .SH ´ØÏ¢»ö¹à
- sj3serv(1), sj3lib(3)
diff --git a/inputmethod/sj3-lib/patches/patch-aj b/inputmethod/sj3-lib/patches/patch-aj
deleted file mode 100644
index 5f9a335a30c..00000000000
--- a/inputmethod/sj3-lib/patches/patch-aj
+++ /dev/null
@@ -1,38 +0,0 @@
-$NetBSD: patch-aj,v 1.1 2005/09/28 17:32:17 rillig Exp $
-
---- doc/man/sj3dic.1.orig Fri Jun 3 10:00:52 1994
-+++ doc/man/sj3dic.1 Wed Sep 28 19:19:35 2005
-@@ -105,16 +105,16 @@ sj3dic \- sj3 ¥æ¡¼¥¶¼­½ñ¥á¥ó¥Æ¥Ê¥ó¥¹¥Ä¡¼
- .SH ´ØÏ¢¥Õ¥¡¥¤¥ë
- .PD 0
- .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
--/usr/bin/sj3serv
-+/usr/local/bin/sj3serv
- ¤«¤Ê´Á»úÊÑ´¹¥µ¡¼¥Ð
- .TP
--/usr/lib/sj3/serverrc
-+/usr/local/lib/sj3/serverrc
- ¤«¤Ê´Á»úÊÑ´¹¥µ¡¼¥Ð ¥»¥Ã¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë
- .TP
--/usr/bin/sj3
-+/usr/local/bin/sj3
- ÆüËܸìÆþÎÏ¥Õ¥í¥ó¥È¥¨¥ó¥É¥×¥í¥»¥Ã¥µ
- .TP
--/usr/dict/sj3/
-+/usr/local/lib/sj3/dict/
- ¤«¤Ê´Á»úÊÑ´¹¥µ¡¼¥Ð ¥Ç¥Õ¥©¥ë¥È¼­½ñ¥Ç¥£¥ì¥¯¥È¥ê
- .TP
- sj3main.dic
-@@ -126,10 +126,10 @@ sj3dic \- sj3 ¥æ¡¼¥¶¼­½ñ¥á¥ó¥Æ¥Ê¥ó¥¹¥Ä¡¼
- user/\fIusername\fP/study.dat
- ¤«¤Ê´Á»úÊÑ´¹³Ø½¬¥Õ¥¡¥¤¥ë
- .TP
--/usr/include/sj3lib.h
-+/usr/local/include/sj3lib.h
- ¤«¤Ê´Á»úÊÑ´¹¥é¥¤¥Ö¥é¥êÍÑ¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë
- .TP
--/usr/lib/libsj3lib.a
-+/usr/local/lib/libsj3lib.a
- ¤«¤Ê´Á»úÊÑ´¹¥é¥¤¥Ö¥é¥ê
- .\".TP
- .\"/usr/sony/demo/sj3/*
diff --git a/inputmethod/sj3-lib/patches/patch-ak b/inputmethod/sj3-lib/patches/patch-ak
deleted file mode 100644
index bf8b6a4fe5d..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ak
+++ /dev/null
@@ -1,45 +0,0 @@
-$NetBSD: patch-ak,v 1.1 2005/09/28 17:32:17 rillig Exp $
-
---- doc/man/sj3mkdic.1.orig Thu Sep 5 14:08:27 1996
-+++ doc/man/sj3mkdic.1 Wed Sep 28 19:19:35 2005
-@@ -539,16 +539,16 @@
- .SH ¥Õ¥¡¥¤¥ë
- .PD 0
- .TP \w'\ \ \ \ user/\f2username\f1/private.dic'u+2n
--.B /usr/bin/sj3serv
-+.B /usr/local/bin/sj3serv
- ¤«¤Ê´Á»úÊÑ´¹¥µ¡¼¥Ð
- .TP
--.B /usr/lib/sj3/serverrc
-+.B /usr/local/lib/sj3/serverrc
- ¤«¤Ê´Á»úÊÑ´¹¥µ¡¼¥Ð ¥»¥Ã¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë
- .TP
--.B /usr/bin/sj3
-+.B /usr/local/bin/sj3
- ÆüËܸìÆþÎÏ¥Õ¥í¥ó¥È¥¨¥ó¥É¥×¥í¥»¥Ã¥µ
- .TP
--.B /usr/dict/sj3/
-+.B /usr/local/lib/sj3/dict/
- ¤«¤Ê´Á»úÊÑ´¹¥µ¡¼¥Ð ¥Ç¥Õ¥©¥ë¥È¼­½ñ¥Ç¥£¥ì¥¯¥È¥ê
- .TP
- .B " sj3main.dic
-@@ -560,14 +560,14 @@
- .B " user/\f2username\f1/study.dat
- ¤«¤Ê´Á»úÊÑ´¹³Ø½¬¥Õ¥¡¥¤¥ë
- .TP
--.B /usr/include/sj3lib.h
-+.B /usr/local/include/sj3lib.h
- ¤«¤Ê´Á»úÊÑ´¹¥é¥¤¥Ö¥é¥êÍÑ¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë
- .TP
--.B /usr/lib/libsj3lib.a
-+.B /usr/local/lib/libsj3lib.a
- ¤«¤Ê´Á»úÊÑ´¹¥é¥¤¥Ö¥é¥ê
--.TP
--\f3/usr/demo/sj3/ *\f1
--¤«¤Ê´Á»úÊÑ´¹¥é¥¤¥Ö¥é¥ê »ÈÍÑË¡¥µ¥ó¥×¥ë
-+.\".TP
-+.\"\f3/usr/local/demo/sj3/ *\f1
-+.\"¤«¤Ê´Á»úÊÑ´¹¥é¥¤¥Ö¥é¥ê »ÈÍÑË¡¥µ¥ó¥×¥ë
- .PD
- .SH ´ØÏ¢¹àÌÜ
- \f4sj3\f1 (1),
diff --git a/inputmethod/sj3-lib/patches/patch-al b/inputmethod/sj3-lib/patches/patch-al
deleted file mode 100644
index a2a9fc9e45d..00000000000
--- a/inputmethod/sj3-lib/patches/patch-al
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-al,v 1.1 2005/09/28 17:32:17 rillig Exp $
-
---- doc/man/sj3serv.1.orig Fri Jun 3 10:00:53 1994
-+++ doc/man/sj3serv.1 Wed Sep 28 19:19:35 2005
-@@ -47,17 +47,17 @@ sj3serv \- ²¾Ì¾´Á»úÊÑ´¹¥µ¡¼¥Ð
- ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢\fIsj3serv\fP ¤ÎÆɤ߹þ¤à¥»¥Ã¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤Þ¤¹¡£
- .br
- \fIsj3serv\fP ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥»¥Ã¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë
--¡Æ/usr/lib/sj3/serverrc¡Ç¤òÆɤ߹þ¤ß¤Þ¤¹¤¬¡¢
-+¡Æ/usr/local/lib/sj3/serverrc¡Ç¤òÆɤ߹þ¤ß¤Þ¤¹¤¬¡¢
- ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤¿¤È¤­¤Ë¤Ï¤«¤ï¤ê¤Ë
- ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤵ¤ì¤¿¥»¥Ã¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤ß¤Þ¤¹¡£
- .br
- .SH ´ØÏ¢¥Õ¥¡¥¤¥ë
- .PD 0
- .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
--/usr/lib/sj3/serverrc
-+/usr/local/lib/sj3/serverrc
- ¥Ç¥Õ¥©¥ë¥È²¾Ì¾ÊÑ´¹¥µ¡¼¥Ð ¥»¥Ã¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë
- .TP
--/usr/sony/dict/sj3/
-+/usr/local/lib/sj3/dict/
- ¤«¤Ê´Á»úÊÑ´¹¥µ¡¼¥Ð ¥Ç¥Õ¥©¥ë¥È¼­½ñ¥Ç¥£¥ì¥¯¥È¥ê
- .TP
- sj3main.dic
diff --git a/inputmethod/sj3-lib/patches/patch-am b/inputmethod/sj3-lib/patches/patch-am
deleted file mode 100644
index 2fab6c3522f..00000000000
--- a/inputmethod/sj3-lib/patches/patch-am
+++ /dev/null
@@ -1,76 +0,0 @@
-$NetBSD: patch-am,v 1.1 2005/09/28 17:32:17 rillig Exp $
-
---- doc/doc/sj3lib.ms.orig Fri Jun 3 10:00:49 1994
-+++ doc/doc/sj3lib.ms Wed Sep 28 19:19:34 2005
-@@ -56,7 +56,7 @@ JIS ¤ò»ÈÍѤ·¤Þ¤¹¡£
- .IP ¡¦
- ¥á¥¤¥ó¼­½ñ¡¢¥æ¡¼¥¶¼­½ñ¡¢³Ø½¬¥Õ¥¡¥¤¥ë¤Ï¡¢Àܳ¤¹¤ë¥µ¡¼¥Ð¤ÎÆ°ºî¤·¤Æ¤¤¤ë¥Þ¥·¥ó¾å¤Î¤â¤Î¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£
- .br
--¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥Ç¥£¥ì¥¯¥È¥ê \fB/usr/dict/sj3\fP ¤Î²¼¤Ë¤ª¤«¤ì¤Þ¤¹¤¬¡¢¥µ¡¼¥Ð¤Î¥»¥Ã¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤Ë¤è¤êÊѹ¹¤¬²Äǽ¤Ç¤¹¡£
-+¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥Ç¥£¥ì¥¯¥È¥ê \fB/usr/local/lib/sj3/dict\fP ¤Î²¼¤Ë¤ª¤«¤ì¤Þ¤¹¤¬¡¢¥µ¡¼¥Ð¤Î¥»¥Ã¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤Ë¤è¤êÊѹ¹¤¬²Äǽ¤Ç¤¹¡£
- .IP ¡¦
- ¥æ¡¼¥¶¼­½ñ¤È³Ø½¬¥Õ¥¡¥¤¥ë¤Ï¡¢´Ø¿ô sj3_open ¤Ç»ØÄꤵ¤ì¤¿¥æ¡¼¥¶Ì¾¤ò USER ¤È
- ¤¹¤ì¤Ð¡¢\fBuser/USER/private.dic\fP ¤È \fBuser/USER/study.dat\fP ¤Ç¤¹¡£
-@@ -91,7 +91,7 @@ char *uname; /* ¥æ¡¼¥¶Ì¾¤Ø¤Î¥Ý¥¤¥ó¥¿ */
- ¥µ¡¼¥Ð¤ÈÀµ¾ï¤ËÀܳ¤Ç¤­¤¿¤È¤­¤Ë¤Ï 0 ¤ò¡¢²¿¤«¥¨¥é¡¼¤Î¤¢¤Ã¤¿¤È¤­¤Ë¤Ï 0 °Ê³°¤Î
- ¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤·¤Þ¤¹¡£
- .sp
--¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/include/sj3lib.h\fP ¤Ç
-+¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/local/include/sj3lib.h\fP ¤Ç
- ÄêµÁ¤µ¤ì¤ë¥Ó¥Ã¥È¥¢¥µ¥¤¥ó¤µ¤ì¤¿Ãͤǡ¢¾ÜºÙ¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£
- .sp
- .IP "\fBSJ3_SERVER_DEAD\fP
-@@ -138,7 +138,7 @@ sj3_close()
- ¥µ¡¼¥Ð¤È¤Î»ÈÍѤòÀµ¾ï¤Ë½ªÎ»¤Ç¤­¤¿¤È¤­¤Ë¤Ï 0 ¤ò¡¢
- ²¿¤«¥¨¥é¡¼¤Î¤¢¤Ã¤¿¤È¤­¤Ë¤Ï 0 °Ê³°¤Î¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤·¤Þ¤¹¡£
- .sp
--¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/include/sj3lib.h\fP ¤Ç
-+¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/local/include/sj3lib.h\fP ¤Ç
- ÄêµÁ¤µ¤ì¤ë¥Ó¥Ã¥È¥¢¥µ¥¤¥ó¤µ¤ì¤¿Ãͤǡ¢¾ÜºÙ¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£
- .sp
- .IP "\fBSJ3_SERVER_DEAD\fP
-@@ -187,7 +187,7 @@ int knjsiz; /* ´Á»úʸ»úÎó³ÊǼÎΰè¤ÎÂç¤
- ÊÑ´¹·ë²Ì¤Î´Á»úʸ»úÎó¤ò¡¢ÇÛÎó \fBstruct bunsetu bun[]\fP ¤Ë
- ³ÆʸÀá¤Ë´Ø¤¹¤ë¾ðÊó¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£
- .br
--\fBstruct bunsetu\fP ¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/include/sj3lib.h\fP ¤Ç
-+\fBstruct bunsetu\fP ¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/local/include/sj3lib.h\fP ¤Ç
- Àë¸À¤µ¤ì¤Æ¤¤¤ë°Ê²¼¤Î¤è¤¦¤Ê¹½Â¤ÂΤǤ¹¡£
- .sp
- .RS
-@@ -417,7 +417,7 @@ int hinsi; /* Éʻ쥳¡¼¥É *
- ¤Ê¤ê¤Þ¤»¤ó¡£
- ¤Þ¤¿¤½¤ÎŤµ¤Ï¡¢ºÇÂç¤Ç¤â 32 ʸ»ú¤ò±Û¤¨¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£
- .sp
--Éʻ쥳¡¼¥É¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/include/sj3lib.h\fP ¤Ç
-+Éʻ쥳¡¼¥É¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/local/include/sj3lib.h\fP ¤Ç
- ÄêµÁ¤µ¤ì¤ë°Ê²¼¤ÎÉÊ»ì¤Î¤¦¤Á¤Î°ì¤Ä¤Ç¤¹¡£
- .sp
- .RS
-@@ -445,7 +445,7 @@ SJ3_H_ADJECT ·ÁÍÆ»ì SJ3_H_SI
- ÅÐÏ¿¤Ç¤­¤¿¤È¤­¤Ë¤Ï 0 ¤¬¡¢ÅÐÏ¿¤Ç¤­¤Ê¤«¤Ã¤¿¤È¤­¤Ë¤Ï¤½¤ì°Ê³°¤Î
- ¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
- .sp
--¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/include/sj3lib.h\fP ¤Ç
-+¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë \fB/usr/local/include/sj3lib.h\fP ¤Ç
- ÄêµÁ¤µ¤ì¡¢¾ÜºÙ¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£
- .sp
- .IP "\fBSJ3_DICT_ERROR\fP
-@@ -519,7 +519,7 @@ int hinsi; /* Éʻ쥳¡¼¥É */
- ¤Ê¤ê¤Þ¤»¤ó¡£
- ¤Þ¤¿¤½¤ÎŤµ¤Ï¡¢ºÇÂç¤Ç¤â 32 ʸ»ú¤ò±Û¤¨¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£
- .sp
--Éʻ쥳¡¼¥É¤Ï \fB/usr/include/sj3lib.h\fP ¤ÇÄêµÁ¤µ¤ì¤ë°Ê²¼¤ÎÉÊ»ì¤Î
-+Éʻ쥳¡¼¥É¤Ï \fB/usr/local/include/sj3lib.h\fP ¤ÇÄêµÁ¤µ¤ì¤ë°Ê²¼¤ÎÉÊ»ì¤Î
- ¤¦¤Á¤Î°ì¤Ä¤Ç¤¹¡£
- .sp
- .RS
-@@ -547,7 +547,7 @@ SJ3_H_ADJECT ·ÁÍÆ»ì SJ3_H_SI
- ºï½ü¤Ç¤­¤¿¤È¤­¤Ë¤Ï 0 ¤¬¡¢ºï½ü¤Ç¤­¤Ê¤«¤Ã¤¿¤È¤­¤Ë¤Ï¤½¤ì°Ê³°¤Î
- ¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
- .sp
--¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤Ï \fB/usr/include/sj3lib.h\fP ¤ÇÄêµÁ¤µ¤ì¡¢
-+¥¨¥é¡¼¥¹¥Æ¡¼¥¿¥¹¤Ï \fB/usr/local/include/sj3lib.h\fP ¤ÇÄêµÁ¤µ¤ì¡¢
- ¾ÜºÙ¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£
- .sp
- .IP "\fBSJ3_DICT_ERROR\fP
diff --git a/inputmethod/sj3-lib/patches/patch-ao b/inputmethod/sj3-lib/patches/patch-ao
deleted file mode 100644
index 618ac285144..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ao
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ao,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- sj3lib/level1.c.orig 2005-12-02 22:29:21.000000000 +0000
-+++ sj3lib/level1.c
-@@ -303,7 +303,7 @@ static open_unix()
- }
-
- len = strlen(sunix.sun_path)+sizeof(sunix.sun_family);
--#if defined(__NetBSD__) || defined(__FreeBSD__)
-+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
- len += sizeof(sunix.sun_len);
- #endif
- if (connect(fd, (struct sockaddr *)&sunix, len)
diff --git a/inputmethod/sj3-lib/patches/patch-ap b/inputmethod/sj3-lib/patches/patch-ap
deleted file mode 100644
index 5f18b4aede9..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ap
+++ /dev/null
@@ -1,29 +0,0 @@
-$NetBSD: patch-ap,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- sj3/sjgetchar.c.orig 2005-12-02 22:29:41.000000000 +0000
-+++ sj3/sjgetchar.c
-@@ -48,14 +48,12 @@
- #include <sys/types.h>
- #include <sys/fcntl.h>
- #endif
--#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
--#if defined(__NetBSD__) || defined(__bsdi__)
-+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
- #define USE_OLD_TTY
--#endif
- #include <curses.h>
- #endif
-
--#include <sys/errno.h>
-+#include <errno.h>
- #include <sys/file.h>
- #include "sj2.h"
- #include "select.h"
-@@ -72,7 +70,6 @@ static wchar16_t backup = (wchar16_t) 0
-
- static int eucmode = 0;
- extern int master;
--extern int errno;
-
- wchar16_t SJ_getchar()
- {
diff --git a/inputmethod/sj3-lib/patches/patch-aq b/inputmethod/sj3-lib/patches/patch-aq
deleted file mode 100644
index 4d6533cc8ef..00000000000
--- a/inputmethod/sj3-lib/patches/patch-aq
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-aq,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- kanakan/depend.c.orig 2005-12-02 22:30:03.000000000 +0000
-+++ kanakan/depend.c
-@@ -318,7 +318,7 @@ char *passwd;
- serv_errno = SJ3_IncorrectPasswd; goto error1;
- }
-
--#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
-+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
- if ((dp = (Uchar *)malloc((long)sbuf.st_size)) == NULL) {
- #else
- if ((dp = (Uchar *)malloc(sbuf.st_size)) == NULL) {
-@@ -330,7 +330,7 @@ char *passwd;
- }
- memset(dfp, '\0', sizeof(*dfp));
-
--#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
-+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
- if (fgetfile(fp, 0L, (long)sbuf.st_size, dp) == ERROR) goto error3;
- #else
- if (fgetfile(fp, 0L, sbuf.st_size, dp) == ERROR) goto error3;
diff --git a/inputmethod/sj3-lib/patches/patch-ar b/inputmethod/sj3-lib/patches/patch-ar
deleted file mode 100644
index ef24ebdcf38..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ar
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ar,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- include/Paths.h.in.orig 2005-12-02 22:30:39.000000000 +0000
-+++ include/Paths.h.in
-@@ -43,7 +43,7 @@
- * This default value is "/dev/null" in document.
- * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/11
- */
--#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
-+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
- #define ErrorOutFile "/dev/console"
- #else
- /* #define ErrorOutFile "/dev/stderr" */ /* for test */
diff --git a/inputmethod/sj3-lib/patches/patch-as b/inputmethod/sj3-lib/patches/patch-as
deleted file mode 100644
index 3574c224876..00000000000
--- a/inputmethod/sj3-lib/patches/patch-as
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-as,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- include/Const.h.orig 2005-12-02 22:31:07.000000000 +0000
-+++ include/Const.h
-@@ -74,7 +74,7 @@
- * Change the default Port number of sj3 for FreeBSD.
- * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/20
- */
--#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
-+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
- #define PortNumber 3086
- #else /* ! __FreeBSD__ __NetBSD__ __OpenBSD__ */
- #define PortNumber 3000
diff --git a/inputmethod/sj3-lib/patches/patch-at b/inputmethod/sj3-lib/patches/patch-at
deleted file mode 100644
index 4e2b566d4e2..00000000000
--- a/inputmethod/sj3-lib/patches/patch-at
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-at,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- dict/tool/file.c.orig 2005-12-02 22:31:36.000000000 +0000
-+++ dict/tool/file.c
-@@ -124,7 +124,7 @@ char *filename;
- {
- struct stat buf;
-
--#if defined(__NetBSD__) || defined(__FreeBSD__)
-+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
- if (stat(filename, &buf) == 0) return (long)buf.st_size;
- #else
- if (stat(filename, &buf) == 0) return buf.st_size;
diff --git a/inputmethod/sj3-lib/patches/patch-au b/inputmethod/sj3-lib/patches/patch-au
deleted file mode 100644
index 7f14c1b8560..00000000000
--- a/inputmethod/sj3-lib/patches/patch-au
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-au,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- kanakan/depend.c.orig 2005-12-02 22:33:25.000000000 +0000
-+++ kanakan/depend.c
-@@ -50,7 +50,6 @@
- # define FD_CLR __FD_CLR
- #endif
-
--extern int errno;
- extern int serv_errno;
- extern Global *work_base;
- char *malloc();
diff --git a/inputmethod/sj3-lib/patches/patch-av b/inputmethod/sj3-lib/patches/patch-av
deleted file mode 100644
index 7779b26d41f..00000000000
--- a/inputmethod/sj3-lib/patches/patch-av
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-av,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- sj3/conv.c.orig 2005-12-02 22:43:26.000000000 +0000
-+++ sj3/conv.c
-@@ -35,7 +35,7 @@
-
-
-
--#include <sys/errno.h>
-+#include <errno.h>
- #include "wchar16.h"
- #include "select.h"
- #include "key.h"
-@@ -204,7 +204,6 @@ register int *count;
- register int n;
- SELECT_FD ifds;
- struct timeval t;
-- extern int errno;
- register wchar16_t *s;
- int value;
-
diff --git a/inputmethod/sj3-lib/patches/patch-aw b/inputmethod/sj3-lib/patches/patch-aw
deleted file mode 100644
index f6b5cc56c6c..00000000000
--- a/inputmethod/sj3-lib/patches/patch-aw
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-aw,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- sj3/display.c.orig 2005-12-02 22:43:59.000000000 +0000
-+++ sj3/display.c
-@@ -36,7 +36,7 @@
-
-
- #include "sj_sysvdef.h"
--#include <sys/errno.h>
-+#include <errno.h>
- #include "common.h"
- #include "inkey.h"
- #include "select.h"
-@@ -201,7 +201,6 @@ master_flush ()
- SELECT_FD ifds;
- int nc;
- struct timeval t;
-- extern int errno;
-
- do {
- cont:
diff --git a/inputmethod/sj3-lib/patches/patch-ax b/inputmethod/sj3-lib/patches/patch-ax
deleted file mode 100644
index abd20e4dbab..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ax
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ax,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- server/comuni.c.orig 2005-12-02 22:44:55.000000000 +0000
-+++ server/comuni.c
-@@ -98,7 +98,6 @@ extern char *proto_name;
- extern int port_number;
- #endif
- extern int max_client;
--extern int errno;
-
- static int fd_inet = -1;
- static int fd_unix = -1;
diff --git a/inputmethod/sj3-lib/patches/patch-ay b/inputmethod/sj3-lib/patches/patch-ay
deleted file mode 100644
index ceaa3a59029..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ay
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-ay,v 1.1 2005/12/02 22:57:32 joerg Exp $
-
---- server/execute.c.orig 2005-12-02 22:45:34.000000000 +0000
-+++ server/execute.c
-@@ -53,8 +53,6 @@
- #define SJIS_PROTO 1
- #define EUC_PROTO 2
-
--extern int errno;
--
- extern Global *work_base;
- extern STDY *stdy_base;
- extern int serv_errno;
-@@ -82,7 +80,6 @@ static Client *cur_cli;
- static Uchar defaultchar[2] = {(Uchar)0x81, (Uchar)0x40};
- static int defuse=0, defuse2=0;
-
--char *malloc();
- DictFile *opendict();
- int closedict();
- StdyFile *openstdy();
diff --git a/inputmethod/sj3-lib/patches/patch-az b/inputmethod/sj3-lib/patches/patch-az
deleted file mode 100644
index 239953277cf..00000000000
--- a/inputmethod/sj3-lib/patches/patch-az
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-az,v 1.1 2009/10/06 17:41:49 joerg Exp $
-
---- sj3dic/sjrc.c.orig 2009-10-06 19:30:07.000000000 +0200
-+++ sj3dic/sjrc.c
-@@ -108,9 +108,8 @@ sjset_code()
-
- getsjrc ()
- {
-- FILE *fd, *fopen();
-+ FILE *fd;
- register char *p;
-- char *getenv();
-
- sjset_code();
- RCfile[0] = '\0';
diff --git a/inputmethod/sj3-lib/patches/patch-ba b/inputmethod/sj3-lib/patches/patch-ba
deleted file mode 100644
index 0f54d40443a..00000000000
--- a/inputmethod/sj3-lib/patches/patch-ba
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ba,v 1.1 2009/10/06 17:41:49 joerg Exp $
-
---- sj3/nmttyslot.c.orig 2009-10-06 19:31:25.000000000 +0200
-+++ sj3/nmttyslot.c
-@@ -40,14 +40,13 @@
-
-
-
-+#include <string.h>
-+#include <unistd.h>
-
-
-
-
--
--char *ttyname();
--char *getttys();
--char *strrchr();
-+static char *getttys();
- static char *ttys = "/etc/ttys";
-
- #define NULL 0
diff --git a/inputmethod/sj3-lib/patches/patch-bb b/inputmethod/sj3-lib/patches/patch-bb
deleted file mode 100644
index 9ac651adeda..00000000000
--- a/inputmethod/sj3-lib/patches/patch-bb
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-bb,v 1.1 2009/10/06 17:41:49 joerg Exp $
-
---- sj3rkcv/sj3_rkcv.c.orig 2009-10-06 19:36:40.000000000 +0200
-+++ sj3rkcv/sj3_rkcv.c
-@@ -33,7 +33,7 @@
- * $SonyDate: 1995/02/10 06:02:25 $
- */
-
--
-+#include <string.h>
-
- #include "wchar16.h"
- #include "sj.h"
diff --git a/inputmethod/sj3-lib/patches/patch-bc b/inputmethod/sj3-lib/patches/patch-bc
deleted file mode 100644
index 28ebc770abd..00000000000
--- a/inputmethod/sj3-lib/patches/patch-bc
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-bc,v 1.1 2009/10/06 17:41:49 joerg Exp $
-
---- sj3dic/sjrc.c.orig 2009-10-06 19:37:25.000000000 +0200
-+++ sj3dic/sjrc.c
-@@ -36,7 +36,7 @@
-
-
-
--
-+#include <string.h>
- #include <stdio.h>
- #include <locale.h>
- #include <ctype.h>
diff --git a/inputmethod/sj3-lib/patches/patch-bd b/inputmethod/sj3-lib/patches/patch-bd
deleted file mode 100644
index 197cebc200a..00000000000
--- a/inputmethod/sj3-lib/patches/patch-bd
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-bd,v 1.1 2009/10/06 17:41:49 joerg Exp $
-
---- sj3dic/dictdisp.c.orig 2009-10-06 19:37:59.000000000 +0200
-+++ sj3dic/dictdisp.c
-@@ -35,7 +35,7 @@
-
-
-
--
-+#include <string.h>
- #include <stdio.h>
- #include <ctype.h>
-
diff --git a/inputmethod/sj3-lib/patches/patch-be b/inputmethod/sj3-lib/patches/patch-be
deleted file mode 100644
index 1ccdd0f363c..00000000000
--- a/inputmethod/sj3-lib/patches/patch-be
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-be,v 1.1 2009/10/06 17:41:49 joerg Exp $
-
---- sj3dic/codecnv.c.orig 2009-10-06 19:38:30.000000000 +0200
-+++ sj3dic/codecnv.c
-@@ -35,7 +35,7 @@
-
-
-
--
-+#include <string.h>
- #include <stdio.h>
- #include <ctype.h>
- #include <locale.h>