head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.4
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.2
	pkgsrc-2025Q4-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2025.10.19.19.46.48;	author jym;	state Exp;
branches;
next	;
commitid	7VqGClaZ4SqjtdfG;


desc
@@


1.1
log
@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
@
text
@# $NetBSD$

DISTNAME=		getmail-5.16
PKGNAME=		getmail5-5.16
CATEGORIES=		mail
MASTER_SITES=		${HOMEPAGE}old-versions/

MAINTAINER=		schmonz@@NetBSD.org
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"
@
