summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-05-11 07:06:23 +0000
committerjmc <jmc@pkgsrc.org>2003-05-11 07:06:23 +0000
commita2a3feb0bb4b9a834e79649348114906e6a8cf34 (patch)
tree76c89fa961565456e14fac86a9de55d1adf26135
parent73a82f7513dfe290233e151e75915265955989ac (diff)
downloadpkgsrc-a2a3feb0bb4b9a834e79649348114906e6a8cf34.tar.gz
Wrap EXTRACT_COOKIE like all others that could have an interactive step
and check for it if doing a batch build
-rw-r--r--mk/bsd.pkg.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 066b7bd02c4..57cd0febf18 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1179 2003/05/04 02:59:15 rh Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1180 2003/05/11 07:06:23 jmc Exp $
#
# This file is in the public domain.
#
@@ -2663,11 +2663,21 @@ undo-replace: uptodate-pkgtools real-undo-replace
.endif
${EXTRACT_COOKIE}:
+.if ${INTERACTIVE_STAGE:Mextract} == "extract" && defined(BATCH)
+ @${ECHO} "*** The extract stage of this package requires user interaction"
+ @${ECHO} "*** Please extract manually with \"cd ${PKGDIR} && ${MAKE} extract\""
+ @${TOUCH} ${INTERACTIVE_COOKIE}
+ @${FALSE}
+.else
${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-extract DEPENDS_TARGET=${DEPENDS_TARGET}
+.endif
+
${PATCH_COOKIE}:
${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-patch
+
${BUILDLINK_COOKIE}:
${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-buildlink
+
${CONFIGURE_COOKIE}:
.if ${INTERACTIVE_STAGE:Mconfigure} == "configure" && defined(BATCH)
@${ECHO} "*** The configuration stage of this package requires user interaction"