1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Simplify Makefile install target by utilizing USE_PYDISTUTILS

- Update pkg-descr and clarify COMMENT
- Add pkg-message warning the user about the configuration file syntax
  change from 3.x to 4.x

PR:		ports/72720
Submitted by:	Linh Pham (maintainer)
Obtained from:	Nuno Teixeira <nunotex@freeshell.org>
This commit is contained in:
Sergei Kolobov 2004-10-18 10:22:40 +00:00
parent eb4b997250
commit 5bd97c5b5e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119717
5 changed files with 106 additions and 44 deletions

View File

@ -7,42 +7,27 @@
PORTNAME= getmail
PORTVERSION= 4.2.2
PORTREVISION= 1
CATEGORIES= mail python
MASTER_SITES= http://www.qcc.ca/~charlesc/software/getmail-4/%SUBDIR%/
MASTER_SITE_SUBDIR= old-versions
MAINTAINER= question+fbsdports@closedsrc.org
COMMENT= POP3/IMAP mail retriever with Maildir and command delivery
COMMENT= POP3/IMAP4 mail retriever with Maildir and command delivery
USE_PYTHON= yes
USE_REINPLACE= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
SCRIPTS= getmail getmail_maildir getmail_mbox
MAN1= getmail.1
DOCS= CHANGELOG THANKS TODO configuration.txt documentation.txt \
faq.txt configuration.html documentation.html \
faq.html troubleshooting.txt troubleshooting.html
MAN1= getmail.1 getmail_maildir.1 getmail_mbox.1
DOCS= ../README BUGS CHANGELOG THANKS TODO *.txt *.html *.css
do-build:
cd ${WRKSRC} && \
${REINPLACE_CMD} -e 's!/usr/lib/getmail!${DATADIR}!' \
-e 's!`which python`!${PYTHON_CMD}!' \
-e 's!/usr/bin/python!${PYTHON_CMD}!' ${SCRIPTS} *.py
do-install:
@${MKDIR} ${DATADIR} ${DATADIR}/getmailcore
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${SCRIPTS} ${DATADIR}
@${LN} -s ${DATADIR}/getmail ${PREFIX}/bin/getmail
@${LN} -s ${DATADIR}/getmail_maildir ${PREFIX}/bin/getmail_maildir
@${LN} -s ${DATADIR}/getmail_mbox ${PREFIX}/bin/getmail_mbox
cd ${WRKSRC}/docs && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1
@${MKDIR} ${DATADIR} ${DATADIR}/getmailcore
${INSTALL_SCRIPT} ${WRKSRC}/getmailcore/*.py ${DATADIR}/getmailcore/
post-install:
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/docs/getmailrc-examples ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/docs && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -0,0 +1,41 @@
--- setup.py.orig
+++ setup.py
@@ -39,12 +39,11 @@
datadir or prefix,
'share',
'doc',
- 'getmail-%s' % __version__
+ 'getmail'
)
GETMAILMANDIR = os.path.join(
datadir or prefix,
- 'share',
'man',
'man1'
)
@@ -97,24 +96,6 @@
'getmail_mbox'
],
data_files=[
- (GETMAILDOCDIR, [
- './README',
- 'docs/BUGS',
- 'docs/COPYING',
- 'docs/CHANGELOG',
- 'docs/TODO',
- '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_maildir.1',

View File

@ -1,7 +1,8 @@
A POP3 mail retriever with reliable Maildir and command delivery.
A POP3 and IMAP4 mail retriever with reliable Maildir and command delivery.
Summary of features:
- Retrieve mail from an unlimited number of POP3 mailboxes and servers.
- 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
- 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

12
mail/getmail/pkg-message Normal file
View File

@ -0,0 +1,12 @@
=======================================================================
The getmail rc file (configuration file) format has changed since
version 3.x. If you are upgrading from version 3, you will need
to write a new configuration file based on the contents of your old one.
The new file format resembles the old in many ways.
Each account you retrieve mail from will require a separate rc file,
but getmail can operate with multiple rc files simultaneously
if you wish to retrieve mail from multiple accounts.
=======================================================================

View File

@ -2,34 +2,57 @@
bin/getmail
bin/getmail_maildir
bin/getmail_mbox
%%PYTHON_SITELIBDIR%%/getmailcore/__init__.py
%%PYTHON_SITELIBDIR%%/getmailcore/__init__.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/__init__.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/_pop3ssl.py
%%PYTHON_SITELIBDIR%%/getmailcore/_pop3ssl.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/_pop3ssl.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/_retrieverbases.py
%%PYTHON_SITELIBDIR%%/getmailcore/_retrieverbases.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/_retrieverbases.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/baseclasses.py
%%PYTHON_SITELIBDIR%%/getmailcore/baseclasses.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/baseclasses.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/constants.py
%%PYTHON_SITELIBDIR%%/getmailcore/constants.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/constants.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/destinations.py
%%PYTHON_SITELIBDIR%%/getmailcore/destinations.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/destinations.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/exceptions.py
%%PYTHON_SITELIBDIR%%/getmailcore/exceptions.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/exceptions.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/filters.py
%%PYTHON_SITELIBDIR%%/getmailcore/filters.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/filters.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/logging.py
%%PYTHON_SITELIBDIR%%/getmailcore/logging.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/logging.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/message.py
%%PYTHON_SITELIBDIR%%/getmailcore/message.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/message.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/retrievers.py
%%PYTHON_SITELIBDIR%%/getmailcore/retrievers.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/retrievers.pyo
%%PYTHON_SITELIBDIR%%/getmailcore/utilities.py
%%PYTHON_SITELIBDIR%%/getmailcore/utilities.pyc
%%PYTHON_SITELIBDIR%%/getmailcore/utilities.pyo
@dirrm %%PYTHON_SITELIBDIR%%/getmailcore
%%PORTDOCS%%%%DOCSDIR%%/BUGS
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/THANKS
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%%%DOCSDIR%%/configuration.html
%%PORTDOCS%%%%DOCSDIR%%/configuration.txt
%%PORTDOCS%%%%DOCSDIR%%/documentation.html
%%PORTDOCS%%%%DOCSDIR%%/documentation.txt
%%PORTDOCS%%%%DOCSDIR%%/faq.html
%%PORTDOCS%%%%DOCSDIR%%/faq.txt
%%PORTDOCS%%%%DOCSDIR%%/configuration.html
%%PORTDOCS%%%%DOCSDIR%%/configuration.txt
%%PORTDOCS%%%%DOCSDIR%%/getmaildocs.css
%%PORTDOCS%%%%DOCSDIR%%/troubleshooting.html
%%PORTDOCS%%%%DOCSDIR%%/troubleshooting.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%EXAMPLESDIR%%/getmailrc-examples
@dirrm %%EXAMPLESDIR%%
%%DATADIR%%/getmailcore/__init__.py
%%DATADIR%%/getmailcore/_pop3ssl.py
%%DATADIR%%/getmailcore/_retrieverbases.py
%%DATADIR%%/getmailcore/baseclasses.py
%%DATADIR%%/getmailcore/constants.py
%%DATADIR%%/getmailcore/destinations.py
%%DATADIR%%/getmailcore/exceptions.py
%%DATADIR%%/getmailcore/filters.py
%%DATADIR%%/getmailcore/logging.py
%%DATADIR%%/getmailcore/message.py
%%DATADIR%%/getmailcore/retrievers.py
%%DATADIR%%/getmailcore/utilities.py
%%DATADIR%%/getmail
%%DATADIR%%/getmail_maildir
%%DATADIR%%/getmail_mbox
@dirrm %%DATADIR%%/getmailcore
@dirrm %%DATADIR%%