package = 'luasyslog'
version = '2.0.3-1'
description = {
    summary = 'syslog appender for LuaLogging',
    detailed = [[
        Add-on for LuaLogging that provides a new appender based on
        the syslog infrastructure presents on most UNIX system.
        Run `man 3 syslog' for technical details.
    ]],
    license = 'MIT/X11',
    homepage = 'https://github.com/ntd/luasyslog/',
    maintainer = 'Nicola Fontana <ntd@entidi.it>'
}
dependencies = {
    'lua >= 5.2',
    'lualogging >= 1.3.0',
}
source = {
    url = 'git://github.com/ntd/luasyslog',
    tag = '2.0.3'
}
build = {
    type = 'command',
    -- Actually the rock is built directly from a git checkout,
    -- so we must run ./autogen.sh before
    build_command = [[
	./autogen.sh &&
	./configure --prefix=$(PREFIX) \
	    --libdir=$(LIBDIR) --datadir=$(LUADIR) \
	    LUA=$(LUA) CPPFLAGS=-I$(LUA_INCDIR) &&
	make]],
    install_command = 'make install'
}
