summaryrefslogtreecommitdiff
path: root/mail/fetchmail/files/fetchmailconf
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>1998-06-13 19:26:55 +0000
committerMatthew Hunt <mph@FreeBSD.org>1998-06-13 19:26:55 +0000
commit1ab42dd5cfe19a85715af013d01eae9261e17e92 (patch)
tree58c4b90297f8e3bb860a9c40a613b3f5db43b700 /mail/fetchmail/files/fetchmailconf
parentUpdate to newest version 0.88 (diff)
Upgrade to 4.4.9. Add a wrapper around fetchmailconf that checks
whether Python is installed, and emits a helpful message if it isn't. PR: 6866 Submitted by: Ville Eerola <ve@sci.fi> (wrapper by mph)
Diffstat (limited to 'mail/fetchmail/files/fetchmailconf')
-rw-r--r--mail/fetchmail/files/fetchmailconf19
1 files changed, 19 insertions, 0 deletions
diff --git a/mail/fetchmail/files/fetchmailconf b/mail/fetchmail/files/fetchmailconf
new file mode 100644
index 000000000000..98a3d0f42adb
--- /dev/null
+++ b/mail/fetchmail/files/fetchmailconf
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# Wrapper for the real fetchmailconf. Checks whether Python is installed,
+# and runs the real fetchmailconf or alerts the user, as appropriate.
+#
+# $Id$
+
+PREFIX=@PREFIX@
+
+if [ -e $PREFIX/bin/python ]; then
+ exec $PREFIX/libexec/fetchmailconf.bin
+else
+ cat <<EOF
+The fetchmailconf program requires Python, which does not appear to be
+installed on this system. Python can be found in the FreeBSD Ports
+Collection under lang/python.
+EOF
+ exit 1
+fi