diff options
author | seb <seb@pkgsrc.org> | 2002-05-31 13:00:48 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2002-05-31 13:00:48 +0000 |
commit | d73e092db7d4944903254e40dc0ab6ded1eb63c6 (patch) | |
tree | 129b1b9d5048f0059d7394d8648ec2d19a539daf /inputmethod | |
parent | af73eb025f8f45b4f2b6ab989035fcb7d8da8b7a (diff) | |
download | pkgsrc-d73e092db7d4944903254e40dc0ab6ded1eb63c6.tar.gz |
Reimport of package ja-FreeWnn-lib from japanese/freewnn-lib into inputmethod/ja-freewnn-lib.
This is part of the japanese category retirement.
CATEGORIES adjusted.
Diffstat (limited to 'inputmethod')
-rw-r--r-- | inputmethod/ja-freewnn-lib/DESCR | 7 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/Makefile | 13 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/Makefile.common | 83 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/PLIST | 240 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/distinfo | 11 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/files/INSTALL | 24 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/files/ja_freewnn | 34 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/patches/patch-aa | 51 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/patches/patch-ab | 22 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/patches/patch-ac | 22 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/patches/patch-ad | 23 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/patches/patch-ae | 23 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/patches/patch-af | 15 | ||||
-rw-r--r-- | inputmethod/ja-freewnn-lib/patches/patch-ag | 18 |
14 files changed, 586 insertions, 0 deletions
diff --git a/inputmethod/ja-freewnn-lib/DESCR b/inputmethod/ja-freewnn-lib/DESCR new file mode 100644 index 00000000000..cd053019337 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/DESCR @@ -0,0 +1,7 @@ +FreeWnn 1.10 - Japanese Client Library + +This distribution contains Version 1.10 of Wnn Japanese/Chinese/Korean +Input System. Wnn is a network-extensible Kana-to-Kanji conversion system +and was jointly developed and released by the Software Research Group +of Kyoto University Research Institute for Mathematical Science, OMRON +Corporation and Astec, Inc. diff --git a/inputmethod/ja-freewnn-lib/Makefile b/inputmethod/ja-freewnn-lib/Makefile new file mode 100644 index 00000000000..5d8886f2752 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/05/31 13:00:48 seb Exp $ +# + +PKGNAME= ja-FreeWnn-lib-1.10 +CATEGORIES= japanese inputmethod + +COMMENT= Japanese/Chinese/Korean input method (Japanese client library) + +WNNDIR= Wnn +WNN_TARGET= LIBRARY +WNN_LANG= ja_JP + +.include "Makefile.common" diff --git a/inputmethod/ja-freewnn-lib/Makefile.common b/inputmethod/ja-freewnn-lib/Makefile.common new file mode 100644 index 00000000000..8805b5d635b --- /dev/null +++ b/inputmethod/ja-freewnn-lib/Makefile.common @@ -0,0 +1,83 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2002/05/31 13:00:48 seb 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/inputmethod/ja-freewnn-lib/PLIST b/inputmethod/ja-freewnn-lib/PLIST new file mode 100644 index 00000000000..6f37b34302e --- /dev/null +++ b/inputmethod/ja-freewnn-lib/PLIST @@ -0,0 +1,240 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/31 13:00:48 seb Exp $ +include/wnn/commonhd.h +include/wnn/config.h +include/wnn/cplib.h +include/wnn/jlib.h +include/wnn/jllib.h +include/wnn/jslib.h +include/wnn/msg.h +include/wnn/rk_spclval.h +include/wnn/wnnerror.h +lib/libjd.a +lib/libwnn.a +man/ja_JP.EUC/man3/jl_bun_suu.3 +man/ja_JP.EUC/man3/jl_c_zenkouho.3 +man/ja_JP.EUC/man3/jl_close.3 +man/ja_JP.EUC/man3/jl_connect.3 +man/ja_JP.EUC/man3/jl_connect_lang.3 +man/ja_JP.EUC/man3/jl_dai_top.3 +man/ja_JP.EUC/man3/jl_dic_add.3 +man/ja_JP.EUC/man3/jl_dic_add_e.3 +man/ja_JP.EUC/man3/jl_dic_comment_set.3 +man/ja_JP.EUC/man3/jl_dic_comment_set_e.3 +man/ja_JP.EUC/man3/jl_dic_delete.3 +man/ja_JP.EUC/man3/jl_dic_delete_e.3 +man/ja_JP.EUC/man3/jl_dic_list.3 +man/ja_JP.EUC/man3/jl_dic_list_e.3 +man/ja_JP.EUC/man3/jl_dic_save.3 +man/ja_JP.EUC/man3/jl_dic_save_all.3 +man/ja_JP.EUC/man3/jl_dic_save_all_e.3 +man/ja_JP.EUC/man3/jl_dic_save_e.3 +man/ja_JP.EUC/man3/jl_dic_use.3 +man/ja_JP.EUC/man3/jl_dic_use_e.3 +man/ja_JP.EUC/man3/jl_disconnect.3 +man/ja_JP.EUC/man3/jl_env.3 +man/ja_JP.EUC/man3/jl_env_get.3 +man/ja_JP.EUC/man3/jl_env_set.3 +man/ja_JP.EUC/man3/jl_env_sticky.3 +man/ja_JP.EUC/man3/jl_env_sticky_e.3 +man/ja_JP.EUC/man3/jl_env_un_sticky.3 +man/ja_JP.EUC/man3/jl_env_un_sticky_e.3 +man/ja_JP.EUC/man3/jl_fuzokugo_get.3 +man/ja_JP.EUC/man3/jl_fuzokugo_get_e.3 +man/ja_JP.EUC/man3/jl_fuzokugo_set.3 +man/ja_JP.EUC/man3/jl_fuzokugo_set_e.3 +man/ja_JP.EUC/man3/jl_get_kanji.3 +man/ja_JP.EUC/man3/jl_get_yomi.3 +man/ja_JP.EUC/man3/jl_get_zenkouho_kanji.3 +man/ja_JP.EUC/man3/jl_hinsi_dicts.3 +man/ja_JP.EUC/man3/jl_hinsi_dicts_e.3 +man/ja_JP.EUC/man3/jl_hinsi_list.3 +man/ja_JP.EUC/man3/jl_hinsi_list_e.3 +man/ja_JP.EUC/man3/jl_hinsi_name.3 +man/ja_JP.EUC/man3/jl_hinsi_name_e.3 +man/ja_JP.EUC/man3/jl_hinsi_number.3 +man/ja_JP.EUC/man3/jl_hinsi_number_e.3 +man/ja_JP.EUC/man3/jl_inspect.3 +man/ja_JP.EUC/man3/jl_isconnect.3 +man/ja_JP.EUC/man3/jl_isconnect_e.3 +man/ja_JP.EUC/man3/jl_jiri_len.3 +man/ja_JP.EUC/man3/jl_kanji_len.3 +man/ja_JP.EUC/man3/jl_kill.3 +man/ja_JP.EUC/man3/jl_next.3 +man/ja_JP.EUC/man3/jl_next_dai.3 +man/ja_JP.EUC/man3/jl_nobi_conv.3 +man/ja_JP.EUC/man3/jl_open.3 +man/ja_JP.EUC/man3/jl_open_lang.3 +man/ja_JP.EUC/man3/jl_param_get.3 +man/ja_JP.EUC/man3/jl_param_get_e.3 +man/ja_JP.EUC/man3/jl_param_set.3 +man/ja_JP.EUC/man3/jl_param_set_e.3 +man/ja_JP.EUC/man3/jl_previous.3 +man/ja_JP.EUC/man3/jl_previous_dai.3 +man/ja_JP.EUC/man3/jl_ren_conv.3 +man/ja_JP.EUC/man3/jl_set_env_wnnrc.3 +man/ja_JP.EUC/man3/jl_set_jikouho.3 +man/ja_JP.EUC/man3/jl_set_jikouho_dai.3 +man/ja_JP.EUC/man3/jl_tan_conv.3 +man/ja_JP.EUC/man3/jl_update_hindo.3 +man/ja_JP.EUC/man3/jl_word_add.3 +man/ja_JP.EUC/man3/jl_word_add_e.3 +man/ja_JP.EUC/man3/jl_word_comment_set.3 +man/ja_JP.EUC/man3/jl_word_comment_set_e.3 +man/ja_JP.EUC/man3/jl_word_delete.3 +man/ja_JP.EUC/man3/jl_word_delete_e.3 +man/ja_JP.EUC/man3/jl_word_info.3 +man/ja_JP.EUC/man3/jl_word_info_e.3 +man/ja_JP.EUC/man3/jl_word_search.3 +man/ja_JP.EUC/man3/jl_word_search_by_env.3 +man/ja_JP.EUC/man3/jl_word_search_by_env_e.3 +man/ja_JP.EUC/man3/jl_word_search_e.3 +man/ja_JP.EUC/man3/jl_word_use.3 +man/ja_JP.EUC/man3/jl_word_use_e.3 +man/ja_JP.EUC/man3/jl_yomi_len.3 +man/ja_JP.EUC/man3/jl_zenkouho.3 +man/ja_JP.EUC/man3/jl_zenkouho_bun.3 +man/ja_JP.EUC/man3/jl_zenkouho_dai.3 +man/ja_JP.EUC/man3/jl_zenkouho_daip.3 +man/ja_JP.EUC/man3/jl_zenkouho_suu.3 +man/ja_JP.EUC/man3/js_access.3 +man/ja_JP.EUC/man3/js_close.3 +man/ja_JP.EUC/man3/js_connect.3 +man/ja_JP.EUC/man3/js_dic_add.3 +man/ja_JP.EUC/man3/js_dic_delete.3 +man/ja_JP.EUC/man3/js_dic_file_create.3 +man/ja_JP.EUC/man3/js_dic_file_create_client.3 +man/ja_JP.EUC/man3/js_dic_info.3 +man/ja_JP.EUC/man3/js_dic_list.3 +man/ja_JP.EUC/man3/js_dic_list_all.3 +man/ja_JP.EUC/man3/js_dic_use.3 +man/ja_JP.EUC/man3/js_disconnect.3 +man/ja_JP.EUC/man3/js_env_exist.3 +man/ja_JP.EUC/man3/js_env_list.3 +man/ja_JP.EUC/man3/js_env_sticky.3 +man/ja_JP.EUC/man3/js_env_un_sticky.3 +man/ja_JP.EUC/man3/js_file_comment_set.3 +man/ja_JP.EUC/man3/js_file_discard.3 +man/ja_JP.EUC/man3/js_file_info.3 +man/ja_JP.EUC/man3/js_file_list.3 +man/ja_JP.EUC/man3/js_file_list_all.3 +man/ja_JP.EUC/man3/js_file_loaded.3 +man/ja_JP.EUC/man3/js_file_loaded_local.3 +man/ja_JP.EUC/man3/js_file_password_set.3 +man/ja_JP.EUC/man3/js_file_read.3 +man/ja_JP.EUC/man3/js_file_receive.3 +man/ja_JP.EUC/man3/js_file_remove.3 +man/ja_JP.EUC/man3/js_file_remove_client.3 +man/ja_JP.EUC/man3/js_file_send.3 +man/ja_JP.EUC/man3/js_file_stat.3 +man/ja_JP.EUC/man3/js_file_write.3 +man/ja_JP.EUC/man3/js_fuzokugo_get.3 +man/ja_JP.EUC/man3/js_fuzokugo_set.3 +man/ja_JP.EUC/man3/js_get_lang.3 +man/ja_JP.EUC/man3/js_hindo_file_create.3 +man/ja_JP.EUC/man3/js_hindo_file_create_client.3 +man/ja_JP.EUC/man3/js_hindo_set.3 +man/ja_JP.EUC/man3/js_hinsi_dicts.3 +man/ja_JP.EUC/man3/js_hinsi_list.3 +man/ja_JP.EUC/man3/js_hinsi_name.3 +man/ja_JP.EUC/man3/js_hinsi_number.3 +man/ja_JP.EUC/man3/js_hinsi_table_set.3 +man/ja_JP.EUC/man3/js_isconnect.3 +man/ja_JP.EUC/man3/js_kanren.3 +man/ja_JP.EUC/man3/js_kantan_dai.3 +man/ja_JP.EUC/man3/js_kantan_sho.3 +man/ja_JP.EUC/man3/js_kanzen_dai.3 +man/ja_JP.EUC/man3/js_kanzen_sho.3 +man/ja_JP.EUC/man3/js_kill.3 +man/ja_JP.EUC/man3/js_mkdir.3 +man/ja_JP.EUC/man3/js_open.3 +man/ja_JP.EUC/man3/js_open_lang.3 +man/ja_JP.EUC/man3/js_param_get.3 +man/ja_JP.EUC/man3/js_param_set.3 +man/ja_JP.EUC/man3/js_set_lang.3 +man/ja_JP.EUC/man3/js_version.3 +man/ja_JP.EUC/man3/js_who.3 +man/ja_JP.EUC/man3/js_word_add.3 +man/ja_JP.EUC/man3/js_word_comment_set.3 +man/ja_JP.EUC/man3/js_word_delete.3 +man/ja_JP.EUC/man3/js_word_info.3 +man/ja_JP.EUC/man3/js_word_search.3 +man/ja_JP.EUC/man3/js_word_search_by_env.3 +man/ja_JP.EUC/man3/msg_close.3 +man/ja_JP.EUC/man3/msg_get.3 +man/ja_JP.EUC/man3/msg_open.3 +man/ja_JP.EUC/man3/romkan_clear.3 +man/ja_JP.EUC/man3/romkan_dispmode.3 +man/ja_JP.EUC/man3/romkan_getc.3 +man/ja_JP.EUC/man3/romkan_init.3 +man/ja_JP.EUC/man3/romkan_next.3 +man/ja_JP.EUC/man3/romkan_ungetc.3 +share/wnn/cvt_key_empty +share/wnn/cvt_key_tbl +share/wnn/cvt_key_tbl.ST +share/wnn/cvt_key_tbl.gm +share/wnn/cvt_key_tbl.kt +share/wnn/cvt_key_tbl.mv +share/wnn/cvt_key_tbl.vt +share/wnn/ja_JP/hinsi.data +share/wnn/ja_JP/jserverrc +share/wnn/ja_JP/libwnn.msg +share/wnn/ja_JP/rk.vi/1B_newTOUPPER +share/wnn/ja_JP/rk.vi/2A_CTRL +share/wnn/ja_JP/rk.vi/2B_KEISEN +share/wnn/ja_JP/rk.vi/2B_ROMKANA +share/wnn/ja_JP/rk.vi/2C_KEISEN1 +share/wnn/ja_JP/rk.vi/2C_VI +share/wnn/ja_JP/rk.vi/2C_VIEX +share/wnn/ja_JP/rk.vi/2C_VISH +share/wnn/ja_JP/rk.vi/2_VITHROW +share/wnn/ja_JP/rk.vi/3B_ZENASC +share/wnn/ja_JP/rk.vi/mode +share/wnn/ja_JP/rk.vi/uumkey +share/wnn/ja_JP/rk/1B_TOUPPER +share/wnn/ja_JP/rk/1B_ZENHIRA +share/wnn/ja_JP/rk/1B_ZENKATA +share/wnn/ja_JP/rk/1B_newTOUPPER +share/wnn/ja_JP/rk/2A_CTRL +share/wnn/ja_JP/rk/2B_DAKUTEN +share/wnn/ja_JP/rk/2B_JIS +share/wnn/ja_JP/rk/2B_ROMKANA +share/wnn/ja_JP/rk/2_TCODE +share/wnn/ja_JP/rk/3B_HANKATA +share/wnn/ja_JP/rk/3B_KATAKANA +share/wnn/ja_JP/rk/3B_ZENKAKU +share/wnn/ja_JP/rk/autork +share/wnn/ja_JP/rk/mode +share/wnn/ja_JP/rk/mode.hankata +share/wnn/ja_JP/rk/mode.nohankata +share/wnn/ja_JP/uum.msg +share/wnn/ja_JP/uumkey +share/wnn/ja_JP/uumkey.omr +share/wnn/ja_JP/uumkey_e +share/wnn/ja_JP/uumrc +share/wnn/ja_JP/uumrc.omr +share/wnn/ja_JP/uumrc.rev +share/wnn/ja_JP/uumrc_e +share/wnn/ja_JP/uumrc_vi +share/wnn/ja_JP/wnnenvrc +share/wnn/ja_JP/wnnenvrc.omr +share/wnn/ja_JP/wnnenvrc.rem +share/wnn/ja_JP/wnnenvrc.rev +share/wnn/ja_JP/wnnenvrc_R +share/wnn/ja_JP/wnnenvrc_R.omr +share/wnn/ja_JP/wnnenvrc_R.rem +share/wnn/ja_JP/wnnstat.msg +share/wnn/lt_LN/rk/2A_CTRL +share/wnn/lt_LN/rk/2B_LATIN +share/wnn/lt_LN/rk/mode +share/wnn/lt_LN/uum.msg +share/wnn/lt_LN/uumkey +share/wnn/lt_LN/uumkey_e +share/wnn/lt_LN/uumrc +share/wnn/serverdefs +@dirrm share/wnn/lt_LN/rk +@dirrm share/wnn/lt_LN +@dirrm share/wnn/ja_JP/rk.vi +@dirrm share/wnn/ja_JP/rk +@dirrm share/wnn/ja_JP +@dirrm share/wnn +@dirrm include/wnn diff --git a/inputmethod/ja-freewnn-lib/distinfo b/inputmethod/ja-freewnn-lib/distinfo new file mode 100644 index 00000000000..774d6107830 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/distinfo @@ -0,0 +1,11 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/05/31 13:00:48 seb Exp $ + +SHA1 (FreeWnn-1.10.tar.gz) = 66a0640d4632d82b7012c4aa2239bc1d69d45034 +Size (FreeWnn-1.10.tar.gz) = 3468613 bytes +SHA1 (patch-aa) = d2385eefe88c460fbaa176f1ca278f005dad0352 +SHA1 (patch-ab) = 20712663f68f63834d47bfadedfead537dbfa050 +SHA1 (patch-ac) = d74f31402088268df65dfdc4046242fec349ba88 +SHA1 (patch-ad) = b92228c7a2b24f3ed4b8c39a5893e65731120c56 +SHA1 (patch-ae) = d0b4c079859603c42ae957c7b413f4272a054f58 +SHA1 (patch-af) = 26d45af3c65df5af5299c837a123129ec5919bd4 +SHA1 (patch-ag) = c70655f9057f0372cc9f0208535e0f39281f82aa diff --git a/inputmethod/ja-freewnn-lib/files/INSTALL b/inputmethod/ja-freewnn-lib/files/INSTALL new file mode 100644 index 00000000000..5b0b37e7686 --- /dev/null +++ b/inputmethod/ja-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/inputmethod/ja-freewnn-lib/files/ja_freewnn b/inputmethod/ja-freewnn-lib/files/ja_freewnn new file mode 100644 index 00000000000..83859ef6907 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/files/ja_freewnn @@ -0,0 +1,34 @@ +#!/bin/sh +# +# $NetBSD: ja_freewnn,v 1.1.1.1 2002/05/31 13:00:48 seb 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/inputmethod/ja-freewnn-lib/patches/patch-aa b/inputmethod/ja-freewnn-lib/patches/patch-aa new file mode 100644 index 00000000000..18b064254a8 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/patches/patch-aa @@ -0,0 +1,51 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/05/31 13:00:48 seb 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/inputmethod/ja-freewnn-lib/patches/patch-ab b/inputmethod/ja-freewnn-lib/patches/patch-ab new file mode 100644 index 00000000000..931c5d41721 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/05/31 13:00:48 seb 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/inputmethod/ja-freewnn-lib/patches/patch-ac b/inputmethod/ja-freewnn-lib/patches/patch-ac new file mode 100644 index 00000000000..1694c9a0078 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/05/31 13:00:48 seb 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/inputmethod/ja-freewnn-lib/patches/patch-ad b/inputmethod/ja-freewnn-lib/patches/patch-ad new file mode 100644 index 00000000000..b7c41b81f59 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/patches/patch-ad @@ -0,0 +1,23 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/05/31 13:00:48 seb Exp $ + +--- configure.in.orig Tue Apr 6 12:12:19 1999 ++++ configure.in +@@ -54,12 +54,17 @@ + CPP=/lib/cpp + fi + ;; +-"FreeBSD") ++"FreeBSD" | "OpenBSD") + CCOPTIONS="-DCSRG_BASED" + CDEBUGFLAGS="-O2 -fno-strength-reduce" + if test -x /usr/libexec/cpp; then + CPP=/usr/libexec/cpp + fi ++ ;; ++"NetBSD") ++ CCOPTIONS="-DCSRG_BASED" ++ CDEBUGFLAGS="-O2 -fno-strength-reduce" ++ CPP=/usr/bin/cpp + ;; + "SunOS") + if test $CC = gcc; then diff --git a/inputmethod/ja-freewnn-lib/patches/patch-ae b/inputmethod/ja-freewnn-lib/patches/patch-ae new file mode 100644 index 00000000000..9231741bd91 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/patches/patch-ae @@ -0,0 +1,23 @@ +$NetBSD: patch-ae,v 1.1.1.1 2002/05/31 13:00:48 seb Exp $ + +--- configure.orig Tue Apr 6 12:12:18 1999 ++++ configure +@@ -704,12 +704,17 @@ + CPP=/lib/cpp + fi + ;; +-"FreeBSD") ++"FreeBSD" | "OpenBSD") + CCOPTIONS="-DCSRG_BASED" + CDEBUGFLAGS="-O2 -fno-strength-reduce" + if test -x /usr/libexec/cpp; then + CPP=/usr/libexec/cpp + fi ++ ;; ++"NetBSD") ++ CCOPTIONS="-DCSRG_BASED" ++ CDEBUGFLAGS="-O2 -fno-strength-reduce" ++ CPP=/usr/bin/cpp + ;; + "SunOS") + if test $CC = gcc; then diff --git a/inputmethod/ja-freewnn-lib/patches/patch-af b/inputmethod/ja-freewnn-lib/patches/patch-af new file mode 100644 index 00000000000..d368ccdf250 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/patches/patch-af @@ -0,0 +1,15 @@ +$NetBSD: patch-af,v 1.1.1.1 2002/05/31 13:00:48 seb 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/inputmethod/ja-freewnn-lib/patches/patch-ag b/inputmethod/ja-freewnn-lib/patches/patch-ag new file mode 100644 index 00000000000..59c1b658a87 --- /dev/null +++ b/inputmethod/ja-freewnn-lib/patches/patch-ag @@ -0,0 +1,18 @@ +$NetBSD: patch-ag,v 1.1.1.1 2002/05/31 13:00:48 seb 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 |