1996-10-15 00:52:41 -04:00
|
|
|
# New ports collection makefile for: fetchmail
|
1998-06-13 15:26:55 -04:00
|
|
|
# Version required: 4.4.9
|
1996-10-26 18:11:40 -04:00
|
|
|
# Date created: 26 Oct 1996
|
1996-10-15 00:52:41 -04:00
|
|
|
# Whom: Ville Eerola <ve@sci.fi>
|
|
|
|
#
|
1998-06-13 15:26:55 -04:00
|
|
|
# $Id: Makefile,v 1.62 1998/05/27 04:04:59 mph Exp $
|
1996-10-15 00:52:41 -04:00
|
|
|
#
|
1998-06-13 15:26:55 -04:00
|
|
|
# NOTE: The fetchmailconf program (an interactive program for
|
|
|
|
# writing .fetchmailrc files) requires Python, found in the Ports
|
|
|
|
# Collection under lang/python. The fetchmail program itself
|
|
|
|
# does not need Python, so there is no RUN_DEPENDS for Python in
|
|
|
|
# this Makefile.
|
1996-10-15 00:52:41 -04:00
|
|
|
|
1998-06-13 15:26:55 -04:00
|
|
|
DISTNAME= fetchmail-4.4.9
|
1996-11-10 16:32:56 -05:00
|
|
|
CATEGORIES= mail
|
1997-02-13 17:05:56 -05:00
|
|
|
MASTER_SITES= ftp://ftp.ccil.org/pub/esr/fetchmail/
|
1996-10-15 00:52:41 -04:00
|
|
|
|
|
|
|
MAINTAINER= ve@sci.fi
|
|
|
|
|
1996-11-10 16:32:56 -05:00
|
|
|
GNU_CONFIGURE= yes
|
1998-05-27 00:05:14 -04:00
|
|
|
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-POP2
|
1997-12-23 20:21:47 -05:00
|
|
|
CONFIGURE_ENV= LDFLAGS="${CFLAGS}"
|
1996-11-16 17:54:39 -05:00
|
|
|
MAN1= fetchmail.1
|
1996-10-15 00:52:41 -04:00
|
|
|
|
1998-03-20 10:05:27 -05:00
|
|
|
.if exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4)
|
|
|
|
CONFIGURE_ARGS += --with-kerberos=/usr/include
|
1997-09-09 21:25:08 -04:00
|
|
|
.endif
|
|
|
|
|
1997-04-24 12:23:32 -04:00
|
|
|
FDOC= ${PREFIX}/share/doc/fetchmail
|
|
|
|
|
1997-06-10 22:38:35 -04:00
|
|
|
post-patch:
|
1997-06-16 11:51:55 -04:00
|
|
|
@${CP} -f /usr/include/md5.h ${WRKSRC}
|
1998-06-13 15:26:55 -04:00
|
|
|
@perl -pi.bak -e 's|^#!/.*/python|#!${PREFIX}/bin/python|;' ${WRKSRC}/fetchmailconf
|
|
|
|
@${SED} -e "s|@PREFIX@|${PREFIX}|" ${FILESDIR}/fetchmailconf > ${WRKDIR}/fetchmailconf
|
1997-06-10 22:38:35 -04:00
|
|
|
|
1997-04-24 12:23:32 -04:00
|
|
|
post-install:
|
1997-10-27 23:40:39 -05:00
|
|
|
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${FDOC}
|
1998-05-27 00:05:14 -04:00
|
|
|
${LN} -sf fetchmail.1.gz ${PREFIX}/man/man1/fetchmailconf.1.gz
|
1997-04-24 12:23:32 -04:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} \
|
1997-07-09 21:22:05 -04:00
|
|
|
sample.rcfile FAQ NOTES FEATURES README COPYING \
|
1997-08-20 00:06:36 -04:00
|
|
|
fetchmail-FAQ.html fetchmail-features.html \
|
1997-07-09 21:22:05 -04:00
|
|
|
design-notes.html ${FDOC}
|
1998-06-13 15:26:55 -04:00
|
|
|
${MV} ${PREFIX}/bin/fetchmailconf ${PREFIX}/libexec/fetchmailconf.bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
|
1997-04-24 12:23:32 -04:00
|
|
|
|
1996-10-15 00:52:41 -04:00
|
|
|
.include <bsd.port.mk>
|