2013-01-10 02:36:21 +01:00
|
|
|
# Created by: Ville Eerola <ve@sci.fi>
|
1999-08-25 08:51:17 +02:00
|
|
|
# $FreeBSD$
|
1996-10-15 06:52:41 +02:00
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= fetchmail
|
2013-04-24 00:37:59 +02:00
|
|
|
PORTVERSION= 6.3.26
|
2014-11-04 01:24:44 +01:00
|
|
|
PORTREVISION= 2
|
2000-01-18 13:34:34 +01:00
|
|
|
CATEGORIES= mail ipv6
|
2013-01-10 02:36:21 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/branch_6.3/ \
|
|
|
|
http://mandree.home.pages.de/${PORTNAME}/
|
2005-07-22 08:59:44 +02:00
|
|
|
|
2009-05-05 01:09:15 +02:00
|
|
|
MAINTAINER= chalpin@cs.wisc.edu
|
2006-11-02 17:05:29 +01:00
|
|
|
COMMENT= Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
|
1996-10-15 06:52:41 +02:00
|
|
|
|
2014-04-22 18:10:50 +02:00
|
|
|
LICENSE= GPLv2 LGPL21
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2007-08-13 16:31:54 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
|
2005-12-10 20:58:31 +01:00
|
|
|
|
2011-08-15 22:13:21 +02:00
|
|
|
# Note USERS can only contain a single word as parts below rely on that.
|
2014-04-22 18:10:50 +02:00
|
|
|
USERS= ${PORTNAME}
|
|
|
|
GROUPS= ${USERS}
|
|
|
|
|
2015-04-05 02:53:36 +02:00
|
|
|
USES= cpe gmake shebangfix tar:xz
|
2014-04-22 18:10:50 +02:00
|
|
|
SHEBANG_FILES= fetchmailconf.py
|
|
|
|
python_OLD_CMD= /usr/bin/env python
|
2011-07-09 12:07:49 +02:00
|
|
|
|
2006-05-12 18:58:48 +02:00
|
|
|
USE_RC_SUBR= fetchmail
|
2014-04-22 18:10:50 +02:00
|
|
|
SUB_FILES= pkg-message pkg-install pkg-deinstall
|
|
|
|
SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} PORTNAME=${PORTNAME}
|
2006-05-12 18:58:48 +02:00
|
|
|
|
1996-11-10 22:32:56 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-10 17:09:13 +01:00
|
|
|
USE_OPENSSL= yes
|
2006-11-02 17:05:29 +01:00
|
|
|
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-SDPS \
|
2013-01-10 02:36:21 +01:00
|
|
|
--without-hesiod --enable-fallback=no \
|
|
|
|
--with-ssl=${OPENSSLBASE}
|
1996-10-15 06:52:41 +02:00
|
|
|
|
2013-01-10 02:36:21 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2006-11-02 17:05:29 +01:00
|
|
|
|
2014-07-15 18:14:15 +02:00
|
|
|
OPTIONS_DEFINE= X11 NLS NTLM GSSAPI POP2 DOCS
|
2013-01-10 02:36:21 +01:00
|
|
|
OPTIONS_DEFAULT= GSSAPI
|
2014-04-22 18:10:50 +02:00
|
|
|
OPTIONS_SUB= yes
|
2013-01-10 02:36:21 +01:00
|
|
|
X11_DESC= Python/Tkinter dependencies for ``fetchmailconf''
|
2014-04-22 18:10:50 +02:00
|
|
|
POP2_DESC= POP2 Protocol support[obsolete]
|
|
|
|
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
NLS_CONFIGURE_ON= --enable-nls
|
|
|
|
NLS_CONFIGURE_OFF= --disable-nls
|
2007-09-03 21:22:28 +02:00
|
|
|
|
2013-01-10 02:36:21 +01:00
|
|
|
PORTDOCS= FAQ FEATURES NEWS NOTES README README.SSL \
|
|
|
|
design-notes.html fetchmail-FAQ.html fetchmail-features.html \
|
|
|
|
esrs-design-notes.html
|
2005-12-06 22:08:15 +01:00
|
|
|
|
2013-01-10 02:36:21 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-07-16 01:02:52 +02:00
|
|
|
|
2006-11-02 17:05:29 +01:00
|
|
|
# Pop2 is obsolete
|
2014-04-22 18:10:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MPOP2}
|
2013-01-10 02:36:21 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-POP2
|
2006-11-02 17:05:29 +01:00
|
|
|
.endif
|
|
|
|
|
2013-01-10 02:36:21 +01:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2015-06-30 18:28:56 +02:00
|
|
|
USES+= python
|
2013-01-10 02:36:21 +01:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter
|
2014-04-22 18:10:50 +02:00
|
|
|
PLIST_SUB+= NOX11="@comment "
|
2013-01-10 02:36:21 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= PYTHON=:
|
|
|
|
SUB_FILES+= fetchmailconf
|
2014-04-22 18:10:50 +02:00
|
|
|
PLIST_SUB+= NOX11=""
|
2004-04-28 19:26:35 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-10 02:36:21 +01:00
|
|
|
.if ${PORT_OPTIONS:MGSSAPI}
|
2009-11-04 11:47:33 +01:00
|
|
|
.if !defined(KRB5_HOME)
|
|
|
|
.if exists(${LOCALBASE}/lib/libkrb5.a)
|
|
|
|
KRB5_HOME= ${LOCALBASE}
|
|
|
|
.elif exists(/usr/lib/libkrb5.a)
|
|
|
|
KRB5_HOME= /usr
|
|
|
|
.endif
|
2006-11-02 17:05:29 +01:00
|
|
|
.endif
|
|
|
|
|
2009-11-04 11:47:33 +01:00
|
|
|
.if defined(KRB5_HOME) && !exists(${KRB5_HOME}/lib/libkrb5.a)
|
2013-01-10 02:36:21 +01:00
|
|
|
BROKEN= KRB5_HOME is set but doesn\'t provide lib/libkrb5.a
|
2009-11-04 11:47:33 +01:00
|
|
|
.endif
|
2006-11-02 17:05:29 +01:00
|
|
|
|
2009-11-04 11:47:33 +01:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a)
|
2013-01-10 02:36:21 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gssapi=${KRB5_HOME}
|
2006-11-02 17:05:29 +01:00
|
|
|
.endif
|
1998-09-13 23:31:51 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-10 02:36:21 +01:00
|
|
|
.if ${PORT_OPTIONS:MNTLM}
|
|
|
|
CONFIGURE_ARGS+= --enable-NTLM
|
|
|
|
PORTDOCS+= README.NTLM
|
2000-12-02 17:20:18 +01:00
|
|
|
.endif
|
|
|
|
|
2014-08-12 13:22:02 +02:00
|
|
|
post-patch:
|
|
|
|
.if !exists(/usr/lib/libcom_err.so)
|
|
|
|
@${REINPLACE_CMD} -e "s,-lcom_err,,g" ${WRKSRC}/configure
|
|
|
|
.endif
|
|
|
|
|
2010-10-25 09:15:38 +02:00
|
|
|
post-build:
|
2013-01-10 02:36:21 +01:00
|
|
|
@${MAKE} -C ${WRKSRC} check
|
2010-10-25 09:15:38 +02:00
|
|
|
|
2005-12-11 22:24:18 +01:00
|
|
|
post-install:
|
2013-01-10 02:36:21 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-04-22 18:10:50 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2005-12-11 22:24:18 +01:00
|
|
|
.endif
|
|
|
|
|
2013-01-10 02:36:21 +01:00
|
|
|
.if empty(PORT_OPTIONS:MX11)
|
2014-04-22 18:10:50 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
|
2013-01-10 02:36:21 +01:00
|
|
|
.endif
|
2014-04-22 18:10:50 +02:00
|
|
|
${INSTALL} ${FILESDIR}/fetchmailrc.sample \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
|
2007-05-31 22:09:30 +02:00
|
|
|
|
2013-01-10 02:36:21 +01:00
|
|
|
.include <bsd.port.mk>
|