# $FreeBSD$ PORTNAME= lua-sysctl PORTVERSION= 0.2 CATEGORIES= devel MASTER_SITES= http://files.kaworu.ch/ MAINTAINER= garga@FreeBSD.org COMMENT= A small sysctl(3) interface for lua USE_LUA= yes PLIST_FILES= %%LUA_MODSHAREDIR%%/sysctl.lua \ %%LUA_MODLIBDIR%%/sysctl/core.so PLIST_DIRS= %%LUA_MODLIBDIR%%/sysctl .include .if ${OSVERSION} >= 900030 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__lua_sysctl.c .endif do-install: ${MKDIR} ${LUA_MODLIBDIR}/sysctl ${INSTALL_SCRIPT} ${WRKSRC}/sysctl.lua ${LUA_MODSHAREDIR}/sysctl.lua ${INSTALL_SCRIPT} ${WRKSRC}/sysctl/core.so ${LUA_MODLIBDIR}/sysctl/core.so .include