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
|
2016-06-21 08:14:41 +02:00
|
|
|
PORTREVISION= 4
|
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
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
|
2005-12-10 20:58:31 +01:00
|
|
|
|
2014-04-22 18:10:50 +02:00
|
|
|
USERS= ${PORTNAME}
|
|
|
|
GROUPS= ${USERS}
|
|
|
|
|
2017-03-15 15:45:30 +01:00
|
|
|
USES= cpe gmake shebangfix tar:xz ssl
|
2014-04-22 18:10:50 +02:00
|
|
|
SHEBANG_FILES= fetchmailconf.py
|
2011-07-09 12:07:49 +02:00
|
|
|
|
2006-05-12 18:58:48 +02:00
|
|
|
USE_RC_SUBR= fetchmail
|
2016-06-21 08:14:41 +02:00
|
|
|
SUB_FILES= pkg-message
|
2006-05-12 18:58:48 +02:00
|
|
|
|
1996-11-10 22:32:56 +01:00
|
|
|
GNU_CONFIGURE= 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}
|
2016-05-24 22:32:55 +02:00
|
|
|
CONFIGURE_ENV= ac_cv_have_decl_SSLv2_client_method=no
|
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
|
|
|
|
2016-06-21 08:14:41 +02:00
|
|
|
OPTIONS_DEFINE= X11 NLS NTLM POP2 DOCS
|
|
|
|
OPTIONS_SINGLE= GSSAPI
|
|
|
|
OPTIONS_SINGLE_GSSAPI= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT GSSAPI_NONE
|
|
|
|
OPTIONS_DEFAULT= GSSAPI_BASE
|
2014-04-22 18:10:50 +02:00
|
|
|
OPTIONS_SUB= yes
|
2016-06-21 08:14:41 +02:00
|
|
|
|
|
|
|
GSSAPI_BASE_USES= gssapi
|
|
|
|
GSSAPI_BASE_CONFIGURE_ON= --with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}
|
|
|
|
GSSAPI_HEIMDAL_USES= gssapi:heimdal
|
|
|
|
GSSAPI_HEIMDAL_CONFIGURE_ON= --with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}
|
|
|
|
GSSAPI_MIT_USES= gssapi:mit
|
|
|
|
GSSAPI_MIT_CONFIGURE_ON= --with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}
|
|
|
|
GSSAPI_NONE_CONFIGURE_ON= --without-gssapi
|
|
|
|
|
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
|
2005-12-06 22:08:15 +01:00
|
|
|
|
2016-06-21 08:14:41 +02:00
|
|
|
NTLM_CONFIGURE_ENABLE= NTLM
|
|
|
|
NTLM_PORTDOCS= README.NTLM
|
2009-07-16 01:02:52 +02:00
|
|
|
|
2016-06-21 08:14:41 +02:00
|
|
|
# POP2 is obsolete
|
|
|
|
POP2_CONFIGURE_ENABLE= POP2
|
2006-11-02 17:05:29 +01:00
|
|
|
|
2016-06-21 08:14:41 +02:00
|
|
|
X11_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>=0:x11-toolkits/py-tkinter
|
|
|
|
X11_USES= python
|
|
|
|
X11_CONFIGURE_OFF= PYTHON=:
|
|
|
|
X11_SUB_FILES_OFF= fetchmailconf
|
2004-04-28 19:26:35 +02:00
|
|
|
|
2016-06-21 08:14:41 +02:00
|
|
|
PORTDOCS= FAQ FEATURES NEWS NOTES README README.SSL \
|
|
|
|
design-notes.html fetchmail-FAQ.html fetchmail-features.html \
|
|
|
|
esrs-design-notes.html
|
1998-09-13 23:31:51 +02:00
|
|
|
|
2016-06-21 08:14:41 +02:00
|
|
|
#.include <bsd.port.options.mk>
|
2000-12-02 17:20:18 +01:00
|
|
|
|
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:
|
2015-09-04 23:33:19 +02:00
|
|
|
@${MAKE_CMD} -C ${WRKSRC} check
|
2010-10-25 09:15:38 +02:00
|
|
|
|
2016-12-02 12:58:21 +01:00
|
|
|
post-install:
|
2016-06-21 08:14:41 +02:00
|
|
|
${INSTALL} -d ${STAGEDIR}/var/run/fetchmail
|
2015-09-04 23:33:19 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/fetchmailrc.sample \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2014-04-22 18:10:50 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2015-09-04 23:33:19 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2005-12-11 22:24:18 +01:00
|
|
|
|
2015-09-04 23:33:19 +02:00
|
|
|
post-install-X11-off:
|
2014-04-22 18:10:50 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
|
2007-05-31 22:09:30 +02:00
|
|
|
|
2016-11-29 19:46:21 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${SSL_DEFAULT:Mopenssl-devel}
|
|
|
|
BROKEN= Does not build with openssl-devel
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|