ports/157266: [PATCH] mail/spamd: respect BATCH

Jimmy Olgeni olgeni at FreeBSD.org
Mon May 23 10:20:10 UTC 2011


>Number:         157266
>Category:       ports
>Synopsis:       [PATCH] mail/spamd: respect BATCH
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 23 10:20:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jimmy Olgeni
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD backoffice 8.2-STABLE FreeBSD 8.2-STABLE #1: Sun May 15 20:37:17 CEST 2011
>Description:
[DESCRIBE CHANGES]
The "ask" function in pkg-install.in checks if PACKAGE_BUILDING is
defined to avoid asking questions.

It should also check for BATCH, else custom installation scripts
may fail.

Port maintainer (ohauer at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- spamd-4.8.0_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/spamd/Makefile,v
retrieving revision 1.22
diff -u -u -r1.22 Makefile
--- Makefile	29 Dec 2010 20:04:23 -0000	1.22
+++ Makefile	23 May 2011 10:09:05 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	spamd
 PORTVERSION=	4.8.0
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	BERLIOS
 MASTER_SITE_SUBDIR=freebsdspamd
Index: files/pkg-install.in
===================================================================
RCS file: /home/pcvs/ports/mail/spamd/files/pkg-install.in,v
retrieving revision 1.3
diff -u -u -r1.3 pkg-install.in
--- files/pkg-install.in	31 Oct 2010 22:10:52 -0000	1.3
+++ files/pkg-install.in	23 May 2011 10:09:05 -0000
@@ -13,7 +13,7 @@
 
   question=$1
   default=$2
-  if [ -z "${PACKAGE_BUILDING}" ]; then
+  if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
     read -p "${question} [${default}]? " answer
   fi
   if [ "x${answer}" = "x" ]; then
--- spamd-4.8.0_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list