summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-10-08 12:55:54 +0000
committerkamil <kamil@pkgsrc.org>2016-10-08 12:55:54 +0000
commite9fb28a54a55ecd82ba8d4ef65482d0f4051152c (patch)
treef0f18f5a824ace36c2e63fcce05322a8bb0e897f
parent5806d36da4b3743271a3753fadae938b9d763424 (diff)
downloadpkgsrc-e9fb28a54a55ecd82ba8d4ef65482d0f4051152c.tar.gz
Import PostgreSQL luasql 2.3.2 as databases/lua-sql-postgres
LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to: * Connect to ODBC, Oracle, MySQL and PostgreSQL databases; * Execute arbitrary SQL statements; * Retrieve results in a row-by-row cursor fashion; This package provides access to PostgreSQL.
-rw-r--r--databases/lua-sql-postgres/DESCR6
-rw-r--r--databases/lua-sql-postgres/Makefile16
-rw-r--r--databases/lua-sql-postgres/PLIST2
3 files changed, 24 insertions, 0 deletions
diff --git a/databases/lua-sql-postgres/DESCR b/databases/lua-sql-postgres/DESCR
new file mode 100644
index 00000000000..a2c5856d424
--- /dev/null
+++ b/databases/lua-sql-postgres/DESCR
@@ -0,0 +1,6 @@
+LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to:
+ * Connect to ODBC, Oracle, MySQL and PostgreSQL databases;
+ * Execute arbitrary SQL statements;
+ * Retrieve results in a row-by-row cursor fashion;
+
+This package provides access to PostgreSQL.
diff --git a/databases/lua-sql-postgres/Makefile b/databases/lua-sql-postgres/Makefile
new file mode 100644
index 00000000000..85c8f91bba0
--- /dev/null
+++ b/databases/lua-sql-postgres/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2016/10/08 12:55:54 kamil Exp $
+
+.include "../../databases/lua-sql-mysql/Makefile.common"
+
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/luasql/sql-postgres/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= PostgreSQL bindings for Lua
+
+BUILD_TARGET= postgres
+
+MAKE_FLAGS+= DRIVER_LIBS_postgres="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib -L${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib -lpq"
+MAKE_FLAGS+= DRIVER_INCS_postgres=-I${BUILDLINK_PREFIX.${PGSQL_TYPE}}/include
+
+.include "../../mk/pgsql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/lua-sql-postgres/PLIST b/databases/lua-sql-postgres/PLIST
new file mode 100644
index 00000000000..957319a2c57
--- /dev/null
+++ b/databases/lua-sql-postgres/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2016/10/08 12:55:54 kamil Exp $
+${LUA_CDIR}/luasql/postgres.so