summaryrefslogtreecommitdiff
path: root/japanese/ebnetd
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>1998-04-24 14:37:49 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>1998-04-24 14:37:49 +0000
commitaf5efb5e2484e55c0f50fbc3faf7be198ce31820 (patch)
tree545406535be11cb649f7097508c51e2aced1f47b /japanese/ebnetd
parentUpgrade to 2.8.2 (diff)
I've forgotten to add ntdpd-ja.info for install-info.
Use PACKAGE_BUILDING for intaractive install.
Notes
Notes: svn path=/head/; revision=10671
Diffstat (limited to 'japanese/ebnetd')
-rw-r--r--japanese/ebnetd/Makefile9
-rw-r--r--japanese/ebnetd/pkg-install12
2 files changed, 16 insertions, 5 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 <m-kasahr@sra.co.jp>
#
-# $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