1998-06-13 19:26:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2005-11-10 10:29:33 +00:00
|
|
|
# Wrapper for the real fetchmailconf. Checks whether Python and Tkinter are
|
|
|
|
# installed, and runs the real fetchmailconf or alerts the user, as appropriate.
|
1998-06-13 19:26:55 +00:00
|
|
|
#
|
1999-08-30 12:09:14 +00:00
|
|
|
# $FreeBSD$
|
1998-06-13 19:26:55 +00:00
|
|
|
|
2005-11-10 10:29:33 +00:00
|
|
|
LOCALBASE=@LOCALBASE@
|
1998-06-13 19:26:55 +00:00
|
|
|
|
2005-11-10 10:29:33 +00:00
|
|
|
if [ -x $LOCALBASE/bin/python ] ; then
|
|
|
|
PYTHON_VERSION=python$(${LOCALBASE}/bin/python -c 'import sys; print sys.version[:3]' 2>/dev/null)
|
|
|
|
if [ -e ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so ]; then
|
2005-12-06 21:08:15 +00:00
|
|
|
exec ${LOCALBASE}/libexec/fetchmailconf.py "$@"
|
2005-11-10 10:29:33 +00:00
|
|
|
fi
|
1998-06-13 19:26:55 +00:00
|
|
|
fi
|
2005-11-10 10:29:33 +00:00
|
|
|
cat <<EOF
|
|
|
|
The fetchmailconf program requires Python with Tkinter, which does
|
|
|
|
not appear to be installed on this system. Python can be found in
|
|
|
|
the FreeBSD Ports Collection in lang/python, and Tkinter for Python
|
|
|
|
can be found in x11-toolkits/py-tkinter.
|
|
|
|
EOF
|
|
|
|
exit 1
|