From af5efb5e2484e55c0f50fbc3faf7be198ce31820 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Fri, 24 Apr 1998 14:37:49 +0000 Subject: I've forgotten to add ntdpd-ja.info for install-info. Use PACKAGE_BUILDING for intaractive install. --- japanese/ebnetd/Makefile | 9 ++++++--- japanese/ebnetd/pkg-install | 12 ++++++++++-- japanese/ndtpd/Makefile | 9 ++++++--- japanese/ndtpd/pkg-install | 12 ++++++++++-- 4 files changed, 32 insertions(+), 10 deletions(-) diff --git a/japanese/ebnetd/Makefile b/japanese/ebnetd/Makefile index 8b30d8fed06f..e68aa2af8c29 100644 --- a/japanese/ebnetd/Makefile +++ b/japanese/ebnetd/Makefile @@ -3,7 +3,7 @@ # Date created: 2 Oct 1997 # Whom: Motoyuki Kasahara # -# $Id: Makefile,v 1.1.1.1 1998/04/21 15:10:50 kuriyama Exp $ +# $Id: Makefile,v 1.2 1998/04/22 12:32:10 asami Exp $ # DISTNAME= ndtpd-1.0.6 @@ -38,6 +38,9 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --localstatedir=/var --enable-ja-info CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ INSTALL_DATA="${INSTALL_DATA}" +.if !defined(PACKAGE_BUILDING) +IS_INTERACTIVE= Maybe interactive at install stage +.endif APPENDIXDIR= share/ndtpd/appendix @@ -51,10 +54,10 @@ post-install: if [ ! -f ${PREFIX}/info/dir ]; then \ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \ fi -.for info in ndtpd.info +.for info in ndtpd.info ndtpd-ja.info install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir .endfor - @${SETENV} PKG_PREFIX=${PREFIX} \ + @${SETENV} PKG_PREFIX=${PREFIX} IS_INTERACTIVE="${IS_INTERACTIVE}" \ ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL plist: extract diff --git a/japanese/ebnetd/pkg-install b/japanese/ebnetd/pkg-install index ba2b1d2f7161..1d8e565031ae 100644 --- a/japanese/ebnetd/pkg-install +++ b/japanese/ebnetd/pkg-install @@ -15,7 +15,11 @@ sed -e 's/#.*//' -e 's/^/ /' -e 's/$/ /g' -e 's/ / /g' /etc/services \ | grep ' ndtp ' > /dev/null 2>&1 if [ $? -ne 0 ] ; then - YESNO=YET + if [ "${IS_INTERACTIVE}"x = "x" ]; then + YESNO=YES + else + YESNO=YET + fi while [ "${YESNO}" = YET ] ; do echo -n "May I register the \`ndtp' service name to /etc/services? ([y]/n) " read LINE @@ -49,7 +53,11 @@ fi # Copy a rc-file to `${PKG_PREFIX}/etc/rc.d/ndtpd.sh'. # if [ -f ${PKG_PREFIX}/etc/rc.d/ndtpd.sh ] ; then - YESNO=YET + if [ "${IS_INTERACTIVE}"x = "x" ]; then + YESNO=YES + else + YESNO=YET + fi while [ "${YESNO}" = YET ] ; do echo -n "${PKG_PREFIX}/rc.d/ndtpd.sh already exists. May I overwrite it? (y/[n]) " read LINE diff --git a/japanese/ndtpd/Makefile b/japanese/ndtpd/Makefile index 8b30d8fed06f..e68aa2af8c29 100644 --- a/japanese/ndtpd/Makefile +++ b/japanese/ndtpd/Makefile @@ -3,7 +3,7 @@ # Date created: 2 Oct 1997 # Whom: Motoyuki Kasahara # -# $Id: Makefile,v 1.1.1.1 1998/04/21 15:10:50 kuriyama Exp $ +# $Id: Makefile,v 1.2 1998/04/22 12:32:10 asami Exp $ # DISTNAME= ndtpd-1.0.6 @@ -38,6 +38,9 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --localstatedir=/var --enable-ja-info CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ INSTALL_DATA="${INSTALL_DATA}" +.if !defined(PACKAGE_BUILDING) +IS_INTERACTIVE= Maybe interactive at install stage +.endif APPENDIXDIR= share/ndtpd/appendix @@ -51,10 +54,10 @@ post-install: if [ ! -f ${PREFIX}/info/dir ]; then \ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \ fi -.for info in ndtpd.info +.for info in ndtpd.info ndtpd-ja.info install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir .endfor - @${SETENV} PKG_PREFIX=${PREFIX} \ + @${SETENV} PKG_PREFIX=${PREFIX} IS_INTERACTIVE="${IS_INTERACTIVE}" \ ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL plist: extract diff --git a/japanese/ndtpd/pkg-install b/japanese/ndtpd/pkg-install index ba2b1d2f7161..1d8e565031ae 100644 --- a/japanese/ndtpd/pkg-install +++ b/japanese/ndtpd/pkg-install @@ -15,7 +15,11 @@ sed -e 's/#.*//' -e 's/^/ /' -e 's/$/ /g' -e 's/ / /g' /etc/services \ | grep ' ndtp ' > /dev/null 2>&1 if [ $? -ne 0 ] ; then - YESNO=YET + if [ "${IS_INTERACTIVE}"x = "x" ]; then + YESNO=YES + else + YESNO=YET + fi while [ "${YESNO}" = YET ] ; do echo -n "May I register the \`ndtp' service name to /etc/services? ([y]/n) " read LINE @@ -49,7 +53,11 @@ fi # Copy a rc-file to `${PKG_PREFIX}/etc/rc.d/ndtpd.sh'. # if [ -f ${PKG_PREFIX}/etc/rc.d/ndtpd.sh ] ; then - YESNO=YET + if [ "${IS_INTERACTIVE}"x = "x" ]; then + YESNO=YES + else + YESNO=YET + fi while [ "${YESNO}" = YET ] ; do echo -n "${PKG_PREFIX}/rc.d/ndtpd.sh already exists. May I overwrite it? (y/[n]) " read LINE -- cgit v1.2.3