aboutsummaryrefslogtreecommitdiffstats
path: root/devel/lua-sysctl/Makefile
blob: f2248735edc3edfbf432a3280aef479dd01d74a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $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 <bsd.port.pre.mk>

.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 <bsd.port.post.mk>