Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2012 21:04:27 -0500
From:      Sahil Tandon <sahil+freebsd-ports@tandon.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Input on "most correct" way to set IS_INTERACTIVE for Postfix ports
Message-ID:  <20120207020427.GB8661@magic.hamla.org>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120207020427.GB8661>