Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2016 09:53:55 +0000 (UTC)
From:      Vsevolod Stakhov <vsevolod@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r426230 - head/mail/rmilter
Message-ID:  <201611160953.uAG9rtHx072023@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vsevolod
Date: Wed Nov 16 09:53:55 2016
New Revision: 426230
URL: https://svnweb.freebsd.org/changeset/ports/426230

Log:
  - Remove obsolete libmemcached dependency
  - Add DKIM signing option
  
  PR:		212302
  Submitted by:	Alexander Moisseev <moiseev at mezonplus.ru>

Modified:
  head/mail/rmilter/Makefile

Modified: head/mail/rmilter/Makefile
==============================================================================
--- head/mail/rmilter/Makefile	Wed Nov 16 09:50:06 2016	(r426229)
+++ head/mail/rmilter/Makefile	Wed Nov 16 09:53:55 2016	(r426230)
@@ -2,6 +2,7 @@
 
 PORTNAME=	rmilter
 PORTVERSION=	1.9.2
+PORTREVISION=	1
 CATEGORIES=	mail
 
 MAINTAINER=	vsevolod@FreeBSD.org
@@ -9,9 +10,7 @@ COMMENT=	Milter that performs rspamd, cl
 
 LICENSE=	BSD2CLAUSE
 
-LIB_DEPENDS=	libpcre.so:devel/pcre \
-		libopendkim.so:mail/opendkim \
-		libmemcached.so:databases/libmemcached
+LIB_DEPENDS=	libpcre.so:devel/pcre
 
 BROKEN_armv6=		Fails to configure in cmake
 BROKEN_mips=		Fails to compile: error: Unsupported word size
@@ -27,16 +26,24 @@ USE_GNOME=	glib20
 USERS=		_rmilter
 GROUPS=		_rmilter
 
-CMAKE_ARGS+=	-DENABLE_DKIM=ON
-
 WITH_SENDMAIL_BASE=	yes
 
+OPTIONS_DEFINE=		DKIM
+OPTIONS_DEFAULT=	DKIM
+
+DKIM_DESC=		DKIM signing support
+DKIM_LIB_DEPENDS=	libopendkim.so:mail/opendkim
+
 .include <bsd.port.pre.mk>
 
 # Workaround to prevent bsd.milter.mk from breaking the build with the recent clang
 WITHOUT_MILTER_LDFLAGS=	yes
 .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
 
+.if ! ${PORT_OPTIONS:MDKIM}
+CMAKE_ARGS+=	-DENABLE_DKIM=OFF
+.endif
+
 post-patch:
 	${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
 		${WRKSRC}/freebsd/rmilter > ${WRKDIR}/rmilter



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