openbsd-ports/mail/fetchmail/files/fetchmailconf
sthen 6e18f060b0 Adjust the fetchmailconf wrapper to check ${MODPY_BIN} rather than
/usr/local/bin/python. Also check that python-tkinter is installed.
From Pascal Stumpf with tweaks from me.

(Python + tkinter aren't RUN_DEPENDs as many fetchmail installations
don't use this and it's a heavy dependency chain).
2011-08-24 19:18:57 +00:00

16 lines
383 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.
#
if [ -x ${MODPY_BIN} -a -d ${MODPY_LIBDIR}/lib-tk ]; then
exec ${PREFIX}/libexec/fetchmailconf.bin
else
cat <<EOF
Please install the python and python-tkinter packages, then try running
fetchmailconf again.
EOF
exit 1
fi