aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/ndtpd
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>1998-04-24 22:37:49 +0800
committerkuriyama <kuriyama@FreeBSD.org>1998-04-24 22:37:49 +0800
commitb2466afba8e47b81c1f4dd9af5c2f4fdae9d9b68 (patch)
treed757e200a2ee5d476097d67e0df1eb2e83b07b50 /japanese/ndtpd
parentd43044ffa409c6891c135dffdb6257ba66d7d16b (diff)
downloadfreebsd-ports-gnome-b2466afba8e47b81c1f4dd9af5c2f4fdae9d9b68.tar.gz
freebsd-ports-gnome-b2466afba8e47b81c1f4dd9af5c2f4fdae9d9b68.tar.zst
freebsd-ports-gnome-b2466afba8e47b81c1f4dd9af5c2f4fdae9d9b68.zip
I've forgotten to add ntdpd-ja.info for install-info.
Use PACKAGE_BUILDING for intaractive install.
Diffstat (limited to 'japanese/ndtpd')
-rw-r--r--japanese/ndtpd/Makefile9
-rw-r--r--japanese/ndtpd/pkg-install12
2 files changed, 16 insertions, 5 deletions
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 <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/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