pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Jul  9 16:12:57 UTC 2020

Modified Files:
        pkgsrc/databases: Makefile
Added Files:
        pkgsrc/databases/lua-dbi: DESCR Makefile Makefile.common PLIST distinfo
        pkgsrc/databases/lua-dbi-mysql: DESCR Makefile PLIST
        pkgsrc/databases/lua-dbi-postgresql: DESCR Makefile PLIST
        pkgsrc/databases/lua-dbi-sqlite3: DESCR Makefile PLIST
        pkgsrc/databases/lua-dbi/patches: patch-Makefile

Log Message:
databases: Add lua-dbi

LuaDBI is a database interface library for Lua. It is designed to provide
a RDBMS agnostic API for handling database operations. LuaDBI also provides
support for prepared statement handles, placeholders and bind parameters
for all database operations.

Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
with native database drivers.


To generate a diff of this commit:
cvs rdiff -u -r1.609 -r1.610 pkgsrc/databases/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/lua-dbi/DESCR \
    pkgsrc/databases/lua-dbi/Makefile \
    pkgsrc/databases/lua-dbi/Makefile.common pkgsrc/databases/lua-dbi/PLIST \
    pkgsrc/databases/lua-dbi/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/lua-dbi-mysql/DESCR \
    pkgsrc/databases/lua-dbi-mysql/Makefile \
    pkgsrc/databases/lua-dbi-mysql/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/lua-dbi-postgresql/DESCR \
    pkgsrc/databases/lua-dbi-postgresql/Makefile \
    pkgsrc/databases/lua-dbi-postgresql/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/lua-dbi-sqlite3/DESCR \
    pkgsrc/databases/lua-dbi-sqlite3/Makefile \
    pkgsrc/databases/lua-dbi-sqlite3/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/lua-dbi/patches/patch-Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/Makefile
diff -u pkgsrc/databases/Makefile:1.609 pkgsrc/databases/Makefile:1.610
--- pkgsrc/databases/Makefile:1.609     Thu Jul  9 15:27:56 2020
+++ pkgsrc/databases/Makefile   Thu Jul  9 16:12:57 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.609 2020/07/09 15:27:56 nia Exp $
+# $NetBSD: Makefile,v 1.610 2020/07/09 16:12:57 nia Exp $
 
 COMMENT=       Databases
 
@@ -87,6 +87,10 @@ SUBDIR+=     libtcd
 SUBDIR+=       libzdb
 SUBDIR+=       liquibase
 SUBDIR+=       lmdb
+SUBDIR+=       lua-dbi
+SUBDIR+=       lua-dbi-mysql
+SUBDIR+=       lua-dbi-postgresql
+SUBDIR+=       lua-dbi-sqlite3
 SUBDIR+=       lua-lsqlite3
 SUBDIR+=       lua-sql-mysql
 SUBDIR+=       lua-sql-postgres

Added files:

Index: pkgsrc/databases/lua-dbi/DESCR
diff -u /dev/null pkgsrc/databases/lua-dbi/DESCR:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi/DESCR      Thu Jul  9 16:12:57 2020
@@ -0,0 +1,7 @@
+LuaDBI is a database interface library for Lua. It is designed to provide
+a RDBMS agnostic API for handling database operations. LuaDBI also provides
+support for prepared statement handles, placeholders and bind parameters
+for all database operations.
+
+Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
+with native database drivers.
Index: pkgsrc/databases/lua-dbi/Makefile
diff -u /dev/null pkgsrc/databases/lua-dbi/Makefile:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi/Makefile   Thu Jul  9 16:12:57 2020
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+.include "Makefile.common"
+
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Multi-backend SQL database library for Lua
+
+NO_BUILD=      yes
+USE_LANGUAGES= # none
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/DBI.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/DBI.lua
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/lua-dbi/Makefile.common
diff -u /dev/null pkgsrc/databases/lua-dbi/Makefile.common:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi/Makefile.common    Thu Jul  9 16:12:57 2020
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile.common,v 1.1 2020/07/09 16:12:57 nia Exp $
+# used by databases/lua-dbi/Makefile
+# used by databases/lua-dbi-mysql/Makefile
+# used by databases/lua-dbi-postgresql/Makefile
+# used by databases/lua-dbi-sqlite3/Makefile
+
+DISTNAME=      luadbi-0.7.2
+CATEGORIES=    databases lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mwild1/}
+GITHUB_PROJECT=        luadbi
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+HOMEPAGE=      https://zadzmo.org/code/luadbi/
+LICENSE=       mit
+
+USE_TOOLS+=    gmake
+
+DISTINFO_FILE= ${.CURDIR}/../../databases/lua-dbi/distinfo
+PATCHDIR=      ${.CURDIR}/../../databases/lua-dbi/patches
+
+.include "../../lang/lua/module.mk"
Index: pkgsrc/databases/lua-dbi/PLIST
diff -u /dev/null pkgsrc/databases/lua-dbi/PLIST:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi/PLIST      Thu Jul  9 16:12:57 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 16:12:57 nia Exp $
+${LUA_LDIR}/DBI.lua
Index: pkgsrc/databases/lua-dbi/distinfo
diff -u /dev/null pkgsrc/databases/lua-dbi/distinfo:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi/distinfo   Thu Jul  9 16:12:57 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+SHA1 (luadbi-0.7.2.tar.gz) = da56d2bcfdaed0fd3f309799dcfde74b77008476
+RMD160 (luadbi-0.7.2.tar.gz) = 310c6415c81608f6e81187f61d04ef94546833b5
+SHA512 (luadbi-0.7.2.tar.gz) = 891f99cbc8f1b5327ef820641a1608abf41410f2f28584b975cc3cf65154b9bebf6f1b9ca7d1818b9c965738ad700dd17ae042dfd2a7146cf755871ebae535b9
+Size (luadbi-0.7.2.tar.gz) = 36462 bytes
+SHA1 (patch-Makefile) = 013db4eb44d27c161ff37956fca39386f9fcb2cb

Index: pkgsrc/databases/lua-dbi-mysql/DESCR
diff -u /dev/null pkgsrc/databases/lua-dbi-mysql/DESCR:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi-mysql/DESCR        Thu Jul  9 16:12:57 2020
@@ -0,0 +1,7 @@
+LuaDBI is a database interface library for Lua. It is designed to provide
+a RDBMS agnostic API for handling database operations. LuaDBI also provides
+support for prepared statement handles, placeholders and bind parameters
+for all database operations.
+
+Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
+with native database drivers.
Index: pkgsrc/databases/lua-dbi-mysql/Makefile
diff -u /dev/null pkgsrc/databases/lua-dbi-mysql/Makefile:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi-mysql/Makefile     Thu Jul  9 16:12:57 2020
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+.include "../../databases/lua-dbi/Makefile.common"
+
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1:S/dbi/dbi-postgresql/1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Multi-backend SQL database library for Lua (mysql backend)
+
+DEPENDS+=      ${LUA_PKGPREFIX}-dbi-[0-9]*:../../databases/lua-dbi
+
+BUILD_TARGET=  mysql
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}/dbd
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/dbd/mysql.so \
+               ${DESTDIR}${PREFIX}/${LUA_CDIR}/dbd
+
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/lua-dbi-mysql/PLIST
diff -u /dev/null pkgsrc/databases/lua-dbi-mysql/PLIST:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi-mysql/PLIST        Thu Jul  9 16:12:57 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 16:12:57 nia Exp $
+${LUA_CDIR}/dbd/mysql.so

Index: pkgsrc/databases/lua-dbi-postgresql/DESCR
diff -u /dev/null pkgsrc/databases/lua-dbi-postgresql/DESCR:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi-postgresql/DESCR   Thu Jul  9 16:12:57 2020
@@ -0,0 +1,7 @@
+LuaDBI is a database interface library for Lua. It is designed to provide
+a RDBMS agnostic API for handling database operations. LuaDBI also provides
+support for prepared statement handles, placeholders and bind parameters
+for all database operations.
+
+Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
+with native database drivers.
Index: pkgsrc/databases/lua-dbi-postgresql/Makefile
diff -u /dev/null pkgsrc/databases/lua-dbi-postgresql/Makefile:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi-postgresql/Makefile        Thu Jul  9 16:12:57 2020
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+.include "../../databases/lua-dbi/Makefile.common"
+
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1:S/dbi/dbi-postgresql/1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Multi-backend SQL database library for Lua (postgresql backend)
+
+DEPENDS+=      ${LUA_PKGPREFIX}-dbi-[0-9]*:../../databases/lua-dbi
+
+BUILD_TARGET=  psql
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}/dbd
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/dbd/postgresql.so \
+               ${DESTDIR}${PREFIX}/${LUA_CDIR}/dbd
+
+.include "../../mk/pgsql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/lua-dbi-postgresql/PLIST
diff -u /dev/null pkgsrc/databases/lua-dbi-postgresql/PLIST:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi-postgresql/PLIST   Thu Jul  9 16:12:57 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 16:12:57 nia Exp $
+${LUA_CDIR}/dbd/postgresql.so

Index: pkgsrc/databases/lua-dbi-sqlite3/DESCR
diff -u /dev/null pkgsrc/databases/lua-dbi-sqlite3/DESCR:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi-sqlite3/DESCR      Thu Jul  9 16:12:57 2020
@@ -0,0 +1,7 @@
+LuaDBI is a database interface library for Lua. It is designed to provide
+a RDBMS agnostic API for handling database operations. LuaDBI also provides
+support for prepared statement handles, placeholders and bind parameters
+for all database operations.
+
+Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
+with native database drivers.
Index: pkgsrc/databases/lua-dbi-sqlite3/Makefile
diff -u /dev/null pkgsrc/databases/lua-dbi-sqlite3/Makefile:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi-sqlite3/Makefile   Thu Jul  9 16:12:57 2020
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+.include "../../databases/lua-dbi/Makefile.common"
+
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1:S/dbi/dbi-sqlite3/1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Multi-backend SQL database library for Lua (sqlite3 backend)
+
+DEPENDS+=      ${LUA_PKGPREFIX}-dbi-[0-9]*:../../databases/lua-dbi
+
+BUILD_TARGET=  sqlite3
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}/dbd
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/dbd/sqlite3.so \
+               ${DESTDIR}${PREFIX}/${LUA_CDIR}/dbd
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/lua-dbi-sqlite3/PLIST
diff -u /dev/null pkgsrc/databases/lua-dbi-sqlite3/PLIST:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi-sqlite3/PLIST      Thu Jul  9 16:12:57 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 16:12:57 nia Exp $
+${LUA_CDIR}/dbd/sqlite3.so

Index: pkgsrc/databases/lua-dbi/patches/patch-Makefile
diff -u /dev/null pkgsrc/databases/lua-dbi/patches/patch-Makefile:1.1
--- /dev/null   Thu Jul  9 16:12:57 2020
+++ pkgsrc/databases/lua-dbi/patches/patch-Makefile     Thu Jul  9 16:12:57 2020
@@ -0,0 +1,25 @@
+$NetBSD: patch-Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+- Don't peek into /usr.
+- Don't pass -g/-O2 unconditionally
+
+--- Makefile.orig      2019-01-14 09:39:17.000000000 +0000
++++ Makefile
+@@ -6,15 +6,8 @@ MKDIR         ?= mkdir -p
+ INSTALL               ?= install
+ INSTALL_PROGRAM       ?= $(INSTALL)
+ INSTALL_DATA  ?= $(INSTALL) -m 644
+-LUA_V         ?= 5.1
+-LUA_LDIR      ?= /usr/share/lua/$(LUA_V)
+-LUA_CDIR      ?= /usr/lib/lua/$(LUA_V)
+-
+-COMMON_CFLAGS  ?= -g -pedantic -Wall -O2 -shared -fPIC -DPIC -std=c99
+-LUA_INC               ?= -I/usr/include/lua$(LUA_V)
+-MYSQL_INC     ?= -I/usr/include/mysql
+-PSQL_INC      ?= -I/usr/include/postgresql
+-SQLITE3_INC   ?= -I/usr/include
++
++COMMON_CFLAGS  ?= -pedantic -Wall -shared -fPIC -DPIC -std=c99
+ DB2_INC               ?= -I/opt/ibm/db2exc/V9.5/include
+ ORACLE_INC    ?= -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public
+ CF             = $(LUA_INC) $(COMMON_CFLAGS) $(CFLAGS) -I.



Home | Main Index | Thread Index | Old Index