summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2011-03-18 02:45:59 +0000
committerMatthias Andree <mandree@FreeBSD.org>2011-03-18 02:45:59 +0000
commit56b0b62df2ed3dc08b052ae4792b1ca9ededdf9d (patch)
tree2316ddc0d9550638dfee8caf0c4557f90fd249f7
parentDon't mark messages retrieved through IMAP as \Seen. (diff)
Make previous mail/getmail commit optional, default off, to render authentic
binary packages. While at it, add LICENSE=GPLv2.
Notes
Notes: svn path=/head/; revision=271196
-rw-r--r--mail/getmail/Makefile12
-rw-r--r--mail/getmail/files/diff-getmailcore___retrieverbases.py (renamed from mail/getmail/files/patch-getmailcore___retrieverbases.py)0
2 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>
diff --git a/mail/getmail/files/patch-getmailcore___retrieverbases.py b/mail/getmail/files/diff-getmailcore___retrieverbases.py
index 3423c356a7db..3423c356a7db 100644
--- a/mail/getmail/files/patch-getmailcore___retrieverbases.py
+++ b/mail/getmail/files/diff-getmailcore___retrieverbases.py