1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

New port, mail/getmail6: A python3 fork of mail/getmail

PR:		248633
Submitted by:	Michael Bueker <m.bueker@berlin.de> (maintainer)
Reviewed by:	koobs
Differential Revision:	https://reviews.freebsd.org/D26057
This commit is contained in:
Joseph Mingrone 2020-08-18 19:10:44 +00:00
parent 12047f2917
commit f10a562260
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545250
6 changed files with 114 additions and 0 deletions

View File

@ -138,6 +138,7 @@
SUBDIR += geary
SUBDIR += gensig
SUBDIR += getmail
SUBDIR += getmail6
SUBDIR += gmime2
SUBDIR += gmime2-sharp
SUBDIR += gmime24

41
mail/getmail6/Makefile Normal file
View File

@ -0,0 +1,41 @@
# $FreeBSD$
PORTNAME= getmail6
DISTVERSIONPREFIX= v
DISTVERSION= 6.03
CATEGORIES= mail python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= m.bueker@berlin.de
COMMENT= POP3/IMAP4 mail retriever (Python3 fork)
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/docs/COPYING
USES= python
USE_GITHUB= yes
USE_PYTHON= autoplist concurrent distutils
CONFLICTS= getmail
NO_ARCH= yes
NO_BUILD= yes
PORTDOCS= *.css *.html *.txt BUGS CHANGELOG README THANKS
PORTEXAMPLES= getmailrc-examples
OPTIONS_DEFINE= DOCS EXAMPLES
post-install:
@${CHMOD} -R 644 ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/getmailcore/*
post-install-DOCS-on:
@${CP} ${WRKSRC}/README ${WRKSRC}/docs/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/docs/getmailrc-examples ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

3
mail/getmail6/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1597771268
SHA256 (getmail6-getmail6-v6.03_GH0.tar.gz) = 4333592d32c89009e5ef50f538402b4b32a2fd14faca72fc01dd65b6cce34549
SIZE (getmail6-getmail6-v6.03_GH0.tar.gz) = 182699

View File

@ -0,0 +1,40 @@
--- setup.py.orig 2020-08-18 15:00:41 UTC
+++ setup.py
@@ -35,12 +35,11 @@ GETMAILDOCDIR = os.path.join(
datadir or prefix,
'share',
'doc',
- 'getmail-%s' % __version__
+ 'getmail'
)
GETMAILMANDIR = os.path.join(
datadir or prefix,
- 'share',
'man',
'man1'
)
@@ -96,23 +95,6 @@ setup(
'getmail-gmail-xoauth-tokens',
],
data_files=[
- (GETMAILDOCDIR, [
- './README',
- 'docs/BUGS',
- 'docs/COPYING',
- 'docs/CHANGELOG',
- 'docs/THANKS',
- 'docs/configuration.html',
- 'docs/configuration.txt',
- 'docs/documentation.html',
- 'docs/documentation.txt',
- 'docs/faq.html',
- 'docs/faq.txt',
- 'docs/getmaildocs.css',
- 'docs/getmailrc-examples',
- 'docs/troubleshooting.html',
- 'docs/troubleshooting.txt',
- ]),
(GETMAILMANDIR, [
'docs/getmail.1',
'docs/getmail_fetch.1',

20
mail/getmail6/pkg-descr Normal file
View File

@ -0,0 +1,20 @@
POP3/IMAP4 mail retriever with Maildir and command delivery (python3 fork).
Summary of features:
- Retrieve mail from an unlimited number of POP3/IMAP4 mailboxes and servers.
- Support for POP3-over-SSL and IMAP-over-SSL, as well as SDPS
WARNING: even with SSL, "no certificate or key validation is done." so
that getmail does not detect or protect from man-in-the-middle attacks.
- Support for multidrop or domain mailboxes.
- Safe and reliable delivery to qmail-style Maildirs, as well as program
(pipe) delivery for use with arbitrary external MDAs. Includes an MDA
for mbox files that supports mboxrd format and fcntl-type flock locking.
- Does not destroy information by rewriting mail headers.
- Does not cause mail loops by doing SMTP injection, and therefore does
not require that you run an MTA (like qmail or sendmail) on your host.
- Can remember which mail it has already retrieved, and can be set to
only download new messages.
- Written in Python, and therefore easy to extend or customize.
- Simple to install, configure, and use.
WWW: https://github.com/getmail6/getmail6/

View File

@ -0,0 +1,9 @@
[
{ type: install
message: <<EOM
This fork of getmail 5.14 was modified to work with python3. It is work in
progress, and bugs should be reported at:
https://github.com/getmail6/getmail6/issues
EOM
}
]