Index: head/mail/Makefile =================================================================== --- head/mail/Makefile +++ head/mail/Makefile @@ -138,6 +138,7 @@ SUBDIR += geary SUBDIR += gensig SUBDIR += getmail + SUBDIR += getmail6 SUBDIR += gmime2 SUBDIR += gmime2-sharp SUBDIR += gmime24 Index: head/mail/getmail6/Makefile =================================================================== --- head/mail/getmail6/Makefile +++ head/mail/getmail6/Makefile @@ -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 Index: head/mail/getmail6/distinfo =================================================================== --- head/mail/getmail6/distinfo +++ head/mail/getmail6/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1597771268 +SHA256 (getmail6-getmail6-v6.03_GH0.tar.gz) = 4333592d32c89009e5ef50f538402b4b32a2fd14faca72fc01dd65b6cce34549 +SIZE (getmail6-getmail6-v6.03_GH0.tar.gz) = 182699 Index: head/mail/getmail6/files/patch-setup.py =================================================================== --- head/mail/getmail6/files/patch-setup.py +++ head/mail/getmail6/files/patch-setup.py @@ -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', Index: head/mail/getmail6/pkg-descr =================================================================== --- head/mail/getmail6/pkg-descr +++ head/mail/getmail6/pkg-descr @@ -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/ Index: head/mail/getmail6/pkg-message =================================================================== --- head/mail/getmail6/pkg-message +++ head/mail/getmail6/pkg-message @@ -0,0 +1,9 @@ +[ +{ type: install + message: <