summaryrefslogtreecommitdiff
path: root/mail/fetchmail/files/fetchmailconf
blob: de2194731fdad6249d3dd2d0a2afa5ccb8f1fc9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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