openbsd-ports/mail/fetchmail/Makefile
sthen 02c6211f1a update fetchmail to 6.3.20, tested by jasper@, lots of fixes including:
* CVE-2011-1947
- use timeouts for IMAP STARTTLS/POP3 STLS negotiation which could cause
  fetchmail freezes if a server was hanging.
* security improvements to defang X.509 certificate abuse
- require wildcard CN/subject alternative names to start with "*." not just "*"
- don't allow wildcards to match domain literals (such as 10.9.8.7) or
  wildcards in domain literals ("*.168.23.23").
- don't allow wildcarding top-level domains.
2011-06-06 13:57:07 +00:00

54 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.126 2011/06/06 13:57:07 sthen Exp $
COMMENT= mail retrieval utility for POP2, POP3, KPOP, IMAP and more
DISTNAME= fetchmail-6.3.20
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_BERLIOS:=fetchmail/}
HOMEPAGE= http://fetchmail.berlios.de/
# GPLv2(+)
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c crypto krb5 ssl
MODULES= devel/gettext
BUILD_DEPENDS= devel/bison
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CFLAGS= -I${LOCALBASE}/include
CONFIGURE_ENV= PYTHON=: YACC="bison -y"
CONFIGURE_ARGS= --with-ssl \
--with-kerberos5 \
--enable-NTLM
USE_GROFF = Yes
EXTRACT_SUFX= .tar.bz2
DOCS= FAQ NOTES FEATURES README COPYING fetchmail-FAQ.html \
fetchmail-features.html design-notes.html todo.html
# Remove those so they get rebuild. Fixes problems with gcc2.
post-extract:
@rm -f ${WRKSRC}/rcfile_y.[ch]
pre-patch:
@sed -e "s|@PREFIX@|${LOCALBASE}|" \
${FILESDIR}/fetchmailconf > ${WRKDIR}/fetchmailconf
@tbl ${WRKSRC}/fetchmail.man > ${WRKSRC}/fetchmail.tbl && \
cp -f ${WRKSRC}/fetchmail.tbl ${WRKSRC}/fetchmail.man
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fetchmail
@cd ${PREFIX}/man/man1 && ln -sf fetchmail.1 fetchmailconf.1
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/fetchmail
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py \
${PREFIX}/libexec/fetchmailconf.bin
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
.include <bsd.port.mk>