From owner-svn-ports-head@FreeBSD.ORG Thu Mar 19 22:32:14 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9CE22E4; Thu, 19 Mar 2015 22:32:14 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B421F288; Thu, 19 Mar 2015 22:32:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2JMWEpt019901; Thu, 19 Mar 2015 22:32:14 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2JMWEDR019900; Thu, 19 Mar 2015 22:32:14 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201503192232.t2JMWEDR019900@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Thu, 19 Mar 2015 22:32:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381699 - head/mail/batv-milter X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2015 22:32:14 -0000 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