svn commit: r381679 - in head: mail/milter-bogom mail/milter-skem mail/opendmarc mail/py-milter security/clamav

John Marino marino at FreeBSD.org
Thu Mar 19 19:38:51 UTC 2015


Author: marino
Date: Thu Mar 19 19:38:48 2015
New Revision: 381679
URL: https://svnweb.freebsd.org/changeset/ports/381679
QAT: https://qat.redports.org/buildarchive/r381679/

Log:
  five milter ports: Add or improve support on systems missing sendmail
  
  In some cases no-sendmail support was in place but missing CFLAGS or
  LDFLAGS, but in others it needed to be added.  Problems found as a result
  of DragonFly removing sendmail from base.
  
  Approved by:	just fix it.

Modified:
  head/mail/milter-bogom/Makefile
  head/mail/milter-skem/Makefile
  head/mail/opendmarc/Makefile
  head/mail/py-milter/Makefile
  head/security/clamav/Makefile

Modified: head/mail/milter-bogom/Makefile
==============================================================================
--- head/mail/milter-bogom/Makefile	Thu Mar 19 19:23:09 2015	(r381678)
+++ head/mail/milter-bogom/Makefile	Thu Mar 19 19:38:48 2015	(r381679)
@@ -14,8 +14,13 @@ COMMENT=	Simple sendmail milter to inter
 
 RUN_DEPENDS=	bogofilter:${PORTSDIR}/mail/bogofilter
 
+.if !exists(/usr/lib/libmilter.so)
+LIB_DEPENDS=	libmilter.so:${PORTSDIR}/mail/sendmail
+LDFLAGS+=	-I${LOCALBASE}/include
+.endif
+
 MAKE_ARGS=	CPPFLAGS="-DDEF_CONF=\\\"${PREFIX}/etc/bogom.conf\\\" ${PTHREAD_CFLAGS}" \
-		LIBS="-lmilter ${PTHREAD_LIBS}"
+		LIBS="-lmilter ${PTHREAD_LIBS}" LDFLAGS="${LDFLAGS}"
 
 USE_RC_SUBR=	milter-bogom
 SUB_FILES=	pkg-message

Modified: head/mail/milter-skem/Makefile
==============================================================================
--- head/mail/milter-skem/Makefile	Thu Mar 19 19:23:09 2015	(r381678)
+++ head/mail/milter-skem/Makefile	Thu Mar 19 19:38:48 2015	(r381679)
@@ -9,6 +9,11 @@ MASTER_SITES=	http://virtual-estates.net
 MAINTAINER=	mi at aldan.algebra.com
 COMMENT=	Cache earlier sendmail's verdicts for the relays
 
+.if !exists( /usr/include/libmilter/mfapi.h )
+BUILD_DEPENDS+=	${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
+CFLAGS+=	-I${LOCALBASE}/include
+.endif
+
 USES=		tar:bzip2 uidfix
 
 PLIST_FILES=	sbin/skem \

Modified: head/mail/opendmarc/Makefile
==============================================================================
--- head/mail/opendmarc/Makefile	Thu Mar 19 19:23:09 2015	(r381678)
+++ head/mail/opendmarc/Makefile	Thu Mar 19 19:38:48 2015	(r381679)
@@ -19,6 +19,11 @@ LICENSE_GROUPS_SENDMAIL=	FSF OSI
 LICENSE_NAME_SENDMAIL=	Sendmail Open Source License
 LICENSE_PERMS_SENDMAIL=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
+.if !exists( /usr/include/libmilter/mfapi.h )
+BUILD_DEPENDS+=	${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
+CFLAGS+=	-I${LOCALBASE}/include
+.endif
+
 USES=		libtool shebangfix
 SHEBANG_FILES=	reports/opendmarc-expire.in \
 		reports/opendmarc-import.in \

Modified: head/mail/py-milter/Makefile
==============================================================================
--- head/mail/py-milter/Makefile	Thu Mar 19 19:23:09 2015	(r381678)
+++ head/mail/py-milter/Makefile	Thu Mar 19 19:38:48 2015	(r381679)
@@ -17,6 +17,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 .if !exists(/usr/lib/libmilter.so)
 LIB_DEPENDS=	libmilter.so:${PORTSDIR}/mail/sendmail
+CFLAGS+=	-I${LOCALBASE}/include
 .endif
 
 PYPORTNAME=	${PKGNAMEPREFIX:C/[0-9]+-//}${PORTNAME}

Modified: head/security/clamav/Makefile
==============================================================================
--- head/security/clamav/Makefile	Thu Mar 19 19:23:09 2015	(r381678)
+++ head/security/clamav/Makefile	Thu Mar 19 19:38:48 2015	(r381679)
@@ -150,6 +150,7 @@ LDFLAGS+=	-lldap
 . if !exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a)
 BUILD_DEPENDS+=	${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
 CONFIGURE_ARGS+=--with-sendmail=${LOCALBASE}/sbin/sendmail
+LDFLAGS+=	-L${LOCALBASE}/lib
 . else
 CONFIGURE_ARGS+=--with-sendmail=/usr/sbin/sendmail
 . endif


More information about the svn-ports-head mailing list