1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/mail/fetchmail/files/fetchmailconf
Matthew Hunt 1ab42dd5cf 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 <ve@sci.fi> (wrapper by mph)
1998-06-13 19:26:55 +00:00

20 lines
459 B
Bash

#!/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 <<EOF
The fetchmailconf program requires Python, which does not appear to be
installed on this system. Python can be found in the FreeBSD Ports
Collection under lang/python.
EOF
exit 1
fi