summaryrefslogtreecommitdiff
path: root/mail/fetchmail/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/fetchmail/Makefile')
-rw-r--r--mail/fetchmail/Makefile25
1 files changed, 17 insertions, 8 deletions
diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile
index 9152a88d350e..a381d88529fd 100644
--- a/mail/fetchmail/Makefile
+++ b/mail/fetchmail/Makefile
@@ -10,7 +10,7 @@
# want fetchmailconf to work, define WITH_X11
PORTNAME= fetchmail
-PORTVERSION= 5.8.5
+PORTVERSION= 5.8.6
CATEGORIES= mail ipv6
MASTER_SITES= http://www.tuxedo.org/~esr/fetchmail/ \
ftp://ftp.ccil.org/pub/esr/fetchmail/
@@ -33,6 +33,10 @@ MAKE_ENV+= ${CONFIGURE_ENV}
MAN1= fetchmail.1
MLINKS= fetchmail.1 fetchmailconf.1
+FDOC= ${PREFIX}/share/doc/fetchmail
+DOCS= COPYING FAQ FEATURES NOTES README \
+ design-notes.html fetchmail-FAQ.html fetchmail-features.html
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400014
@@ -41,13 +45,19 @@ CONFIGURE_ARGS+=--enable-inet6
.if exists(/usr/lib/libssl.a) && exists(/usr/lib/libcrypto.a)
CONFIGURE_ARGS+=--with-ssl=/usr
+DOCS+= README.SSL
+PLIST_SUB+= SSLDOCS="%%PORTDOCS%%"
.elif exists(${LOCALBASE}/lib/libssl.a) && exists(${LOCALBASE}/lib/libcrypto.a)
CONFIGURE_ARGS+=-with-includes=${LOCALBASE}/include/openssl --with-ssl=${LOCALBASE}
CONFIGURE_ENV+= RSAGLUE=-lRSAglue
+DOCS+= README.SSL
+PLIST_SUB+= SSLDOCS="%%PORTDOCS%%"
+.else
+PLIST_SUB+= SSLDOCS="%%PORTDOCS%%@comment "
.endif
.if exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4)
-CONFIGURE_ARGS += --with-kerberos=/usr/include
+CONFIGURE_ARGS += --with-kerberos=/usr
.endif
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a)
@@ -56,10 +66,12 @@ CONFIGURE_ARGS += --with-kerberos5=${KRB5_HOME}
.if defined(WITH_NTLM)
CONFIGURE_ARGS += --enable-NTLM
+DOCS+= README.NTLM
+PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%"
+.else
+PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%@comment "
.endif
-FDOC= ${PREFIX}/share/doc/fetchmail
-
pre-patch:
@${CP} -f /usr/include/md5.h ${WRKSRC}
@${PERL} -pi.bak -e 's|^#!/.*/python|#!${PREFIX}/bin/python|;' ${WRKSRC}/fetchmailconf
@@ -68,10 +80,7 @@ pre-patch:
post-install:
.if !defined(NOPORTDOCS)
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${FDOC}
- cd ${WRKSRC} && ${INSTALL_DATA} \
- FAQ NOTES FEATURES README COPYING \
- fetchmail-FAQ.html fetchmail-features.html \
- design-notes.html ${FDOC}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${FDOC}
.endif
${MV} ${PREFIX}/bin/fetchmailconf ${PREFIX}/libexec/fetchmailconf.bin
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin