#!/bin/sh # # Wrapper for the real fetchmailconf. Checks whether Python and Tkinter are # installed, and runs the real fetchmailconf or alerts the user, as appropriate. # # $FreeBSD: ports/mail/fetchmail/files/fetchmailconf,v 1.7 2005/12/06 21:07:19 barner Exp $ LOCALBASE=@LOCALBASE@ 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 exec ${LOCALBASE}/libexec/fetchmailconf.py "$@" fi fi cat <