summaryrefslogtreecommitdiff
path: root/mail/getmail/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/getmail/Makefile')
-rw-r--r--mail/getmail/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/mail/getmail/Makefile b/mail/getmail/Makefile
index 68280148df6e..941b354ecc5b 100644
--- a/mail/getmail/Makefile
+++ b/mail/getmail/Makefile
@@ -16,12 +16,22 @@ MASTER_SITE_SUBDIR= old-versions
MAINTAINER= question+fbsdports@closedsrc.org
COMMENT= POP3/IMAP4 mail retriever with Maildir and command delivery
+LICENSE= GPLv2
+
USE_PYTHON= yes
USE_PYDISTUTILS= yes
MAN1= getmail.1 getmail_fetch.1 getmail_maildir.1 getmail_mbox.1
PORTDOCS= README BUGS CHANGELOG THANKS TODO *.txt *.html *.css
+OPTIONS= NOTSEEN "Do not mark IMAP-retrieved mail \\Seen" OFF
+
+.include <bsd.port.pre.mk>
+
+.ifdef WITH_NOTSEEN
+EXTRA_PATCHES+= ${FILESDIR}/diff-getmailcore___retrieverbases.py
+.endif
+
post-install:
@${CHMOD} -R 644 ${PYTHON_SITELIBDIR}/getmailcore/*
@${CP} ${WRKSRC}/README ${WRKSRC}/docs/
@@ -35,4 +45,4 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>