git: ab71398319d2 - main - japanese/mh: Fix APOP authentication breakage

From: MANTANI Nobutaka <nobutaka_at_FreeBSD.org>
Date: Sat, 17 Aug 2024 18:27:51 UTC
The branch main has been updated by nobutaka:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ab71398319d2b363cc2a89d5fe7b717a0604f31d

commit ab71398319d2b363cc2a89d5fe7b717a0604f31d
Author:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
AuthorDate: 2024-08-17 18:11:32 +0000
Commit:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2024-08-17 18:11:32 +0000

    japanese/mh: Fix APOP authentication breakage
    
    PR:     277664
    Reported by:    Shigeharu TAKENO <shige@iee.niit.ac.jp>
    Approved by:    WATANABE Kazuhiro <CQG00620@nifty.ne.jp> (maintainer)
    MFH:    2024Q3
---
 japanese/mh/Makefile            |  2 +-
 japanese/mh/files/patch-h_md5.h | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/japanese/mh/Makefile b/japanese/mh/Makefile
index 18ea387ca766..85df8866578c 100644
--- a/japanese/mh/Makefile
+++ b/japanese/mh/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mh
 PORTVERSION=	${VERSION}.j${JP_VERSION}
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	japanese mail
 MASTER_SITES=	ftp://ftp.laic.u-hyogo.ac.jp/pub/net/mh/
 DISTNAME=	${PORTNAME}-${VERSION}-JP-${JP_VERSION}
diff --git a/japanese/mh/files/patch-h_md5.h b/japanese/mh/files/patch-h_md5.h
new file mode 100644
index 000000000000..914508155968
--- /dev/null
+++ b/japanese/mh/files/patch-h_md5.h
@@ -0,0 +1,18 @@
+--- h/md5.h.orig	1999-02-09 11:30:00 UTC
++++ h/md5.h
+@@ -20,11 +20,15 @@ typedef unsigned short int UINT2;
+ typedef unsigned short int UINT2;
+ 
+ /* UINT4 defines a four byte word */
++#if 0
+ #ifndef __alpha
+ typedef unsigned long int UINT4;
+ #else
+ typedef unsigned int UINT4;
+ #endif
++#endif
++#include <sys/types.h>
++typedef uint32_t UINT4;
+ 
+ /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
+ If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it