[Bug 239409] mail/milter-greylist build fails when sendmail configured for SMTP Authentication

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 23 18:58:54 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239409

            Bug ID: 239409
           Summary: mail/milter-greylist build fails when sendmail
                    configured for SMTP Authentication
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: ws at au.dyndns.ws
                CC: m.tsatsenko at gmail.com
                CC: m.tsatsenko at gmail.com
             Flags: maintainer-feedback?(m.tsatsenko at gmail.com)

The "standard" method of enabling SMTP Authentication for Sendmail includes
adding the following to /etc/make.conf:

SENDMAIL_CFLAGS=-I/usr/local/include -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

Refer:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/SMTP-Auth.html
https://svnweb.freebsd.org/ports/head/security/cyrus-sasl2/files/Sendmail.README?view=markup

This configuration causes poudriere builds of milter-greylist to fail, and also
local builds via /usr/ports if cyrus-sasl2 is not already installed.

Since enabling SMTP Authentication in Sendmail seems to be essentially a
"supported" configuration it would be better if that configuration did not
hinder compilation of related ports unnecessarily. A solution for
milter-greylist is to add a conditional dependency on security/cyrus-sasl2,
such as:

--- Makefile.1  2019-07-23 03:50:02.878890000 +0000
+++ Makefile    2019-07-24 00:02:07.740684000 +0000
@@ -57,6 +57,10 @@

 .include <bsd.port.options.mk>

+.if ${SENDMAIL_CFLAGS:M-DSASL}
+LIB_DEPENDS+=  libsasl2.so:security/cyrus-sasl2
+.endif
+
 LIBS+=         -lpthread

 GNU_CONFIGURE= yes

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list