pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lua-lualdap: import version 1.2.6
Module Name: pkgsrc-wip
Committed By: Pierre Pronchery <khorben%defora.org@localhost>
Pushed By: khorben
Date: Fri Jun 4 01:35:31 2021 +0200
Changeset: 2275ac94a1c3822e1030c560b1f4e0abec48dd8f
Modified Files:
Makefile
Added Files:
lua-lualdap/DESCR
lua-lualdap/Makefile
lua-lualdap/PLIST
lua-lualdap/distinfo
lua-lualdap/patches/patch-config
Log Message:
lua-lualdap: import version 1.2.6
LuaLDAP is a simple interface from Lua to an LDAP client, in fact it is a bind
to OpenLDAP client or ADSI.
It enables a Lua program to:
* Connect to an LDAP server;
* Execute any operation (search, add, compare, delete, modify and rename);
* Retrieve entries and references of the search result.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2275ac94a1c3822e1030c560b1f4e0abec48dd8f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
lua-lualdap/DESCR | 7 +++++++
lua-lualdap/Makefile | 34 ++++++++++++++++++++++++++++++++++
lua-lualdap/PLIST | 2 ++
lua-lualdap/distinfo | 7 +++++++
lua-lualdap/patches/patch-config | 25 +++++++++++++++++++++++++
6 files changed, 76 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 64d430ddf8..01e0035449 100644
--- a/Makefile
+++ b/Makefile
@@ -2240,6 +2240,7 @@ SUBDIR+= lua-MessagePack
SUBDIR+= lua-lbn
SUBDIR+= lua-ldoc
SUBDIR+= lua-luacheck
+SUBDIR+= lua-lualdap
SUBDIR+= lua-mpack
SUBDIR+= luabind
SUBDIR+= luakit-git
diff --git a/lua-lualdap/DESCR b/lua-lualdap/DESCR
new file mode 100644
index 0000000000..001d778cb1
--- /dev/null
+++ b/lua-lualdap/DESCR
@@ -0,0 +1,7 @@
+LuaLDAP is a simple interface from Lua to an LDAP client, in fact it is a bind
+to OpenLDAP client or ADSI.
+
+It enables a Lua program to:
+ * Connect to an LDAP server;
+ * Execute any operation (search, add, compare, delete, modify and rename);
+ * Retrieve entries and references of the search result.
diff --git a/lua-lualdap/Makefile b/lua-lualdap/Makefile
new file mode 100644
index 0000000000..f571eb6839
--- /dev/null
+++ b/lua-lualdap/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD$
+
+DISTNAME= ${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+PKGNAME= ${LUA_PKGPREFIX}-${GITHUB_PROJECT}-1.2.6
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_GITHUB:=lualdap/}
+GITHUB_PROJECT= lualdap
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/lualdap/lualdap/
+COMMENT= Binding for the OpenLDAP client libraries
+LICENSE= modified-bsd
+
+USE_LANGUAGES= c
+USE_TOOLS= gmake
+
+BUILD_TARGET= src/lualdap.so
+MAKE_FLAGS+= LUA=${LUA_INTERPRETER:Q}
+MAKE_FLAGS+= LUA_INCDIR=${PREFIX}/${LUA_INCDIR:Q}
+MAKE_FLAGS+= LUA_LIB=-llua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
+MAKE_FLAGS+= LUA_LIBDIR=${PREFIX:Q}/lib
+MAKE_FLAGS+= LBER_INCDIR=${PREFIX:Q}/include
+MAKE_FLAGS+= LBER_LIBDIR=${PREFIX:Q}/lib
+MAKE_FLAGS+= LDAP_INCDIR=${PREFIX:Q}/include
+MAKE_FLAGS+= LDAP_LIBDIR=${PREFIX:Q}/lib
+MAKE_FLAGS+= INST_BINDIR=${PREFIX:Q}/bin
+MAKE_FLAGS+= INST_LIBDIR=${PREFIX:Q}/${LUA_CDIR:Q}
+#XXX apparently required on macOS
+MAKE_FLAGS+= LIBFLAG=
+
+.include "../../databases/openldap-client/buildlink3.mk"
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-lualdap/PLIST b/lua-lualdap/PLIST
new file mode 100644
index 0000000000..846497b216
--- /dev/null
+++ b/lua-lualdap/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+${LUA_CDIR}/lualdap.so
diff --git a/lua-lualdap/distinfo b/lua-lualdap/distinfo
new file mode 100644
index 0000000000..bbad8e3f11
--- /dev/null
+++ b/lua-lualdap/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (lualdap-1.2.6.tar.gz) = f89ff45141ce6ab06499b156f57e3a1d03cd2467
+RMD160 (lualdap-1.2.6.tar.gz) = 53b2ce68c88f92a22f7d0b9b7c9a919de6e7f7c6
+SHA512 (lualdap-1.2.6.tar.gz) = e32010caa8efea5c23f2a595bd6a339267ecd08cf23e39389005bf8e499d6bad63771d0c7faf3ab5b8f670ba22bb15bf7ae691ed67920e86d8ed2c5649d7a079
+Size (lualdap-1.2.6.tar.gz) = 92669 bytes
+SHA1 (patch-config) = c3b2d8ada8251126f61129541884de4bf9061f57
diff --git a/lua-lualdap/patches/patch-config b/lua-lualdap/patches/patch-config
new file mode 100644
index 0000000000..f2e7a759b3
--- /dev/null
+++ b/lua-lualdap/patches/patch-config
@@ -0,0 +1,25 @@
+$NetBSD$
+
+Fix building on macOS
+
+--- config.orig 2021-03-16 17:28:59.000000000 +0000
++++ config
+@@ -31,12 +31,15 @@ LBER_LIBDIR = /usr/lib
+ LBER_INCDIR = /usr/include
+
+ # OS dependent
++ifeq ($(UNAME),Darwin)
++LIBFLAG = -bundle -undefined dynamic_lookup # for MacOS X
++else
+ LIBFLAG = -shared # for Linux
+-#LIBFLAG = -bundle -undefined dynamic_lookup # for MacOS X
++endif
+
+ # Compilation parameters
+ CC= gcc
+ INSTALL= install
+
+-MACOSX_DEPLOYMENT_TARGET="10.3"
+-export MACOSX_DEPLOYMENT_TARGET
++#MACOSX_DEPLOYMENT_TARGET="10.3"
++#export MACOSX_DEPLOYMENT_TARGET
Home |
Main Index |
Thread Index |
Old Index