From owner-ports-jp@jp.freebsd.org  Wed Apr 21 21:56:30 1999
Received: by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) id VAA24188;
	Wed, 21 Apr 1999 21:56:30 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from pis.toba-cmt.ac.jp (pis.toba-cmt.ac.jp [202.26.248.77])
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) with ESMTP id VAA24183
	for <ports-jp@jp.freebsd.org>; Wed, 21 Apr 1999 21:56:26 +0900 (JST)
	(envelope-from kiri@pis.toba-cmt.ac.jp)
Received: from localhost (localhost.pis [127.0.0.1])
	by pis.toba-cmt.ac.jp (8.9.3/8.8.8) with ESMTP id VAA47903
	for <ports-jp@jp.freebsd.org>; Wed, 21 Apr 1999 21:56:35 +0900 (JST)
	(envelope-from kiri@pis.toba-cmt.ac.jp)
To: ports-jp@jp.freebsd.org
X-Mailer: Mew version 1.93 on XEmacs 20.4 (Emerald)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <19990421215635G.kiri@pis.toba-cmt.ac.jp>
Date: Wed, 21 Apr 1999 21:56:35 +0900
From: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
X-Dispatcher: imput version 980905(IM100)
Lines: 53
Reply-To: ports-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990405
X-Sequence: ports-jp 6266
Subject: [ports-jp 6266] Add force BATCH mode to japanese/Wnn?
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org
X-Originator: kiri@pis.toba-cmt.ac.jp

$B6M;3(B $B$G$9!#(B

japanese/Wnn $B$J$s$G$9$,!"(BBATCH $B$rDI2C(B($B"-(B)$B$G$-$^$;$s$+!)!!!d(B $BED2,$5$s(B

diff -u -r -x CVS -x work -x *~ -x *.orig -N -I ^# *\$Id.*$ /usr/ports/current/japanese/Wnn/Makefile ./Makefile
--- /usr/ports/current/japanese/Wnn/Makefile	Thu Feb 11 02:32:33 1999
+++ ./Makefile	Wed Apr 21 21:32:41 1999
@@ -134,7 +134,8 @@
 .endif
 
 pre-install:
-	@${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
+	@${SETENV} BATCH=${BATCH} \
+		${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
 
 post-install:
 #### gerodic
diff -u -r -x CVS -x work -x *~ -x *.orig -N -I ^# *\$Id.*$ /usr/ports/current/japanese/Wnn/pkg/INSTALL ./pkg/INSTALL
--- /usr/ports/current/japanese/Wnn/pkg/INSTALL	Sat Mar  6 02:33:16 1999
+++ ./pkg/INSTALL	Wed Apr 21 21:32:41 1999
@@ -76,14 +76,21 @@
     # add an account 'wnn' to this system
     echo ""
     echo "You need an account 'wnn' whose ID number is 69"
-    if yesno "Would you like to create it automatically?" y; then
-	# We need a command 'pw(8)'
+    if [ -z "${BATCH}" ]; then
+	if yesno "Would you like to create it automatically?" y; then
+	    # We need a command 'pw(8)'
+	    check_pw
+	    pw useradd wnn -u 69 -g 7 -h - -d /nonexistent \
+		    -s /nonexistent -c Wnn || exit
+	else
+	    echo "Please create it, and try again."
+	    exit 1
+	fi
+    else
+	echo "Create it automatically!"
 	check_pw
 	pw useradd wnn -u 69 -g 7 -h - -d /nonexistent \
-		-s /nonexistent -c Wnn || exit
-    else
-	echo "Please create it, and try again."
-	exit 1
+	    -s /nonexistent -c Wnn || exit
     fi
     ;;
 

$B!t(B $B0l1~(B -DBATCH $B$G@5>o$K(B install $B$G$-$k$3$H$O3NG'$7$^$7$?!#(B
---
KIRIYAMA Kazuhiko
kiri@pis.toba-cmt.ac.jp
