summaryrefslogtreecommitdiff
path: root/japanese/ebnetd/pkg-install
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-07-04 21:08:42 +0000
committerSteve Price <steve@FreeBSD.org>1999-07-04 21:08:42 +0000
commit8c88934f829d4f968a5dea9bbe6657ce902e4121 (patch)
tree527d8850aa0709f09577d4bd9cc333f065e5373d /japanese/ebnetd/pkg-install
parentThe interactive nature of pkg/INSTALL has been removed. (diff)
Don't require interaction on INSTALL while PACKAGE_BUILDING.
Notes
Notes: svn path=/head/; revision=20022
Diffstat (limited to 'japanese/ebnetd/pkg-install')
-rw-r--r--japanese/ebnetd/pkg-install16
1 files changed, 12 insertions, 4 deletions
diff --git a/japanese/ebnetd/pkg-install b/japanese/ebnetd/pkg-install
index 0c299c679aa3..615702a92151 100644
--- a/japanese/ebnetd/pkg-install
+++ b/japanese/ebnetd/pkg-install
@@ -18,8 +18,12 @@ sed -e 's/#.*//' -e 's/^/ /' -e 's/$/ /g' -e 's/ / /g' /etc/services \
if [ $? -ne 0 ] ; then
YESNO=YET
while [ "${YESNO}" = YET ] ; do
- echo -n "May I register the \`ndtp' service name to /etc/services? ([y]/n) "
- read LINE
+ if [ -z "${PACKAGE_BUILDING}" ]; then
+ echo -n "May I register the \`ndtp' service name to /etc/services? ([y]/n) "
+ read LINE
+ else
+ LINE=y
+ fi
case "X${LINE}" in
Xy|XY|X)
YESNO=YES
@@ -52,8 +56,12 @@ fi
if [ -f ${PKG_PREFIX}/etc/rc.d/ndtpd.sh ] ; then
YESNO=YET
while [ "${YESNO}" = YET ] ; do
- echo -n "${PKG_PREFIX}/etc/rc.d/ndtpd.sh already exists. May I overwrite it? (y/[n]) "
- read LINE
+ if [ -z "${PACKAGE_BUILDING}" ]; then
+ echo -n "${PKG_PREFIX}/etc/rc.d/ndtpd.sh already exists. May I overwrite it? (y/[n]) "
+ read LINE
+ else
+ LINE=y
+ fi
case "X${LINE}" in
Xy|XY)
YESNO=YES