aboutsummaryrefslogtreecommitdiffstats
path: root/net/luasocket
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-08-30 09:53:21 +0800
committeredwin <edwin@FreeBSD.org>2003-08-30 09:53:21 +0800
commitba8f09eab78595db7d07d3d2d19b7da2d9ae75c5 (patch)
tree5657e00cb822b634bcb073ff8ac105ddca9d6d88 /net/luasocket
parentb7f11c9db5262cc7c0d7bc10bb012ed1a121a559 (diff)
downloadfreebsd-ports-gnome-ba8f09eab78595db7d07d3d2d19b7da2d9ae75c5.tar.gz
freebsd-ports-gnome-ba8f09eab78595db7d07d3d2d19b7da2d9ae75c5.tar.zst
freebsd-ports-gnome-ba8f09eab78595db7d07d3d2d19b7da2d9ae75c5.zip
new port: net/luasocket - IP library for Lua language
LuaSocket is a Lua extension library that provides support for the TCP and UDP transport layers. Extra Lua modules implementing SMTP, HTTP and FTP protocols are installed to /usr/local/lib/lua/luasocket. PR: ports/46325 Submitted by: Jan Hornyak <pav@oook.cz>
Diffstat (limited to 'net/luasocket')
-rw-r--r--net/luasocket/Makefile47
-rw-r--r--net/luasocket/distinfo1
-rw-r--r--net/luasocket/files/patch-aa11
-rw-r--r--net/luasocket/pkg-descr9
-rw-r--r--net/luasocket/pkg-plist20
5 files changed, 88 insertions, 0 deletions
diff --git a/net/luasocket/Makefile b/net/luasocket/Makefile
new file mode 100644
index 000000000000..0cf725b9583c
--- /dev/null
+++ b/net/luasocket/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: luasocket
+# Date created: 17 December 2002
+# Whom: Jan Hornyak <pav@oook.cz>
+#
+# $FreeBSD$
+#
+
+PORTNAME= luasocket
+PORTVERSION= 1.4
+CATEGORIES= net
+MASTER_SITES= http://www.tecgraf.puc-rio.br/~diego/luasocket/
+
+MAINTAINER= pav@oook.cz
+COMMENT= IPv4 Sockets support for the Lua language
+
+BUILD_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua4
+
+post-extract:
+ @ ${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/luasocket ${PREFIX}/bin
+ @ ${MKDIR} ${PREFIX}/lib/lua
+ @ ${MKDIR} ${PREFIX}/lib/lua/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/lua/cl-compat.lua ${PREFIX}/lib/lua/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/lua/code.lua ${PREFIX}/lib/lua/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/lua/concat.lua ${PREFIX}/lib/lua/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/lua/ftp.lua ${PREFIX}/lib/lua/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/lua/http.lua ${PREFIX}/lib/lua/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/lua/README ${PREFIX}/lib/lua/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/lua/smtp.lua ${PREFIX}/lib/lua/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/lua/url.lua ${PREFIX}/lib/lua/luasocket
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/html/anybrowser.png ${PREFIX}/share/doc/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/html/func.html ${PREFIX}/share/doc/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/html/home.html ${PREFIX}/share/doc/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/html/idx.html ${PREFIX}/share/doc/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/html/intro.html ${PREFIX}/share/doc/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/html/luasocket.png ${PREFIX}/share/doc/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/html/mod.html ${PREFIX}/share/doc/luasocket
+ @ ${INSTALL_DATA} ${WRKSRC}/html/vim.png ${PREFIX}/share/doc/luasocket
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/luasocket/distinfo b/net/luasocket/distinfo
new file mode 100644
index 000000000000..6ea9c9dfdc79
--- /dev/null
+++ b/net/luasocket/distinfo
@@ -0,0 +1 @@
+MD5 (luasocket-1.4.tar.gz) = e3df9301739db7bc08b97e63cc3aaa43
diff --git a/net/luasocket/files/patch-aa b/net/luasocket/files/patch-aa
new file mode 100644
index 000000000000..1448c15c0233
--- /dev/null
+++ b/net/luasocket/files/patch-aa
@@ -0,0 +1,11 @@
+--- Makefile.orig Tue Dec 17 10:15:00 2002
++++ Makefile Tue Dec 17 10:16:08 2002
+@@ -12,7 +12,7 @@
+
+ # Set LUAINC to the Lua include directory and LUALIB to the
+ # Lua library directory
+-LUA = /home/i/diego/public/lib/lua-4.0
++LUA = ${LOCALBASE}
+ LUAINC = $(LUA)/include
+ LUALIB = $(LUA)/lib/$(TEC_UNAME)
+
diff --git a/net/luasocket/pkg-descr b/net/luasocket/pkg-descr
new file mode 100644
index 000000000000..f551910c8f09
--- /dev/null
+++ b/net/luasocket/pkg-descr
@@ -0,0 +1,9 @@
+LuaSocket is a Lua extension library that provides support for the TCP and UDP
+transport layers.
+
+Extra Lua modules implementing SMTP, HTTP and FTP protocols are installed
+to /usr/local/lib/lua/luasocket.
+
+Note that this port requires Lua v4 and does not compile with Lua v5.
+
+WWW: http://www.tecgraf.puc-rio.br/~diego/luasocket/
diff --git a/net/luasocket/pkg-plist b/net/luasocket/pkg-plist
new file mode 100644
index 000000000000..a0472ea26377
--- /dev/null
+++ b/net/luasocket/pkg-plist
@@ -0,0 +1,20 @@
+bin/luasocket
+lib/lua/luasocket/cl-compat.lua
+lib/lua/luasocket/code.lua
+lib/lua/luasocket/concat.lua
+lib/lua/luasocket/ftp.lua
+lib/lua/luasocket/http.lua
+lib/lua/luasocket/README
+lib/lua/luasocket/smtp.lua
+lib/lua/luasocket/url.lua
+%%PORTDOCS%%share/doc/luasocket/anybrowser.png
+%%PORTDOCS%%share/doc/luasocket/func.html
+%%PORTDOCS%%share/doc/luasocket/home.html
+%%PORTDOCS%%share/doc/luasocket/idx.html
+%%PORTDOCS%%share/doc/luasocket/intro.html
+%%PORTDOCS%%share/doc/luasocket/luasocket.png
+%%PORTDOCS%%share/doc/luasocket/mod.html
+%%PORTDOCS%%share/doc/luasocket/vim.png
+%%PORTDOCS%%@dirrm share/doc/luasocket
+@dirrm lib/lua/luasocket
+@dirrm lib/lua