svn commit: r380470 - in head/comms: . dump1090 dump1090/files

Steven Kreuzer skreuzer at FreeBSD.org
Thu Mar 5 02:32:10 UTC 2015


Author: skreuzer
Date: Thu Mar  5 02:32:08 2015
New Revision: 380470
URL: https://svnweb.freebsd.org/changeset/ports/380470
QAT: https://qat.redports.org/buildarchive/r380470/

Log:
  Dump 1090 is a Mode S decoder specifically designed for RTLSDR devices.
  
  The main features are:
  
  * Robust decoding of weak messages.
  * Network support: TCP30003 stream (MSG5...), Raw packets, HTTP.
  * Embedded HTTP server that displays the currently detected aircrafts on
    Google Map.
  * Single bit errors correction using the 24 bit CRC.
  * Ability to decode DF11, DF17 messages.
  * Ability to decode DF formats like DF0, DF4, DF5, DF16, DF20 and DF21 where the
    checksum is xored with the ICAO address by brute forcing the checksum field
    using recently seen ICAO addresses.
  * Decode raw IQ samples from file (using --ifile command line switch).
  * Interactive command-line-interfae mode where aircrafts currently detected are
    shown as a list refreshing as more data arrives.
  * CPR coordinates decoding and track calculation from velocity.
  * TCP server streaming and receiving raw data to/from connected clients.
  
  WWW: https://github.com/antirez/dump1090

Added:
  head/comms/dump1090/
  head/comms/dump1090/Makefile   (contents, props changed)
  head/comms/dump1090/distinfo   (contents, props changed)
  head/comms/dump1090/files/
  head/comms/dump1090/files/patch-Makefile   (contents, props changed)
  head/comms/dump1090/pkg-descr   (contents, props changed)
Modified:
  head/comms/Makefile

Modified: head/comms/Makefile
==============================================================================
--- head/comms/Makefile	Thu Mar  5 01:46:30 2015	(r380469)
+++ head/comms/Makefile	Thu Mar  5 02:32:08 2015	(r380470)
@@ -32,6 +32,7 @@
     SUBDIR += deforaos-phone
     SUBDIR += dfu-programmer
     SUBDIR += dfu-util
+    SUBDIR += dump1090
     SUBDIR += ebook2cw
     SUBDIR += ebook2cwgui
     SUBDIR += echolinux

Added: head/comms/dump1090/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/dump1090/Makefile	Thu Mar  5 02:32:08 2015	(r380470)
@@ -0,0 +1,36 @@
+# Created by: Steven Kreuzer <skreuzer at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	dump1090
+PORTVERSION=	20150225
+CATEGORIES=	comms
+
+MAINTAINER=	skreuzer at FreeBSD.org
+COMMENT=	Simple Mode S decoder for RTLSDR devices
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	antirez
+GH_COMMIT=	4c53e25
+GH_TAGNAME=	4c53e251439f42135fc80fe000174f7accdb048c
+
+LICENSE=	BSD3CLAUSE
+
+LIB_DEPENDS=	librtlsdr.so:${PORTSDIR}/comms/rtl-sdr
+
+USES=	gmake
+
+CFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib -lrtlsdr -lusb -lpthread -lm
+
+PLIST_FILES=	bin/dump1090 \
+		${DATADIR}/gmap.html
+
+post-patch:
+	@${REINPLACE_CMD} -e "s|gmap.html|${DATADIR}/gmap.html|" ${WRKSRC}/dump1090.c
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/gmap.html ${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>

Added: head/comms/dump1090/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/dump1090/distinfo	Thu Mar  5 02:32:08 2015	(r380470)
@@ -0,0 +1,2 @@
+SHA256 (dump1090-20150225.tar.gz) = a9d7b9eaf439815f22f62e770a315114afdbb1301ca70cb59de11e06dbdd6e07
+SIZE (dump1090-20150225.tar.gz) = 484418

Added: head/comms/dump1090/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/dump1090/files/patch-Makefile	Thu Mar  5 02:32:08 2015	(r380470)
@@ -0,0 +1,21 @@
+--- Makefile.orig	2015-03-03 21:04:48 UTC
++++ Makefile
+@@ -1,6 +1,6 @@
+-CFLAGS=-O2 -g -Wall -W `pkg-config --cflags librtlsdr`
+-LIBS=`pkg-config --libs librtlsdr` -lpthread -lm
+-CC=gcc
++CFLAGS?=-O2 -g -Wall -W `pkg-config --cflags librtlsdr`
++LDFLAGS?=`pkg-config --libs librtlsdr` -lpthread -lm
++CC?=gcc
+ PROGNAME=dump1090
+ 
+ all: dump1090
+@@ -9,7 +9,7 @@ all: dump1090
+ 	$(CC) $(CFLAGS) -c $<
+ 
+ dump1090: dump1090.o anet.o
+-	$(CC) -g -o dump1090 dump1090.o anet.o $(LIBS)
++	$(CC) -g -o dump1090 dump1090.o anet.o $(LDFLAGS)
+ 
+ clean:
+ 	rm -f *.o dump1090

Added: head/comms/dump1090/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/dump1090/pkg-descr	Thu Mar  5 02:32:08 2015	(r380470)
@@ -0,0 +1,20 @@
+Dump 1090 is a Mode S decoder specifically designed for RTLSDR devices.
+
+The main features are:
+
+* Robust decoding of weak messages.
+* Network support: TCP30003 stream (MSG5...), Raw packets, HTTP.
+* Embedded HTTP server that displays the currently detected aircrafts on
+  Google Map.
+* Single bit errors correction using the 24 bit CRC.
+* Ability to decode DF11, DF17 messages.
+* Ability to decode DF formats like DF0, DF4, DF5, DF16, DF20 and DF21 where the
+  checksum is xored with the ICAO address by brute forcing the checksum field
+  using recently seen ICAO addresses.
+* Decode raw IQ samples from file (using --ifile command line switch).
+* Interactive command-line-interfae mode where aircrafts currently detected are
+  shown as a list refreshing as more data arrives.
+* CPR coordinates decoding and track calculation from velocity.
+* TCP server streaming and receiving raw data to/from connected clients.
+
+WWW: https://github.com/antirez/dump1090


More information about the svn-ports-head mailing list