diff options
author | taoka <taoka@FreeBSD.org> | 1999-04-22 15:58:54 +0000 |
---|---|---|
committer | taoka <taoka@FreeBSD.org> | 1999-04-22 15:58:54 +0000 |
commit | 92d6ab2d39172714e6d5dbb9a693c5b613c4f769 (patch) | |
tree | 6ad05c813c00973802e9ce00ed55ddf308de8947 /japanese | |
parent | ca224fb55158233a4b1f858ba10995be2f62e289 (diff) | |
download | FreeBSD-ports-92d6ab2d39172714e6d5dbb9a693c5b613c4f769.zip FreeBSD-ports-92d6ab2d39172714e6d5dbb9a693c5b613c4f769.tar.gz |
To use ${BATCH}
Noticed by: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/FreeWnn-lib/Makefile | 9 | ||||
-rw-r--r-- | japanese/FreeWnn-server/Makefile | 9 | ||||
-rw-r--r-- | japanese/FreeWnn-server/pkg-install | 19 |
3 files changed, 27 insertions, 10 deletions
diff --git a/japanese/FreeWnn-lib/Makefile b/japanese/FreeWnn-lib/Makefile index 8277b88..970c0be 100644 --- a/japanese/FreeWnn-lib/Makefile +++ b/japanese/FreeWnn-lib/Makefile @@ -3,7 +3,7 @@ # Date created: 20 July 1997 # Whom: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp> # -# $Id: Makefile,v 1.21 1999/02/03 11:11:48 asami Exp $ +# $Id: Makefile,v 1.22 1999/02/10 14:31:58 kuriyama Exp $ # DISTNAME= Wnn4.2 @@ -27,6 +27,10 @@ WRKSRC= ${WRKDIR}/Xsi WNN_EXTRA_PATCH= Wnn4.2.patch-981201.tar.gz MAKE_ENV+= PATH=/usr/bin:$${PATH} PORT_IMAKE_DEFINES='${WNN_DEF}' +.if defined(BATCH) +BATCH= yes # make sure it's not empty +.endif + .if (${PKGNAME} == ja-Wnn-4.2) DISTFILES+= pubdic+.tar.gz pubdic+-fix01.gz pubdic+.diff pubdic+.special.diff PORT_DOCDIR= ${PREFIX}/share/doc/ja-Wnn @@ -134,7 +138,8 @@ post-build: .endif pre-install: - @${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL + @${SETENV} BATCH=${BATCH} \ + ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL post-install: #### gerodic diff --git a/japanese/FreeWnn-server/Makefile b/japanese/FreeWnn-server/Makefile index 8277b88..970c0be 100644 --- a/japanese/FreeWnn-server/Makefile +++ b/japanese/FreeWnn-server/Makefile @@ -3,7 +3,7 @@ # Date created: 20 July 1997 # Whom: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp> # -# $Id: Makefile,v 1.21 1999/02/03 11:11:48 asami Exp $ +# $Id: Makefile,v 1.22 1999/02/10 14:31:58 kuriyama Exp $ # DISTNAME= Wnn4.2 @@ -27,6 +27,10 @@ WRKSRC= ${WRKDIR}/Xsi WNN_EXTRA_PATCH= Wnn4.2.patch-981201.tar.gz MAKE_ENV+= PATH=/usr/bin:$${PATH} PORT_IMAKE_DEFINES='${WNN_DEF}' +.if defined(BATCH) +BATCH= yes # make sure it's not empty +.endif + .if (${PKGNAME} == ja-Wnn-4.2) DISTFILES+= pubdic+.tar.gz pubdic+-fix01.gz pubdic+.diff pubdic+.special.diff PORT_DOCDIR= ${PREFIX}/share/doc/ja-Wnn @@ -134,7 +138,8 @@ post-build: .endif pre-install: - @${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL + @${SETENV} BATCH=${BATCH} \ + ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL post-install: #### gerodic diff --git a/japanese/FreeWnn-server/pkg-install b/japanese/FreeWnn-server/pkg-install index 8a32fa8..a30d1a3 100644 --- a/japanese/FreeWnn-server/pkg-install +++ b/japanese/FreeWnn-server/pkg-install @@ -76,14 +76,21 @@ EOF # 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 ;; |