aboutsummaryrefslogtreecommitdiff
path: root/net/luasocket
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-30 01:53:21 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-30 01:53:21 +0000
commit205f0fe5e1746fad258cdf4ff0f66e24aabe1ada (patch)
tree086f3f34978c99a0c4f62ea457c5a1cde166d612 /net/luasocket
parent3bbd8083dc57d7330c472d6157e4b7b1397e4de7 (diff)
downloadports-205f0fe5e1746fad258cdf4ff0f66e24aabe1ada.tar.gz
ports-205f0fe5e1746fad258cdf4ff0f66e24aabe1ada.zip
Notes
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