pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/getmail5



Module Name:    pkgsrc
Committed By:   jym
Date:           Sun Oct 19 19:46:48 UTC 2025

Added Files:
        pkgsrc/mail/getmail5: ALTERNATIVES DESCR Makefile PLIST distinfo
        pkgsrc/mail/getmail5/patches: patch-setup.py

Log Message:
Introduce mail/getmail5, a rename of mail/getmail per discussion [1].

Rationale: original getmail (now getmail5) was forked years ago to
implement Python 3 support and got named getmail6.

Modifications have never been pulled up to the original project; which is
considered unmaintained as it has not seen work since 2021 and still
requires Python 2 to work.

All other package managers ended up considering getmail6 as the next
iteration of original getmail, however this was never recognized as such
by getmail maintainer.

We do not pick sides here and provide both in tree. getmail5 ought to go
if we ever remove Python 2 from pkgsrc altogether.

[1] https://mail-index.netbsd.org/pkgsrc-users/2025/09/01/msg041927.html


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/getmail5/ALTERNATIVES \
    pkgsrc/mail/getmail5/DESCR pkgsrc/mail/getmail5/Makefile \
    pkgsrc/mail/getmail5/PLIST pkgsrc/mail/getmail5/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/getmail5/patches/patch-setup.py

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

Added files:

Index: pkgsrc/mail/getmail5/ALTERNATIVES
diff -u /dev/null pkgsrc/mail/getmail5/ALTERNATIVES:1.1
--- /dev/null   Sun Oct 19 19:46:48 2025
+++ pkgsrc/mail/getmail5/ALTERNATIVES   Sun Oct 19 19:46:48 2025
@@ -0,0 +1,5 @@
+bin/getmail @PREFIX@/bin/getmail5
+bin/getmail-gmail-xoauth-tokens @PREFIX@/bin/getmail5-gmail-xoauth-tokens
+bin/getmail_fetch @PREFIX@/bin/getmail5_fetch
+bin/getmail_maildir @PREFIX@/bin/getmail5_maildir
+bin/getmail_mbox @PREFIX@/bin/getmail5_mbox
Index: pkgsrc/mail/getmail5/DESCR
diff -u /dev/null pkgsrc/mail/getmail5/DESCR:1.1
--- /dev/null   Sun Oct 19 19:46:48 2025
+++ pkgsrc/mail/getmail5/DESCR  Sun Oct 19 19:46:48 2025
@@ -0,0 +1,8 @@
+getmail is a mail retriever designed to allow you to get your mail
+from one or more mail accounts on various mail servers to your
+local machine for reading with a minimum of fuss. getmail is designed
+to be secure, flexible, reliable, and easy-to-use. getmail is
+designed to replace other mail retrievers such as fetchmail.
+
+getmail5 only supports Python 2 and is considered unmaintained. Consider
+using mail/getmail6 package if you require Python 3 support.
Index: pkgsrc/mail/getmail5/Makefile
diff -u /dev/null pkgsrc/mail/getmail5/Makefile:1.1
--- /dev/null   Sun Oct 19 19:46:48 2025
+++ pkgsrc/mail/getmail5/Makefile       Sun Oct 19 19:46:48 2025
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2025/10/19 19:46:48 jym Exp $
+
+DISTNAME=              getmail-5.16
+PKGNAME=               getmail5-5.16
+CATEGORIES=            mail
+MASTER_SITES=          ${HOMEPAGE}old-versions/
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://pyropus.ca/software/getmail/
+COMMENT=               Secure, flexible, reliable fetchmail replacement
+LICENSE=               gnu-gpl-v2 AND apache-2.0
+
+USE_LANGUAGES=         # none
+
+REPLACE_PYTHON=                *.py getmail5core/*.py
+PYTHON_VERSIONS_ACCEPTED=      27 # getmail5 only supports Python 2
+
+CONFLICTS+=            getmail6-[0-9]*
+
+# Package-wide renaming of getmail to getmail5
+SUBST_CLASSES+=                core
+SUBST_STAGE.core=      pre-configure
+SUBST_FILES.core=      * */*
+SUBST_SED.core=                -e 's|getmailcore|getmail5core|g'
+
+post-extract:
+       cd ${WRKSRC} && \
+       for f in getmail* docs/getmail*.1; do \
+               g=$$(echo $$f | sed -e 's|getmail|getmail5|'); \
+               ${MV} $$f $$g; \
+       done
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/mail/getmail5/PLIST
diff -u /dev/null pkgsrc/mail/getmail5/PLIST:1.1
--- /dev/null   Sun Oct 19 19:46:48 2025
+++ pkgsrc/mail/getmail5/PLIST  Sun Oct 19 19:46:48 2025
@@ -0,0 +1,69 @@
+@comment $NetBSD: PLIST,v 1.1 2025/10/19 19:46:48 jym Exp $
+bin/getmail5
+bin/getmail5-gmail-xoauth-tokens
+bin/getmail5_fetch
+bin/getmail5_maildir
+bin/getmail5_mbox
+man/man1/getmail5.1
+man/man1/getmail5_fetch.1
+man/man1/getmail5_maildir.1
+man/man1/getmail5_mbox.1
+share/doc/getmail5/BUGS
+share/doc/getmail5/CHANGELOG
+share/doc/getmail5/COPYING
+share/doc/getmail5/README
+share/doc/getmail5/THANKS
+share/doc/getmail5/TODO
+share/doc/getmail5/configuration.html
+share/doc/getmail5/configuration.txt
+share/doc/getmail5/documentation.html
+share/doc/getmail5/documentation.txt
+share/doc/getmail5/faq.html
+share/doc/getmail5/faq.txt
+share/doc/getmail5/getmaildocs.css
+share/doc/getmail5/getmailrc-examples
+share/doc/getmail5/troubleshooting.html
+share/doc/getmail5/troubleshooting.txt
+${PYSITELIB}/${EGG_INFODIR}
+${PYSITELIB}/getmail5core/__init__.py
+${PYSITELIB}/getmail5core/__init__.pyc
+${PYSITELIB}/getmail5core/__init__.pyo
+${PYSITELIB}/getmail5core/_pop3ssl.py
+${PYSITELIB}/getmail5core/_pop3ssl.pyc
+${PYSITELIB}/getmail5core/_pop3ssl.pyo
+${PYSITELIB}/getmail5core/_retrieverbases.py
+${PYSITELIB}/getmail5core/_retrieverbases.pyc
+${PYSITELIB}/getmail5core/_retrieverbases.pyo
+${PYSITELIB}/getmail5core/baseclasses.py
+${PYSITELIB}/getmail5core/baseclasses.pyc
+${PYSITELIB}/getmail5core/baseclasses.pyo
+${PYSITELIB}/getmail5core/compatibility.py
+${PYSITELIB}/getmail5core/compatibility.pyc
+${PYSITELIB}/getmail5core/compatibility.pyo
+${PYSITELIB}/getmail5core/constants.py
+${PYSITELIB}/getmail5core/constants.pyc
+${PYSITELIB}/getmail5core/constants.pyo
+${PYSITELIB}/getmail5core/destinations.py
+${PYSITELIB}/getmail5core/destinations.pyc
+${PYSITELIB}/getmail5core/destinations.pyo
+${PYSITELIB}/getmail5core/exceptions.py
+${PYSITELIB}/getmail5core/exceptions.pyc
+${PYSITELIB}/getmail5core/exceptions.pyo
+${PYSITELIB}/getmail5core/filters.py
+${PYSITELIB}/getmail5core/filters.pyc
+${PYSITELIB}/getmail5core/filters.pyo
+${PYSITELIB}/getmail5core/imap_utf7.py
+${PYSITELIB}/getmail5core/imap_utf7.pyc
+${PYSITELIB}/getmail5core/imap_utf7.pyo
+${PYSITELIB}/getmail5core/logging.py
+${PYSITELIB}/getmail5core/logging.pyc
+${PYSITELIB}/getmail5core/logging.pyo
+${PYSITELIB}/getmail5core/message.py
+${PYSITELIB}/getmail5core/message.pyc
+${PYSITELIB}/getmail5core/message.pyo
+${PYSITELIB}/getmail5core/retrievers.py
+${PYSITELIB}/getmail5core/retrievers.pyc
+${PYSITELIB}/getmail5core/retrievers.pyo
+${PYSITELIB}/getmail5core/utilities.py
+${PYSITELIB}/getmail5core/utilities.pyc
+${PYSITELIB}/getmail5core/utilities.pyo
Index: pkgsrc/mail/getmail5/distinfo
diff -u /dev/null pkgsrc/mail/getmail5/distinfo:1.1
--- /dev/null   Sun Oct 19 19:46:48 2025
+++ pkgsrc/mail/getmail5/distinfo       Sun Oct 19 19:46:48 2025
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2025/10/19 19:46:48 jym Exp $
+
+BLAKE2s (getmail-5.16.tar.gz) = 0fa18a9909646d2eeefc09b94ad63d91897fbda955d685fc656c8c97675860eb
+SHA512 (getmail-5.16.tar.gz) = f47e86645de10f28b28c8ad5c800cebcf33f9a8de2a832b186009f8fc0d548e2a3d529da8aa5a7f1ae4885a8c713ca83a40453b35f3ffe267530c644f907a621
+Size (getmail-5.16.tar.gz) = 180577 bytes
+SHA1 (patch-setup.py) = 661eb064cba3dbe8b11a4f6f2fed5e63d200874c

Index: pkgsrc/mail/getmail5/patches/patch-setup.py
diff -u /dev/null pkgsrc/mail/getmail5/patches/patch-setup.py:1.1
--- /dev/null   Sun Oct 19 19:46:48 2025
+++ pkgsrc/mail/getmail5/patches/patch-setup.py Sun Oct 19 19:46:48 2025
@@ -0,0 +1,63 @@
+$NetBSD: patch-setup.py,v 1.1 2025/10/19 19:46:48 jym Exp $
+
+Use standard pkgsrc paths. Avoid conflicting with getmail6.
+
+--- setup.py.orig      2021-10-31 22:19:59.000000000 +0000
++++ setup.py
+@@ -39,13 +39,12 @@ GETMAILDOCDIR = os.path.join(
+     datadir or prefix,
+     'share',
+     'doc',
+-    'getmail-%s' % __version__
++    'getmail5'
+ )
+ 
+ GETMAILMANDIR = os.path.join(
+     datadir or prefix,
+-    'share',
+-    'man',
++    os.environ["PKGMANDIR"],
+     'man1'
+ )
+ 
+@@ -89,19 +88,18 @@ setup(
+         'Topic :: Utilities',
+     ],
+     packages=[
+-        'getmailcore'
++        'getmail5core'
+     ],
+     scripts=[
+-        'getmail',
+-        'getmail_fetch',
+-        'getmail_maildir',
+-        'getmail_mbox',
+-        'getmail-gmail-xoauth-tokens',
++        'getmail5',
++        'getmail5_fetch',
++        'getmail5_maildir',
++        'getmail5_mbox',
++        'getmail5-gmail-xoauth-tokens',
+     ],
+     data_files=[
+         (GETMAILDOCDIR, [
+             './README',
+-            './getmail.spec',
+             'docs/BUGS',
+             'docs/COPYING',
+             'docs/CHANGELOG',
+@@ -119,10 +117,10 @@ setup(
+             'docs/troubleshooting.txt',
+         ]),
+         (GETMAILMANDIR, [
+-            'docs/getmail.1',
+-            'docs/getmail_fetch.1',
+-            'docs/getmail_maildir.1',
+-            'docs/getmail_mbox.1',
++            'docs/getmail5.1',
++            'docs/getmail5_fetch.1',
++            'docs/getmail5_maildir.1',
++            'docs/getmail5_mbox.1',
+         ]),
+     ],
+ )



Home | Main Index | Thread Index | Old Index