ports/mail/fetchmail/files/fetchmailconf

16 lines
440 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
#!/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}/tkinter -a -d ${MODPY_LIBDIR}/site-packages/future ]; then
exec ${PREFIX}/libexec/fetchmailconf.bin
else
cat <<EOF
Please install the python3, python-tkinter and py3-future packages, then try
running fetchmailconf again.
EOF
exit 1
fi