Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2018 11:38:40 +0000 (UTC)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r471364 - in head/mail/postfix: . files
Message-ID:  <201806021138.w52Bcemo001236@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Sat Jun  2 11:38:40 2018
New Revision: 471364
URL: https://svnweb.freebsd.org/changeset/ports/471364

Log:
  - update to 3.3.1
  - rework MySQL patch

Modified:
  head/mail/postfix/Makefile
  head/mail/postfix/distinfo
  head/mail/postfix/files/patch-src_global_dict__mysql.c

Modified: head/mail/postfix/Makefile
==============================================================================
--- head/mail/postfix/Makefile	Sat Jun  2 11:35:19 2018	(r471363)
+++ head/mail/postfix/Makefile	Sat Jun  2 11:38:40 2018	(r471364)
@@ -2,8 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	postfix
-PORTVERSION=	3.3.0
-PORTREVISION?=	1
+DISTVERSION=	3.3.1
+PORTREVISION?=	0
 PORTEPOCH=	1
 CATEGORIES=	mail ipv6
 MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/ \

Modified: head/mail/postfix/distinfo
==============================================================================
--- head/mail/postfix/distinfo	Sat Jun  2 11:35:19 2018	(r471363)
+++ head/mail/postfix/distinfo	Sat Jun  2 11:38:40 2018	(r471364)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1519259037
-SHA256 (postfix/postfix-3.3.0.tar.gz) = 7942e89721e30118d7050675b0d976955e3160e21f7898b85a79cac4f4baef39
-SIZE (postfix/postfix-3.3.0.tar.gz) = 4419450
+TIMESTAMP = 1526761800
+SHA256 (postfix/postfix-3.3.1.tar.gz) = 54f514dae42b5275cb4bc9c69283f16c06200b71813d0bb696568c4ba7ae7e3b
+SIZE (postfix/postfix-3.3.1.tar.gz) = 4420912

Modified: head/mail/postfix/files/patch-src_global_dict__mysql.c
==============================================================================
--- head/mail/postfix/files/patch-src_global_dict__mysql.c	Sat Jun  2 11:35:19 2018	(r471363)
+++ head/mail/postfix/files/patch-src_global_dict__mysql.c	Sat Jun  2 11:38:40 2018	(r471364)
@@ -7,23 +7,22 @@
 #
 --- src/global/dict_mysql.c.orig	2017-02-19 01:58:20 UTC
 +++ src/global/dict_mysql.c
-@@ -198,6 +198,15 @@
+@@ -198,6 +198,14 @@
  
  #include "dict_mysql.h"
  
 +/* MySQL 8.x API change */
 +
-+#if MYSQL_VERSION_ID >= 80000 && !defined(MARIADB_BASE_VERSION)
-+#define DICT_MYSQL_SSL_VERIFY_SERVER_CERT MYSQL_OPT_SSL_MODE
-+#elif MYSQL_VERSION_ID >= 50023
++#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 50023
 +#define DICT_MYSQL_SSL_VERIFY_SERVER_CERT MYSQL_OPT_SSL_VERIFY_SERVER_CERT
++#elif MYSQL_VERSION_ID >= 80000
++#define DICT_MYSQL_SSL_VERIFY_SERVER_CERT MYSQL_OPT_SSL_MODE
 +#endif
 +
-+
  /* need some structs to help organize things */
  typedef struct {
      MYSQL  *db;
-@@ -237,7 +246,7 @@ typedef struct {
+@@ -237,7 +245,7 @@ typedef struct {
      char   *tls_CAfile;
      char   *tls_CApath;
      char   *tls_ciphers;
@@ -32,7 +31,7 @@
      int     tls_verify_cert;
  #endif
  #endif
-@@ -656,9 +665,9 @@ static void plmysql_connect_single(DICT_
+@@ -656,9 +664,9 @@ static void plmysql_connect_single(DICT_
  		      dict_mysql->tls_key_file, dict_mysql->tls_cert_file,
  		      dict_mysql->tls_CAfile, dict_mysql->tls_CApath,
  		      dict_mysql->tls_ciphers);
@@ -40,11 +39,11 @@
 +#if defined(DICT_MYSQL_SSL_VERIFY_SERVER_CERT)
      if (dict_mysql->tls_verify_cert != -1)
 -	mysql_options(host->db, MYSQL_OPT_SSL_VERIFY_SERVER_CERT,
-+         mysql_options(host->db, DICT_MYSQL_SSL_VERIFY_SERVER_CERT,
++	mysql_options(host->db, DICT_MYSQL_SSL_VERIFY_SERVER_CERT,
  		      &dict_mysql->tls_verify_cert);
  #endif
  #endif
-@@ -723,7 +732,7 @@ static void mysql_parse_config(DICT_MYSQ
+@@ -723,7 +731,7 @@ static void mysql_parse_config(DICT_MYSQ
      dict_mysql->tls_CAfile = cfg_get_str(p, "tls_CAfile", NULL, 0, 0);
      dict_mysql->tls_CApath = cfg_get_str(p, "tls_CApath", NULL, 0, 0);
      dict_mysql->tls_ciphers = cfg_get_str(p, "tls_ciphers", NULL, 0, 0);



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