Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2017 15:53:19 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r456730 - in head/sysutils: . usbtop usbtop/files
Message-ID:  <201712191553.vBJFrJJG084508@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Tue Dec 19 15:53:19 2017
New Revision: 456730
URL: https://svnweb.freebsd.org/changeset/ports/456730

Log:
  New port: sysutils/usbtop: Utility that shows an estimated instantaneous USB bandwidth
  
  Approved by:	adamw (mentor)
  Differential Revision:	https://reviews.freebsd.org/D13525

Added:
  head/sysutils/usbtop/
  head/sysutils/usbtop/Makefile   (contents, props changed)
  head/sysutils/usbtop/distinfo   (contents, props changed)
  head/sysutils/usbtop/files/
  head/sysutils/usbtop/files/patch-CMakeLists.txt   (contents, props changed)
  head/sysutils/usbtop/files/patch-src_CMakeLists.txt   (contents, props changed)
  head/sysutils/usbtop/files/patch-src_buses.cpp   (contents, props changed)
  head/sysutils/usbtop/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Tue Dec 19 15:49:45 2017	(r456729)
+++ head/sysutils/Makefile	Tue Dec 19 15:53:19 2017	(r456730)
@@ -1256,6 +1256,7 @@
     SUBDIR += usb_modeswitch
     SUBDIR += usbhid-dump
     SUBDIR += usbhotkey
+    SUBDIR += usbtop
     SUBDIR += usbutils
     SUBDIR += uschedule
     SUBDIR += userinfo

Added: head/sysutils/usbtop/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/usbtop/Makefile	Tue Dec 19 15:53:19 2017	(r456730)
@@ -0,0 +1,23 @@
+# Created by: Yuri Victorovich <yuri@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	usbtop
+DISTVERSIONPREFIX=	release-
+DISTVERSION=	0.2
+CATEGORIES=	sysutils
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Utility that shows an estimated instantaneous USB bandwidth
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libboost_system.so:devel/boost-libs
+
+USES=		cmake:outsource
+USE_GITHUB=	yes
+GH_ACCOUNT=	aguinet
+
+PLIST_FILES=	sbin/usbtop
+
+.include <bsd.port.mk>

Added: head/sysutils/usbtop/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/usbtop/distinfo	Tue Dec 19 15:53:19 2017	(r456730)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1513559500
+SHA256 (aguinet-usbtop-release-0.2_GH0.tar.gz) = 6283454ccbfecab44276344b6bc1bf74e86808fb9f539ca63eb0447d7741487e
+SIZE (aguinet-usbtop-release-0.2_GH0.tar.gz) = 10828

Added: head/sysutils/usbtop/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/usbtop/files/patch-CMakeLists.txt	Tue Dec 19 15:53:19 2017	(r456730)
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2017-12-17 21:14:26 UTC
++++ CMakeLists.txt
+@@ -16,6 +16,6 @@ find_package(Boost COMPONENTS thread sys
+ 
+ ##
+ 
+-include_directories(include)
++include_directories(include ${PCAP_INCLUDE_DIR} ${Boost_INCLUDE_DIR})
+ 
+ add_subdirectory(src)

Added: head/sysutils/usbtop/files/patch-src_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/usbtop/files/patch-src_CMakeLists.txt	Tue Dec 19 15:53:19 2017	(r456730)
@@ -0,0 +1,11 @@
+--- src/CMakeLists.txt.orig	2017-12-17 21:14:26 UTC
++++ src/CMakeLists.txt
+@@ -4,7 +4,7 @@ add_definitions("-std=c++0x -Wall -D_GNU
+ IF(CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]")
+ 	add_definitions("-g")
+ else()
+-	add_definitions("-O3")
++	add_definitions("")
+ endif()
+ 
+ set(SRC_FILES

Added: head/sysutils/usbtop/files/patch-src_buses.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/usbtop/files/patch-src_buses.cpp	Tue Dec 19 15:53:19 2017	(r456730)
@@ -0,0 +1,14 @@
+--- src/buses.cpp.orig	2017-12-17 21:14:26 UTC
++++ src/buses.cpp
+@@ -38,7 +38,11 @@
+ 
+ #include <tuple>
+ 
++#if defined(__FreeBSD__)
++#define USB_DEVICE_START "usbus"
++#else
+ #define USB_DEVICE_START "usbmon"
++#endif
+ 
+ static size_t g_len_usb_dev_start = 5; // strlen(USB_DEVICE_START
+ 

Added: head/sysutils/usbtop/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/usbtop/pkg-descr	Tue Dec 19 15:53:19 2017	(r456730)
@@ -0,0 +1,6 @@
+usbtop is a top-like utility that shows an estimated instantaneous bandwidth
+on USB buses and devices.
+
+It uses pcap(3) to capture USB traffic data, which in turn relies on /dev/bpf*.
+
+WWW: https://github.com/aguinet/usbtop



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