svn commit: r381699 - head/mail/batv-milter

John Marino marino at FreeBSD.org
Thu Mar 19 22:32:14 UTC 2015


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


More information about the svn-ports-head mailing list