Lines 3-15
Link Here
|
3 |
# Wrapper for the real fetchmailconf. Checks whether Python and Tkinter are |
3 |
# Wrapper for the real fetchmailconf. Checks whether Python and Tkinter are |
4 |
# installed, and runs the real fetchmailconf or alerts the user, as appropriate. |
4 |
# installed, and runs the real fetchmailconf or alerts the user, as appropriate. |
5 |
# |
5 |
# |
6 |
# $FreeBSD: ports/mail/fetchmail/files/fetchmailconf.in,v 1.2 2013/01/10 02:12:35 svnexp Exp $ |
6 |
# $FreeBSD: head/mail/fetchmail/files/fetchmailconf.in 310168 2013-01-10 01:46:37Z mandree $ |
7 |
|
7 |
|
8 |
LOCALBASE=%%LOCALBASE%% |
8 |
LOCALBASE=%%LOCALBASE%% |
9 |
|
9 |
|
10 |
if [ -x $LOCALBASE/bin/python ] ; then |
10 |
if [ -x $LOCALBASE/bin/python ] ; then |
11 |
PYTHON_VERSION=python$(${LOCALBASE}/bin/python -c 'import sys; print sys.version[:3]' 2>/dev/null) |
11 |
PYTHON_VERSION=python$(${LOCALBASE}/bin/python -c 'import sys; print sys.version[:3]' 2>/dev/null) |
12 |
if [ -e ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so ]; then |
12 |
if [ -e ${LOCALBASE}/lib/${PYTHON_VERSION}/lib-dynload/_tkinter.so ]; then |
13 |
exec ${LOCALBASE}/libexec/fetchmailconf.py "$@" |
13 |
exec ${LOCALBASE}/libexec/fetchmailconf.py "$@" |
14 |
fi |
14 |
fi |
15 |
fi |
15 |
fi |