mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
37 lines
1.4 KiB
Tcl
37 lines
1.4 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
||
|
||
PortSystem 1.0
|
||
PortGroup github 1.0
|
||
PortGroup legacysupport 1.1
|
||
|
||
github.setup emikulic darkstat 3.0.721
|
||
revision 0
|
||
categories net
|
||
license GPL-2
|
||
maintainers nomaintainer
|
||
description network traffic analyzer
|
||
long_description \
|
||
darkstat is a network traffic analyzer. It's basically a packet \
|
||
sniffer which runs as a background process on a cable/DSL router and \
|
||
gathers all sorts of useless but interesting statistics.
|
||
|
||
homepage https://unix4lyfe.org/darkstat
|
||
|
||
checksums rmd160 2819b8d711dfaf08302b693d444e26d0b0751d09 \
|
||
sha256 0b405a6c011240f577559d84db22684a6349b25067c3a800df12439783c25494 \
|
||
size 104050
|
||
github.tarball_from archive
|
||
|
||
use_autoreconf yes
|
||
|
||
depends_lib-append port:libpcap \
|
||
port:zlib
|
||
|
||
# 10.12 has clock_gettime with clockid_t as an enum
|
||
# error: typedef redefinition with different types ('int' vs 'enum clockid_ t')
|
||
# Since legacysupport is used, this patch needs to be applied for all macOS.
|
||
# Otherwise build fails: error: conflicting types for ‘clockid_t’
|
||
patchfiles patch-now.c.diff
|
||
|
||
configure.cflags-append -include stdint.h
|