summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2005-08-06 06:25:12 +0000
committerjlam <jlam>2005-08-06 06:25:12 +0000
commit82a5c996910401ca35fb281db4becea03c8cb0d8 (patch)
tree2c14201ffda47781ab0e82f99010dfc15439e753
parent53246dc4f784439c5e0286e705a40c2e3c1a653b (diff)
downloadpkgsrc-82a5c996910401ca35fb281db4becea03c8cb0d8.tar.gz
Import databases/postgresql80-plpython-8.0.3.
PL/Python allows you to write functions in the Python programming language that may be used in SQL queries as if they were built into Postgres. The PL/Python intepreter is a full Python interpreter. PL/Python is currently only available as an "untrusted" language (meaning it does not offer any way of restricting what users can do in it). It has therefore been named "plpythonu". The trusted variant plpython may become available again in future, if a new secure execution mechanism is developed in Python.
-rw-r--r--databases/postgresql80-plpython/DESCR9
-rw-r--r--databases/postgresql80-plpython/MESSAGE17
-rw-r--r--databases/postgresql80-plpython/Makefile21
-rw-r--r--databases/postgresql80-plpython/PLIST2
4 files changed, 49 insertions, 0 deletions
diff --git a/databases/postgresql80-plpython/DESCR b/databases/postgresql80-plpython/DESCR
new file mode 100644
index 00000000000..142bb15309d
--- /dev/null
+++ b/databases/postgresql80-plpython/DESCR
@@ -0,0 +1,9 @@
+PL/Python allows you to write functions in the Python programming
+language that may be used in SQL queries as if they were built into
+Postgres. The PL/Python intepreter is a full Python interpreter.
+
+PL/Python is currently only available as an "untrusted" language
+(meaning it does not offer any way of restricting what users can do
+in it). It has therefore been named "plpythonu". The trusted variant
+plpython may become available again in future, if a new secure execution
+mechanism is developed in Python.
diff --git a/databases/postgresql80-plpython/MESSAGE b/databases/postgresql80-plpython/MESSAGE
new file mode 100644
index 00000000000..1d07c631701
--- /dev/null
+++ b/databases/postgresql80-plpython/MESSAGE
@@ -0,0 +1,17 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/08/06 06:25:12 jlam Exp $
+
+Please see the PL/Python section of the PostgreSQL Programmer's Guide
+(databases/postgresql-docs) for information on programming with
+${PKGNAME}.
+
+Note that PL/Python is unrestricted language, meaning it does not
+offer any way of restricting what users can do in it. Any DB user with
+access to PL/Python can run arbitrary Python code under privileges
+of the PostgreSQL server process.
+
+To enable PL/Python for database <dbname>, run following:
+
+createlang plpythonu <dbname>
+
+===========================================================================
diff --git a/databases/postgresql80-plpython/Makefile b/databases/postgresql80-plpython/Makefile
new file mode 100644
index 00000000000..d8efb4c7206
--- /dev/null
+++ b/databases/postgresql80-plpython/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/08/06 06:25:12 jlam Exp $
+
+PKGNAME= postgresql80-plpython-${BASE_VERS}
+COMMENT= PL/Python procedural language for the PostgreSQL backend
+
+DEPENDS+= postgresql80-server>=${BASE_VERS}:../../databases/postgresql80-server
+
+.include "../../databases/postgresql80/Makefile.common"
+
+CONFIGURE_ARGS+= --with-python
+CONFIGURE_ENV+= PYTHON="${PYTHONBIN}"
+
+BUILD_DIRS= ${WRKSRC}/src/pl/plpython
+
+USE_LIBTOOL= yes
+PKG_LIBTOOL= ${PKG_SHLIBTOOL}
+
+.include "../../databases/postgresql80-client/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/postgresql80-plpython/PLIST b/databases/postgresql80-plpython/PLIST
new file mode 100644
index 00000000000..6d47b68c31c
--- /dev/null
+++ b/databases/postgresql80-plpython/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/08/06 06:25:12 jlam Exp $
+${PG_SUBPREFIX}lib/postgresql/plpython.la