diff options
Diffstat (limited to 'japanese/sj3-server')
-rw-r--r-- | japanese/sj3-server/Makefile | 48 | ||||
-rw-r--r-- | japanese/sj3-server/distinfo | 6 | ||||
-rw-r--r-- | japanese/sj3-server/files/patch-sj3.tmpl | 21 | ||||
-rw-r--r-- | japanese/sj3-server/files/patch-termios | 156 | ||||
-rw-r--r-- | japanese/sj3-server/files/sj3.sh.in | 28 | ||||
-rw-r--r-- | japanese/sj3-server/pkg-descr | 20 | ||||
-rw-r--r-- | japanese/sj3-server/pkg-install | 36 | ||||
-rw-r--r-- | japanese/sj3-server/pkg-plist | 21 |
8 files changed, 0 insertions, 336 deletions
diff --git a/japanese/sj3-server/Makefile b/japanese/sj3-server/Makefile deleted file mode 100644 index c14870168960..000000000000 --- a/japanese/sj3-server/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -# New ports collection makefile for: SJ3 -# Date created: 18 Aug 1998 -# Whom: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp> -# -# $FreeBSD$ -# - -PORTNAME= sj3 -PORTVERSION= 2.0.1.20 -PORTREVISION= 5 -CATEGORIES= japanese -MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \ - ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/ -MASTER_SITES+= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= nork - -PATCH_SITES= http://quasiquote.org/files/ -PATCHFILES= ${PORTNAME}-qq-2.0.1.21.diff.gz -PATCH_DIST_STRIP= -p1 - -MAINTAINER= hiroo+freebsd@oikumene.gcd.org -COMMENT= A Japanese input method - -USE_RC_SUBR= sj3.sh -USE_IMAKE= yes - -MAN1= sj3.1 sj3dic.1 sj3mkdic.1 sj3serv.1 -MANLANG= ja -MANCOMPRESSED= no -PORTDOCS= Nihongo.ps.Z hinsi.ms makedict.ms sj3lib.ms sj3serv.ms - -# NOTE : You must not use 'xmkmf -a', because the running 'make depend' caused a error. - -.include <bsd.port.pre.mk> - -pre-configure: - ${REINPLACE_CMD} -e "\#^SJ3TOP#s#=.*#= ${PREFIX}#" \ - -e "\#^SJ3DICTDIR#s#=.*#= \\$$\(SJ3LIBDIR)/sj3/dict#" \ - -e "\#^SJ3VARRUNDIR#s#=.*#= ${DESTDIR}\\$$\(VARDIR)/run/sj3#" \ - ${WRKSRC}/sj3.tmpl - -do-configure: - ( cd $(WRKSRC) ; ${XMKMF} ; make Makefiles ) - -pre-install: - @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - -.include <bsd.port.post.mk> diff --git a/japanese/sj3-server/distinfo b/japanese/sj3-server/distinfo deleted file mode 100644 index 44730536cf6e..000000000000 --- a/japanese/sj3-server/distinfo +++ /dev/null @@ -1,6 +0,0 @@ -MD5 (sj3-2.0.1.20.tar.gz) = 36cc23702e2295e4552271b9d481c863 -SHA256 (sj3-2.0.1.20.tar.gz) = 6195e0252382032f99a2597590283acbcf43180df1d9a0a3754c4c8ad4945292 -SIZE (sj3-2.0.1.20.tar.gz) = 584065 -MD5 (sj3-qq-2.0.1.21.diff.gz) = 906ecafa79ea6b9d5d0f90f6322cb0bd -SHA256 (sj3-qq-2.0.1.21.diff.gz) = 0c362d623ce10a18fab604f1f79e498ec33fbdf9a3236066a2c0b0e4960b2d28 -SIZE (sj3-qq-2.0.1.21.diff.gz) = 102686 diff --git a/japanese/sj3-server/files/patch-sj3.tmpl b/japanese/sj3-server/files/patch-sj3.tmpl deleted file mode 100644 index e9e027128774..000000000000 --- a/japanese/sj3-server/files/patch-sj3.tmpl +++ /dev/null @@ -1,21 +0,0 @@ ---- ./sj3.tmpl.orig Sat Jun 9 23:22:10 2007 -+++ ./sj3.tmpl Sat Jun 9 23:22:45 2007 -@@ -56,18 +56,6 @@ - - #define Sj3LibRev 1.21 - --/* -- * Change for FreeBSD. -- * Because When the LANG variable is EUC, setlocale function in library libc -- * return NULL, use it in library libxpg4 -- * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10 -- */ --#if defined(FreeBSDArchitecture) -- --CODE_LIBS = -lxpg4 -- --#endif -- - #if SystemV4 || SystemV - USETLI = -DTLI - #else diff --git a/japanese/sj3-server/files/patch-termios b/japanese/sj3-server/files/patch-termios deleted file mode 100644 index 24f8e5ee157c..000000000000 --- a/japanese/sj3-server/files/patch-termios +++ /dev/null @@ -1,156 +0,0 @@ ---- include/sj_sysvdef.h -+++ include/sj_sysvdef.h -@@ -50,8 +50,8 @@ - #endif - #endif - --#ifdef SVR4 - #define SYSV_TERMIOS -+#ifdef SVR4 - #define SIGTYPE_VOID - #endif /* SVR4 */ - ---- sj3/sj3.c -+++ sj3/sj3.c -@@ -50,7 +50,7 @@ - #define LACKOF_SETLOCALE - #endif - #endif --#if defined(__FreeBSD__) || defined(__OpenBSD__) -+#if defined(__OpenBSD__) - #include <sys/ioctl_compat.h> - #endif - #include <curses.h> -@@ -81,9 +81,7 @@ - #define DEFAULTSHELL "/bin/sh" - #endif - --#if defined(linux) && defined (__GLIBC__) && (__GLIBC__ >= 2) - #include <termios.h> --#endif - - int Lflag = 0; - int shell_flag = 0; -@@ -119,9 +117,9 @@ - #define ts_lines ws_row - #define ts_cols ws_col - #else --int Ttyslot; - struct ttysize Ttysize; - #endif -+int Ttyslot; - int master; - int slave; - -@@ -419,7 +417,7 @@ - get_ttymode() - { - #ifdef SYSV_TERMIOS -- ioctl (0, TCGETS, (char *)&b); -+ tcgetattr (0, &b); - erase_char = b.c_cc[VERASE]; - set_bs(erase_char); - erase_str[0] = erase_char; -@@ -586,7 +584,7 @@ - struct termios sbuf; - - sbuf = b; -- sbuf.c_iflag &= ~(INLCR|IGNCR|ICRNL|IUCLC|IXON); -+ sbuf.c_iflag &= ~(INLCR|IGNCR|ICRNL|IXON); - sbuf.c_oflag &= ~(ONLCR|OPOST); - sbuf.c_lflag &= ~(ICANON|ECHO); - sbuf.c_cc[VMIN] = 1; -@@ -601,7 +599,7 @@ - sbuf.c_cc[VDISCARD] = 0; - sbuf.c_cc[VWERASE] = 0; - sbuf.c_cc[VLNEXT] = 0; -- (void) ioctl(0, TCSETSW, (char *)&sbuf); -+ (void) tcsetattr(0, TCSADRAIN, &sbuf); - #else - struct sgttyb sbuf; - -@@ -793,7 +791,7 @@ - shellprocess() - { - int t, f; --#ifdef SYSV_TERMIOS -+#if 0 - #ifdef SYSV_UTMP - struct utmp Utmp; - #else -@@ -952,7 +950,7 @@ - #endif - ioctl (slave, TIOCSSIZE, &Ttysize); - #else /* SYSV_TERMIOS */ -- (void) ioctl(slave, TCSETSF, (char *)&b); -+ (void) tcsetattr(slave, TCSAFLUSH, &b); - (void) ioctl(slave, TIOCSWINSZ, (char *)&Ttysize); - #endif /* SYSV_TERMIOS */ - #endif /* SVR4 */ -@@ -1026,7 +1024,7 @@ - chown (slave_name, 0, 0); - chmod (slave_name, 0666); - #ifdef SYSV_TERMIOS -- ioctl (0, TCSETSW, (char *)&b); -+ tcsetattr (0, TCSADRAIN, &b); - #else /* SYSV_TERMIOS */ - ioctl (0, TIOCSETP, (char *)&b); - ioctl (0, TIOCSETC, (char *)&tc); -@@ -1119,7 +1117,7 @@ - } while (nc > 0); - - #ifdef SYSV_TERMIOS -- ioctl (0, TCSETSW, (char *)&b); -+ tcsetattr (0, TCSADRAIN, &b); - #else /* SYSV_TERMIOS */ - ioctl (0, TIOCSETP, (char *)&b); - ioctl (0, TIOCSETC, (char *)&tc); ---- sj3/sjgetchar.c -+++ sj3/sjgetchar.c -@@ -54,7 +54,7 @@ - #if defined(__NetBSD__) || defined(__bsdi__) - #define USE_OLD_TTY - #endif --#if defined(__FreeBSD__) || defined(__OpenBSD__) -+#if defined(__OpenBSD__) - #include <sys/ioctl_compat.h> - #endif - #include <curses.h> -@@ -259,9 +259,7 @@ - } - } - #else --#if defined(linux) && defined (__GLIBC__) && (__GLIBC__ >= 2) - #include <termios.h> --#endif - - void - output_master() -@@ -299,10 +297,10 @@ - } - else if (m & TIOCPKT_NOSTOP) { - #ifdef SYSV_TERMIOS -- ioctl (1, TCGETS, &tc); -+ tcgetattr (1, &tc); - tc.c_cc[VSTOP] = 0; - tc.c_cc[VSTART] = 0; -- ioctl (STDOUT, TCSETS, &tc); -+ tcsetattr (STDOUT, TCSANOW, &tc); - #else - - ioctl (1, TIOCGETC, &tc); -@@ -313,11 +311,11 @@ - } - else if (m & TIOCPKT_DOSTOP) { - #ifdef SYSV_TERMIOS -- ioctl (master, TCGETS, &tc1); -- ioctl (STDOUT, TCGETS, &tc); -+ tcgetattr (master, &tc1); -+ tcgetattr (STDOUT, &tc); - tc.c_cc[VSTOP] = tc1.c_cc[VSTOP]; - tc.c_cc[VSTART] = tc1.c_cc[VSTART]; -- ioctl (STDOUT, TCSETS, &tc); -+ tcsetattr (STDOUT, TCSANOW, &tc); - #else - ioctl (master, TIOCGETC, &tc1); - ioctl (STDOUT, TIOCGETC, &tc); diff --git a/japanese/sj3-server/files/sj3.sh.in b/japanese/sj3-server/files/sj3.sh.in deleted file mode 100644 index f39a18764ccd..000000000000 --- a/japanese/sj3-server/files/sj3.sh.in +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: sj3 -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Define these sj3_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/sj3 -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -sj3_enable=${sj3_enable:-"NO"} # Enable sj3 -#sj3_program="%%PREFIX%%/sbin/sj3serv" # Location of sj3 - -. %%RC_SUBR%% - -name="sj3" -rcvar=`set_rcvar` -command="%%PREFIX%%/sbin/sj3serv" - -load_rc_config $name -run_rc_command "$1" diff --git a/japanese/sj3-server/pkg-descr b/japanese/sj3-server/pkg-descr deleted file mode 100644 index 3daaeb2d9b61..000000000000 --- a/japanese/sj3-server/pkg-descr +++ /dev/null @@ -1,20 +0,0 @@ -This is SJ3 2.0.1.20, a Japanese input method. -This system developed by Sony Corporation. -SJ3 is composed of Kana-Kanji conversion server(sj3serv), -Kana-Kanji conversion client for terminal(sj3) and Kana-Kanji -conversion library(sj3lib). - -If you start up sj3serv, you must add a following entry into -/etc/services file or NIS/YP services map. - -sj3 3086/tcp - -This port number may be changed by the setup file(See manpages). - -This also include many patches for FreeBSD or others. -(Remove warning, support pseudo-terminal of FreeBSD, - some bug fix and change make rules.) If there are any problem -in this patches, please know me via E-mail. - -Hidekazu Kuroki -(hidekazu@cs.titech.ac.jp) diff --git a/japanese/sj3-server/pkg-install b/japanese/sj3-server/pkg-install deleted file mode 100644 index 800be546af56..000000000000 --- a/japanese/sj3-server/pkg-install +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -PATH=/bin:/usr/sbin - -case $2 in - PRE-INSTALL) - USER=_sj3 - GROUP=${USER} - UID=912 - GID=${UID} - - if pw group show "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." - else - if pw groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi - fi - - if pw user show "${USER}" 2>/dev/null; then - echo "You already have a user \"${USER}\", so I will use it." - else - if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ - -d /nonexistent -s /sbin/nologin -c "SJ3 Daemon" - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi - fi - ;; -esac diff --git a/japanese/sj3-server/pkg-plist b/japanese/sj3-server/pkg-plist deleted file mode 100644 index 2e7e1c6edf02..000000000000 --- a/japanese/sj3-server/pkg-plist +++ /dev/null @@ -1,21 +0,0 @@ -bin/sj3 -bin/sj3dic -bin/sj3mkdic -bin/sj3stat -etc/sj3/cvtkey.news -etc/sj3/cvtkey.nwp511 -etc/sj3/cvtkey.nwp517 -etc/sj3/cvtkey.xterm -etc/sj3/serverrc -etc/sj3/sjrc -etc/sj3/sjrk -include/sj3lib.h -lib/libsj3lib.a -lib/libsj3lib.so -lib/libsj3lib.so.1 -lib/sj3/dict/sj3main.dic -sbin/sj3serv -@dirrm lib/sj3/dict/user -@dirrm lib/sj3/dict -@dirrm lib/sj3 -@dirrm etc/sj3 |