From nobody Thu Nov 11 02:43:45 2021 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 379A118577B1; Thu, 11 Nov 2021 02:43:46 +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 4HqQyV0XQZz3pFv; Thu, 11 Nov 2021 02:43:46 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 DC9FE24347; Thu, 11 Nov 2021 02:43:45 +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 1AB2hjsu014719; Thu, 11 Nov 2021 02:43:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AB2hj34014718; Thu, 11 Nov 2021 02:43:45 GMT (envelope-from git) Date: Thu, 11 Nov 2021 02:43:45 GMT Message-Id: <202111110243.1AB2hj34014718@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yasuhiro Kimura Subject: git: 09c2f9d63931 - main - mail/rainloop: Fix SMTP AUTH PLAIN bug 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: yasu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 09c2f9d63931380306f66bcbef74667502a0c4e0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=09c2f9d63931380306f66bcbef74667502a0c4e0 commit 09c2f9d63931380306f66bcbef74667502a0c4e0 Author: Yasuhiro Kimura AuthorDate: 2021-11-11 02:23:43 +0000 Commit: Yasuhiro Kimura CommitDate: 2021-11-11 02:42:03 +0000 mail/rainloop: Fix SMTP AUTH PLAIN bug While I'm here, * Switch to DISTVERSION * Pet portclippy * Re-format Makefile with portfmt Reference: https://github.com/RainLoop/rainloop-webmail/issues/1629 PR: 257017 Reported by: pi Obtained from: https://github.com/RainLoop/rainloop-webmail/issues/1629#issuecomment-540398127 MFH: 2021Q4 --- mail/rainloop-community/Makefile | 6 +++--- mail/rainloop/Makefile | 21 ++++++++++++++++----- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/mail/rainloop-community/Makefile b/mail/rainloop-community/Makefile index 0e0358b6f3e3..b63791cfb2f9 100644 --- a/mail/rainloop-community/Makefile +++ b/mail/rainloop-community/Makefile @@ -6,10 +6,10 @@ COMMENT= Modern and interactive webmail - community edition LICENSE= AGPLv3 +CONFLICTS_INSTALL= rainloop-[0-9]* + MASTERDIR= ${.CURDIR}/../rainloop -DISTINFO_FILE= ${.CURDIR}/distinfo PLIST= ${.CURDIR}/pkg-plist - -CONFLICTS_INSTALL= rainloop-[0-9]* +DISTINFO_FILE= ${.CURDIR}/distinfo .include "${MASTERDIR}/Makefile" diff --git a/mail/rainloop/Makefile b/mail/rainloop/Makefile index 6aa0ac18078d..37b9010a9499 100644 --- a/mail/rainloop/Makefile +++ b/mail/rainloop/Makefile @@ -1,5 +1,6 @@ PORTNAME= rainloop -PORTVERSION= 1.16.0 +DISTVERSION= 1.16.0 +PORTREVISION= 1 CATEGORIES= mail www MASTER_SITES= https://github.com/RainLoop/rainloop-webmail/releases/download/v${PORTVERSION}/ PKGNAMESUFFIX?= ${PHP_PKGNAMESUFFIX} @@ -16,20 +17,30 @@ LICENSE_PERMS= auto-accept .endif USES= php:web,flavors zip -NO_BUILD= yes +USE_PHP= curl dom iconv json openssl pcre simplexml spl xml zlib + NO_ARCH= yes +NO_BUILD= yes + NO_WRKSUBDIR= yes -USE_PHP= curl dom iconv json openssl pcre simplexml spl xml zlib -PLIST_SUB= VER="${PORTVERSION}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" +PLIST_SUB= VER="${PORTVERSION}" \ + WWWGRP="${WWWGRP}" \ + WWWOWN="${WWWOWN}" + +OPTIONS_DEFAULT= SQLITE OPTIONS_RADIO= DB OPTIONS_RADIO_DB= MYSQL PGSQL SQLITE -OPTIONS_DEFAULT= SQLITE MYSQL_USE= PHP=pdo_mysql PGSQL_USE= PHP=pdo_pgsql SQLITE_USE= PHP=pdo_sqlite +post-patch: + ${REINPLACE_CMD} 's/__USE_SINGLE_LINE_AUTH_PLAIN_COMMAND = false/__USE_SINGLE_LINE_AUTH_PLAIN_COMMAND = true/' \ + ${WRKSRC}/rainloop/v/${PORTVERSION}/app/libraries/MailSo/Smtp/SmtpClient.php + ${RM} ${WRKSRC}/rainloop/v/${PORTVERSION}/app/libraries/MailSo/Smtp/SmtpClient.php.bak + do-install: @${MKDIR} ${STAGEDIR}${WWWDIR}/data ${INSTALL_DATA} ${WRKSRC}/data/* ${STAGEDIR}${WWWDIR}/data