pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/lua-ljsyscall Import lua-ljsyscall version 0.10 ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6989683c9b35
branches: trunk
changeset: 649495:6989683c9b35
user: alnsn <alnsn%pkgsrc.org@localhost>
date: Fri Apr 03 20:20:54 2015 +0000
description:
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:
devel/lua-ljsyscall/DESCR | 20 ++++++++
devel/lua-ljsyscall/Makefile | 29 ++++++++++++
devel/lua-ljsyscall/PLIST | 101 +++++++++++++++++++++++++++++++++++++++++++
devel/lua-ljsyscall/distinfo | 5 ++
4 files changed, 155 insertions(+), 0 deletions(-)
diffs (171 lines):
diff -r 751ca43a80d5 -r 6989683c9b35 devel/lua-ljsyscall/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-ljsyscall/DESCR Fri Apr 03 20:20:54 2015 +0000
@@ -0,0 +1,20 @@
+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.
diff -r 751ca43a80d5 -r 6989683c9b35 devel/lua-ljsyscall/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-ljsyscall/Makefile Fri Apr 03 20:20:54 2015 +0000
@@ -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@localhost
+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"
diff -r 751ca43a80d5 -r 6989683c9b35 devel/lua-ljsyscall/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-ljsyscall/PLIST Fri Apr 03 20:20:54 2015 +0000
@@ -0,0 +1,101 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2015/04/03 20:20:54 alnsn Exp $
+${LUA_LDIR}/syscall.lua
+${LUA_LDIR}/syscall/abi.lua
+${LUA_LDIR}/syscall/bit.lua
+${LUA_LDIR}/syscall/bsd/ffi.lua
+${LUA_LDIR}/syscall/bsd/syscalls.lua
+${LUA_LDIR}/syscall/bsd/types.lua
+${LUA_LDIR}/syscall/compat.lua
+${LUA_LDIR}/syscall/ffifunctions.lua
+${LUA_LDIR}/syscall/ffitypes.lua
+${LUA_LDIR}/syscall/freebsd/c.lua
+${LUA_LDIR}/syscall/freebsd/constants.lua
+${LUA_LDIR}/syscall/freebsd/errors.lua
+${LUA_LDIR}/syscall/freebsd/fcntl.lua
+${LUA_LDIR}/syscall/freebsd/ffi.lua
+${LUA_LDIR}/syscall/freebsd/ioctl.lua
+${LUA_LDIR}/syscall/freebsd/syscalls.lua
+${LUA_LDIR}/syscall/freebsd/sysctl.lua
+${LUA_LDIR}/syscall/freebsd/types.lua
+${LUA_LDIR}/syscall/freebsd/util.lua
+${LUA_LDIR}/syscall/freebsd/version.lua
+${LUA_LDIR}/syscall/helpers.lua
+${LUA_LDIR}/syscall/lfs.lua
+${LUA_LDIR}/syscall/libc.lua
+${LUA_LDIR}/syscall/linux/arm/constants.lua
+${LUA_LDIR}/syscall/linux/arm/ffi.lua
+${LUA_LDIR}/syscall/linux/arm/ioctl.lua
+${LUA_LDIR}/syscall/linux/arm/nr.lua
+${LUA_LDIR}/syscall/linux/c.lua
+${LUA_LDIR}/syscall/linux/cgroup.lua
+${LUA_LDIR}/syscall/linux/constants.lua
+${LUA_LDIR}/syscall/linux/errors.lua
+${LUA_LDIR}/syscall/linux/fcntl.lua
+${LUA_LDIR}/syscall/linux/ffi.lua
+${LUA_LDIR}/syscall/linux/ioctl.lua
+${LUA_LDIR}/syscall/linux/mips/constants.lua
+${LUA_LDIR}/syscall/linux/mips/ffi.lua
+${LUA_LDIR}/syscall/linux/mips/ioctl.lua
+${LUA_LDIR}/syscall/linux/mips/nr.lua
+${LUA_LDIR}/syscall/linux/netfilter.lua
+${LUA_LDIR}/syscall/linux/nl.lua
+${LUA_LDIR}/syscall/linux/nr.lua
+${LUA_LDIR}/syscall/linux/ppc/constants.lua
+${LUA_LDIR}/syscall/linux/ppc/ffi.lua
+${LUA_LDIR}/syscall/linux/ppc/ioctl.lua
+${LUA_LDIR}/syscall/linux/ppc/nr.lua
+${LUA_LDIR}/syscall/linux/sockopt.lua
+${LUA_LDIR}/syscall/linux/syscalls.lua
+${LUA_LDIR}/syscall/linux/types.lua
+${LUA_LDIR}/syscall/linux/util.lua
+${LUA_LDIR}/syscall/linux/x64/constants.lua
+${LUA_LDIR}/syscall/linux/x64/ffi.lua
+${LUA_LDIR}/syscall/linux/x64/ioctl.lua
+${LUA_LDIR}/syscall/linux/x64/nr.lua
+${LUA_LDIR}/syscall/linux/x86/constants.lua
+${LUA_LDIR}/syscall/linux/x86/ffi.lua
+${LUA_LDIR}/syscall/linux/x86/ioctl.lua
+${LUA_LDIR}/syscall/linux/x86/nr.lua
+${LUA_LDIR}/syscall/methods.lua
+${LUA_LDIR}/syscall/netbsd/c.lua
+${LUA_LDIR}/syscall/netbsd/constants.lua
+${LUA_LDIR}/syscall/netbsd/errors.lua
+${LUA_LDIR}/syscall/netbsd/fcntl.lua
+${LUA_LDIR}/syscall/netbsd/ffifunctions.lua
+${LUA_LDIR}/syscall/netbsd/ffitypes.lua
+${LUA_LDIR}/syscall/netbsd/init.lua
+${LUA_LDIR}/syscall/netbsd/ioctl.lua
+${LUA_LDIR}/syscall/netbsd/nr.lua
+${LUA_LDIR}/syscall/netbsd/syscalls.lua
+${LUA_LDIR}/syscall/netbsd/sysctl.lua
+${LUA_LDIR}/syscall/netbsd/types.lua
+${LUA_LDIR}/syscall/netbsd/util.lua
+${LUA_LDIR}/syscall/netbsd/version.lua
+${LUA_LDIR}/syscall/openbsd/c.lua
+${LUA_LDIR}/syscall/openbsd/constants.lua
+${LUA_LDIR}/syscall/openbsd/errors.lua
+${LUA_LDIR}/syscall/openbsd/fcntl.lua
+${LUA_LDIR}/syscall/openbsd/ffi.lua
+${LUA_LDIR}/syscall/openbsd/ioctl.lua
+${LUA_LDIR}/syscall/openbsd/syscalls.lua
+${LUA_LDIR}/syscall/openbsd/sysctl.lua
+${LUA_LDIR}/syscall/openbsd/types.lua
+${LUA_LDIR}/syscall/openbsd/util.lua
+${LUA_LDIR}/syscall/openbsd/version.lua
+${LUA_LDIR}/syscall/osx/c.lua
+${LUA_LDIR}/syscall/osx/constants.lua
+${LUA_LDIR}/syscall/osx/errors.lua
+${LUA_LDIR}/syscall/osx/fcntl.lua
+${LUA_LDIR}/syscall/osx/ffi.lua
+${LUA_LDIR}/syscall/osx/ioctl.lua
+${LUA_LDIR}/syscall/osx/syscalls.lua
+${LUA_LDIR}/syscall/osx/sysctl.lua
+${LUA_LDIR}/syscall/osx/types.lua
+${LUA_LDIR}/syscall/osx/util.lua
+${LUA_LDIR}/syscall/rump/c.lua
+${LUA_LDIR}/syscall/rump/ffirump.lua
+${LUA_LDIR}/syscall/rump/init.lua
+${LUA_LDIR}/syscall/shared/types.lua
+${LUA_LDIR}/syscall/syscalls.lua
+${LUA_LDIR}/syscall/types.lua
+${LUA_LDIR}/syscall/util.lua
diff -r 751ca43a80d5 -r 6989683c9b35 devel/lua-ljsyscall/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-ljsyscall/distinfo Fri Apr 03 20:20:54 2015 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2015/04/03 20:20:54 alnsn Exp $
+
+SHA1 (ljsyscall-0.10.tar.gz) = 8d1f0b2b7843c1b102f5685254f9b9b8c439e078
+RMD160 (ljsyscall-0.10.tar.gz) = c1768cd8c49b2e927f66fccabd1003b559cbb765
+Size (ljsyscall-0.10.tar.gz) = 301763 bytes
Home |
Main Index |
Thread Index |
Old Index