summaryrefslogtreecommitdiff
path: root/net/py-zsi/pkg-req
diff options
context:
space:
mode:
authorJohann Visagie <wjv@FreeBSD.org>2001-09-17 09:06:52 +0000
committerJohann Visagie <wjv@FreeBSD.org>2001-09-17 09:06:52 +0000
commitd2fc60ddc26a9801697615a69889ed7784cfefbc (patch)
treeb53a91b18b1f0fe25b21e05814519de21a03efe5 /net/py-zsi/pkg-req
parentDo not static link everything (including libc) but just compile in (diff)
Add py-zsi 1.1, a pure Python module that provides an
implementation of SOAP 1.1.
Notes
Notes: svn path=/head/; revision=47907
Diffstat (limited to 'net/py-zsi/pkg-req')
-rw-r--r--net/py-zsi/pkg-req17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/py-zsi/pkg-req b/net/py-zsi/pkg-req
new file mode 100644
index 000000000000..082883370094
--- /dev/null
+++ b/net/py-zsi/pkg-req
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+PATH=$PATH:/usr/local/bin
+
+if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
+ PYTHON_GT=`python -c 'import string, sys; \
+ print string.split(sys.version)[0] >= "2.0"'`
+ if [ "x${PYTHON_GT}" = "x1" ]; then
+ exit 0
+ else
+ echo "-----------------------------------------------------------"
+ echo "ZSI requires Python version 2.0 or greater -"
+ echo " please update your Python installation before proceeding."
+ echo "-----------------------------------------------------------"
+ exit 1
+ fi
+fi