mail/maildrop: Update to 3.1.2

- Added patch required to make it build when DOVECOTAUTH option is
  enabled.
This commit is contained in:
Guido Falsi 2023-04-05 19:20:37 +02:00
parent 69221e6770
commit 69e0c19dab
3 changed files with 31 additions and 4 deletions

View File

@ -13,7 +13,7 @@
# MAILDROP_MBOX_DIR=<dir> Specify DEFAULT mailbox location
PORTNAME= maildrop
PORTVERSION= 3.1.1
PORTVERSION= 3.1.2
CATEGORIES= mail
MASTER_SITES= SF/courier/${PORTNAME}/${PORTVERSION}

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1676888939
SHA256 (maildrop-3.1.1.tar.bz2) = ec013cd755f3def739eba02702db42815d148851bbf1b6afba7e939e1483daaa
SIZE (maildrop-3.1.1.tar.bz2) = 2156071
TIMESTAMP = 1680680112
SHA256 (maildrop-3.1.2.tar.bz2) = e499fb1cb5ad5949942d743932ca75edf4c25eb949a0df151864b115f691d592
SIZE (maildrop-3.1.2.tar.bz2) = 2155497

View File

@ -0,0 +1,27 @@
--- libs/maildrop/main.C.orig 2023-03-05 01:40:24 UTC
+++ libs/maildrop/main.C
@@ -404,11 +404,8 @@ static int callback_dovecotauth(struct dovecotauthinfo
if (VerboseLevel() > 1)
{
- std::string b;
+ std::string b = std::to_string(auth->sysgroupid);
- b.set(auth->sysgroupid);
- b.push(0);
-
merr << "maildrop: dovecotauth: groupid="
<< b << "\n";
}
@@ -436,10 +433,7 @@ static int callback_dovecotauth(struct dovecotauthinfo
if (VerboseLevel() > 1)
{
- std::string b;
-
- b.set(u);
- b.push(0);
+ std::string b = std::to_string(u);
merr << "maildrop: dovecotauth: userid="
<< b << "\n";