mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
f01e7de603
are included in the package, and it contains many upstream bugfixes, installs the NEWS documentation file. These are the upstream fixes: * OTP fix patches from Stanislav Brabec <utx@penguin.cz> * fix patch for writing antispam capability correctly in conf.c. * Fix patches for Debian bugs #162571, #156592. * Correction to manpage re -b and qmail. * Patch to disable use of STLS if auth passwd is specified. * Fix specfile generation to handle SSL correctly. * New Danish, Turkish, and Catalan translation files. * Improved ODMR debug messages. * IMAP efficiency hack; don't fetch sizes unless needed. * Detect and rewrite invalid return paths beginning with @. * Fix for subtle freeing bug that suppressed information in some bounce msgs. * Newline fix patches for internationalization files. * Fix reversed test guarding authentication-failure warnings. * Fix POP3 breakage starting at 5.9.14. PR: 44330 Submitted by: Matthias Andree <matthias.andree@web.de>
98 lines
2.9 KiB
Makefile
98 lines
2.9 KiB
Makefile
# New ports collection makefile for: fetchmail
|
|
# Date created: 25 Feb 2000
|
|
# Whom: Ville Eerola <ve@sci.fi>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# NOTE: The fetchmailconf program (an interactive program for
|
|
# writing .fetchmailrc files) requires Python, Tk, X11, etc..
|
|
# The fetchmail program itself does not need Python, but if you
|
|
# want fetchmailconf to work, define WITH_X11
|
|
|
|
PORTNAME= fetchmail
|
|
PORTVERSION= 6.1.1
|
|
CATEGORIES= mail ipv6
|
|
MASTER_SITES= http://www.tuxedo.org/~esr/fetchmail/ \
|
|
ftp://ftp.ccil.org/pub/esr/fetchmail/
|
|
|
|
MAINTAINER= ve@sci.fi
|
|
|
|
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
|
.if defined(WITH_X11)
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
.endif
|
|
|
|
.if defined(WITH_X11)
|
|
USE_PYTHON= yes
|
|
.endif
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-POP2 --enable-SDPS \
|
|
--enable-nls --with-hesiod=no --enable-fallback=no
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl" \
|
|
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
|
|
MAKE_ENV+= ${CONFIGURE_ENV}
|
|
MAN1= fetchmail.1
|
|
MLINKS= fetchmail.1 fetchmailconf.1
|
|
|
|
FDOC= ${PREFIX}/share/doc/fetchmail
|
|
DOCS= COPYING FAQ FEATURES NEWS NOTES README \
|
|
design-notes.html fetchmail-FAQ.html fetchmail-features.html
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
CONFIGURE_ARGS+=--enable-inet6
|
|
.endif
|
|
|
|
.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
|
|
.endif
|
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a)
|
|
CONFIGURE_ARGS += --with-kerberos5=${KRB5_HOME}
|
|
.endif
|
|
|
|
.if defined(WITH_NTLM)
|
|
CONFIGURE_ARGS += --enable-NTLM
|
|
DOCS+= README.NTLM
|
|
PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%"
|
|
.else
|
|
PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%@comment "
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${CP} -f /usr/include/md5.h ${WRKSRC}
|
|
@${SED} -e "s,^#!/.*/python,#!${PREFIX}/bin/python,g" \
|
|
${WRKSRC}/fetchmailconf > ${WRKDIR}/fetchmailconf.temp
|
|
@${MV} -f ${WRKDIR}/fetchmailconf.temp ${WRKSRC}/fetchmailconf
|
|
@${SED} -e "s,@PREFIX@,${PREFIX},g" \
|
|
${FILESDIR}/fetchmailconf > ${WRKDIR}/fetchmailconf
|
|
@${REINPLACE_CMD} -e "s,@l@,,;s,@GT_NO@,," \
|
|
${WRKSRC}/intl/Makefile.in
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${FDOC}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${FDOC}
|
|
.endif
|
|
${MV} ${PREFIX}/bin/fetchmailconf ${PREFIX}/libexec/fetchmailconf.bin
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
|
|
|
|
.include <bsd.port.post.mk>
|