Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Sep 2018 18:35:25 +0000 (UTC)
From:      "George V. Neville-Neil" <gnn@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478889 - in head/comms/libbtbb: . files
Message-ID:  <201809031835.w83IZPPN007055@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gnn
Date: Mon Sep  3 18:35:25 2018
New Revision: 478889
URL: https://svnweb.freebsd.org/changeset/ports/478889

Log:
  Bluetooth Baseband Library for use by Ubertooth and others

Added:
  head/comms/libbtbb/
  head/comms/libbtbb/Makefile   (contents, props changed)
  head/comms/libbtbb/distinfo   (contents, props changed)
  head/comms/libbtbb/files/
  head/comms/libbtbb/files/patch-lib_src_pcap-common.h   (contents, props changed)
  head/comms/libbtbb/files/patch-lib_src_pcap.c   (contents, props changed)
  head/comms/libbtbb/pkg-descr   (contents, props changed)
  head/comms/libbtbb/pkg-plist   (contents, props changed)

Added: head/comms/libbtbb/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/libbtbb/Makefile	Mon Sep  3 18:35:25 2018	(r478889)
@@ -0,0 +1,24 @@
+# Created by: George V. Neville-Neil <gnn@freebsd.org>
+# $FreeBSD$
+
+PORTNAME=	libbtbb
+PORTVERSION=	201808R1
+CATEGORIES=	comms
+
+MAINTAINER=	gnn@FreeBSD.org
+COMMENT=	Bluetooth Baseband Library
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	python27:lang/python27 \
+		pyside-py27:devel/pyside \
+		${PYNUMPY}
+
+USES=		cmake:outsource
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	greatscottgadgets
+GH_TAGNAME=	2018-08-R1
+
+.include <bsd.port.mk>

Added: head/comms/libbtbb/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/libbtbb/distinfo	Mon Sep  3 18:35:25 2018	(r478889)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1535998569
+SHA256 (greatscottgadgets-libbtbb-201808R1-2018-08-R1_GH0.tar.gz) = 86c5f0c432ae36fd4e69be20e6422ef408c71b2fd2f536786a9cb726c1c28ef0
+SIZE (greatscottgadgets-libbtbb-201808R1-2018-08-R1_GH0.tar.gz) = 310542

Added: head/comms/libbtbb/files/patch-lib_src_pcap-common.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/libbtbb/files/patch-lib_src_pcap-common.h	Mon Sep  3 18:35:25 2018	(r478889)
@@ -0,0 +1,11 @@
+--- lib/src/pcap-common.h.orig	2018-09-03 16:11:15 UTC
++++ lib/src/pcap-common.h
+@@ -37,7 +37,7 @@
+ #define htole16 EndianU16_NtoL
+ #define htole32 EndianU32_NtoL
+ #else
+-#include <endian.h>
++#include <sys/endian.h>
+ #endif
+ 
+ #if !defined( htole16 ) /* will be defined under Linux when endian.h already included */

Added: head/comms/libbtbb/files/patch-lib_src_pcap.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/libbtbb/files/patch-lib_src_pcap.c	Mon Sep  3 18:35:25 2018	(r478889)
@@ -0,0 +1,38 @@
+--- lib/src/pcap.c.orig	2018-09-03 16:11:24 UTC
++++ lib/src/pcap.c
+@@ -110,7 +110,7 @@ typedef struct {
+ 	pcap_bluetooth_bredr_bb_header bredr_bb_header;
+ } pcap_bredr_packet;
+ 
+-void btbb_pcap_dump(FILE *file, pcaprec_hdr_t *pcap_header, u_char *data) {
++void btbb_pcap_dump(FILE *file, pcaprec_hdr_t *pcap_header, char *data) {
+ 	fwrite(pcap_header, sizeof(*pcap_header), 1, file);
+ 	fwrite(data, pcap_header->incl_len, 1, file);
+ 	fflush(file);
+@@ -202,7 +202,7 @@ btbb_pcap_append_packet(btbb_pcap_handle * h, const ui
+ 					      btbb_packet_get_header_packed(pkt),
+ 					      flags,
+ 					      payload_bytes );
+-		btbb_pcap_dump(h->pcap_file, &pcap_pkt.pcap_header, (u_char *)&pcap_pkt.bredr_bb_header);
++		btbb_pcap_dump(h->pcap_file, &pcap_pkt.pcap_header, (char *)&pcap_pkt.bredr_bb_header);
+ 		return 0;
+ 	}
+ 	return -PCAP_INVALID_HANDLE;
+@@ -331,7 +331,7 @@ lell_pcap_append_packet(lell_pcap_handle * h, const ui
+ 					   refAA,
+ 					   flags,
+ 					   &pkt->symbols[0] );
+-		btbb_pcap_dump(h->pcap_file, &pcap_pkt.pcap_header, (u_char *)&pcap_pkt.le_ll_header);
++		btbb_pcap_dump(h->pcap_file, &pcap_pkt.pcap_header, (char *)&pcap_pkt.le_ll_header);
+ 		return 0;
+ 	}
+ 	return -PCAP_INVALID_HANDLE;
+@@ -410,7 +410,7 @@ lell_pcap_append_ppi_packet(lell_pcap_handle * h, cons
+ 		pcap_pkt.le_ll_ppi_header.rssi_avg = rssi_avg;
+ 		pcap_pkt.le_ll_ppi_header.rssi_count = rssi_count;
+ 		(void) memcpy( &pcap_pkt.le_packet[0], &pkt->symbols[0], incl_len);
+-		btbb_pcap_dump(h->pcap_file, &pcap_pkt.pcap_header, (u_char *)&pcap_pkt.ppi_packet_header);
++		btbb_pcap_dump(h->pcap_file, &pcap_pkt.pcap_header, (char *)&pcap_pkt.ppi_packet_header);
+ 		return 0;
+ 	}
+ 	return -PCAP_INVALID_HANDLE;

Added: head/comms/libbtbb/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/libbtbb/pkg-descr	Mon Sep  3 18:35:25 2018	(r478889)
@@ -0,0 +1,5 @@
+ A Bluetooth baseband decoding library
+
+This is a Bluetooth baseband decoding library. It can be used to
+extract Bluetooth packet and piconet information from Ubertooth
+devices as well as GR-Bluetooth/USRP.

Added: head/comms/libbtbb/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/libbtbb/pkg-plist	Mon Sep  3 18:35:25 2018	(r478889)
@@ -0,0 +1,6 @@
+bin/btaptap
+include/btbb.h
+lib/libbtbb.so
+lib/libbtbb.so.1
+lib/libbtbb.so.1.0
+libdata/pkgconfig/libbtbb.pc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809031835.w83IZPPN007055>