summaryrefslogtreecommitdiffstats
path: root/mail/postfix-current
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-04-20 18:27:48 +0000
committerdwcjr <dwcjr@FreeBSD.org>2002-04-20 18:27:48 +0000
commit474300d91be69b342ec703485a26cb8140649184 (patch)
tree5089728f98bb02eade621d453bb90cb543c95654 /mail/postfix-current
parent5ccc5f9ad6b08efceed4244af1c0ee5a9cef9672 (diff)
downloadFreeBSD-ports-474300d91be69b342ec703485a26cb8140649184.zip
FreeBSD-ports-474300d91be69b342ec703485a26cb8140649184.tar.gz
handle batch builds
PR: 37259 Submitted by: maintainer
Diffstat (limited to 'mail/postfix-current')
-rw-r--r--mail/postfix-current/Makefile5
-rw-r--r--mail/postfix-current/pkg-install3
2 files changed, 4 insertions, 4 deletions
diff --git a/mail/postfix-current/Makefile b/mail/postfix-current/Makefile
index fa85c1c..3e59b6e 100644
--- a/mail/postfix-current/Makefile
+++ b/mail/postfix-current/Makefile
@@ -22,7 +22,6 @@ DIST_SUBDIR= ${PORTNAME}
MAINTAINER= khera@kciLink.com
USE_SUBMAKE= yes
-IS_INTERACTIVE= yes
MAN1= mailq.1 newaliases.1 postalias.1 postcat.1 postconf.1 postdrop.1 \
postfix.1 postkick.1 postlock.1 postlog.1 postmap.1 postqueue.1 \
@@ -63,7 +62,7 @@ post-patch:
${ECHO} "all: default" >> Makefile)
pre-install:
- @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+ @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
.if defined(NOPORTDOCS)
READMEDIR=no
@@ -109,7 +108,7 @@ do-install:
.endif
post-install:
- @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
# need to fixup ${PREFIX}/etc/postfix/postfix-files to indicate compressed
# man pages, since the ports software compresses them after this step, and
# if we run etc/postfix/post-install again during package installation,
diff --git a/mail/postfix-current/pkg-install b/mail/postfix-current/pkg-install
index 3ef249b..8ecea16 100644
--- a/mail/postfix-current/pkg-install
+++ b/mail/postfix-current/pkg-install
@@ -4,13 +4,14 @@
#
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
+BATCH=${BATCH:=no}
ask() {
local question default answer
question=$1
default=$2
- if [ -z "${PACKAGE_BUILDING}" ]; then
+ if [ -z "${PACKAGE_BUILDING}" -a x${BATCH} = xno ]; then
read -p "${question} [${default}]? " answer
fi
if [ x${answer} = x ]; then
OpenPOWER on IntegriCloud