Bug 196240

Summary: [NEW PORT] net-mgmt/statsite: C implementation of statsd
Product: Ports & Packages Reporter: Robert Barabas <robert.barabas>
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed FIXED    
Severity: Affects Only Me CC: pi
Priority: --- Keywords: needs-qa, patch
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/armon/statsite
Attachments:
Description Flags
shar file for statsite port none

Description Robert Barabas 2014-12-23 22:13:08 UTC
Created attachment 150926 [details]
shar file for statsite port

C implementation of statsd
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2015-01-13 21:02:43 UTC
Testing @work
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2015-01-13 21:33:43 UTC
fails to build on 8.4 (both amd64 and i386):

gcc -o src/networking.o -c -g -std=c99 -D_GNU_SOURCE -O3 -pthread -Ideps/inih/ -Ideps/libev/ -Isrc/ src/networking.c
In file included from src/networking.c:4:
/usr/include/netinet/tcp.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tcp_seq'
/usr/include/netinet/tcp.h:50: error: expected specifier-qualifier-list before 'u_short'
/usr/include/netinet/tcp.h:180: error: expected specifier-qualifier-list before 'u_int8_t'

any ideas ?
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2015-01-14 05:21:01 UTC
(In reply to Kurt Jaeger from comment #2)
Found a fix.
Comment 4 Kurt Jaeger freebsd_committer freebsd_triage 2015-01-14 05:21:35 UTC
See
https://github.com/armon/statsite/issues/100
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-01-14 05:25:59 UTC
A commit references this bug:

Author: pi
Date: Wed Jan 14 05:25:46 UTC 2015
New revision: 376996
URL: https://svnweb.freebsd.org/changeset/ports/376996

Log:
  New port: net-mgmt/statsite

  Statsite is a metrics aggregation server.

  Statsite is based on Etsy's StatsD, https://github.com/etsy/statsd,
  wire compatible and implemented in C.

  WWW: https://github.com/armon/statsite

  PR:		196240
  Submitted by:	robert.barabas@percona.com

Changes:
  head/net-mgmt/Makefile
  head/net-mgmt/statsite/
  head/net-mgmt/statsite/Makefile
  head/net-mgmt/statsite/distinfo
  head/net-mgmt/statsite/files/
  head/net-mgmt/statsite/files/patch-src_networking.c
  head/net-mgmt/statsite/pkg-descr
Comment 6 Kurt Jaeger freebsd_committer freebsd_triage 2015-01-14 05:30:36 UTC
Committed with changes, thanks!
Comment 7 commit-hook freebsd_committer freebsd_triage 2015-01-14 06:15:02 UTC
A commit references this bug:

Author: pi
Date: Wed Jan 14 06:14:29 UTC 2015
New revision: 376997
URL: https://svnweb.freebsd.org/changeset/ports/376997

Log:
  net-mgmt/statsite: simplify Makefile

  PR:		196240
  Submitted by:	danfe

Changes:
  head/net-mgmt/statsite/Makefile
Comment 8 Robert Barabas 2015-01-14 14:09:41 UTC
Nice catch! I'll submit a PR on github to upstream, that should make the merging of the include fix simple.