New package: luasocket-2.0.2.

This commit is contained in:
Juan RP 2012-02-22 05:58:01 +01:00
parent 915da4c9ed
commit 60288e3907
4 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1 @@
libc.so.6

View file

@ -0,0 +1,13 @@
--- config.orig 2007-10-15 08:21:05.000000000 +0400
+++ config 2007-10-15 12:22:16.000000000 +0400
@@ -30,8 +30,8 @@
#
#INSTALL_TOP_SHARE=/usr/local/share/lua/5.0
#INSTALL_TOP_LIB=/usr/local/lib/lua/5.0
-INSTALL_TOP_SHARE=/usr/local/share/lua/5.1
-INSTALL_TOP_LIB=/usr/local/lib/lua/5.1
+INSTALL_TOP_SHARE=$(DESTDIR)/usr/share/lua/5.1
+INSTALL_TOP_LIB=$(DESTDIR)/usr/lib/lua/5.1
INSTALL_DATA=cp
INSTALL_EXEC=cp

View file

@ -0,0 +1,31 @@
--- makefile 2007-10-15 04:21:05.000000000 +0000
+++ makefile 2011-03-09 12:00:54.000000000 +0000
@@ -10,6 +10,8 @@
INSTALL_SOCKET_LIB=$(INSTALL_TOP_LIB)/socket
INSTALL_MIME_SHARE=$(INSTALL_TOP_SHARE)/mime
INSTALL_MIME_LIB=$(INSTALL_TOP_LIB)/mime
+#
+INSTALL_UNIX_LIB=$(INSTALL_SOCKET_LIB)
all clean:
cd src; $(MAKE) $@
@@ -45,6 +47,8 @@
#cd src; $(INSTALL_DATA) $(TO_MIME_SHARE) $(INSTALL_MIME_SHARE)
cd src; mkdir -p $(INSTALL_MIME_LIB)
cd src; $(INSTALL_EXEC) $(MIME_SO) $(INSTALL_MIME_LIB)/core.$(EXT)
+ cd src; install -d $(INSTALL_UNIX_LIB)
+ cd src; $(INSTALL_EXEC) $(UNIX_SO) $(INSTALL_UNIX_LIB)/$(UNIX_SO)
#------
# End of makefile
--- src/makefile 2007-10-15 04:21:05.000000000 +0000
+++ src/makefile 2011-03-09 12:02:25.000000000 +0000
@@ -47,7 +47,7 @@
usocket.o \
unix.o
-all: $(SOCKET_SO) $(MIME_SO)
+all: $(SOCKET_SO) $(MIME_SO) $(UNIX_SO)
$(SOCKET_SO): $(SOCKET_OBJS)
$(LD) $(LDFLAGS) -o $@ $(SOCKET_OBJS)

View file

@ -0,0 +1,18 @@
# Template file for 'luasocket'
pkgname=luasocket
version=2.0.2
homepage="http://www.cs.princeton.edu/~diego/professional/luasocket/"
distfiles="http://luaforge.net/frs/download.php/2664/luasocket-$version.tar.gz"
build_style=gnu-makefile
short_desc="Network support for the Lua language "
maintainer="davehome <davehome@redthumb.info.tm>"
license="MIT"
checksum=4fd9c775cfd98841299851e29b30176caf289370fea1ff1e00bb67c2d6842ca6
long_desc="
LuaSocket is a Lua extension library that is composed by two parts: a C core
that provides support for the TCP and UDP transport layers, and a set of Lua
modules that add support for functionality commonly needed by applications
that deal with the Internet."
Add_dependency run lua
Add_dependency build lua-devel