From nobody Sat Nov 12 21:55:55 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N8qBz6j8Mz4gCDJ; Sat, 12 Nov 2022 21:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N8qBz6BpLz40S7; Sat, 12 Nov 2022 21:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668290155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p68oqi7D0NAciVv9EYA/9CkbTHRRZLrPeazwr9zA5JY=; b=cwk2Z9hb6mu0KkctB48HnImR8vv7ZUBGheSPX9fWVdmqNBKTBYKqA91SrzyIlpTR70P/2d Fxze6tSr1YrCIHdO9YwITbVZVMc2/Cvng0cU5kx66bZgGID8q+hSuUmk5G17VJmREZPe2b Kj8EPPHZyu0qDwmd4tyqvCRyKH+wyDzdeK1bw4Pig6w6QaSP0qkx9+lIJKcRO9amNnfyD7 V0DcscFJJi1ecMtUYz/gJa5p7H92c4+EbInoZ+ATSoRmXO8YZE6XGsHZCzDp/a8JCT50ce EfqbvZ/8Wh1EcwFmY1uaKq/b1fsfR48jyorOoxzBlzZ4eWGbozlJIqxwA68V6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668290155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p68oqi7D0NAciVv9EYA/9CkbTHRRZLrPeazwr9zA5JY=; b=oPjp0DiXV3tBz6kKpHrxFds0nw/RvYoqPZjkFC4Ap5kWf2pLwL++t3IGLDg3oFp9LCnkBT 0HKY4JEyOyrIkKd3TgPi2MTd01xYSEZcg8akFVbJH8ytHz1TDIU7TCDfA/dce5XWsXw6xr 2GFl49feS99PLshIzt/YFKE7ZH+xyXH27pIZ7IVcXIX34qs/TK48OHvTDEWh8Tolet04jd Tm6KfslQLPr4KbnecjyG+1nYiMMeITNdweuDiKRbsT6gE/pT/wvduEht7u8SwVd0lI5yhN E20shnsf+v1rbIs+4+h1tTRJTtPNiKixwASze/sLNIIP6DL0TyHVjgO/Q0NqwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668290155; a=rsa-sha256; cv=none; b=tInkGR88MxKQVsVcv0tRhjM2MtUbh72C6zSXxrVSKTY5FtZHW0De99FVv11hLC2sX9T2SD fkoVcnKxvp/HyzkYeFNZgAP2xEz4h3b5OTTt2FrcwmTqtnlYqNqjYvCb/CHZmTMlRnlLnM hlO3dS4GB+XGKedYvx8YlZBsiuLdMnka1cvHRvr+PZYSC+vCmH+7Vgk1CYMXzSnGu9Jhm2 21ZlaS+R7hB9eE0qVi0KPCfAM/xYGgUu/rKkCijrc1JHloBoE/OQbK4z0rCXhKMV5FjY7r SuRO6D+U6mLly3bsWJyx1zpxLMDcyAJcgPhIfJFPA094/W0A044CuSr7MArE9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N8qBz5FWxzf5L; Sat, 12 Nov 2022 21:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ACLttJr042672; Sat, 12 Nov 2022 21:55:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ACLttlS042671; Sat, 12 Nov 2022 21:55:55 GMT (envelope-from git) Date: Sat, 12 Nov 2022 21:55:55 GMT Message-Id: <202211122155.2ACLttlS042671@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Juraj Lutter Subject: git: 2afa5ca04af3 - main - mail/postfix: Add FLAVORS (MySQL, PostgreSQL, SQLite) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: otis X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2afa5ca04af31b7727ba4a9f55a39a538ac199ee Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by otis: URL: https://cgit.FreeBSD.org/ports/commit/?id=2afa5ca04af31b7727ba4a9f55a39a538ac199ee commit 2afa5ca04af31b7727ba4a9f55a39a538ac199ee Author: Tomáš Čiernik AuthorDate: 2022-11-12 21:52:13 +0000 Commit: Juraj Lutter CommitDate: 2022-11-12 21:55:42 +0000 mail/postfix: Add FLAVORS (MySQL, PostgreSQL, SQLite) Add databse flavors, based on [1] PR: 267295 --- mail/postfix/Makefile | 50 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 4 deletions(-) diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index e6746177cd67..30c43f1dee03 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/Makefile @@ -22,18 +22,48 @@ LICENSE_NAME_IPL10= IBM PUBLIC LICENSE VERSION 1.0 LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS_IPL10= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -FLAVORS= default ldap sasl +FLAVORS= default ldap mysql pgsql sasl sqlite default_CONFLICTS_INSTALL= postfix-base-ldap postfix-base-sasl \ - postfix-ldap postfix-sasl + postfix-ldap postfix-sasl \ + postfix-mysql postfix-base-mysql \ + postfix-pgsql postfix-base-pgsql \ + postfix-sqlite postfix-base-sqlite ldap_PKGNAMESUFFIX= -ldap ldap_CONFLICTS_INSTALL= postfix postfix-base \ - postfix-base-sasl postfix-sasl + postfix-base-sasl postfix-sasl \ + postfix-mysql postfix-base-mysql \ + postfix-pgsql postfix-base-pgsql \ + postfix-sqlite postfix-base-sqlite +mysql_PKGNAMESUFFIX= -mysql +mysql_CONFLICTS_INSTALL= postfix postfix-base \ + postfix-ldap postfix-base-ldap \ + postfix-pgsql postfix-base-pgsql \ + postfix-sasl postfix-base-sasl \ + postfix-sqlite postfix-base-sqlite +pgsql_PKGNAMESUFFIX= -pgsql +pgsql_CONFLICTS_INSTALL= postfix postfix-base \ + postfix-ldap postfix-base-ldap \ + postfix-mysql postfix-base-mysql \ + postfix-sasl postfix-base-sasl \ + postfix-sqlite postfix-base-sqlite sasl_PKGNAMESUFFIX= -sasl sasl_CONFLICTS_INSTALL= postfix postfix-base \ - postfix-base-ldap postfix-ldap + postfix-base-ldap postfix-ldap \ + postfix-mysql postfix-base-mysql \ + postfix-pgsql postfix-base-pgsql \ + postfix-sqlite postfix-base-sqlite +sqlite_PKGNAMESUFFIX= -sqlite +sqlite_CONFLICTS_INSTALL= postfix postfix-base \ + postfix-ldap postfix-base-ldap \ + postfix-mysql postfix-base-mysql \ + postfix-pgsql postfix-base-pgsql \ + postfix-sasl postfix-base-sasl COMMENT_ldap= (with OpenLDAP and Cyrus SASL support) +COMMENT_mysql= (with MySQL support) +COMMENT_pgsql= (with PostgreSQL support) COMMENT_sasl= (with Cyrus SASL support) +COMMENT_sqlite= (with SQLite support) USES= cpe shebangfix ssl USE_RC_SUBR= postfix @@ -58,8 +88,14 @@ OPTIONS_RADIO= RG1 OPTIONS_RADIO_RG1= SASLKMIT SASLKRB5 .if ${FLAVOR:U} == ldap OPTIONS_SLAVE= LDAP +.elif ${FLAVOR:U} == mysql +OPTIONS_SLAVE= MYSQL +.elif ${FLAVOR:U} == pgsql +OPTIONS_SLAVE= PGSQL .elif ${FLAVOR:U} == sasl OPTIONS_SLAVE= SASL +.elif ${FLAVOR:U} == sqlite +OPTIONS_SLAVE= SQLITE .endif .if !empty(FLAVOR) && ${FLAVOR:U} != default OPTIONS_FILE= ${PORT_DBDIR}/${OPTIONS_NAME}/${FLAVOR}-options @@ -115,8 +151,14 @@ BROKEN= error: OpenSSL-1.1.1 is the minimum supported version. LibreSSL is not .if ${PORT_OPTIONS:MINST_BASE} .if ${FLAVOR:U} == ldap PKGNAMESUFFIX= -base-ldap +.elif ${FLAVOR:U} == mysql +PKGNAMESUFFIX= -base-mysql +.elif ${FLAVOR:U} == pgsql +PKGNAMESUFFIX= -base-pgsql .elif ${FLAVOR:U} == sasl PKGNAMESUFFIX= -base-sasl +.elif ${FLAVOR:U} == sqlite +PKGNAMESUFFIX= -base-sqlite .else PKGNAMESUFFIX= -base .endif