From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 16 17:10:05 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A86A1065670 for ; Thu, 16 Apr 2009 17:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A0BCC8FC1D for ; Thu, 16 Apr 2009 17:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3GHA1S0012136 for ; Thu, 16 Apr 2009 17:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3GHA1QI012135; Thu, 16 Apr 2009 17:10:01 GMT (envelope-from gnats) Resent-Date: Thu, 16 Apr 2009 17:10:01 GMT Resent-Message-Id: <200904161710.n3GHA1QI012135@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Baldwin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B75D106566C for ; Thu, 16 Apr 2009 17:09:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1FBC98FC1A for ; Thu, 16 Apr 2009 17:09:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3GH9Vi0083578 for ; Thu, 16 Apr 2009 17:09:31 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3GH9VqY083553; Thu, 16 Apr 2009 17:09:31 GMT (envelope-from nobody) Message-Id: <200904161709.n3GH9VqY083553@www.freebsd.org> Date: Thu, 16 Apr 2009 17:09:31 GMT From: John Baldwin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/133783: [PATCH] mail/milter-greylist: add OPTIONS and WITH_POSTFIX X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 17:10:06 -0000 >Number: 133783 >Category: ports >Synopsis: [PATCH] mail/milter-greylist: add OPTIONS and WITH_POSTFIX >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 16 17:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: John Baldwin >Release: >Organization: >Environment: >Description: This patch adds a new WITH option to the mail/milter-greylist port to support the '--enable-postfix' configure option for Postfix support. It adds an OPTIONS line to convert the port over to using the OPTIONS framework. This includes making NO_INSTALL_MANPAGES now be handled by an on-by-default WITH_MANPAGES option. >How-To-Repeat: >Fix: Patch is attached and available at http://www.FreeBSD.org/~jhb/patches/greylist.patch. Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /usr/cvs/ports/mail/milter-greylist/Makefile,v retrieving revision 1.30 diff -u -r1.30 Makefile --- Makefile 23 Jan 2009 15:42:54 -0000 1.30 +++ Makefile 16 Apr 2009 16:02:44 -0000 @@ -19,6 +19,14 @@ CONFLICTS= milter-greylist-devel-[1-9]*.* PKGMESSAGE= ${WRKDIR}/pkg-message +OPTIONS= MANPAGES "Install manpages" YES \ + LIBSPF2 "Include SPF support" NO \ + GEOIP "Include GeoIP support" NO \ + CURL "Include curl support" NO \ + POSTFIX "Use Postfix instead of Sendmail" NO + +.include + ## # Use the following quirks to choose which sendmail to use (ports or system): # @@ -30,7 +38,7 @@ # installed port preference over it. ## -.if !defined (NO_INSTALL_MANPAGES) +.if defined (WITH_MANPAGES) MAN5= greylist.conf.5 MAN8= milter-greylist.8 .endif @@ -50,6 +58,9 @@ BUILD_DEPENDS+= curl>=7.18:${PORTSDIR}/ftp/curl CONFIGURE_ARGS+= --with-curl=${LOCALBASE} .endif +.if defined(WITH_POSTFIX) +CONFIGURE_ARGS+= --enable-postfix +.endif RUN_DEPENDS+= ${BUILD_DEPENDS} CFLAGS+= ${PTHREAD_CFLAGS} @@ -67,8 +78,10 @@ do-install: @${MKDIR} ${PREFIX}/etc/mail +.if defined (WITH_MANPAGES) @${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5 @${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8 +.endif @${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/libexec @${INSTALL_DATA} ${WRKSRC}/greylist.conf \ ${PREFIX}/etc/mail/greylist.conf.sample @@ -100,8 +113,6 @@ ) || ${TRUE} @${CAT} ${PKGMESSAGE} -.include - .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" .include >Release-Note: >Audit-Trail: >Unformatted: