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..
|
2011-08-15 22:13:21 +02:00
|
|
|
#
|
2000-06-20 20:43:34 +02:00
|
|
|
# The fetchmail program itself does not need Python, but if you
|
2011-08-15 22:13:21 +02:00
|
|
|
# want fetchmailconf to work, define the X11 option.
|
1996-10-15 06:52:41 +02:00
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= fetchmail
|
2012-08-30 08:24:48 +02:00
|
|
|
PORTVERSION= 6.3.22
|
2000-01-18 13:34:34 +01:00
|
|
|
CATEGORIES= mail ipv6
|
2012-02-25 00:56:18 +01:00
|
|
|
MASTER_SITES= BERLIOS/${PORTNAME}/ \
|
|
|
|
SF/${PORTNAME}/branch_6.3/ \
|
|
|
|
http://mandree.home.pages.de/${PORTNAME}/ \
|
|
|
|
SUNSITE/system/mail/pop/${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
|
|
|
|
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.
|
2011-07-09 12:07:49 +02:00
|
|
|
USERS= ${PORTNAME}
|
|
|
|
GROUPS= ${USERS}
|
|
|
|
|
2006-05-12 18:58:48 +02:00
|
|
|
USE_RC_SUBR= fetchmail
|
2006-05-25 18:26:50 +02:00
|
|
|
FETCHMAILRC= ${PREFIX}/etc/fetchmailrc
|
2007-05-31 22:09:30 +02:00
|
|
|
SUB_FILES= pkg-message
|
2010-04-22 21:13:24 +02:00
|
|
|
PATCH_STRIP= -p1
|
2006-05-12 18:58:48 +02:00
|
|
|
|
2010-12-11 23:27:06 +01:00
|
|
|
USE_XZ= yes
|
2001-03-17 13:08:09 +01:00
|
|
|
USE_GMAKE= yes
|
2009-11-04 11:47:33 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
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 \
|
2009-01-08 13:12:44 +01:00
|
|
|
--with-hesiod=no --enable-fallback=no PYTHON=:
|
2005-12-10 17:09:13 +01:00
|
|
|
# bsd.openssl.mk will add the LDFLAGS to CONFIGURE_ENV:
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
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
|
|
|
|
2006-11-02 17:05:29 +01:00
|
|
|
OPTIONS= X11 "Python/Tkinter dependencies for fetchmailconf" off \
|
|
|
|
NLS "National language support (NLS)." on \
|
2007-02-20 09:13:17 +01:00
|
|
|
NTLM "Build in support for NTLM/MSN authentication." off \
|
2011-08-15 22:13:21 +02:00
|
|
|
GSSAPI "Build GSSAPI/Kerberos 5 support" on
|
2006-11-02 17:05:29 +01:00
|
|
|
|
2009-07-16 01:02:52 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2007-09-03 21:22:28 +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
|
|
|
|
|
2009-07-16 01:02:52 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-11-02 17:05:29 +01:00
|
|
|
# Pop2 is obsolete
|
|
|
|
.if defined(WITH_POP2)
|
|
|
|
CONFIGURE_ARGS+=--enable-POP2
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
|
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)
|
|
|
|
BROKEN= KRB5_HOME is set but doesn't provide lib/libkrb5.a
|
|
|
|
.endif
|
2006-11-02 17:05:29 +01:00
|
|
|
|
|
|
|
.if defined(WITH_GSSAPI)
|
2009-11-04 11:47:33 +01:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a)
|
|
|
|
CONFIGURE_ARGS += --with-gssapi=${KRB5_HOME}
|
2006-11-02 17:05:29 +01:00
|
|
|
.endif
|
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
|
|
|
|
2010-10-25 09:15:38 +02:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC} && ${MAKE} check
|
|
|
|
|
2005-12-11 22:24:18 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
|
2006-05-15 23:18:40 +02:00
|
|
|
|
2011-08-15 22:13:21 +02:00
|
|
|
${MKDIR} -m 0755 "/var/run/${PORTNAME}"
|
|
|
|
${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}"
|
|
|
|
${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample
|
2006-05-12 18:58:48 +02:00
|
|
|
if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
|
2006-08-30 13:56:13 +02:00
|
|
|
${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
|
2010-10-20 16:39:41 +02:00
|
|
|
${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \
|
2006-05-12 18:58:48 +02:00
|
|
|
fi
|
2005-12-11 22:24:18 +01:00
|
|
|
|
2007-05-31 22:09:30 +02:00
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD} ""
|
|
|
|
|
2000-01-25 18:03:11 +01:00
|
|
|
.include <bsd.port.post.mk>
|