summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>2003-09-02 10:04:54 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>2003-09-02 10:04:54 +0000
commit37641fe4842d23932e99279daa854b3f7ab4b5de (patch)
tree8bd032d19d6b825a6f993da37b9a4fb5b7570ba8 /japanese
parentupdated to the newest version of pim6sd (20030901) (diff)
* Support CFLAGS
* USE_AUTOCONF - > USE_AUTOCONF_VER Submitted by: KATO Tsuguru <tkato@prontomail.com> * Use config.sub and config.guess in Templates instead of devel/autoconf213 Pointed out by: kuriyama * Update version to 1.1.1-a020 * Support "{start|stop}" for startup scripts in ${PREFIX}/etc/rc.d
Notes
Notes: svn path=/head/; revision=88339
Diffstat (limited to 'japanese')
-rw-r--r--japanese/FreeWnn-lib/Makefile15
-rw-r--r--japanese/FreeWnn-lib/distinfo2
-rw-r--r--japanese/FreeWnn-lib/pkg-plist2
-rw-r--r--japanese/FreeWnn-server/pkg-install76
4 files changed, 57 insertions, 38 deletions
diff --git a/japanese/FreeWnn-lib/Makefile b/japanese/FreeWnn-lib/Makefile
index 514ac2c41fc3..5aec50ec3db3 100644
--- a/japanese/FreeWnn-lib/Makefile
+++ b/japanese/FreeWnn-lib/Makefile
@@ -7,7 +7,7 @@
PORTNAME= FreeWnn
PORTVERSION= ${WMMVERSION:S/-/./}
-PORTREVISION= 1
+#PORTREVISION= 1
CATEGORIES?= japanese
MASTER_SITES= ftp://ftp.freewnn.org/pub/FreeWnn/alpha/
PKGNAMESUFFIX?= -lib
@@ -16,17 +16,17 @@ DISTNAME= ${PORTNAME}-${WMMVERSION}
MAINTAINER= taoka@FreeBSD.org
COMMENT?= A Japanese/Chinese/Korean input method (Japanese client libraries)
-#WRKSRC= ${WRKDIR}/${DISTNAME}/Xsi
-WRKSRC= ${WRKDIR}/FreeWnn-1.1.1-a017-pl4/Xsi
+WRKSRC= ${WRKDIR}/FreeWnn-1.10-pl020
ALL_TARGET= includes all
INSTALL_TARGET= install install.man
GNU_CONFIGURE= yes
-USE_AUTOCONF= yes
+USE_AUTOCONF_VER= 213
USE_LIBTOOL= yes
+MAKE_ARGS= CDEBUGFLAGS="${CFLAGS}"
INSTALLS_SHLIB= yes
USE_BZIP2= yes
-WMMVERSION= 1.1.1-a018
+WMMVERSION= 1.1.1-a020
WNN?= Wnn
.if (${PKGNAMESUFFIX} == -lib)
@@ -113,11 +113,6 @@ CONFIGURE_ARGS+= --with-libkwnn=-lkwnn --with-kwnn-libraries="${PREFIX}/lib"
.endif
.endif
-post-extract:
- ${CP} ${LIBTOOL_SHAREDIR}/libltdl/aclocal.m4 ${WRKSRC}
- ${CP} ${AUTOCONF_DIR}/config.sub ${WRKSRC}
- ${CP} ${AUTOCONF_DIR}/config.guess ${WRKSRC}
-
.if (${PKGNAMESUFFIX} == -server)
pre-install:
${SETENV} BATCH=${BATCH} \
diff --git a/japanese/FreeWnn-lib/distinfo b/japanese/FreeWnn-lib/distinfo
index f5cacd73cc55..64ec4339cd2f 100644
--- a/japanese/FreeWnn-lib/distinfo
+++ b/japanese/FreeWnn-lib/distinfo
@@ -1 +1 @@
-MD5 (FreeWnn-1.1.1-a018.tar.bz2) = e4a56cd7373736c090c6b93a255b950b
+MD5 (FreeWnn-1.1.1-a020.tar.bz2) = c00549415cdb08c1f35240dccf8dab20
diff --git a/japanese/FreeWnn-lib/pkg-plist b/japanese/FreeWnn-lib/pkg-plist
index 6dd7181fb7ed..7692b881600c 100644
--- a/japanese/FreeWnn-lib/pkg-plist
+++ b/japanese/FreeWnn-lib/pkg-plist
@@ -73,9 +73,11 @@ lib/wnn/lt_LN/uumkey
lib/wnn/lt_LN/uumkey_e
lib/wnn/lt_LN/uumrc
lib/libjd.a
+lib/libjd.la
lib/libjd.so
lib/libjd.so.0
lib/libwnn.a
+lib/libwnn.la
lib/libwnn.so
lib/libwnn.so.0
@dirrm lib/wnn/ja_JP/rk
diff --git a/japanese/FreeWnn-server/pkg-install b/japanese/FreeWnn-server/pkg-install
index 6d9decb4539d..05e26c3c6c44 100644
--- a/japanese/FreeWnn-server/pkg-install
+++ b/japanese/FreeWnn-server/pkg-install
@@ -48,6 +48,37 @@ yesno() {
done
}
+mk_startup_script() {
+ echo "Installing ${startup_script} startup file.";
+ cat << EOF > ${startup_script}
+#!/bin/sh
+wnnserver=${wnnserver}
+case "\$1" in
+start)
+ if [ -x $wnnserver ]; then
+ ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1
+ if [ \$? = 255 ]; then
+ rm -f ${wnn_socket}
+ echo -n ' ${wnnname}'
+ $wnnserver > /dev/null
+ fi
+ fi
+ ;;
+stop)
+ ${wnnkill} -L ${wnn_lang} localhost
+ ;;
+*)
+ echo "Usage: \`basename \$0\` {start|stop}" >&2
+ exit 64
+ ;;
+esac
+
+exit 0
+
+EOF
+
+}
+
case $2 in
PRE-INSTALL)
@@ -103,6 +134,7 @@ POST-INSTALL)
wnnserver=${PKG_PREFIX}/bin/Wnn4/jserver
wnntouch=${PKG_PREFIX}/bin/Wnn4/wnntouch
wnnstat=${PKG_PREFIX}/bin/Wnn4/wnnstat
+ wnnkill=${PKG_PREFIX}/bin/Wnn4/wnnkill
wnnname=Wnn
wnn_socket=/tmp/jd_sockV4
wnn_lang=ja_JP
@@ -113,6 +145,7 @@ POST-INSTALL)
wnnserver=${PKG_PREFIX}/bin/cWnn4/cserver
wnntouch=${PKG_PREFIX}/bin/cWnn4/cwnntouch
wnnstat=${PKG_PREFIX}/bin/cWnn4/cwnnstat
+ wnnkill=${PKG_PREFIX}/bin/cWnn4/cwnnkill
wnnname=cWnn
wnn_socket=/tmp/cd_sockV4
wnn_lang=zh_CN
@@ -123,6 +156,7 @@ POST-INSTALL)
wnnserver=${PKG_PREFIX}/bin/kWnn4/kserver
wnntouch=${PKG_PREFIX}/bin/kWnn4/kwnntouch
wnnstat=${PKG_PREFIX}/bin/kWnn4/kwnnstat
+ wnnkill=${PKG_PREFIX}/bin/kWnn4/kwnnkill
wnnname=kWnn
wnn_socket=/tmp/kd_sockV4
wnn_lang=ko_KR
@@ -143,33 +177,21 @@ POST-INSTALL)
## create a startup script ##
startup_script=${PKG_PREFIX}/etc/rc.d/${wnnname}.sh
if [ ! -f ${startup_script} ]; then
- echo "Installing ${startup_script} startup file.";
- echo '#!/bin/sh' > ${startup_script};
- echo "wnn=${wnnserver}" >> ${startup_script};
- echo 'if [ -x $wnn ]; then' >> ${startup_script};
- echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script};
- echo ' if [ $? = 255 ]; then' >> ${startup_script};
- echo " rm -f ${wnn_socket}" >> ${startup_script};
- echo " echo -n ' ${wnnname}'" >> ${startup_script};
- echo ' $wnn' >> ${startup_script};
- echo " fi" >> ${startup_script};
- echo "fi" >> ${startup_script};
- if [ $1 = zh-Wnn-4.2 ]; then
- wnnserver=${PKG_PREFIX}/bin/cWnn4/tserver
- wnn_lang=zh_TW
- wnn_socket=/tmp/td_sockV4
- echo "wnn=${wnnserver}" >> ${startup_script};
- echo 'if [ -x $wnn ]; then' >> ${startup_script};
- echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script};
- echo ' if [ $? = 255 ]; then' >> ${startup_script};
- echo " rm -f ${wnn_socket}" >> ${startup_script};
- echo " echo -n ' ${wnnname}'" >> ${startup_script};
- echo ' $wnn' >> ${startup_script};
- echo " fi" >> ${startup_script};
- echo "fi" >> ${startup_script};
- fi
- chmod 755 ${startup_script};
- chown bin:bin ${startup_script};
+ mk_startup_script
+ chmod 755 ${startup_script};
+ chown bin:bin ${startup_script};
+ case "$1" in
+ zh-FreeWnn-*)
+ wnnname=tWnn
+ startup_script=${PKG_PREFIX}/etc/rc.d/${wnnname}.sh
+ wnnserver=${PKG_PREFIX}/bin/cWnn4/tserver
+ wnn_lang=zh_TW
+ wnn_socket=/tmp/td_sockV4
+ mk_startup_script
+ chmod 755 ${startup_script};
+ chown bin:bin ${startup_script};
+ ;;
+ esac
fi
;;
esac