diff options
author | fhajny <fhajny@pkgsrc.org> | 2010-09-21 10:45:56 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2010-09-21 10:45:56 +0000 |
commit | 254bcf84e064ef1c870f69e8b173f6eb8e439404 (patch) | |
tree | 1d72e8e1efa2ded732e09cff42c58346aaf25ff1 /security | |
parent | 2aef31b552d0a81a5641e70ca06b48543a054c95 (diff) | |
download | pkgsrc-254bcf84e064ef1c870f69e8b173f6eb8e439404.tar.gz |
Import lua-sec-0.4 as security/lua-sec.
LuaSec is a binding for OpenSSL library to provide TLS/SSL communication.
This version delegates to LuaSocket the TCP connection establishment
between the client and server. Then LuaSec uses this connection to start
a secure TLS/SSL session.
(Based on wip/luasec.)
Diffstat (limited to 'security')
-rw-r--r-- | security/lua-sec/DESCR | 4 | ||||
-rw-r--r-- | security/lua-sec/Makefile | 35 | ||||
-rw-r--r-- | security/lua-sec/PLIST | 4 | ||||
-rw-r--r-- | security/lua-sec/distinfo | 7 | ||||
-rw-r--r-- | security/lua-sec/patches/patch-aa | 42 | ||||
-rw-r--r-- | security/lua-sec/patches/patch-ab | 40 |
6 files changed, 132 insertions, 0 deletions
diff --git a/security/lua-sec/DESCR b/security/lua-sec/DESCR new file mode 100644 index 00000000000..031f0fbb56b --- /dev/null +++ b/security/lua-sec/DESCR @@ -0,0 +1,4 @@ +LuaSec is a binding for OpenSSL library to provide TLS/SSL communication. +This version delegates to LuaSocket the TCP connection establishment +between the client and server. Then LuaSec uses this connection to start +a secure TLS/SSL session. diff --git a/security/lua-sec/Makefile b/security/lua-sec/Makefile new file mode 100644 index 00000000000..13c7c33a482 --- /dev/null +++ b/security/lua-sec/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/09/21 10:45:56 fhajny Exp $ +# + +DISTNAME= luasec-0.4 +PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/lua//} +CATEGORIES= security +MASTER_SITES= http://luaforge.net/frs/download.php/4255/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.inf.puc-rio.br/~brunoos/luasec/ +COMMENT= Lua binding for OpenSSL library +LICENSE= mit + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../mk/bsd.prefs.mk" + +DEPENDS+= lua-socket>=2.0:../../net/lua-socket + +USE_TOOLS+= gmake + +INSTALLATION_DIRS+= ${LUA_CDIR} ${LUA_LDIR} + +.if ${OPSYS} == "SunOS" +BUILD_TARGET= solaris +.else +BUILD_TARGET= bsd +.endif + +INSTALL_ENV+= LUA_CDIR=${LUA_CDIR} +INSTALL_ENV+= LUA_LDIR=${LUA_LDIR} + +.include "../../lang/lua/module.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/lua-sec/PLIST b/security/lua-sec/PLIST new file mode 100644 index 00000000000..a2b1428a280 --- /dev/null +++ b/security/lua-sec/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/21 10:45:56 fhajny Exp $ +${LUA_CDIR}/ssl.so +${LUA_LDIR}/ssl.lua +${LUA_LDIR}/ssl/https.lua diff --git a/security/lua-sec/distinfo b/security/lua-sec/distinfo new file mode 100644 index 00000000000..021e70b683c --- /dev/null +++ b/security/lua-sec/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/09/21 10:45:56 fhajny Exp $ + +SHA1 (luasec-0.4.tar.gz) = b7fe55fd2a75e0233c1d5bd858e48366422901d6 +RMD160 (luasec-0.4.tar.gz) = 61b613ac8d767545a327adc88f1dce70ceb8f64b +Size (luasec-0.4.tar.gz) = 27829 bytes +SHA1 (patch-aa) = 1bedbbce8f107523b0fb785efc596a0a341063b3 +SHA1 (patch-ab) = bfdee03b3d2c98ef64a9e72506be722314d01678 diff --git a/security/lua-sec/patches/patch-aa b/security/lua-sec/patches/patch-aa new file mode 100644 index 00000000000..3f3b01414f9 --- /dev/null +++ b/security/lua-sec/patches/patch-aa @@ -0,0 +1,42 @@ +$NetBSD: patch-aa,v 1.1.1.1 2010/09/21 10:45:56 fhajny Exp $ + +Pass installation dirs properly, fix search paths, add Solaris support + +--- Makefile.orig 2009-10-15 12:59:54.000000000 +0000 ++++ Makefile +@@ -1,11 +1,11 @@ + # Inform the location to intall the modules +-LUAPATH=/usr/local/share/lua/5.1 +-LUACPATH=/usr/local/lib/lua/5.1 ++LUAPATH=$(DESTDIR)$(PREFIX)/$(LUA_LDIR) ++LUACPATH=$(DESTDIR)$(PREFIX)/$(LUA_CDIR) + + # Edit the lines below to inform new path, if necessary + # +-#INCDIR=-I/usr/local/lua-5.1/include -I/usr/local/openssl-0.9.8/include +-#LIBDIR=-L/usr/local/openssl-0.9.8/lib -R/usr/local/openssl-0.9.8/lib ++INCDIR=-I${PREFIX}/include ++LIBDIR=-L${PREFIX}/lib -R${PREFIX}/lib + + # For Mac OS X: set the system version + MACOSX_VERSION=10.4 +@@ -24,6 +24,7 @@ none: + @echo " * linux" + @echo " * bsd" + @echo " * macosx" ++ @echo " * solaris" + + install: + @cd src ; $(MAKE) LUACPATH="$(LUACPATH)" LUAPATH="$(LUAPATH)" install +@@ -46,5 +47,11 @@ macosx: + @echo "------------------------------" + @cd src ; $(MAKE) INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" DEFS="$(DEFS)" MACVER="$(MACOSX_VERSION)" $@ + ++solaris: ++ @echo "---------------------" ++ @echo "** Build for Solaris **" ++ @echo "---------------------" ++ @cd src ; $(MAKE) INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" DEFS="$(DEFS)" $@ ++ + clean: + @cd src ; $(MAKE) clean diff --git a/security/lua-sec/patches/patch-ab b/security/lua-sec/patches/patch-ab new file mode 100644 index 00000000000..eced418f500 --- /dev/null +++ b/security/lua-sec/patches/patch-ab @@ -0,0 +1,40 @@ +$NetBSD: patch-ab,v 1.1.1.1 2010/09/21 10:45:56 fhajny Exp $ + +Add Solaris support + +--- src/Makefile.orig 2009-10-15 12:59:54.000000000 +0000 ++++ src/Makefile +@@ -23,8 +23,11 @@ MAC_ENV=env MACOSX_DEPLOYMENT_TARGET='$( + MAC_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS) + MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR) + +-CC=gcc +-LD=$(MYENV) gcc ++SOL_CFLAGS=-O2 -fpic $(WARN) $(INCDIR) $(DEFS) ++SOL_LDFLAGS=-O -G -fpic $(LIBDIR) ++ ++CC?=gcc ++LD=$(MYENV) $(CC) + CFLAGS=$(MYCFLAGS) + LDFLAGS=$(MYLDFLAGS) + +@@ -34,8 +37,8 @@ all: + + install: $(CMOD) $(LMOD) + mkdir -p $(LUAPATH)/ssl +- cp $(CMOD) $(LUACPATH) +- cp $(LMOD) $(LUAPATH) ++ ${BSD_INSTALL_LIB} $(CMOD) $(LUACPATH) ++ ${BSD_INSTALL_DATA} $(LMOD) $(LUAPATH) + cp https.lua $(LUAPATH)/ssl + + linux: +@@ -47,6 +50,8 @@ bsd: + macosx: + @$(MAKE) $(CMOD) MYCFLAGS="$(MAC_CFLAGS)" MYLDFLAGS="$(MAC_LDFLAGS)" MYENV="$(MAC_ENV)" + ++solaris: ++ @$(MAKE) $(CMOD) MYCFLAGS="$(SOL_CFLAGS)" MYLDFLAGS="$(SOL_LDFLAGS)" + + $(CMOD): $(OBJS) + $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) |