1996-10-15 06:52:41 +02:00
|
|
|
# New ports collection makefile for: fetchmail
|
2000-03-03 06:13:31 +01:00
|
|
|
# Date created: 25 Feb 2000
|
1996-10-15 06:52:41 +02:00
|
|
|
# Whom: Ville Eerola <ve@sci.fi>
|
|
|
|
#
|
1999-08-25 08:51:17 +02:00
|
|
|
# $FreeBSD$
|
1996-10-15 06:52:41 +02:00
|
|
|
#
|
1998-06-13 21:26:55 +02:00
|
|
|
# NOTE: The fetchmailconf program (an interactive program for
|
2000-06-20 20:43:34 +02:00
|
|
|
# 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
|
1996-10-15 06:52:41 +02:00
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= fetchmail
|
2005-12-06 22:08:15 +01:00
|
|
|
PORTVERSION= 6.3.0
|
2005-12-10 20:58:31 +01:00
|
|
|
PORTREVISION= 2
|
2000-01-18 13:34:34 +01:00
|
|
|
CATEGORIES= mail ipv6
|
2005-12-06 22:08:15 +01:00
|
|
|
MASTER_SITES= http://download.berlios.de/%SUBDIR%/ \
|
|
|
|
http://home.pages.de/~mandree/%SUBDIR%/ \
|
2005-11-10 17:30:32 +01:00
|
|
|
http://home.leo.org/~barner/freebsd/distfiles/
|
2005-12-06 22:08:15 +01:00
|
|
|
MASTER_SITE_SUBDIR= fetchmail
|
2005-07-22 08:59:44 +02:00
|
|
|
|
2005-07-21 12:25:32 +02:00
|
|
|
MAINTAINER= barner@FreeBSD.org
|
2005-12-10 17:09:13 +01:00
|
|
|
COMMENT= Batch mail retrieval utility for IMAP/POP2/POP3/ETRN/ODMR
|
1996-10-15 06:52:41 +02:00
|
|
|
|
2005-12-10 20:58:31 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root.crt:${PORTSDIR}/security/ca-roots
|
|
|
|
|
2005-12-06 22:08:15 +01:00
|
|
|
USE_BZIP2= yes
|
2002-09-29 20:23:32 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-03-17 13:08:09 +01:00
|
|
|
USE_GMAKE= yes
|
1996-11-10 22:32:56 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-10 17:09:13 +01:00
|
|
|
USE_OPENSSL= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2001-03-08 13:03:09 +01:00
|
|
|
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-POP2 --enable-SDPS \
|
2004-04-28 19:26:35 +02:00
|
|
|
--with-hesiod=no --enable-fallback=no
|
2005-12-10 17:09:13 +01:00
|
|
|
# bsd.openssl.mk will add the LDFLAGS to CONFIGURE_ENV:
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
2001-03-17 13:08:09 +01:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
2000-05-29 04:39:21 +02:00
|
|
|
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
|
2001-03-17 13:08:09 +01:00
|
|
|
MAKE_ENV+= ${CONFIGURE_ENV}
|
1996-11-16 23:54:39 +01:00
|
|
|
MAN1= fetchmail.1
|
1998-09-19 02:25:08 +02:00
|
|
|
MLINKS= fetchmail.1 fetchmailconf.1
|
1996-10-15 06:52:41 +02:00
|
|
|
|
2005-12-06 22:08:15 +01:00
|
|
|
.if defined(WITH_X11)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-12-10 17:09:13 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
|
|
|
|
|
|
|
|
DOCS= FAQ FEATURES NEWS NOTES README README.SSL \
|
|
|
|
design-notes.html fetchmail-FAQ.html fetchmail-features.html \
|
|
|
|
esrs-design-notes.html
|
2001-06-15 09:51:44 +02:00
|
|
|
|
2004-04-28 19:26:35 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
2005-12-06 22:08:15 +01:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
USE_GETTEXT= yes
|
2004-04-28 19:26:35 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
2005-12-06 22:08:15 +01:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
2004-04-28 19:26:35 +02:00
|
|
|
.endif
|
|
|
|
|
1998-09-13 23:31:51 +02:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a)
|
|
|
|
CONFIGURE_ARGS += --with-kerberos5=${KRB5_HOME}
|
2005-12-10 17:09:13 +01:00
|
|
|
.elif exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4)
|
|
|
|
CONFIGURE_ARGS += --with-kerberos=/usr
|
1998-09-13 23:31:51 +02:00
|
|
|
.endif
|
|
|
|
|
2000-12-02 17:20:18 +01:00
|
|
|
.if defined(WITH_NTLM)
|
|
|
|
CONFIGURE_ARGS += --enable-NTLM
|
2001-06-15 09:51:44 +02:00
|
|
|
DOCS+= README.NTLM
|
|
|
|
PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%"
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%@comment "
|
2000-12-02 17:20:18 +01:00
|
|
|
.endif
|
|
|
|
|
1999-06-14 04:18:52 +02:00
|
|
|
pre-patch:
|
2005-12-06 22:08:15 +01:00
|
|
|
@${REINPLACE_CMD} -e "s,^#!/usr/bin/env python,#!${LOCALBASE}/bin/python,g" \
|
|
|
|
${WRKSRC}/fetchmailconf.py
|
|
|
|
@${CP} ${FILESDIR}/fetchmailconf ${WRKDIR}/fetchmailconf
|
|
|
|
@${REINPLACE_CMD} -e "s,@LOCALBASE@,${LOCALBASE},g" \
|
|
|
|
${WRKDIR}/fetchmailconf
|
1997-04-24 18:23:32 +02:00
|
|
|
post-install:
|
2001-03-08 13:03:09 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-12-10 17:09:13 +01:00
|
|
|
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
2001-03-08 13:03:09 +01:00
|
|
|
.endif
|
2005-12-06 22:08:15 +01:00
|
|
|
|
1998-06-13 21:26:55 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
|
1997-04-24 18:23:32 +02:00
|
|
|
|
2005-12-10 17:09:13 +01:00
|
|
|
pre-configure:
|
|
|
|
.if defined(WITH_NTLM)
|
|
|
|
@${ECHO_CMD} "Building in support for NTLM/MSN authentication."
|
|
|
|
.else
|
|
|
|
@${ECHO_CMD} "Add -DWITH_NTLM to add support for NTLM/MSN authentication."
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_X11)
|
|
|
|
@${ECHO_CMD) "Adding Python/Tkinter dependencies for fetchmailconf."
|
|
|
|
.else
|
|
|
|
@${ECHO_CMD} "Add -DWITH_X11 to add Python/Tkinter dependencies for fetchmailconf."
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
@${ECHO_CMD} "Using national language support (NLS)."
|
|
|
|
.else
|
|
|
|
@${ECHO_CMD} "You can use -DWITHOUT_NLS to suppress national language support (NLS)."
|
|
|
|
.endif
|
|
|
|
|
2000-01-25 18:03:11 +01:00
|
|
|
.include <bsd.port.post.mk>
|