pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mailutils: update to version 3.15.



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Wed Dec 7 15:29:15 2022 +0100
Changeset:	b2d5e4c7a19a94e956b8e044c0bc20d941702d1f

Modified Files:
	mailutils/DESCR
	mailutils/Makefile
	mailutils/PLIST
	mailutils/TODO
	mailutils/distinfo
Added Files:
	mailutils/patches/patch-frm_frm.h

Log Message:
mailutils: update to version 3.15.

CVE-2019-18862 is fixed starting with version 3.8, see:
https://packetstormsecurity.com/files/155425/GNU-Mailutils-3.7-Privilege-Escalation.html

Too many changes since 3.2, refer to the ChangeLog:
https://fossies.org/linux/mailutils/ChangeLog

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b2d5e4c7a19a94e956b8e044c0bc20d941702d1f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mailutils/DESCR                   | 10 ++++---
 mailutils/Makefile                | 29 +++++++++++++------
 mailutils/PLIST                   | 49 +++++++++++++++++++++-----------
 mailutils/TODO                    | 60 ++++++++++-----------------------------
 mailutils/distinfo                |  7 +++--
 mailutils/patches/patch-frm_frm.h | 16 +++++++++++
 6 files changed, 94 insertions(+), 77 deletions(-)

diffs:
diff --git a/mailutils/DESCR b/mailutils/DESCR
index 78de1057dc..6b0f3fb220 100644
--- a/mailutils/DESCR
+++ b/mailutils/DESCR
@@ -1,4 +1,6 @@
-GNU Mailutils is a set of libraries and utilities for handling
-electronic mail. It addresses a wide audience and can be of interest
-to application developers, casual users and system administrators
-alike.
+GNU mailutils is a powerful protocol-independent mail framework. It
+provides a set of libraries for writing flexible mail-handling
+software, as well as a number of utilities for both local and remote
+mail handling. Among the utilities provided are pop3 and imap4
+servers, sieve mail filtering utility, mailx-compatible mail client
+and others.
diff --git a/mailutils/Makefile b/mailutils/Makefile
index b85f47ebf0..66e887009d 100644
--- a/mailutils/Makefile
+++ b/mailutils/Makefile
@@ -1,28 +1,39 @@
 # $NetBSD: Makefile,v 1.3 2017/08/14 09:00:06 ecbrown Exp $
 
-DISTNAME=	mailutils-3.2
+DISTNAME=	mailutils-3.15
 CATEGORIES=	mail
 MASTER_SITES=	ftp://ftp.gnu.org/gnu/mailutils/
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://mailutils.org/
-COMMENT=	General-Purpose Mail Package
-LICENSE=	gnu-gpl-v3
+COMMENT=	Utilities, daemons, and filters for processing e-mail
+LICENSE=	gnu-gpl-v3 AND gnu-lgpl-v3
 
 USE_TOOLS+=	gmake
 USE_LIBTOOL=	yes
 USE_LANGUAGES=	c c++
 
 GNU_CONFIGURE=		yes
-CONFIGURE_ARGS+=	--infodir=${PREFIX}/info
-CONFIGURE_ARGS+=	--disable-cxx
+CONFIGURE_ARGS+=	--infodir=${PREFIX}/${PKGINFODIR}
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=	--without-gnutls
 CONFIGURE_ARGS+=	--disable-python
+CONFIGURE_ARGS+=	--without-guile
+CONFIGURE_ARGS+=	--without-gdbm
+CONFIGURE_ARGS+=	--without-tcp-wrappers
 CONFIGURE_ARGS+=	--without-ldap
-INFO_FILES=		yes
 
-MAKE_JOBS_SAFE=		no
+INFO_FILES=	yes
 
-_INCOMPAT_READLINE=Darwin-*-* Interix-*-*
+SUBST_CLASSES+=		iconv
+SUBST_STAGE.iconv=	pre-configure
+SUBST_MESSAGE.iconv=	Do not require lib/charset.alias.
+SUBST_FILES.iconv+=	lib/gnu/Makefile.in
+SUBST_SED.iconv=	-e '/need_charset_alias=/s|true|false|'
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../textproc/libunistring/buildlink3.mk"
+.include "../../devel/libltdl/buildlink3.mk"
 .include "../../devel/readline/buildlink3.mk"
-.include "../../security/gnutls/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/mailutils/PLIST b/mailutils/PLIST
index 4e530309b8..04540b3a70 100644
--- a/mailutils/PLIST
+++ b/mailutils/PLIST
@@ -1,4 +1,5 @@
 @comment $NetBSD$
+bin/decodemail
 bin/dotlock
 bin/frm
 bin/from
@@ -25,7 +26,9 @@ bin/mu-mh/mhparam
 bin/mu-mh/mhpath
 bin/mu-mh/mhseq
 bin/mu-mh/msgchk
+bin/mu-mh/next
 bin/mu-mh/pick
+bin/mu-mh/prev
 bin/mu-mh/prompter
 bin/mu-mh/refile
 bin/mu-mh/repl
@@ -38,6 +41,7 @@ bin/mu-mh/sortm
 bin/mu-mh/whatnow
 bin/mu-mh/whom
 bin/popauth
+bin/putmail
 bin/readmsg
 bin/sieve
 include/mailutils/acl.h
@@ -63,6 +67,7 @@ include/mailutils/errno.h
 include/mailutils/error.h
 include/mailutils/filter.h
 include/mailutils/folder.h
+include/mailutils/gitinfo.h
 include/mailutils/glob.h
 include/mailutils/gsasl.h
 include/mailutils/guile.h
@@ -76,6 +81,7 @@ include/mailutils/kwd.h
 include/mailutils/ldap.h
 include/mailutils/list.h
 include/mailutils/locker.h
+include/mailutils/locus.h
 include/mailutils/log.h
 include/mailutils/mailbox.h
 include/mailutils/mailcap.h
@@ -85,11 +91,11 @@ include/mailutils/md5.h
 include/mailutils/message.h
 include/mailutils/mh.h
 include/mailutils/mime.h
+include/mailutils/mimetypes.h
 include/mailutils/monitor.h
 include/mailutils/msgset.h
 include/mailutils/mu_auth.h
 include/mailutils/nls.h
-include/mailutils/nntp.h
 include/mailutils/observer.h
 include/mailutils/opool.h
 include/mailutils/opt.h
@@ -118,6 +124,7 @@ include/mailutils/sys/auth.h
 include/mailutils/sys/body.h
 include/mailutils/sys/dbm.h
 include/mailutils/sys/debcat.h
+include/mailutils/sys/dotmail.h
 include/mailutils/sys/envelope.h
 include/mailutils/sys/file_stream.h
 include/mailutils/sys/filter.h
@@ -132,15 +139,17 @@ include/mailutils/sys/iterator.h
 include/mailutils/sys/list.h
 include/mailutils/sys/logstream.h
 include/mailutils/sys/mailbox.h
+include/mailutils/sys/mailcap.h
 include/mailutils/sys/mailer.h
 include/mailutils/sys/mapfile_stream.h
+include/mailutils/sys/mboxrd.h
 include/mailutils/sys/memory_stream.h
 include/mailutils/sys/message.h
 include/mailutils/sys/message_stream.h
 include/mailutils/sys/mime.h
+include/mailutils/sys/mimetypes.h
 include/mailutils/sys/monitor.h
 include/mailutils/sys/msgset.h
-include/mailutils/sys/nntp.h
 include/mailutils/sys/nullstream.h
 include/mailutils/sys/observer.h
 include/mailutils/sys/pop3.h
@@ -154,8 +163,10 @@ include/mailutils/sys/streamref.h
 include/mailutils/sys/streamtrans.h
 include/mailutils/sys/syslogstream.h
 include/mailutils/sys/temp_file_stream.h
+include/mailutils/sys/temp_stream.h
 include/mailutils/sys/tls-stream.h
 include/mailutils/sys/url.h
+include/mailutils/sys/wordsplit.h
 include/mailutils/sys/xscript-stream.h
 include/mailutils/syslog.h
 include/mailutils/tls.h
@@ -164,10 +175,12 @@ include/mailutils/url.h
 include/mailutils/util.h
 include/mailutils/version.h
 include/mailutils/wordsplit.h
+include/mailutils/yyloc.h
 info/mailutils.info
 lib/libmailutils.la
 lib/libmu_auth.la
 lib/libmu_dbm.la
+lib/libmu_dotmail.la
 lib/libmu_imap.la
 lib/libmu_maildir.la
 lib/libmu_mailer.la
@@ -184,30 +197,34 @@ lib/mailutils/pipe.la
 lib/mailutils/spamd.la
 lib/mailutils/timestamp.la
 lib/mailutils/vacation.la
+libexec/mailutils/mailutils-acl
+libexec/mailutils/mailutils-cflags
+libexec/mailutils/mailutils-dbm
+libexec/mailutils/mailutils-filter
+libexec/mailutils/mailutils-flt2047
+libexec/mailutils/mailutils-imap
+libexec/mailutils/mailutils-info
+libexec/mailutils/mailutils-ldflags
+libexec/mailutils/mailutils-logger
+libexec/mailutils/mailutils-maildir_fixup
+libexec/mailutils/mailutils-pop
+libexec/mailutils/mailutils-query
+libexec/mailutils/mailutils-send
+libexec/mailutils/mailutils-smtp
+libexec/mailutils/mailutils-stat
+libexec/mailutils/mailutils-wicket
 man/man1/imap4d.1
 man/man1/mail.1
 man/man1/pop3d.1
 man/man1/popauth.1
 sbin/comsatd
 sbin/imap4d
-sbin/maidag
+sbin/lmtpd
+sbin/mda
 sbin/pop3d
 share/aclocal/mailutils.m4
 share/emacs/site-lisp/mailutils-mh.el
 share/emacs/site-lisp/mailutils-mh.elc
-share/locale/ca/LC_MESSAGES/mailutils.mo
-share/locale/da/LC_MESSAGES/mailutils.mo
-share/locale/de/LC_MESSAGES/mailutils.mo
-share/locale/es/LC_MESSAGES/mailutils.mo
-share/locale/fi/LC_MESSAGES/mailutils.mo
-share/locale/fr/LC_MESSAGES/mailutils.mo
-share/locale/id/LC_MESSAGES/mailutils.mo
-share/locale/pl/LC_MESSAGES/mailutils.mo
-share/locale/ro/LC_MESSAGES/mailutils.mo
-share/locale/ru/LC_MESSAGES/mailutils.mo
-share/locale/sv/LC_MESSAGES/mailutils.mo
-share/locale/uk/LC_MESSAGES/mailutils.mo
-share/locale/vi/LC_MESSAGES/mailutils.mo
 share/mailutils/mh/components
 share/mailutils/mh/forwcomps
 share/mailutils/mh/mailutils-mh.el
diff --git a/mailutils/TODO b/mailutils/TODO
index e765abc9b5..96e64dbdb6 100644
--- a/mailutils/TODO
+++ b/mailutils/TODO
@@ -1,45 +1,15 @@
-- PLIST:10: The bin/ directory should not have subdirectories.
-  .. but this should be intention of original authors, I believe.
-- License: gnu-gpl-v3 and gnu-lgpl-v3
-- (configure)
-*******************************************************************
-GNU Mailutils configured with the following settings:
-
-Default mailbox scheme ........ mbox
-Use PAM ....................... yes
-Use -ltdl ..................... no
-Use DBM ....................... no
-Use GNU TLS ................... no
-Use GSASL ..................... no
-Use GSSAPI .................... no
-Use TCP wrappers .............. yes
-Pthread support ............... yes
-Readline support .............. yes
-MySQL support ................. no
-PostgreSQL support ............ no
-LDAP support .................. yes
-Radius support ................ no
-Support for virtual domains ... yes
-
-Interfaces:
-
-Guile ......................... no
-C++ ........................... yes
-Python ........................ no
-
-Mailbox formats:
-
-IMAP .......................... yes
-POP ........................... yes
-MH ............................ yes
-maildir ....................... yes
-
-Mailers:
-
-SMTP .......................... yes
-Sendmail ...................... yes
-
-*******************************************************************
-
-This package has known vulnerabilities, please investigate and fix if possible:
-  CVE-2019-18862
+-  The bin/ directory should not have subdirectories.
+   A possible workaround would be to install bin/mh/* executables in
+   ${PREFIX}/mh/bin and symlink the folder to ${PREFIX}/bin. 
+
+- Patch for libwrap missing `allow_severity', `deny_severity' ints. 
+  This would fix building with TCP wrappers. Include <tcpd.h> where
+  needed.
+
+- Add options.mk to handle: 
+* Python/C++/Guile parsing (disabled by default). I would have included
+  C++ support, but it's marked as experimental in more recent versions. 
+* GnuTLS/SASL (enabled by default). Currently disabled in the Makefile.
+* GDBM (disabled by default)
+* LDAP (disabled by default)
+* NLS (disabled by default). Probably requires a PLIST.NLS.
diff --git a/mailutils/distinfo b/mailutils/distinfo
index 158ff42340..2f406e345a 100644
--- a/mailutils/distinfo
+++ b/mailutils/distinfo
@@ -1,5 +1,6 @@
 $NetBSD: distinfo,v 1.2 2014/08/08 12:20:06 makoto Exp $
 
-RMD160 (mailutils-3.2.tar.gz) = bbd5cdf351b9bc131de89095c98770b68e52b93c
-SHA512 (mailutils-3.2.tar.gz) = 5528799ba1bf7b8eaf3c0e2fe436aeb0be03ccb85788eff7ab6f860da9a03d00f86a4ebcf6839c0a164c6c6d1a0cfe38ec8c848db45376d958325dadba13549e
-Size (mailutils-3.2.tar.gz) = 6095165 bytes
+BLAKE2s (mailutils-3.15.tar.gz) = 7d43b6ee9d826345421bec5173010ad8706966e694eae7bd3d6e6eb045e1decb
+SHA512 (mailutils-3.15.tar.gz) = 418d9a657caf583ae1b9060a9ea8dcb1bf88965af3cc6d1e4558b6c3cb3e14cec181913335168e22b4870546d717945ada3de58892ccf0572c02424c50199bf1
+Size (mailutils-3.15.tar.gz) = 7453542 bytes
+SHA1 (patch-frm_frm.h) = 8ed8ae4b64b3b6b30d0572d06b35165b2e1d7e3e
diff --git a/mailutils/patches/patch-frm_frm.h b/mailutils/patches/patch-frm_frm.h
new file mode 100644
index 0000000000..caedbcd144
--- /dev/null
+++ b/mailutils/patches/patch-frm_frm.h
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Define MB_LEN_MAX.
+
+--- frm/frm.h.orig	2022-02-12 15:20:43.000000000 +0000
++++ frm/frm.h
+@@ -33,6 +33,9 @@
+ #ifdef HAVE_ICONV_H
+ # include <iconv.h>
+ #endif
++#ifdef HAVE_LIMITS_H
++# include <limits.h>
++#endif
+ #ifndef MB_LEN_MAX
+ # define MB_LEN_MAX 4
+ #endif


Home | Main Index | Thread Index | Old Index