From owner-svn-ports-head@freebsd.org Mon Sep 3 18:35:27 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D61DFF1691; Mon, 3 Sep 2018 18:35:27 +0000 (UTC) (envelope-from gnn@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CEBF58FC49; Mon, 3 Sep 2018 18:35:26 +0000 (UTC) (envelope-from gnn@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BA7A33EC6; Mon, 3 Sep 2018 18:35:26 +0000 (UTC) (envelope-from gnn@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w83IZQJ4007061; Mon, 3 Sep 2018 18:35:26 GMT (envelope-from gnn@FreeBSD.org) Received: (from gnn@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w83IZPPN007055; Mon, 3 Sep 2018 18:35:25 GMT (envelope-from gnn@FreeBSD.org) Message-Id: <201809031835.w83IZPPN007055@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gnn set sender to gnn@FreeBSD.org using -f From: "George V. Neville-Neil" Date: Mon, 3 Sep 2018 18:35:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478889 - in head/comms/libbtbb: . files X-SVN-Group: ports-head X-SVN-Commit-Author: gnn X-SVN-Commit-Paths: in head/comms/libbtbb: . files X-SVN-Commit-Revision: 478889 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2018 18:35:27 -0000 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 +# $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 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 ++#include + #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