summaryrefslogtreecommitdiff
path: root/databases/py-pgnotify
diff options
context:
space:
mode:
authordarcy <darcy>2004-10-21 16:03:37 +0000
committerdarcy <darcy>2004-10-21 16:03:37 +0000
commit4d23d946d84de5d6dec73e3435ea09c84deddb73 (patch)
treeb4b49e68ce44c595548b2b1e4714a834e71bad8e /databases/py-pgnotify
parent3e44362ebc8c3f2bb968ad621f309174232c4e04 (diff)
downloadpkgsrc-4d23d946d84de5d6dec73e3435ea09c84deddb73.tar.gz
Initial import of pg-notify version 0.1
Python interface to PostgreSQL LISTEN/NOTIFY
Diffstat (limited to 'databases/py-pgnotify')
-rw-r--r--databases/py-pgnotify/DESCR15
-rw-r--r--databases/py-pgnotify/Makefile25
-rw-r--r--databases/py-pgnotify/PLIST2
-rw-r--r--databases/py-pgnotify/distinfo4
4 files changed, 46 insertions, 0 deletions
diff --git a/databases/py-pgnotify/DESCR b/databases/py-pgnotify/DESCR
new file mode 100644
index 00000000000..a354adc01bc
--- /dev/null
+++ b/databases/py-pgnotify/DESCR
@@ -0,0 +1,15 @@
+pgnotify is a PostgreSQL client-side asynchronous notification handler for
+Python and PyGreSQL.
+
+Typically, asynchronous notification is used to communicate the message "I
+changed this table, take a look at it to see what's new" from one PostgreSQL
+client to other interested PostgreSQL clients.
+
+A useful programming technique is to generate asynchronous notification in a
+rule that is triggered by table updates; this way, notification happens
+automatically when the table is changed and the application programmer can't
+accidentally forget to do it.
+
+At present, pgnotify works with PyGreSQL only. It should work with PoPy and
+psycopg when those modules provide Pythonic interfaces to additional necessary
+PostgreSQL client-side functions, as described in the README.
diff --git a/databases/py-pgnotify/Makefile b/databases/py-pgnotify/Makefile
new file mode 100644
index 00000000000..06d347de599
--- /dev/null
+++ b/databases/py-pgnotify/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/21 16:03:37 darcy Exp $
+#
+
+DISTNAME= pgnotify-0.1
+PKGNAME= ${PYPKGPREFIX}-pgnotify-0.1
+CATEGORIES= databases python
+MASTER_SITES= http://sandbox.rulemaker.net/ngps/Dist/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= darcy@NetBSD.org
+HOMEPAGE= http://sandbox.rulemaker.net/ngps/pgnotify
+COMMENT= Python interface to PostgreSQL LISTEN/NOTIFY
+
+DEPENDS+= ${PYPKGPREFIX}-postgresql*:../../databases/py-postgresql
+
+MAKE_ENV+= MANDIR=${PREFIX}/man
+MAKE_ENV+= BINDIR=${PREFIX}/bin
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+
+PYDISTUTILSPKG= yes
+PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-pgnotify/PLIST b/databases/py-pgnotify/PLIST
new file mode 100644
index 00000000000..33d31f4b000
--- /dev/null
+++ b/databases/py-pgnotify/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/21 16:03:37 darcy Exp $
+${PYSITELIB}/pgnotify.py
diff --git a/databases/py-pgnotify/distinfo b/databases/py-pgnotify/distinfo
new file mode 100644
index 00000000000..1586a4cb1c5
--- /dev/null
+++ b/databases/py-pgnotify/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/10/21 16:03:37 darcy Exp $
+
+SHA1 (pgnotify-0.1.zip) = 6545a994077427b481c7fc9c511dc74f6106ae39
+Size (pgnotify-0.1.zip) = 6148 bytes