diff options
author | wiz <wiz> | 2002-02-28 17:45:42 +0000 |
---|---|---|
committer | wiz <wiz> | 2002-02-28 17:45:42 +0000 |
commit | 048a88daf7331d1ba32b3b58abbe8f91e7f34a5f (patch) | |
tree | d83a978cba6016ba9cc5503fe58c7a3ec4585f7a /japanese | |
parent | 2f58ab8fb70fe3aa51e1fca2d49039a263f08289 (diff) | |
download | pkgsrc-048a88daf7331d1ba32b3b58abbe8f91e7f34a5f.tar.gz |
Move contents of misc/freewnn-common to japanese/freewnn-lib.
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/freewnn-lib/Makefile | 7 | ||||
-rw-r--r-- | japanese/freewnn-lib/Makefile.common | 83 | ||||
-rw-r--r-- | japanese/freewnn-lib/files/INSTALL | 24 | ||||
-rw-r--r-- | japanese/freewnn-lib/files/ja_freewnn | 34 | ||||
-rw-r--r-- | japanese/freewnn-lib/patches/patch-aa | 51 | ||||
-rw-r--r-- | japanese/freewnn-lib/patches/patch-ab | 22 | ||||
-rw-r--r-- | japanese/freewnn-lib/patches/patch-ac | 22 | ||||
-rw-r--r-- | japanese/freewnn-lib/patches/patch-ad | 11 | ||||
-rw-r--r-- | japanese/freewnn-lib/patches/patch-ae | 11 | ||||
-rw-r--r-- | japanese/freewnn-lib/patches/patch-af | 15 | ||||
-rw-r--r-- | japanese/freewnn-lib/patches/patch-ag | 18 | ||||
-rw-r--r-- | japanese/freewnn-server/Makefile | 8 |
12 files changed, 297 insertions, 9 deletions
diff --git a/japanese/freewnn-lib/Makefile b/japanese/freewnn-lib/Makefile index 3ffeac4c8a6..b1141853517 100644 --- a/japanese/freewnn-lib/Makefile +++ b/japanese/freewnn-lib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2002/02/28 13:25:25 wiz Exp $ +# $NetBSD: Makefile,v 1.5 2002/02/28 17:45:44 wiz Exp $ # PKGNAME= ja-FreeWnn-lib-1.10 @@ -10,7 +10,4 @@ WNNDIR= Wnn WNN_TARGET= LIBRARY WNN_LANG= ja_JP -FILESDIR= ${.CURDIR}/../../misc/freewnn-common/files -PATCHDIR= ${.CURDIR}/../../misc/freewnn-common/patches - -.include "../../misc/freewnn-common/Makefile" +.include "Makefile.common" diff --git a/japanese/freewnn-lib/Makefile.common b/japanese/freewnn-lib/Makefile.common new file mode 100644 index 00000000000..b86fe884b59 --- /dev/null +++ b/japanese/freewnn-lib/Makefile.common @@ -0,0 +1,83 @@ +# $NetBSD: Makefile.common,v 1.1 2002/02/28 17:45:44 wiz Exp $ +# + +DISTNAME= FreeWnn-1.10 +MASTER_SITES= ftp://ftp.freewnn.org/pub/FreeWnn/ \ + ftp://etlport.etl.go.jp/pub/FreeWnn/ \ + ftp://ftp.st.ryukoku.ac.jp/pub/japanese-im/FreeWnn/ \ + ftp://ftp.kddlabs.co.jp/Japan/Wnn/FreeWnn/ \ + ftp://ftp.tomo.gr.jp/pub/FreeWnn/ + +MAINTAINER= tech-pkg-ja@jp.netbsd.org +HOMEPAGE= http://www.freewnn.org/ +COMMENT= base package for japanese/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\2${DICT_DIR}/wnn/$$(\1WNNLANG)|' +INSTALL_FILE= ${WRKDIR}/INSTALL +INSTALL_SRC= ${FILESDIR}/INSTALL +PLIST_SUBST= DICT_DIR=${DICT_DIR} PREFIX=${PREFIX} WNN_LANG=${WNN_LANG} +.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 + @(cd ${WRKSRC}/Wnn/include; \ + ${MV} config.h config.h.orig; \ + ${SED} -e 's|^\(\#define LIBDIR "\)/usr/local/lib\(/wnn"\)|\1${PREFIX}/share\2|' \ + config.h.orig > config.h) + +.if defined(WNN_TARGET) && (${WNN_TARGET} == "SERVER") +post-build: + @${SED} -e 's|$${WNNOWNER}|${WNNOWNER}|g' \ + ${INSTALL_SRC} > ${INSTALL_FILE} + @${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/ja_freewnn \ + > ${WRKDIR}/ja_freewnn + +pre-install: + @${SETENV} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL + +post-install: + @${LN} -s ${DICT_DIR}/wnn/${WNN_LANG} \ + ${PREFIX}/share/wnn/${WNN_LANG}/dic + @${INSTALL_SCRIPT} ${WRKDIR}/ja_freewnn ${PREFIX}/etc/rc.d/ja_freewnn +.endif + +.include "../../mk/bsd.pkg.mk" diff --git a/japanese/freewnn-lib/files/INSTALL b/japanese/freewnn-lib/files/INSTALL new file mode 100644 index 00000000000..5b0b37e7686 --- /dev/null +++ b/japanese/freewnn-lib/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/japanese/freewnn-lib/files/ja_freewnn b/japanese/freewnn-lib/files/ja_freewnn new file mode 100644 index 00000000000..53d75e7b55d --- /dev/null +++ b/japanese/freewnn-lib/files/ja_freewnn @@ -0,0 +1,34 @@ +#!/bin/sh +# +# $NetBSD: ja_freewnn,v 1.1 2002/02/28 17:45:45 wiz Exp $ +# +# PROVIDE: freewnn +# REQUIRE: DAEMON + +. /etc/rc.subr + +name="freewnn" +command_start="@PREFIX@/sbin/jserver" +command_stop="@PREFIX@/sbin/wnnkill" +pidfile="" + +cmd=${1:-start} + +case ${cmd} in +start) + if [ -x ${command_start} ]; then + echo "Starting ${name}." + ${command_start} >/dev/null 2>&1 + fi + ;; +stop) + if [ -x ${command_stop} ]; then + echo "Stopping ${name}." + ${command_stop} >/dev/null 2>&1 + fi + ;; +*) + : + ;; +esac +exit 0 diff --git a/japanese/freewnn-lib/patches/patch-aa b/japanese/freewnn-lib/patches/patch-aa new file mode 100644 index 00000000000..7e052c5b763 --- /dev/null +++ b/japanese/freewnn-lib/patches/patch-aa @@ -0,0 +1,51 @@ +$NetBSD: patch-aa,v 1.1 2002/02/28 17:45:45 wiz Exp $ + +--- ./Wnn/Makefile.in.orig Tue Mar 23 21:10:52 1999 ++++ ./Wnn/Makefile.in Thu Sep 2 19:21:52 1999 +@@ -611,6 +611,4 @@ + # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +-WNNOWNER= wnn +- + JSERVERDIR = jserver + +@@ -629,9 +627,15 @@ + JDDIR = jd + +-WNNMANDIR = man +- + JLIBV3DIR = jlib.V3 + +-SUBDIRS = $(JDDIR) $(JSERVERDIR) $(JLIBDIR) $(WNNCLIENTSDIR) $(WNNJUTILDIR) $(PUBDICDIR) $(WNNCONSDIR) $(WNNMANDIR) $(WNNENVDIR) $(JLIBV3DIR) ++.if (${WNN_TARGET} == "SERVER") ++WNNMANDIR = man/2.env man/4.cmd man/6.jutil ++SUBDIRS_INST = $(JSERVERDIR) $(WNNJUTILDIR) $(PUBDICDIR) $(WNNCONSDIR) $(WNNMANDIR) ++SUBDIRS = $(JDDIR) $(SUBDIRS_INST) ++.else ++WNNMANDIR = man/3.libwnn ++SUBDIRS_INST = $(JDDIR) $(JLIBDIR) $(WNNCLIENTSDIR) $(WNNMANDIR) $(WNNENVDIR) $(JLIBV3DIR) ++SUBDIRS = $(SUBDIRS_INST) ++.endif + + all:: +@@ -699,5 +703,5 @@ + @for flag in ${MAKEFLAGS} ''; do \ + case "$$flag" in *=*) ;; *[ik]*) set +e;; esac; done; \ +- for i in $(SUBDIRS) ;\ ++ for i in $(SUBDIRS_INST) ;\ + do \ + echo "installing" "in $(CURRENT_DIR)/$$i..."; \ +@@ -709,5 +713,5 @@ + @for flag in ${MAKEFLAGS} ''; do \ + case "$$flag" in *=*) ;; *[ik]*) set +e;; esac; done; \ +- for i in $(SUBDIRS) ;\ ++ for i in $(SUBDIRS_INST) ;\ + do \ + echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \ +@@ -719,5 +723,5 @@ + @for flag in ${MAKEFLAGS} ''; do \ + case "$$flag" in *=*) ;; *[ik]*) set +e;; esac; done; \ +- for i in $(SUBDIRS) ;\ ++ for i in $(SUBDIRS_INST) ;\ + do \ + echo "installing link kit" "in $(CURRENT_DIR)/$$i..."; \ diff --git a/japanese/freewnn-lib/patches/patch-ab b/japanese/freewnn-lib/patches/patch-ab new file mode 100644 index 00000000000..d6bd4a2439e --- /dev/null +++ b/japanese/freewnn-lib/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1 2002/02/28 17:45:45 wiz Exp $ + +--- ./cWnn/Makefile.in.orig Tue Mar 23 21:13:41 1999 ++++ ./cWnn/Makefile.in Thu Sep 2 19:26:52 1999 +@@ -621,6 +621,4 @@ + # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +-WNNOWNER = wnn +- + JSERVERDIR = jserver + +@@ -641,5 +639,9 @@ + WNNMANDIR = man + +-SUBDIRS = $(JLIBDIR) $(CDDIR) $(JSERVERDIR) $(WNNCLIENTSDIR) $(WNNJUTILDIR) $(CDICDIR) $(TDICDIR) $(WNNMANDIR) $(TDDIR) ++.if (${WNN_TARGET} == "SERVER") ++SUBDIRS = $(JSERVERDIR) $(WNNJUTILDIR) $(CDICDIR) $(TDICDIR) $(WNNMANDIR) ++.else ++SUBDIRS = $(JLIBDIR) $(CDDIR) $(WNNCLIENTSDIR) $(TDDIR) ++.endif + + all:: diff --git a/japanese/freewnn-lib/patches/patch-ac b/japanese/freewnn-lib/patches/patch-ac new file mode 100644 index 00000000000..a2b3faa31eb --- /dev/null +++ b/japanese/freewnn-lib/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.1 2002/02/28 17:45:45 wiz Exp $ + +--- ./kWnn/Makefile.in.orig Tue Mar 23 21:14:47 1999 ++++ ./kWnn/Makefile.in Thu Sep 2 19:29:22 1999 +@@ -621,6 +621,4 @@ + # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +-WNNOWNER = wnn +- + JSERVERDIR = jserver + +@@ -635,5 +633,9 @@ + KDDIR = include kd + +-SUBDIRS = $(KDDIR) etc $(JLIBDIR) $(JSERVERDIR) $(WNNCLIENTSDIR) $(WNNJUTILDIR) $(KDICDIR) $(WNNMANDIR) ++.if (${WNN_TARGET} == "SERVER") ++SUBDIRS = etc $(JSERVERDIR) $(WNNJUTILDIR) $(KDICDIR) $(WNNMANDIR) ++.else ++SUBDIRS = $(KDDIR) $(JLIBDIR) $(WNNCLIENTSDIR) ++.endif + + all:: diff --git a/japanese/freewnn-lib/patches/patch-ad b/japanese/freewnn-lib/patches/patch-ad new file mode 100644 index 00000000000..908cf739138 --- /dev/null +++ b/japanese/freewnn-lib/patches/patch-ad @@ -0,0 +1,11 @@ +$NetBSD: patch-ad,v 1.1 2002/02/28 17:45:45 wiz Exp $ + +--- ./configure.in.orig Tue Apr 6 12:12:19 1999 ++++ ./configure.in Thu Sep 2 14:57:48 1999 +@@ -55,5 +55,5 @@ + fi + ;; +-"FreeBSD") ++"FreeBSD" | "NetBSD" | "OpenBSD") + CCOPTIONS="-DCSRG_BASED" + CDEBUGFLAGS="-O2 -fno-strength-reduce" diff --git a/japanese/freewnn-lib/patches/patch-ae b/japanese/freewnn-lib/patches/patch-ae new file mode 100644 index 00000000000..52d74f87220 --- /dev/null +++ b/japanese/freewnn-lib/patches/patch-ae @@ -0,0 +1,11 @@ +$NetBSD: patch-ae,v 1.1 2002/02/28 17:45:45 wiz Exp $ + +--- ./configure.orig Tue Apr 6 12:12:18 1999 ++++ ./configure Thu Sep 2 14:57:48 1999 +@@ -705,5 +705,5 @@ + fi + ;; +-"FreeBSD") ++"FreeBSD" | "NetBSD" | "OpenBSD") + CCOPTIONS="-DCSRG_BASED" + CDEBUGFLAGS="-O2 -fno-strength-reduce" diff --git a/japanese/freewnn-lib/patches/patch-af b/japanese/freewnn-lib/patches/patch-af new file mode 100644 index 00000000000..2ce860bd8b6 --- /dev/null +++ b/japanese/freewnn-lib/patches/patch-af @@ -0,0 +1,15 @@ +$NetBSD: patch-af,v 1.1 2002/02/28 17:45:45 wiz Exp $ + +--- ./Makefile.in.orig Tue Mar 23 21:10:39 1999 ++++ ./Makefile.in Thu Sep 2 14:57:48 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) + diff --git a/japanese/freewnn-lib/patches/patch-ag b/japanese/freewnn-lib/patches/patch-ag new file mode 100644 index 00000000000..d0b68750404 --- /dev/null +++ b/japanese/freewnn-lib/patches/patch-ag @@ -0,0 +1,18 @@ +$NetBSD: patch-ag,v 1.1 2002/02/28 17:45:45 wiz Exp $ + +--- Wnn/jlib/js.c.orig Mon May 17 12:04:45 1999 ++++ Wnn/jlib/js.c Wed Sep 22 18:37:26 1999 +@@ -221,9 +221,9 @@ + return -1; + } +-#if !(defined(BSD) && (BSD >= 199306)) /* !4.4BSD-Lite */ +- if (connect(sd,(struct sockaddr *)&saddr,strlen(saddr.sun_path)+sizeof(saddr.sun_family)) == ERROR) { +-#else /* 4.4BSD-Lite */ ++ ++#if !defined(SUN_LEN) ++# define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) ++#endif + if (connect(sd,(struct sockaddr *)&saddr,SUN_LEN(&saddr)) == ERROR) { +-#endif /* 4.4BSD-Lite */ + + #if DEBUG diff --git a/japanese/freewnn-server/Makefile b/japanese/freewnn-server/Makefile index a726ab7ddbf..9174fd2ad5d 100644 --- a/japanese/freewnn-server/Makefile +++ b/japanese/freewnn-server/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2002/02/28 13:22:50 wiz Exp $ +# $NetBSD: Makefile,v 1.6 2002/02/28 17:45:45 wiz Exp $ # PKGNAME= ja-FreeWnn-server-1.10 @@ -11,7 +11,7 @@ WNNDIR= Wnn WNN_TARGET= SERVER WNN_LANG= ja_JP -FILESDIR= ${.CURDIR}/../../misc/freewnn-common/files -PATCHDIR= ${.CURDIR}/../../misc/freewnn-common/patches +FILESDIR= ${.CURDIR}/../../japanese/freewnn-lib/files +PATCHDIR= ${.CURDIR}/../../japanese/freewnn-lib/patches -.include "../../misc/freewnn-common/Makefile" +.include "../../japanese/freewnn-lib/Makefile.common" |