summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/lua-copas/DESCR4
-rw-r--r--net/lua-copas/Makefile21
-rw-r--r--net/lua-copas/PLIST6
-rw-r--r--net/lua-copas/distinfo7
-rw-r--r--net/lua-copas/patches/patch-Makefile17
5 files changed, 55 insertions, 0 deletions
diff --git a/net/lua-copas/DESCR b/net/lua-copas/DESCR
new file mode 100644
index 00000000000..9b1ac917dc9
--- /dev/null
+++ b/net/lua-copas/DESCR
@@ -0,0 +1,4 @@
+Copas is a dispatcher based on coroutines that can be used for
+asynchronous networking. For example TCP or UDP based servers.
+But it also features timers and client support for http(s), ftp
+and smtp requests.
diff --git a/net/lua-copas/Makefile b/net/lua-copas/Makefile
new file mode 100644
index 00000000000..f5b29c9b16a
--- /dev/null
+++ b/net/lua-copas/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2016/06/04 23:15:22 alnsn Exp $
+
+DISTNAME= copas-2.0.1
+PKGNAME= ${DISTNAME:S/copas/${LUA_PKGPREFIX}-copas/}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=keplerproject/}
+GITHUB_TAG= v${PKGVERSION:S/./_/g}
+GITHUB_PROJECT= ${DISTNAME:S/-${PKGVERSION_NOREV}//}
+
+MAINTAINER= alnsn@NetBSD.org
+HOMEPAGE= http://keplerproject.github.io/copas
+COMMENT= Dispatcher based on coroutines that can be used by TCP_IP servers
+LICENSE= mit
+
+DEPENDS+= ${LUA_PKGPREFIX}-socket>=2.0:../../net/lua-socket
+DEPENDS+= ${LUA_PKGPREFIX}-sec>=0.6:../../security/lua-sec
+
+MAKE_ENV+= LUA_LDIR=${LUA_LDIR:Q}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/lua-copas/PLIST b/net/lua-copas/PLIST
new file mode 100644
index 00000000000..160778a1e79
--- /dev/null
+++ b/net/lua-copas/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2016/06/04 23:15:22 alnsn Exp $
+${LUA_LDIR}/copas.lua
+${LUA_LDIR}/copas/ftp.lua
+${LUA_LDIR}/copas/http.lua
+${LUA_LDIR}/copas/limit.lua
+${LUA_LDIR}/copas/smtp.lua
diff --git a/net/lua-copas/distinfo b/net/lua-copas/distinfo
new file mode 100644
index 00000000000..193c4b2aab2
--- /dev/null
+++ b/net/lua-copas/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2016/06/04 23:15:22 alnsn Exp $
+
+SHA1 (copas-2.0.1.tar.gz) = 2bf0e5a975277408af7506d97e22fd0163245bed
+RMD160 (copas-2.0.1.tar.gz) = d2ed098bc9652353544380b65ffad4c64b5c258c
+SHA512 (copas-2.0.1.tar.gz) = 3bc472c056beab4c2cf8c1733ca2b1e7fcce9866b89dc738060263456b6fe7521956cf6ca614276f99fdf42d278422dbbb0ef42f11f211c16632f04cb518ecc5
+Size (copas-2.0.1.tar.gz) = 47927 bytes
+SHA1 (patch-Makefile) = eb313622d41a9ea58540c359ce07f5664e6a23b9
diff --git a/net/lua-copas/patches/patch-Makefile b/net/lua-copas/patches/patch-Makefile
new file mode 100644
index 00000000000..e5eecd517e5
--- /dev/null
+++ b/net/lua-copas/patches/patch-Makefile
@@ -0,0 +1,17 @@
+$NetBSD: patch-Makefile,v 1.1.1.1 2016/06/04 23:15:22 alnsn Exp $
+
+--- Makefile.orig 2016-02-16 21:08:28.000000000 +0000
++++ Makefile
+@@ -2,8 +2,10 @@
+
+ # Default prefix
+-PREFIX = /usr/local
++#PREFIX = /usr/local
+
+ # System's lua directory (where Lua libraries are installed)
+-LUA_DIR= $(PREFIX)/share/lua/5.1
++LUA_DIR= $(DESTDIR)$(PREFIX)/$(LUA_LDIR)
++
++all:
+
+ install: