Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2015 22:32:14 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r381699 - head/mail/batv-milter
Message-ID:  <201503192232.t2JMWEDR019900@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Thu Mar 19 22:32:13 2015
New Revision: 381699
URL: https://svnweb.freebsd.org/changeset/ports/381699
QAT: https://qat.redports.org/buildarchive/r381699/

Log:
  mail/batv-milter: Support systems without sendmail installed
  
  If a sendmail header is not present, pull in mail/sendmail and
  edit the Makefile.m4 to send CFLAGS and LDFLAGS appropriately.  This
  Allows batv-milter to build on systems without Sendmail in base.
  
  Approved by:	just fix it

Modified:
  head/mail/batv-milter/Makefile

Modified: head/mail/batv-milter/Makefile
==============================================================================
--- head/mail/batv-milter/Makefile	Thu Mar 19 22:19:06 2015	(r381698)
+++ head/mail/batv-milter/Makefile	Thu Mar 19 22:32:13 2015	(r381699)
@@ -9,6 +9,10 @@ MASTER_SITES=	SF
 MAINTAINER=	umq@ueo.co.jp
 COMMENT=	Milter for BATV (Bounce Address Tag Validation)
 
+.if !exists( /usr/include/libmilter/mfapi.h )
+BUILD_DEPENDS+=	${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
+.endif
+
 USE_RC_SUBR=	milter-batv
 USE_OPENSSL=	TRUE
 
@@ -33,6 +37,11 @@ SITE_SUB+=	-e '\|confOPTIMIZE.*-g|s/^dnl
 .endif
 
 pre-configure:
+.if !exists( /usr/include/libmilter/mfapi.h )
+	${REINPLACE_CMD} -e '/sendmail/ s|dnl ||; \
+		s|/usr/local/sendmail|${LOCALBASE}|' \
+		${WRKSRC}/batv-filter/Makefile.m4
+.endif
 	${SED} ${SITE_SUB} -e '\|^dnl |d' -e '/^dnl$$/d' \
 		${SITE} > ${WCONF}/site.config.m4
 



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