From 1ab42dd5cfe19a85715af013d01eae9261e17e92 Mon Sep 17 00:00:00 2001 From: Matthew Hunt Date: Sat, 13 Jun 1998 19:26:55 +0000 Subject: Upgrade to 4.4.9. Add a wrapper around fetchmailconf that checks whether Python is installed, and emits a helpful message if it isn't. PR: 6866 Submitted by: Ville Eerola (wrapper by mph) --- mail/fetchmail/Makefile | 15 ++++++++++++--- mail/fetchmail/distinfo | 2 +- mail/fetchmail/files/fetchmailconf | 19 +++++++++++++++++++ mail/fetchmail/pkg-plist | 1 + 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 mail/fetchmail/files/fetchmailconf (limited to 'mail') diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile index 4f323241c49a..82c6e3b944fd 100644 --- a/mail/fetchmail/Makefile +++ b/mail/fetchmail/Makefile @@ -1,12 +1,17 @@ # New ports collection makefile for: fetchmail -# Version required: 4.4.8 +# Version required: 4.4.9 # Date created: 26 Oct 1996 # Whom: Ville Eerola # -# $Id: Makefile,v 1.61 1998/05/24 03:15:11 steve Exp $ +# $Id: Makefile,v 1.62 1998/05/27 04:04:59 mph Exp $ # +# 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. -DISTNAME= fetchmail-4.4.8 +DISTNAME= fetchmail-4.4.9 CATEGORIES= mail MASTER_SITES= ftp://ftp.ccil.org/pub/esr/fetchmail/ @@ -25,6 +30,8 @@ FDOC= ${PREFIX}/share/doc/fetchmail post-patch: @${CP} -f /usr/include/md5.h ${WRKSRC} + @perl -pi.bak -e 's|^#!/.*/python|#!${PREFIX}/bin/python|;' ${WRKSRC}/fetchmailconf + @${SED} -e "s|@PREFIX@|${PREFIX}|" ${FILESDIR}/fetchmailconf > ${WRKDIR}/fetchmailconf post-install: ${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${FDOC} @@ -33,5 +40,7 @@ post-install: sample.rcfile FAQ NOTES FEATURES README COPYING \ fetchmail-FAQ.html fetchmail-features.html \ design-notes.html ${FDOC} + ${MV} ${PREFIX}/bin/fetchmailconf ${PREFIX}/libexec/fetchmailconf.bin + ${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin .include diff --git a/mail/fetchmail/distinfo b/mail/fetchmail/distinfo index 0b2f72fc1f49..c0f0154b6cd6 100644 --- a/mail/fetchmail/distinfo +++ b/mail/fetchmail/distinfo @@ -1 +1 @@ -MD5 (fetchmail-4.4.8.tar.gz) = a733bcf6191e5e1ebd5cc530a7a3f9d4 +MD5 (fetchmail-4.4.9.tar.gz) = 0382bffb6815182fdfa969da5f71c75a diff --git a/mail/fetchmail/files/fetchmailconf b/mail/fetchmail/files/fetchmailconf new file mode 100644 index 000000000000..98a3d0f42adb --- /dev/null +++ b/mail/fetchmail/files/fetchmailconf @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Wrapper for the real fetchmailconf. Checks whether Python is installed, +# and runs the real fetchmailconf or alerts the user, as appropriate. +# +# $Id$ + +PREFIX=@PREFIX@ + +if [ -e $PREFIX/bin/python ]; then + exec $PREFIX/libexec/fetchmailconf.bin +else + cat <