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
|
2003-10-24 11:33:14 +02:00
|
|
|
PORTVERSION= 6.2.5
|
2004-02-04 05:36:30 +01:00
|
|
|
PORTREVISION= 1
|
2000-01-18 13:34:34 +01:00
|
|
|
CATEGORIES= mail ipv6
|
2003-11-16 23:15:28 +01:00
|
|
|
MASTER_SITES= http://www.catb.org/~esr/%SUBDIR%/ \
|
|
|
|
ftp://ftp.ayamura.org/pub/%SUBDIR%/ \
|
|
|
|
ftp://ftp.win.jp/pub/%SUBDIR%/ \
|
|
|
|
ftp://ftp.dti.ad.jp/pub/net/mail/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= fetchmail
|
1996-10-15 06:52:41 +02:00
|
|
|
|
2003-11-14 01:29:48 +01:00
|
|
|
MAINTAINER= eik@FreeBSD.org
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= Batch mail retrieval utility for IMAP/POP2/POP3/APOP/KPOP/ETRN/ODMR
|
1996-10-15 06:52:41 +02:00
|
|
|
|
2000-06-20 20:43:34 +02:00
|
|
|
.if defined(WITH_X11)
|
2001-09-03 10:04:36 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
2000-06-20 20:43:34 +02:00
|
|
|
.endif
|
|
|
|
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2002-10-31 15:54:22 +01:00
|
|
|
.if defined(WITH_X11)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
.endif
|
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
|
2001-03-08 13:03:09 +01:00
|
|
|
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-POP2 --enable-SDPS \
|
2001-05-31 09:08:13 +02:00
|
|
|
--enable-nls --with-hesiod=no --enable-fallback=no
|
2001-03-17 13:08:09 +01:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-03-20 10:40:16 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl" \
|
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
|
|
|
|
2001-06-15 09:51:44 +02:00
|
|
|
FDOC= ${PREFIX}/share/doc/fetchmail
|
2003-10-24 11:33:14 +02:00
|
|
|
DOCS= FAQ FEATURES NEWS NOTES README \
|
2001-06-15 09:51:44 +02:00
|
|
|
design-notes.html fetchmail-FAQ.html fetchmail-features.html
|
|
|
|
|
2000-01-25 18:03:11 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
CONFIGURE_ARGS+=--enable-inet6
|
2001-03-24 07:37:25 +01:00
|
|
|
.endif
|
|
|
|
|
2000-02-25 22:58:35 +01:00
|
|
|
.if exists(/usr/lib/libssl.a) && exists(/usr/lib/libcrypto.a)
|
|
|
|
CONFIGURE_ARGS+=--with-ssl=/usr
|
2001-06-15 09:51:44 +02:00
|
|
|
DOCS+= README.SSL
|
|
|
|
PLIST_SUB+= SSLDOCS="%%PORTDOCS%%"
|
2000-06-09 10:54:43 +02:00
|
|
|
.elif exists(${LOCALBASE}/lib/libssl.a) && exists(${LOCALBASE}/lib/libcrypto.a)
|
2000-06-01 19:59:22 +02:00
|
|
|
CONFIGURE_ARGS+=-with-includes=${LOCALBASE}/include/openssl --with-ssl=${LOCALBASE}
|
2001-03-27 10:38:06 +02:00
|
|
|
CONFIGURE_ENV+= RSAGLUE=-lRSAglue
|
2001-06-15 09:51:44 +02:00
|
|
|
DOCS+= README.SSL
|
|
|
|
PLIST_SUB+= SSLDOCS="%%PORTDOCS%%"
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SSLDOCS="%%PORTDOCS%%@comment "
|
2000-01-25 18:03:11 +01:00
|
|
|
.endif
|
|
|
|
|
1998-03-20 16:05:27 +01:00
|
|
|
.if exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4)
|
2001-06-15 09:51:44 +02:00
|
|
|
CONFIGURE_ARGS += --with-kerberos=/usr
|
1997-09-10 03:25:08 +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}
|
|
|
|
.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:
|
1997-06-16 17:51:55 +02:00
|
|
|
@${CP} -f /usr/include/md5.h ${WRKSRC}
|
2002-05-23 06:29:10 +02:00
|
|
|
@${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
|
2002-09-29 20:23:32 +02:00
|
|
|
@${REINPLACE_CMD} -e "s,@l@,,;s,@GT_NO@,," \
|
|
|
|
${WRKSRC}/intl/Makefile.in
|
1997-06-11 04:38:35 +02:00
|
|
|
|
1997-04-24 18:23:32 +02:00
|
|
|
post-install:
|
2001-03-08 13:03:09 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
1997-10-28 05:40:39 +01:00
|
|
|
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${FDOC}
|
2001-06-15 09:51:44 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${FDOC}
|
2001-03-08 13:03:09 +01:00
|
|
|
.endif
|
1998-06-13 21:26:55 +02:00
|
|
|
${MV} ${PREFIX}/bin/fetchmailconf ${PREFIX}/libexec/fetchmailconf.bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
|
1997-04-24 18:23:32 +02:00
|
|
|
|
2000-01-25 18:03:11 +01:00
|
|
|
.include <bsd.port.post.mk>
|