1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Don't require interaction on INSTALL while PACKAGE_BUILDING.

This commit is contained in:
Steve Price 1999-07-04 21:08:42 +00:00
parent a016571190
commit 8c88934f82
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20022
2 changed files with 24 additions and 8 deletions

View File

@ -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

View File

@ -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