[Bug 264360] mail/opendmarc: Make MySQL support an option

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 31 May 2022 11:20:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264360

Jørn Åne de Jong <jornane@icloud.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #234344|[PATCH] mail/opendmarc:     |[PATCH] mail/opendmarc:
        description|Make MySQL support an       |Make MySQL an option
                   |option                      |

--- Comment #3 from Jørn Åne de Jong <jornane@icloud.com> ---
Comment on attachment 234344
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234344
[PATCH] mail/opendmarc: Make MySQL an option

From 79df3af854ef231034fce18dd5807ed810601f44 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B8rn=20=C3=85ne=20de=20Jong?= <git@jornane.no>
Date: Tue, 31 May 2022 10:46:29 +0200
Subject: [PATCH] mail/opendmarc: Make MySQL an option

---
 mail/opendmarc/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/mail/opendmarc/Makefile b/mail/opendmarc/Makefile
index 2b35748d2ec8..9a9325af3f8a 100644
--- a/mail/opendmarc/Makefile
+++ b/mail/opendmarc/Makefile
@@ -2,6 +2,7 @@

 PORTNAME=      opendmarc
 PORTVERSION=   1.4.2
+PORTREVISION=  1
 CATEGORIES=    mail security
 MASTER_SITES=  GH

@@ -13,7 +14,6 @@ LICENSE_COMB= multi

 RUN_DEPENDS=   p5-Switch>=0:lang/p5-Switch \
                p5-DBI>=0:databases/p5-DBI \
-               p5-DBD-mysql>=0:databases/p5-DBD-mysql \
                p5-HTTP-Message>=0:www/p5-HTTP-Message

 USES=          cpe libtool perl5 shebangfix autoreconf
@@ -32,7 +32,7 @@ GH_TAGNAME=   rel-opendmarc-1-4-2
 GH_PROJECT=    OpenDMARC
 GNU_CONFIGURE= yes

-OPTIONS_DEFINE=                SPF DOCS
+OPTIONS_DEFINE=                SPF DOCS MYSQL
 OPTIONS_DEFAULT=       SPF

 SPF_DESC=              Enable support for SPF record checking
@@ -42,6 +42,12 @@ SPF_CONFIGURE_ON=    --with-spf \
                        --with-spf2-include=${LOCALBASE}/include/spf2 \
                        --with-spf2-lib=${LOCALBASE}/lib

+MYSQL_DESC=            Enable support for MySQL backends
+
+MYSQL_RUN_DEPENDS=     p5-DBD-mysql>=0:databases/p5-DBD-mysql
+MYSQL_CONFIGURE_ON=    --with-sql-backend=mysql
+MYSQL_CONFIGURE_OFF=   --without-sql-backend
+
 SHEBANG_FILES= reports/opendmarc-expire.in \
                reports/opendmarc-import.in \
                reports/opendmarc-params.in \

-- 
You are receiving this mail because:
You are the assignee for the bug.