View | Details | Raw Unified | Return to bug 282413
Collapse All | Expand All

(-)b/mail/fetchmail/Makefile (-6 / +7 lines)
Lines 1-10 Link Here
1
PORTNAME?=	fetchmail
1
PORTNAME?=	fetchmail
2
DISTVERSION=	6.4.39
2
DISTVERSION=	6.5.0
3
PORTREVISION?=	0
3
PORTREVISION?=	0
4
CATEGORIES=	mail
4
CATEGORIES=	mail
5
# The next line is inherited by the fetchmailconf dependent port,
5
# The next line is inherited by the fetchmailconf dependent port,
6
# do NOT replace fetchmail by ${PORTNAME}
6
# do NOT replace fetchmail by ${PORTNAME}
7
MASTER_SITES=	SF/fetchmail/branch_6.4/
7
MASTER_SITES=	SF/fetchmail/branch_6.5/
8
8
9
MAINTAINER=	chalpin@cs.wisc.edu
9
MAINTAINER=	chalpin@cs.wisc.edu
10
COMMENT?=	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
10
COMMENT?=	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
Lines 27-33 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share Link Here
27
27
28
# the added PYTHON=: suppresses python builds,
28
# the added PYTHON=: suppresses python builds,
29
# see ../../mail/fetchmailconf/ for the configuration tool
29
# see ../../mail/fetchmailconf/ for the configuration tool
30
CONFIGURE_ARGS=	--enable-fallback=no \
30
CONFIGURE_ARGS=	--enable-opie \
31
		--enable-RPA \
31
		--enable-RPA \
32
		--enable-SDPS \
32
		--enable-SDPS \
33
		--without-hesiod \
33
		--without-hesiod \
Lines 37-43 CONFIGURE_ARGS= --enable-fallback=no \ Link Here
37
# for instance, libcom_err.so on GSSAPI_NONE builds:
37
# for instance, libcom_err.so on GSSAPI_NONE builds:
38
LDFLAGS+=	-L${LOCALBASE}/lib -Wl,--as-needed
38
LDFLAGS+=	-L${LOCALBASE}/lib -Wl,--as-needed
39
39
40
PATCH_STRIP=	-p1
41
SUB_FILES=	pkg-message
40
SUB_FILES=	pkg-message
42
USERS=		${PORTNAME}
41
USERS=		${PORTNAME}
43
GROUPS=		${USERS}
42
GROUPS=		${USERS}
Lines 102-109 post-install-DOCS-on: Link Here
102
101
103
.include <bsd.port.pre.mk>
102
.include <bsd.port.pre.mk>
104
103
105
.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1400072) || ${OPSYS} != FreeBSD
104
.if ${MASTERDIR} == ${.CURDIR} && ${OPSYS} == FreeBSD
106
CONFIGURE_ARGS+=	--enable-opie
105
. if ${OSVERSION} >= 1400072
106
LIB_DEPENDS+=	libopie.so:security/opie	# moved to port (from base in 13.X)
107
. endif
107
.endif
108
.endif
108
109
109
.include <bsd.port.post.mk>
110
.include <bsd.port.post.mk>
(-)b/mail/fetchmail/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1721468814
1
TIMESTAMP = 1730243037
2
SHA256 (fetchmail-6.4.39.tar.xz) = 75109a1f307b538155fa05f5ef298e8298cb4deae95aed24c16b38d36ff0a186
2
SHA256 (fetchmail-6.5.0.tar.xz) = 42611aea4861a5311e5116843f01c203dceadf440bf2eb1b4a43a445f2977668
3
SIZE (fetchmail-6.4.39.tar.xz) = 1221596
3
SIZE (fetchmail-6.5.0.tar.xz) = 1108148
(-)a/mail/fetchmail/files/patch-ZZZ-87626c2707cc0d82e49e160ab3c85430ff33534f (-160 lines)
Removed Link Here
1
From 87626c2707cc0d82e49e160ab3c85430ff33534f Mon Sep 17 00:00:00 2001
2
From: Matthias Andree <matthias.andree@gmx.de>
3
Date: Sat, 24 Aug 2019 17:53:08 +0200
4
Subject: [PATCH] Properly report size of mailboxes of 2 GibiB or above.
5
6
To fix Debian Bug#873668, reported by Andreas Schmidt.
7
This requires C99's new long long type.
8
---
9
 NEWS        | 7 +++++++
10
 driver.c    | 7 ++++---
11
 etrn.c      | 2 +-
12
 fetchmail.h | 2 +-
13
 imap.c      | 2 +-
14
 odmr.c      | 2 +-
15
 pop2.c      | 2 +-
16
 pop3.c      | 4 ++--
17
 8 files changed, 18 insertions(+), 10 deletions(-)
18
19
diff -up work/fetchmail-6.4.10/NEWS.orig work/fetchmail-6.4.10/NEWS
20
--- a/NEWS
21
+++ b/NEWS
22
@@ -63,7 +63,13 @@ removed from a 6.5.0 or newer release.)
23
 * Fetchmail does not guarantee compatibility with EOL OpenSSL versions. Support
24
   for end-of-life OpenSSL versions may be removed even from patchlevel releases.
25
 
26
----------------------------------------------------------------------------------
27
+--------------------------------------------------------------------------------
28
+## BUG FIXES
29
+* fetchmail can now report mailbox sizes of 2^31 octets and beyond.
30
+  This requires C99 support (for the long long type).
31
+  Fixes Debian Bug#873668, reported by Andreas Schmidt.
32
+
33
+--------------------------------------------------------------------------------
34
 fetchmail-6.4.10 (released 2020-08-27, 27596 LoC):
35
 
36
 # REGRESSION FIX:
37
diff --git a/driver.c b/driver.c
38
index d21a32ab..a5033729 100644
39
--- a/driver.c
40
+++ b/driver.c
41
@@ -932,7 +932,7 @@ static int do_session(
42
     {
43
 	/* sigsetjmp returned zero -> normal operation */
44
 	char buf[MSGBUFSIZE+1], *realhost;
45
-	int count, newm, bytes;
46
+	int count, newm;
47
 	int fetches, dispatches, transient_errors, oldphase;
48
 	struct idlist *idp;
49
 
50
@@ -1306,6 +1306,7 @@ is restored."));
51
 
52
 		/* compute # of messages and number of new messages waiting */
53
 		stage = STAGE_GETRANGE;
54
+		unsigned long long bytes;
55
 		err = (ctl->server.base_protocol->getrange)(mailserver_socket, ctl, idp->id, &count, &newm, &bytes);
56
 		if (err != 0)
57
 		    goto cleanUp;
58
@@ -1335,10 +1336,10 @@ is restored."));
59
 							  "%d messages for %s",
60
 							  count), 
61
 				  count, buf);
62
-			if (bytes == -1)
63
+			if (bytes == (unsigned long long)-1) // mailbox size unsupported
64
 			    report_complete(stdout, ".\n");
65
 			else
66
-			    report_complete(stdout, GT_(" (%d octets).\n"), bytes);
67
+			    report_complete(stdout, GT_(" (%llu octets).\n"), bytes);
68
 		    }
69
 		    else
70
 		    {
71
diff --git a/etrn.c b/etrn.c
72
index f3fab0ce..12b9d3fd 100644
73
--- a/etrn.c
74
+++ b/etrn.c
75
@@ -31,7 +31,7 @@ static int etrn_ok (int sock, char *argbuf)
76
 }
77
 
78
 static int etrn_getrange(int sock, struct query *ctl, const char *id, 
79
-			 int *countp, int *newp, int *bytes)
80
+			 int *countp, int *newp, unsigned long long *bytes)
81
 /* send ETRN and interpret the response */
82
 {
83
     int ok, opts;
84
diff --git a/fetchmail.h b/fetchmail.h
85
index 23ba6e6e..72259e10 100644
86
--- a/fetchmail.h
87
+++ b/fetchmail.h
88
@@ -210,7 +210,7 @@ struct method		/* describe methods for protocol state machine */
89
 				/* response_parsing function */
90
     int (*getauth)(int, struct query *, char *);
91
 				/* authorization fetcher */
92
-    int (*getrange)(int, struct query *, const char *, int *, int *, int *);
93
+    int (*getrange)(int, struct query *, const char *, int *, int *, unsigned long long *);
94
 				/* get message range to fetch */
95
     int (*getsizes)(int, int, int *);
96
 				/* get sizes of messages */
97
diff --git a/imap.c b/imap.c
98
index 7b80679a..7836acd7 100644
99
--- a/imap.c
100
+++ b/imap.c
101
@@ -883,7 +883,7 @@ static int imap_search(int sock, struct query *ctl, int count)
102
 static int imap_getrange(int sock, 
103
 			 struct query *ctl, 
104
 			 const char *folder, 
105
-			 int *countp, int *newp, int *bytes)
106
+			 int *countp, int *newp, unsigned long long *bytes)
107
 /* get range of messages to be fetched */
108
 {
109
     int ok;
110
diff --git a/odmr.c b/odmr.c
111
index 85decb6d..d1c011c4 100644
112
--- a/odmr.c
113
+++ b/odmr.c
114
@@ -36,7 +36,7 @@ static int odmr_ok (int sock, char *argbuf)
115
 }
116
 
117
 static int odmr_getrange(int sock, struct query *ctl, const char *id, 
118
-			 int *countp, int *newp, int *bytes)
119
+			 int *countp, int *newp, unsigned long long *bytes)
120
 /* send ODMR and then run a reverse SMTP session */
121
 {
122
     int ok, opts, smtp_sock;
123
diff --git a/pop2.c b/pop2.c
124
index 7c843616..5a5a1bd1 100644
125
--- a/pop2.c
126
+++ b/pop2.c
127
@@ -80,7 +80,7 @@ static int pop2_getauth(int sock, struct query *ctl, char *buf)
128
 }
129
 
130
 static int pop2_getrange(int sock, struct query *ctl, const char *folder, 
131
-			 int *countp, int *newp, int *bytes)
132
+			 int *countp, int *newp, unsigned long long *bytes)
133
 /* get range of messages to be fetched */
134
 {
135
     (void)ctl;
136
diff --git a/pop3.c b/pop3.c
137
index 6efe1b7e..25efbaad 100644
138
--- a/pop3.c
139
+++ b/pop3.c
140
@@ -969,7 +969,7 @@ static int pop3_slowuidl( int sock,  struct query *ctl, int *countp, int *newp)
141
 static int pop3_getrange(int sock, 
142
 			 struct query *ctl,
143
 			 const char *folder,
144
-			 int *countp, int *newp, int *bytes)
145
+			 int *countp, int *newp, unsigned long long *bytes)
146
 /* get range of messages to be fetched */
147
 {
148
     int ok;
149
@@ -992,7 +992,7 @@ static int pop3_getrange(int sock,
150
     if (ok == 0) {
151
 	int asgn;
152
 
153
-	asgn = sscanf(buf,"%d %d", countp, bytes);
154
+	asgn = sscanf(buf,"%d %llu", countp, bytes);
155
 	if (asgn != 2)
156
 		return PS_PROTOCOL;
157
     } else
158
-- 
159
2.22.0
160
(-)b/mail/fetchmail/files/patch-socket.c (+24 lines)
Added Link Here
1
FreeBSD's security team needs to maintain OpenSSL 1.1.1's
2
security to a sane level without upstream support... but permit the build
3
for FreeBSD 13.3 and 13.4:
4
5
--- socket.c.orig	2024-09-28 09:20:10 UTC
6
+++ socket.c
7
@@ -375,7 +375,7 @@ enum { SSL_min_security_level = 2 };
8
 # ifndef TLSprovider
9
 #  define TLSprovider "OpenSSL"
10
 # endif
11
-# define fm_MIN_OPENSSL_VER 0x30000090L
12
+# define fm_MIN_OPENSSL_VER 0x1010117fL
13
 /* do not warn about OpenSSL 3.2.0, the 3.2.1 fix is of low priority */
14
 # if OPENSSL_VERSION_NUMBER >= 0x30100000L && OPENSSL_VERSION_NUMBER < 0x30200000L
15
 #  if OPENSSL_VERSION_NUMBER < 0x30100040L
16
@@ -402,7 +402,7 @@ enum { SSL_min_security_level = 2 };
17
 #endif /* USING_WOLFSSL */
18
 
19
 /* workaround for EVP_MD_fetch API - missing on wolfSSL and LibreSSL */
20
-#if defined(USING_WOLFSSL) || defined(LIBRESSL_VERSION_NUMBER)
21
+#if OPENSSL_VERSION_NUMBER < 0x30000000L
22
 # define EVP_MD_fetch(x, digest, y) (EVP_get_digestbyname(digest))
23
 # define EVP_MD_free(x) /* NOOP */
24
 # define fm_EVP_MD_const const // compatibility const EVP_MD* from EVP_get_digestbyname()
(-)b/mail/fetchmail/pkg-plist (-16 lines)
Lines 1-30 Link Here
1
bin/fetchmail
1
bin/fetchmail
2
share/man/man1/fetchmail.1.gz
2
share/man/man1/fetchmail.1.gz
3
@comment %%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
4
%%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
3
%%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
5
@comment %%NLS%%share/locale/da/LC_MESSAGES/fetchmail.mo
6
%%NLS%%share/locale/de/LC_MESSAGES/fetchmail.mo
4
%%NLS%%share/locale/de/LC_MESSAGES/fetchmail.mo
7
@comment %%NLS%%share/locale/el/LC_MESSAGES/fetchmail.mo
8
@comment %%NLS%%share/locale/en_GB/LC_MESSAGES/fetchmail.mo
9
%%NLS%%share/locale/eo/LC_MESSAGES/fetchmail.mo
5
%%NLS%%share/locale/eo/LC_MESSAGES/fetchmail.mo
10
%%NLS%%share/locale/es/LC_MESSAGES/fetchmail.mo
6
%%NLS%%share/locale/es/LC_MESSAGES/fetchmail.mo
11
@comment %%NLS%%share/locale/fi/LC_MESSAGES/fetchmail.mo
12
%%NLS%%share/locale/fr/LC_MESSAGES/fetchmail.mo
7
%%NLS%%share/locale/fr/LC_MESSAGES/fetchmail.mo
13
@comment %%NLS%%share/locale/gl/LC_MESSAGES/fetchmail.mo
14
@comment %%NLS%%share/locale/id/LC_MESSAGES/fetchmail.mo
15
@comment %%NLS%%share/locale/it/LC_MESSAGES/fetchmail.mo
16
%%NLS%%share/locale/ja/LC_MESSAGES/fetchmail.mo
8
%%NLS%%share/locale/ja/LC_MESSAGES/fetchmail.mo
17
@comment %%NLS%%share/locale/nl/LC_MESSAGES/fetchmail.mo
18
%%NLS%%share/locale/pl/LC_MESSAGES/fetchmail.mo
9
%%NLS%%share/locale/pl/LC_MESSAGES/fetchmail.mo
19
@comment %%NLS%%share/locale/pt_BR/LC_MESSAGES/fetchmail.mo
20
%%NLS%%share/locale/ro/LC_MESSAGES/fetchmail.mo
10
%%NLS%%share/locale/ro/LC_MESSAGES/fetchmail.mo
21
@comment %%NLS%%share/locale/ru/LC_MESSAGES/fetchmail.mo
22
@comment %%NLS%%share/locale/sk/LC_MESSAGES/fetchmail.mo
23
%%NLS%%share/locale/sq/LC_MESSAGES/fetchmail.mo
11
%%NLS%%share/locale/sq/LC_MESSAGES/fetchmail.mo
24
%%NLS%%share/locale/sr/LC_MESSAGES/fetchmail.mo
25
%%NLS%%share/locale/sv/LC_MESSAGES/fetchmail.mo
12
%%NLS%%share/locale/sv/LC_MESSAGES/fetchmail.mo
26
@comment %%NLS%%share/locale/tr/LC_MESSAGES/fetchmail.mo
27
%%NLS%%share/locale/vi/LC_MESSAGES/fetchmail.mo
28
@comment %%NLS%%share/locale/zh_CN/LC_MESSAGES/fetchmail.mo
29
@sample(fetchmail,fetchmail,600) etc/fetchmailrc.sample
13
@sample(fetchmail,fetchmail,600) etc/fetchmailrc.sample
30
@dir(fetchmail,fetchmail,755) /var/run/fetchmail
14
@dir(fetchmail,fetchmail,755) /var/run/fetchmail
(-)b/mail/fetchmailconf/Makefile (-2 / +1 lines)
Lines 1-5 Link Here
1
PORTNAME=	fetchmailconf
1
PORTNAME=	fetchmailconf
2
PORTREVISION=	1
2
PORTREVISION=	0
3
DISTNAME=	fetchmail-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
3
DISTNAME=	fetchmail-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
4
# NOTE: MASTER_SITES in ../fetchmail must NOT use the $PORTNAME variable,
4
# NOTE: MASTER_SITES in ../fetchmail must NOT use the $PORTNAME variable,
5
# else _this_ port (fetchmailconf) becomes unfetchable
5
# else _this_ port (fetchmailconf) becomes unfetchable
6
- 

Return to bug 282413