# -*- 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.41.4
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            2
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  443b3ce21a2ca67f1135ab7c2916aaf31d73d6d5 \
                    sha256  d49446534644d058761c10fe93b0fd6bd796f09fa7cc0c3203a9208f419d730f

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

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
