BSD Ports

devel/lua-ljsyscall 0.12 NetBSD

LuaJIT syscall FFI for the Linux, NetBSD, FreeBSD and OSX kernels

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
77f34752f1
License
mit
Categories
devel, lua
Package size
147.6 KiB, 842.8 KiB installed

Description

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.

Install

Binary package:

pkgin install lua51-ljsyscall

From pkgsrc:

cd /usr/pkgsrc/devel/lua-ljsyscall && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.12
NetBSD 10.1 aarch640.12
SmartOS / illumos x86_640.12
macOS 15 arm640.12

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
lua52-ljsyscall-0.12, lua53-ljsyscall-0.12, lua54-ljsyscall-0.12, lua55-ljsyscall-0.12

Commit history 1

DateCommitCreditsLog message
77f34752f1 wiz lua-ljsyscall: remove TODO
one entry done, make test target still missing