From owner-freebsd-ports@FreeBSD.ORG Tue Feb 7 02:19:59 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D36C106566B for ; Tue, 7 Feb 2012 02:19:59 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from cricket.hamla.org (cricket.hamla.org [206.251.255.31]) by mx1.freebsd.org (Postfix) with ESMTP id 6275A8FC14 for ; Tue, 7 Feb 2012 02:19:59 +0000 (UTC) Received: from magic.hamla.org (cpe-68-174-92-20.nyc.res.rr.com [68.174.92.20]) by cricket.hamla.org (Postfix) with ESMTPSA id 8B5238A038 for ; Mon, 6 Feb 2012 21:04:30 -0500 (EST) Date: Mon, 6 Feb 2012 21:04:27 -0500 From: Sahil Tandon To: freebsd-ports@FreeBSD.org Message-ID: <20120207020427.GB8661@magic.hamla.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.3 at cricket.hamla.org X-Virus-Status: Clean Cc: Subject: Input on "most correct" way to set IS_INTERACTIVE for Postfix ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-ports@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2012 02:19:59 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable mail/postfix and its derivatives are interactive when ALL of the following conditions are true: - PACKAGE_BUILDING is undefined - /etc/mail/mailer.conf exists - /etc/mail/mailer.conf contains a line beginning with 'purgestat' The way I plan to implement this in the port's Makefile is below; please let me know if you notice errors or would suggest an another method. I appreciate that the use of '!=3D' is discouraged by portlint(1), and am thusly open to cluebats and alternative suggestions. OLD_MAILER!=3D ${GREP} -s '^purgestat' /etc/mail/mailer.conf || true .if !defined(PACKAGE_BUILDING) && !empty(OLD_MAILER) IS_INTERACTIVE=3D yes .endif Thanks, --=20 Sahil Tandon --SUOF0GtieIMvvwua Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iQEcBAEBAgAGBQJPMIaqAAoJENvQYAHAFtl3w9wH/3DLS3dxpj0C984fDaZuajkc qKI/Fb+P+yuAZu4GySJWQAy8GMoNMDwfFFvC7FpJLv8fNhKxx/CYQNYSnG0N6Dub y8YHmiL+wpCmyiTjn6zGWpgpSpKn5HtfJBLZzIsr5zZLy5P15xDdpnJu+keUiFkO v4G6F/VSh5svQUPf/XAvoGh2WejpesLsckpAUj1nsEd/DknSma6EuTFLhvN2eOQP RX4tD7aVV/JvseQPuWFXGat5hWptbpzhRX/RoRm7GVhW+yVwTzihv0/xTxklspUm EiUjazA+idCgsiEG+7V2IZn8gSf18CksRzII9q0CZh3JmtNgVJtTqgYK97tzyoI= =DRoC -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--