summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2022-05-09 00:37:58 +0000
committerkhorben <khorben@pkgsrc.org>2022-05-09 00:37:58 +0000
commitd7fc872fc2f5ebaf0d93ed9d3ed70ad6139563cb (patch)
tree2e0b82cdf3a5cb2203857ac10ab0b805a06389ee /security
parente565561a0265d0ee03d3484153005dd079efa6b8 (diff)
downloadpkgsrc-d7fc872fc2f5ebaf0d93ed9d3ed70ad6139563cb.tar.gz
lua-cyrussasl: import version 1.1.0
Cyrus SASL library for Lua 5.1+.
Diffstat (limited to 'security')
-rw-r--r--security/lua-cyrussasl/DESCR1
-rw-r--r--security/lua-cyrussasl/Makefile24
-rw-r--r--security/lua-cyrussasl/PLIST2
-rw-r--r--security/lua-cyrussasl/distinfo6
-rw-r--r--security/lua-cyrussasl/patches/patch-Makefile31
5 files changed, 64 insertions, 0 deletions
diff --git a/security/lua-cyrussasl/DESCR b/security/lua-cyrussasl/DESCR
new file mode 100644
index 00000000000..ed86130b336
--- /dev/null
+++ b/security/lua-cyrussasl/DESCR
@@ -0,0 +1 @@
+Cyrus SASL library for Lua 5.1+.
diff --git a/security/lua-cyrussasl/Makefile b/security/lua-cyrussasl/Makefile
new file mode 100644
index 00000000000..8465ca4672d
--- /dev/null
+++ b/security/lua-cyrussasl/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2022/05/09 00:37:58 khorben Exp $
+
+DISTNAME= ${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+PKGNAME= ${LUA_PKGPREFIX}-${GITHUB_PROJECT:S/lua-//}-1.1.0
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_GITHUB:=JorjBauer/}
+GITHUB_PROJECT= lua-cyrussasl
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/JorjBauer/lua-cyrussasl/
+COMMENT= Cyrus SASL library for Lua 5.1+
+LICENSE= modified-bsd
+
+USE_LANGUAGES= c
+
+.include "../../mk/bsd.prefs.mk"
+
+MAKE_FLAGS+= CPATH="${DESTDIR}${PREFIX}/${LUA_CDIR}"
+MAKE_FLAGS+= LDFLAGS="-shared -lsasl2 -L${PREFIX}/lib -L${PREFIX}/${LUA_LDIR}"
+
+.include "../../security/cyrus-sasl/buildlink3.mk"
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/lua-cyrussasl/PLIST b/security/lua-cyrussasl/PLIST
new file mode 100644
index 00000000000..67e033cec3a
--- /dev/null
+++ b/security/lua-cyrussasl/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2022/05/09 00:37:58 khorben Exp $
+${LUA_CDIR}/cyrussasl.so
diff --git a/security/lua-cyrussasl/distinfo b/security/lua-cyrussasl/distinfo
new file mode 100644
index 00000000000..340e7139baf
--- /dev/null
+++ b/security/lua-cyrussasl/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/05/09 00:37:58 khorben Exp $
+
+BLAKE2s (lua-cyrussasl-1.1.0.tar.gz) = a2ced3c0ea7bef8afd61592ea7b8ab1b91c3460811cf094d256d46b99ef3030b
+SHA512 (lua-cyrussasl-1.1.0.tar.gz) = 2262dd1e403bd0825b714253dc03844aad20525b206d8fb16196b2647b642a45d137b18bdd89920d95c168b99c5e6b36d73b7cdaa6ec91d3ad2673360307e0ee
+Size (lua-cyrussasl-1.1.0.tar.gz) = 14325 bytes
+SHA1 (patch-Makefile) = 8dc1f2bbe6b507dd4c792a14925692e5d008404d
diff --git a/security/lua-cyrussasl/patches/patch-Makefile b/security/lua-cyrussasl/patches/patch-Makefile
new file mode 100644
index 00000000000..eb45b85dedc
--- /dev/null
+++ b/security/lua-cyrussasl/patches/patch-Makefile
@@ -0,0 +1,31 @@
+$NetBSD: patch-Makefile,v 1.1 2022/05/09 00:37:59 khorben Exp $
+
+Allow using the right compilation flags and installation path
+
+--- Makefile.orig 2015-08-21 22:24:54.000000000 +0000
++++ Makefile
+@@ -17,11 +17,11 @@
+ #CPATH=/usr/local/lib/lua/5.1
+
+ # MacOS (tested with 10.6, 10.7, 10.8)
+-CFLAGS=-g -Wall -O2
+-LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
+-MACOSX_VERSION=10.5
+-LUAPATH=/usr/local/share/lua/5.1
+-CPATH=/usr/local/lib/lua/5.1
++#CFLAGS=-g -Wall -O2
++#LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
++#MACOSX_VERSION=10.5
++#LUAPATH=/usr/local/share/lua/5.1
++#CPATH=/usr/local/lib/lua/5.1
+
+ #########################################################
+ #
+@@ -40,6 +40,7 @@ OBJS=cyrussasl.o luaabstract.o context.o
+ all: $(TARGET)
+
+ install: $(TARGET)
++ mkdir -p $(CPATH)
+ cp $(TARGET) $(CPATH)
+
+ clean: