summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorsakamoto <sakamoto>1999-08-02 05:45:01 +0000
committersakamoto <sakamoto>1999-08-02 05:45:01 +0000
commit9a80aa91c29ada8fc355a3a253dff22c2507a716 (patch)
tree3359324e6ba792e1b6b49f4b2fdfe373db90ca19 /misc
parent08dac8e3fcfad404f3356e620725b0d264286883 (diff)
downloadpkgsrc-9a80aa91c29ada8fc355a3a253dff22c2507a716.tar.gz
A Japanese/Chinese/Korean input method (common package)
Diffstat (limited to 'misc')
-rw-r--r--misc/freewnn-common/Makefile89
-rw-r--r--misc/freewnn-common/files/INSTALL24
-rw-r--r--misc/freewnn-common/files/md53
-rw-r--r--misc/freewnn-common/files/patch-sum8
-rw-r--r--misc/freewnn-common/patches/patch-aa37
-rw-r--r--misc/freewnn-common/patches/patch-ab33
-rw-r--r--misc/freewnn-common/patches/patch-ac28
-rw-r--r--misc/freewnn-common/patches/patch-ad11
-rw-r--r--misc/freewnn-common/patches/patch-ae11
-rw-r--r--misc/freewnn-common/patches/patch-af15
10 files changed, 259 insertions, 0 deletions
diff --git a/misc/freewnn-common/Makefile b/misc/freewnn-common/Makefile
new file mode 100644
index 00000000000..04a9c401251
--- /dev/null
+++ b/misc/freewnn-common/Makefile
@@ -0,0 +1,89 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/08/02 05:45:01 sakamoto Exp $
+#
+
+DISTNAME= FreeWnn-1.10
+MASTER_SITES= ftp://ftp.omronsoft.co.jp/pub/FreeWnn/ \
+ ftp://etlport.etl.go.jp/pub/FreeWnn/ \
+ ftp://ftp.st.ryukoku.ac.jp/pub/japanese-im/FreeWnn/ \
+ ftp://ftp.tomo.gr.jp/pub/FreeWnn/
+
+.if !defined(PKGNAME)
+IGNORE= "is FreeWnn base package. Use freewnn-lib/server packages"
+.endif
+
+MAINTAINER= tech-pkg-ja@jp.netbsd.org
+HOMEPAGE= http://tomo.tomo.gr.jp/FreeWnn/
+
+INSTALL_TARGET= install install.man
+
+.if defined(WNN_TARGET) && (${WNN_TARGET} == "SERVER")
+.include "../../mk/bsd.prefs.mk"
+MAKE_ENV+= "WNN_TARGET=SERVER"
+WNNOWNER?= wnn
+DICT_DIR?= /var/dict
+SEDSCRIPT+= -e 's|\(WNNOWNER = \).*|\1${WNNOWNER}|'
+SEDSCRIPT+= -e 's|([CK]*WNNJLIBSRC)/\(lib[ck]*wnn.a\)|{PREFIX}/lib/\1|'
+SEDSCRIPT+= -e 's|\([JCKT]*WNNDICDIR = \).*|\1${DICT_DIR}/wnn/ja_JP|'
+INSTALL_FILE= ${WRKDIR}/INSTALL
+INSTALL_SRC= ${FILESDIR}/INSTALL
+PLIST_TMP= ${PKGDIR}/PLIST
+PLIST_SRC= ${WRKDIR}/PLIST
+STARTUP_SCRIPT_SRC=${WRKDIR}/STARTUP
+.else
+MAKE_ENV+= "WNN_TARGET=LIBRARY"
+.endif
+
+.if defined(WNNDIR)
+MAKE_ENV+= "WNNDIR=${WNNDIR}"
+.endif
+.if defined(CWNNDIR)
+MAKE_ENV+= "CWNNDIR=${CWNNDIR}"
+.endif
+.if defined(KWNNDIR)
+MAKE_ENV+= "KWNNDIR=${KWNNDIR}"
+.endif
+
+GNU_CONFIGURE= YES
+WRKSRC= ${WRKDIR}/Xsi
+
+post-patch:
+ @for file in `find ${WRKSRC} -name Makefile.in`; do \
+ ${MV} $$file $$file.orig; \
+ ${SED} -e '/PREFIX = /d' \
+ -e 's|\(WNNBINDIR = $${PREFIX}/\)\(bin\)|\1s\2|' \
+ -e 's|\([CK]*WNNBINDIR = $$(WNNBINDIR)\)/[ck]*Wnn4|\1|'\
+ -e 's|\(WNNWNNDIR = $${PREFIX}/\)lib\(/wnn\)|\1share\2|'\
+ -e '/(COMPRESSMANCMD) /d' \
+ -e 's|\/usr\/X11R6|$${PREFIX}|' \
+ ${SEDSCRIPT} \
+ $$file.orig > $$file; \
+ done
+ @for file in `find ${WRKSRC}/Wnn/man -name Makefile.in`; do \
+ ${MV} $$file $$file.orig2; \
+ ${SED} -e 's|\(MANPATH = .*\)|\1/ja_JP.EUC|' \
+ $$file.orig2 > $$file; \
+ done
+
+.if defined(WNN_TARGET) && (${WNN_TARGET} == "SERVER")
+post-build:
+ @${SED} -e 's|$${WNNOWNER}|${WNNOWNER}|g' \
+ ${INSTALL_SRC} > ${INSTALL_FILE}
+ @${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT_SRC}
+ @${ECHO} 'freewnn=${JSERVER}' >> ${STARTUP_SCRIPT_SRC}
+ @${ECHO} 'if [ -f $$freewnn ]; then' >> ${STARTUP_SCRIPT_SRC}
+ @${ECHO} " echo -n ' ${SCTITLE}'" >> ${STARTUP_SCRIPT_SRC}
+ @${ECHO} ' $$freewnn' >> ${STARTUP_SCRIPT_SRC}
+ @${ECHO} "fi" >> ${STARTUP_SCRIPT_SRC}
+ @${SED} -e 's|$${DICT_DIR}|${DICT_DIR}|' \
+ -e 's|$${PREFIX}|${PREFIX}|' \
+ ${PLIST_TMP} > ${PLIST_SRC}
+ @${ECHO} ${STARTUP_SCRIPT} >> ${PLIST_SRC}
+
+pre-install:
+ @${SETENV} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
+
+post-install:
+ @${INSTALL_SCRIPT} ${STARTUP_SCRIPT_SRC} ${PREFIX}/${STARTUP_SCRIPT}
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/freewnn-common/files/INSTALL b/misc/freewnn-common/files/INSTALL
new file mode 100644
index 00000000000..5b0b37e7686
--- /dev/null
+++ b/misc/freewnn-common/files/INSTALL
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+case $2 in
+PRE-INSTALL)
+ uid=`id -u ${WNNOWNER} 2> /dev/null`
+ if [ X"$uid" != X ]; then
+ exit 0
+ fi
+
+ wnn_uid=69
+ uid=`id -u $wnn_uid 2> /dev/null`
+ if [ X"$uid" != X ]; then
+ wnn_uid=32768
+ while id -u $wnn_uid > /dev/null 2>&1; do
+ wnn_uid=`echo $wnn_uid+1|bc`
+ if [ $wnn_uid = 65536 ]; then
+ exit 1
+ fi
+ done
+ fi
+ chpass -l -a "${WNNOWNER}:*:$wnn_uid:1::0:0:User Wnn:/nonexistent:/sbin/nologin"
+ exit $?
+ ;;
+esac
diff --git a/misc/freewnn-common/files/md5 b/misc/freewnn-common/files/md5
new file mode 100644
index 00000000000..52ea126c69a
--- /dev/null
+++ b/misc/freewnn-common/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/08/02 05:45:01 sakamoto Exp $
+
+MD5 (FreeWnn-1.10.tar.gz) = a0ad7f8ad81cf3b3c28b7de594f84a2a
diff --git a/misc/freewnn-common/files/patch-sum b/misc/freewnn-common/files/patch-sum
new file mode 100644
index 00000000000..8f8086eaae2
--- /dev/null
+++ b/misc/freewnn-common/files/patch-sum
@@ -0,0 +1,8 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/08/02 05:45:01 sakamoto Exp $
+
+MD5 (patch-aa) = 79a25dfa42971a4775d631adc1d03b6a
+MD5 (patch-ab) = 73b24af3542e59e04a151ee83d85546f
+MD5 (patch-ac) = d437b281bc7e8bbf9d16f9ddaa40b9fb
+MD5 (patch-ad) = ae64abc2ae44ed25119b31be1696d8e3
+MD5 (patch-ae) = 61db35c709df6d6e11b470aab0cfdd06
+MD5 (patch-af) = eaa17922a7ede776983985f3012336ea
diff --git a/misc/freewnn-common/patches/patch-aa b/misc/freewnn-common/patches/patch-aa
new file mode 100644
index 00000000000..b249e4012d6
--- /dev/null
+++ b/misc/freewnn-common/patches/patch-aa
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/08/02 05:45:01 sakamoto Exp $
+
+--- ./Wnn/Makefile.in.orig Tue Mar 23 21:10:52 1999
++++ ./Wnn/Makefile.in Wed Jul 28 11:53:13 1999
+@@ -611,25 +611,18 @@
+ # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+-WNNOWNER= wnn
+-
++.if (${WNN_TARGET} == "SERVER")
+ JSERVERDIR = jserver
+-
+ PUBDICDIR = pubdic
+-
+ WNNCONSDIR = wnncons
+-
+ WNNJUTILDIR = jutil
+-
+-WNNCLIENTSDIR = conv
+-
+-JLIBDIR = include romkan jlib
+-
++WNNMANDIR = man/2.env man/4.cmd man/6.jutil
+ WNNENVDIR = ld
+-
+ JDDIR = jd
+-
+-WNNMANDIR = man
+-
++.else
++WNNCLIENTSDIR = conv
++WNNMANDIR = man/3.libwnn
++JLIBDIR = include romkan jlib
+ JLIBV3DIR = jlib.V3
++.endif
+
+ SUBDIRS = $(JDDIR) $(JSERVERDIR) $(JLIBDIR) $(WNNCLIENTSDIR) $(WNNJUTILDIR) $(PUBDICDIR) $(WNNCONSDIR) $(WNNMANDIR) $(WNNENVDIR) $(JLIBV3DIR)
diff --git a/misc/freewnn-common/patches/patch-ab b/misc/freewnn-common/patches/patch-ab
new file mode 100644
index 00000000000..1121cbf6e13
--- /dev/null
+++ b/misc/freewnn-common/patches/patch-ab
@@ -0,0 +1,33 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/08/02 05:45:01 sakamoto Exp $
+
+--- ./cWnn/Makefile.in.orig Tue Mar 23 21:13:41 1999
++++ ./cWnn/Makefile.in Wed Jul 28 11:29:10 1999
+@@ -621,23 +621,16 @@
+ # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+-WNNOWNER = wnn
+-
++.if (${WNN_TARGET} == "SERVER")
+ JSERVERDIR = jserver
+-
+ WNNJUTILDIR = jutil
+-
+-WNNCLIENTSDIR = conv
+-
+-JLIBDIR = include etc romkan jlib
+-
+ CDICDIR = cdic
+-
+ TDICDIR = tdic
+-
+ CDDIR = cd
+-
+ TDDIR = td
+-
+ WNNMANDIR = man
++.else
++WNNCLIENTSDIR = conv
++JLIBDIR = include etc romkan jlib
++.endif
+
+ SUBDIRS = $(JLIBDIR) $(CDDIR) $(JSERVERDIR) $(WNNCLIENTSDIR) $(WNNJUTILDIR) $(CDICDIR) $(TDICDIR) $(WNNMANDIR) $(TDDIR)
diff --git a/misc/freewnn-common/patches/patch-ac b/misc/freewnn-common/patches/patch-ac
new file mode 100644
index 00000000000..ceae4f9a60b
--- /dev/null
+++ b/misc/freewnn-common/patches/patch-ac
@@ -0,0 +1,28 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/08/02 05:45:01 sakamoto Exp $
+
+--- ./kWnn/Makefile.in.orig Tue Mar 23 21:14:47 1999
++++ ./kWnn/Makefile.in Wed Jul 28 11:29:10 1999
+@@ -621,17 +621,13 @@
+ # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+-WNNOWNER = wnn
+-
++.if (${WNN_TARGET} == "SERVER")
+ JSERVERDIR = jserver
+-
+ WNNJUTILDIR = jutil
+-
+-WNNCLIENTSDIR = conv
+-
+-JLIBDIR = romkan jlib
+-
+ KDICDIR = kdic
+-
+-KDDIR = include kd
++KDDIR = kd
++.else
++WNNCLIENTSDIR = conv
++JLIBDIR = romkan jlib include
++.endif
+
+ SUBDIRS = $(KDDIR) etc $(JLIBDIR) $(JSERVERDIR) $(WNNCLIENTSDIR) $(WNNJUTILDIR) $(KDICDIR) $(WNNMANDIR)
diff --git a/misc/freewnn-common/patches/patch-ad b/misc/freewnn-common/patches/patch-ad
new file mode 100644
index 00000000000..d2de6b3dc05
--- /dev/null
+++ b/misc/freewnn-common/patches/patch-ad
@@ -0,0 +1,11 @@
+$NetBSD: patch-ad,v 1.1.1.1 1999/08/02 05:45:01 sakamoto Exp $
+
+--- ./configure.in.orig Tue Apr 6 12:12:19 1999
++++ ./configure.in Wed Jul 28 11:29:10 1999
+@@ -55,5 +55,5 @@
+ fi
+ ;;
+-"FreeBSD")
++"FreeBSD" | "NetBSD" | "OpenBSD")
+ CCOPTIONS="-DCSRG_BASED"
+ CDEBUGFLAGS="-O2 -fno-strength-reduce"
diff --git a/misc/freewnn-common/patches/patch-ae b/misc/freewnn-common/patches/patch-ae
new file mode 100644
index 00000000000..f8c59723a30
--- /dev/null
+++ b/misc/freewnn-common/patches/patch-ae
@@ -0,0 +1,11 @@
+$NetBSD: patch-ae,v 1.1.1.1 1999/08/02 05:45:01 sakamoto Exp $
+
+--- ./configure.orig Tue Apr 6 12:12:18 1999
++++ ./configure Wed Jul 28 11:29:10 1999
+@@ -705,5 +705,5 @@
+ fi
+ ;;
+-"FreeBSD")
++"FreeBSD" | "NetBSD" | "OpenBSD")
+ CCOPTIONS="-DCSRG_BASED"
+ CDEBUGFLAGS="-O2 -fno-strength-reduce"
diff --git a/misc/freewnn-common/patches/patch-af b/misc/freewnn-common/patches/patch-af
new file mode 100644
index 00000000000..34215822dc5
--- /dev/null
+++ b/misc/freewnn-common/patches/patch-af
@@ -0,0 +1,15 @@
+$NetBSD: patch-af,v 1.1.1.1 1999/08/02 05:45:01 sakamoto Exp $
+
+--- ./Makefile.in.orig Tue Mar 23 21:10:39 1999
++++ ./Makefile.in Wed Jul 28 11:29:10 1999
+@@ -611,10 +611,4 @@
+ # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+-WNNDIR = Wnn
+-
+-CWNNDIR = cWnn
+-
+-KWNNDIR = kWnn
+-
+ SUBDIRS= $(WNNDIR) $(CWNNDIR) $(KWNNDIR)
+