Input on "most correct" way to set IS_INTERACTIVE for Postfix ports
Sahil Tandon
sahil+freebsd-ports at tandon.net
Tue Feb 7 02:19:59 UTC 2012
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 '!=' is discouraged by portlint(1), and am
thusly open to cluebats and alternative suggestions.
OLD_MAILER!= ${GREP} -s '^purgestat' /etc/mail/mailer.conf || true
.if !defined(PACKAGE_BUILDING) && !empty(OLD_MAILER)
IS_INTERACTIVE= yes
.endif
Thanks,
--
Sahil Tandon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120207/38f30451/attachment.pgp
More information about the freebsd-ports
mailing list