From owner-svn-ports-head@freebsd.org Tue Dec 19 15:53:21 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 673D4E8BB74; Tue, 19 Dec 2017 15:53:21 +0000 (UTC) (envelope-from yuri@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 mx1.freebsd.org (Postfix) with ESMTPS id 287BB7E5CD; Tue, 19 Dec 2017 15:53:21 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBJFrKtA084515; Tue, 19 Dec 2017 15:53:20 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBJFrJJG084508; Tue, 19 Dec 2017 15:53:19 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201712191553.vBJFrJJG084508@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 19 Dec 2017 15:53:19 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/sysutils: . usbtop usbtop/files X-SVN-Commit-Revision: 456730 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.25 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: Tue, 19 Dec 2017 15:53:21 -0000 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 +# $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 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 + ++#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