summaryrefslogtreecommitdiff
path: root/devel/lua-ljsyscall/Makefile
diff options
context:
space:
mode:
authoralnsn <alnsn@pkgsrc.org>2015-04-03 20:20:54 +0000
committeralnsn <alnsn@pkgsrc.org>2015-04-03 20:20:54 +0000
commit2a9fa631d15fc128bad1c4bbb4a4430900bc6109 (patch)
treeb4c5427dd78e3157a636557aa1fbb6916bdbf0fd /devel/lua-ljsyscall/Makefile
parent1b0bdcb9bcedece2c9e01f2c736ea0a9245b3a58 (diff)
downloadpkgsrc-2a9fa631d15fc128bad1c4bbb4a4430900bc6109.tar.gz
Import lua-ljsyscall version 0.10 by Justin Cormack.
What? An FFI implementation of the Linux, NetBSD, FreeBSD and OSX kernel ABIs for LuaJIT. This means you will be able to program all the functionality the Unix kernel provides to userspace directly in Lua. You can view it as a high level language equivalent of the Busybox project in a way, although the functionality it provides is somewhat different, and the interface very different. Why? First it provides a comprehensive set of system call APIs for programming sockets, files and so on, including the more obscure things (eg file change notifications). Second it provides higher level interfaces such as network interface configuration, so your application can control its entire runtime interface including IP addresses routing and so on. Third it provides tools for added security, such as support for Linux namespaces (containers), system call filtering (seccomp type 2), capabilities and so on, all with a script language interface that is much simpler to use than the C interface. As it is Lua based it can easily be embedded in another language; in the future ports to other scripting languages are planned. It also serves as a way of learning how the operating system interfaces work in a more forgiving environment than C.
Diffstat (limited to 'devel/lua-ljsyscall/Makefile')
-rw-r--r--devel/lua-ljsyscall/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/lua-ljsyscall/Makefile b/devel/lua-ljsyscall/Makefile
new file mode 100644
index 00000000000..559241f282a
--- /dev/null
+++ b/devel/lua-ljsyscall/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2015/04/03 20:20:54 alnsn Exp $
+
+DISTNAME= ljsyscall-0.10
+PKGNAME= ${DISTNAME:S/ljsyscall/${LUA_PKGPREFIX}-ljsyscall/}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=justincormack/}
+GITHUB_TAG= v${PKGVERSION}
+GITHUB_PROJECT= ${DISTNAME:S/-${PKGVERSION}//}
+
+MAINTAINER= alnsn@NetBSD.org
+HOMEPAGE= https://github.com/justincormack/ljsyscall
+COMMENT= LuaJIT syscall FFI for the Linux, NetBSD, FreeBSD and OSX kernels
+LICENSE= mit
+
+.include "../../mk/bsd.prefs.mk"
+
+NO_BUILD= yes
+USE_TOOLS+= pax
+
+INSTALLATION_DIRS+= ${LUA_LDIR}
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/syscall.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}
+ cd ${WRKSRC} && find syscall -name \*.lua \
+ | pax -rw ${DESTDIR}${PREFIX}/${LUA_LDIR}/
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"