ports/mail/fetchmail/files/fetchmailconf
Simon Barner 8120543a2d - Update to 6.2.5.1 (security update!)
- Add new master site
- Take maintainership (no objections on freebsd-ports,
  Matthias also favours this option as long as the new FreeBSD
  maintainer will be responsive and submit patches upstream - promissed :-)

Submitted by:	Matthias Andree <matthias DOT andree AT gmx DOT de>
PR:		ports/83805
Obtainted from:	http://download.berlios.de/fetchmail/fetchmail-patch-6.2.5.1.gz
Security:	http://www.vuxml.org/freebsd/3497d7be-2fef-45f4-8162-9063751b573a.html
2005-07-21 10:25:32 +00:00

19 lines
497 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.
#
# $FreeBSD$
PREFIX=@PREFIX@
if [ -e $PREFIX/bin/python ]; then
exec $PREFIX/libexec/fetchmailconf.bin
else
cat <<EOF
The fetchmailconf program requires Python with Tkinter, which does not
appear to be installed on this system. Python/Tkinter can be found in
the FreeBSD Ports Collection under x11-toolkits/py-tkinter.
EOF
exit 1
fi