diff options
author | tsarna <tsarna@pkgsrc.org> | 1998-12-19 18:39:25 +0000 |
---|---|---|
committer | tsarna <tsarna@pkgsrc.org> | 1998-12-19 18:39:25 +0000 |
commit | 1fdc30a302e3119929fa1dc8b8b13ec9f4499459 (patch) | |
tree | f78729b88ef44eff62435efd01c5ec8fa0fbe8ca | |
parent | bbf82844235f8d48699ed60bbbeea81af0ac717f (diff) | |
download | pkgsrc-1fdc30a302e3119929fa1dc8b8b13ec9f4499459.tar.gz |
Import of MySQL Database Adaptor for Zope
-rw-r--r-- | databases/zope-mysql/Makefile | 37 | ||||
-rw-r--r-- | databases/zope-mysql/files/md5 | 3 | ||||
-rw-r--r-- | databases/zope-mysql/patches/patch-aa | 44 | ||||
-rw-r--r-- | databases/zope-mysql/pkg/COMMENT | 1 | ||||
-rw-r--r-- | databases/zope-mysql/pkg/DESCR | 1 | ||||
-rw-r--r-- | databases/zope-mysql/pkg/PLIST.pre | 1 |
6 files changed, 87 insertions, 0 deletions
diff --git a/databases/zope-mysql/Makefile b/databases/zope-mysql/Makefile new file mode 100644 index 00000000000..bdd6617a22e --- /dev/null +++ b/databases/zope-mysql/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 1998/12/19 18:39:25 tsarna Exp $ +# + +DISTNAME= ZmySQLDA-1.0.5-nonbin +PKGNAME= zope-mysql-1.0.5 +CATEGORIES= www +MASTER_SITES= http://www.zope.org/Download/ZmySQLDA/ + +MAINTAINER= tsarna@netbsd.org +HOMEPAGE= http://www.zope.org/ + +DEPENDS+= zope-1.9.0b3:../../www/zope +DEPENDS+= py-mysql-1.4:../../databases/py-mysql + +WRKSRC= ${WRKDIR}/lib + +PLIST_SRC= ${WRKDIR}/.PLIST_SRC + +ZOPEDIR= ${PREFIX}/zope +DAPATH= lib/python/Products/ZmySQLDA + +do-configure: + (cd ${WRKDIR}/${DAPATH}; ${RM} -f Makefile* *.pyc *.orig Setup) + +do-build: + (cd ${WRKDIR}/${DAPATH} ; \ + ${PREFIX}/bin/python ${PREFIX}/lib/python1.5/compileall.py . ; \ + ${PREFIX}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py . ; ) + +do-install: + ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC} + (cd ${WRKDIR}; pax -r -w lib ${ZOPEDIR}) + chmod -R a+rX ${ZOPEDIR}/${DAPATH} + (cd ${PREFIX}; find zope/${DAPATH} -type f -print >>${PLIST_SRC}) + ${ECHO} "@dirrm zope/${DAPATH}" >> ${PLIST_SRC} + +.include "../../mk/bsd.pkg.mk" diff --git a/databases/zope-mysql/files/md5 b/databases/zope-mysql/files/md5 new file mode 100644 index 00000000000..f6e975990b8 --- /dev/null +++ b/databases/zope-mysql/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1998/12/19 18:39:25 tsarna Exp $ + +MD5 (ZmySQLDA-1.0.5-nonbin.tar.gz) = 88c63bc4f5396c144e79cfe06d1e18db diff --git a/databases/zope-mysql/patches/patch-aa b/databases/zope-mysql/patches/patch-aa new file mode 100644 index 00000000000..14f0eb591d4 --- /dev/null +++ b/databases/zope-mysql/patches/patch-aa @@ -0,0 +1,44 @@ +$NetBSD: patch-aa,v 1.1.1.1 1998/12/19 18:39:25 tsarna Exp $ + +--- python/Products/ZmySQLDA/db.py.orig Fri Dec 18 14:54:28 1998 ++++ python/Products/ZmySQLDA/db.py Sat Dec 19 12:02:01 1998 +@@ -97,7 +97,7 @@ + """Db connection implementation""" + __version__='$Revision: 1.1.1.1 $'[11:-2] + +-import mySQL, regex, sys ++import MySQL, regex, sys + from string import strip, split, find, join + from time import gmtime, strftime + +@@ -118,7 +118,7 @@ + "timestamp": "d", "varchar": "t", "string": "t", + } + +- Database_Error=mySQL.error ++ Database_Error=MySQL.error + + def __init__(self,connection): + self.connection=connection +@@ -132,7 +132,7 @@ + if len(dbhost) == 1: db, host = dbhost[0], 'localhost' + else: [db, host] = dbhost + +- c=mySQL.connect(host,user,pw) ++ c=MySQL.connect(host,user,pw) + c.selectdb(db) + self.db=c + return +@@ -161,10 +161,10 @@ + if not queries: raise 'Query Error', 'empty query' + result=() + for qs in queries: +- c=db.querycursor(qs) ++ c=db.query(qs) + try: + desc=c.fields() +- r=c.fetchmany(max_rows) ++ r=c.fetchrows() + except: r=None + if not r: continue + if result: diff --git a/databases/zope-mysql/pkg/COMMENT b/databases/zope-mysql/pkg/COMMENT new file mode 100644 index 00000000000..3f4a7c68c99 --- /dev/null +++ b/databases/zope-mysql/pkg/COMMENT @@ -0,0 +1 @@ +Zope Database Adaptor for MySQL diff --git a/databases/zope-mysql/pkg/DESCR b/databases/zope-mysql/pkg/DESCR new file mode 100644 index 00000000000..3f4a7c68c99 --- /dev/null +++ b/databases/zope-mysql/pkg/DESCR @@ -0,0 +1 @@ +Zope Database Adaptor for MySQL diff --git a/databases/zope-mysql/pkg/PLIST.pre b/databases/zope-mysql/pkg/PLIST.pre new file mode 100644 index 00000000000..39655d05c05 --- /dev/null +++ b/databases/zope-mysql/pkg/PLIST.pre @@ -0,0 +1 @@ +@comment $NetBSD: PLIST.pre,v 1.1.1.1 1998/12/19 18:39:25 tsarna Exp $ |