# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.0

github.setup        draios sysdig 0.13.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1
maintainers         nomaintainer
categories          sysutils
description         ${name} is an open source system-level exploration and troubleshooting tool.
long_description    Sysdig captures system calls and other system level events \
                    using a linux kernel facility called tracepoints, which \
                    means much less overhead than strace. It then "packetizes" \
                    this information, so that you can save it into trace files \
                    and filter it, a bit like you would do with tcpdump. This \
                    makes it very flexible to explore what processes are doing. \
                    Sysdig is also packed with a set of scripts that make it \
                    easier to extract useful information and do troubleshooting. \
                    \n\nNOTE: currently only the Linux version of sysdig is capable \
                    of capturing events and doing live analysis. On the other \
                    platforms, you will be limited to working with the trace \
                    files generated by a Linux installation of sysdig.
license             GPL-2
homepage            http://www.sysdig.org

checksums           rmd160  539aa8ca92577335a52aa325b5a5b1d5d022766a \
                    sha256  3f88be31d05f364a04873a8a0d78767169248fc0a97b04801482786bf3d33bc7

depends_lib-append  path:lib/libluajit-5.1.2.dylib:luajit \
                    port:zlib \
                    port:jsoncpp \
                    port:ncurses

patchfiles          patch-force_luajit_headers.diff

configure.args-append \
                    -DUSE_BUNDLED_LUAJIT=OFF \
                    -DUSE_BUNDLED_JSONCPP=OFF \
                    -DUSE_BUNDLED_ZLIB=OFF \
                    -DUSE_BUNDLED_NCURSES=OFF

# we are building out-of-source
cmake.out_of_source yes
