luasec-0.3.3, lua binding to OpenSSL to provide TLS/SSL communication
This commit is contained in:
parent
d31261c1c4
commit
a4e95cf53d
40
security/luasec/Makefile
Normal file
40
security/luasec/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/09/06 14:29:32 jolan Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= lua binding to OpenSSL to provide TLS/SSL communication
|
||||
DISTNAME= luasec-0.3.3
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://luaforge.net/frs/download.php/4160/
|
||||
|
||||
HOMEPAGE= http://www.inf.puc-rio.br/~brunoos/luasec/
|
||||
|
||||
MAINTAINER= Jolan Luff <jolan@openbsd.org>
|
||||
|
||||
# MIT
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
MODULES= lang/lua
|
||||
RUN_DEPENDS+= ::net/luasocket
|
||||
WANTLIB+= crypto ssl
|
||||
|
||||
MAKE_ENV+= INCDIR="-I${LOCALBASE}/include/" SAVECFLAGS="${CFLAGS}"
|
||||
ALL_TARGET= bsd
|
||||
LIBDIR= ${PREFIX}/lib/lua/5.1
|
||||
SHAREDIR= ${PREFIX}/share/lua/5.1
|
||||
EXAMPLEDIR= ${PREFIX}/share/examples/luasec
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${LIBDIR} ${SHAREDIR} ${EXAMPLEDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/src/ssl.so ${LIBDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/src/ssl.lua ${SHAREDIR}
|
||||
cd ${WRKSRC}/samples && \
|
||||
find . -type d \
|
||||
-exec ${INSTALL_DATA_DIR} ${EXAMPLEDIR}/{} \; && \
|
||||
find . ! -type d \
|
||||
-exec ${INSTALL_DATA} -m 644 {} ${EXAMPLEDIR}/{} \;
|
||||
|
||||
.include <bsd.port.mk>
|
5
security/luasec/distinfo
Normal file
5
security/luasec/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (luasec-0.3.3.tar.gz) = iCYQIDct/o+FD9tg5Prhhg==
|
||||
RMD160 (luasec-0.3.3.tar.gz) = PkggjSXYECflT+xQH8biTuaNvZQ=
|
||||
SHA1 (luasec-0.3.3.tar.gz) = E+muUJdMfKT7bf2jNt3euFt7H+s=
|
||||
SHA256 (luasec-0.3.3.tar.gz) = lOZjrSxhcfpHxs3k55ly2pACFdJ/VQTkcZ+hDx2MHKw=
|
||||
SIZE (luasec-0.3.3.tar.gz) = 26547
|
23
security/luasec/patches/patch-src_Makefile
Normal file
23
security/luasec/patches/patch-src_Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-src_Makefile,v 1.1.1.1 2009/09/06 14:29:32 jolan Exp $
|
||||
--- src/Makefile.orig Fri Jul 24 12:02:36 2009
|
||||
+++ src/Makefile Sun Sep 6 09:08:31 2009
|
||||
@@ -13,7 +13,7 @@ LIBS=-lssl -lcrypto
|
||||
|
||||
WARN=-Wall -pedantic
|
||||
|
||||
-BSD_CFLAGS=-O2 -fpic $(WARN) $(INCDIR) $(DEFS)
|
||||
+BSD_CFLAGS=$(SAVECFLAGS) -fpic $(WARN) $(INCDIR) $(DEFS)
|
||||
BSD_LDFLAGS=-O -shared -fpic $(LIBDIR)
|
||||
|
||||
LNX_CFLAGS=-O2 -fpic $(WARN) $(INCDIR) $(DEFS)
|
||||
@@ -24,8 +24,8 @@ MAC_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS)
|
||||
MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
|
||||
|
||||
CP=cp
|
||||
-CC=gcc
|
||||
-LD=$(MYENV) gcc
|
||||
+#CC=$(CC)
|
||||
+LD=$(MYENV) $(CC)
|
||||
CFLAGS=$(MYCFLAGS)
|
||||
LDFLAGS=$(MYLDFLAGS)
|
||||
|
8
security/luasec/pkg/DESCR
Normal file
8
security/luasec/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
LuaSec is a binding for the OpenSSL library to provide TLS/SSL
|
||||
communication. LuaSec delegates to LuaSocket the TCP connection
|
||||
establishment between the client and server. Then LuaSec uses this
|
||||
connection to start a secure TLS/SSL session.
|
||||
|
||||
Documentation may be found online at:
|
||||
|
||||
http://www.inf.puc-rio.br/~brunoos/luasec/reference.html
|
2
security/luasec/pkg/PFRAG.shared
Normal file
2
security/luasec/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2009/09/06 14:29:32 jolan Exp $
|
||||
lib/lua/5.1/ssl.so
|
39
security/luasec/pkg/PLIST
Normal file
39
security/luasec/pkg/PLIST
Normal file
@ -0,0 +1,39 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/09/06 14:29:32 jolan Exp $
|
||||
%%SHARED%%
|
||||
share/examples/luasec/
|
||||
share/examples/luasec/README
|
||||
share/examples/luasec/certs/
|
||||
share/examples/luasec/certs/clientA.cnf
|
||||
share/examples/luasec/certs/clientA.sh
|
||||
share/examples/luasec/certs/clientB.cnf
|
||||
share/examples/luasec/certs/clientB.sh
|
||||
share/examples/luasec/certs/rootA.cnf
|
||||
share/examples/luasec/certs/rootA.sh
|
||||
share/examples/luasec/certs/rootB.cnf
|
||||
share/examples/luasec/certs/rootB.sh
|
||||
share/examples/luasec/certs/serverA.cnf
|
||||
share/examples/luasec/certs/serverA.sh
|
||||
share/examples/luasec/certs/serverB.cnf
|
||||
share/examples/luasec/certs/serverB.sh
|
||||
share/examples/luasec/key/
|
||||
share/examples/luasec/key/genkey.sh
|
||||
share/examples/luasec/key/loadkey.lua
|
||||
share/examples/luasec/loop/
|
||||
share/examples/luasec/loop-gc/
|
||||
share/examples/luasec/loop-gc/client.lua
|
||||
share/examples/luasec/loop-gc/server.lua
|
||||
share/examples/luasec/loop/client.lua
|
||||
share/examples/luasec/loop/server.lua
|
||||
share/examples/luasec/oneshot/
|
||||
share/examples/luasec/oneshot/client.lua
|
||||
share/examples/luasec/oneshot/server.lua
|
||||
share/examples/luasec/want/
|
||||
share/examples/luasec/want/client.lua
|
||||
share/examples/luasec/want/server.lua
|
||||
share/examples/luasec/wantread/
|
||||
share/examples/luasec/wantread/client.lua
|
||||
share/examples/luasec/wantread/server.lua
|
||||
share/examples/luasec/wantwrite/
|
||||
share/examples/luasec/wantwrite/client.lua
|
||||
share/examples/luasec/wantwrite/server.lua
|
||||
share/lua/5.1/ssl.lua
|
Loading…
x
Reference in New Issue
Block a user