From owner-svn-ports-head@freebsd.org Thu Nov 12 14:07:07 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 76EF32EB68D; Thu, 12 Nov 2020 14:07:07 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CX3Lz30Jzz3rQm; Thu, 12 Nov 2020 14:07:07 +0000 (UTC) (envelope-from 0mp@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 59B7827A22; Thu, 12 Nov 2020 14:07:07 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0ACE77rc054169; Thu, 12 Nov 2020 14:07:07 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0ACE76DX054159; Thu, 12 Nov 2020 14:07:06 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <202011121407.0ACE76DX054159@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Thu, 12 Nov 2020 14:07:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r554961 - in head/x11: . evtest evtest/files X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/x11: . evtest evtest/files X-SVN-Commit-Revision: 554961 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.34 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: Thu, 12 Nov 2020 14:07:07 -0000 Author: 0mp Date: Thu Nov 12 14:07:06 2020 New Revision: 554961 URL: https://svnweb.freebsd.org/changeset/ports/554961 Log: Add x11/evtest evtest is a tool to print evdev kernel events. It reads directly from the kernel device and prints a device description and the events with the value and the symbolic name. WWW: https://gitlab.freedesktop.org/libevdev/evtest Differential Revision: https://reviews.freebsd.org/D27190 Added: head/x11/evtest/ head/x11/evtest/Makefile (contents, props changed) head/x11/evtest/distinfo (contents, props changed) head/x11/evtest/files/ head/x11/evtest/files/patch-evtest.c (contents, props changed) head/x11/evtest/pkg-descr (contents, props changed) Modified: head/x11/Makefile Modified: head/x11/Makefile ============================================================================== --- head/x11/Makefile Thu Nov 12 14:00:46 2020 (r554960) +++ head/x11/Makefile Thu Nov 12 14:07:06 2020 (r554961) @@ -60,6 +60,7 @@ SUBDIR += erun SUBDIR += eterm SUBDIR += evilvte + SUBDIR += evtest SUBDIR += fbdesk SUBDIR += fbpanel SUBDIR += find-cursor Added: head/x11/evtest/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/evtest/Makefile Thu Nov 12 14:07:06 2020 (r554961) @@ -0,0 +1,32 @@ +# $FreeBSD$ + +PORTNAME= evtest +DISTVERSIONPREFIX= ${PORTNAME}- +DISTVERSION= 1.34 +CATEGORIES= x11 +MASTER_SITES= https://gitlab.freedesktop.org/libevdev/${PORTNAME}/-/archive/${PORTNAME}-${DISTVERSION}/ + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Input device event monitor and query tool + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto +LIB_DEPENDS= libevdev.so:devel/libevdev + +USES= autoreconf localbase +GNU_CONFIGURE= yes + +CFLAGS+= -DPACKAGE_VERSION=${PKGVERSION} + +PLIST_FILES= bin/evtest + +OPTIONS_DEFINE= MANPAGES +OPTIONS_DEFAULT= MANPAGES + +MANPAGES_BUILD_DEPENDS= asciidoc:textproc/asciidoc \ + xmlto:textproc/xmlto +MANPAGES_PLIST_FILES= man/man1/evtest.1.gz + +.include Added: head/x11/evtest/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/evtest/distinfo Thu Nov 12 14:07:06 2020 (r554961) @@ -0,0 +1,3 @@ +TIMESTAMP = 1605183618 +SHA256 (evtest-evtest-1.34.tar.gz) = 0e7a2eeff380af796e5e9b21b6f48fd706c58c931162c151c2c1074bdfeb85c6 +SIZE (evtest-evtest-1.34.tar.gz) = 19954 Added: head/x11/evtest/files/patch-evtest.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/evtest/files/patch-evtest.c Thu Nov 12 14:07:06 2020 (r554961) @@ -0,0 +1,44 @@ +--- evtest.c.orig 2019-08-02 18:14:30 UTC ++++ evtest.c +@@ -43,7 +43,7 @@ + #include + #endif + +-#include ++#include + #include + + #include +@@ -875,7 +875,7 @@ static char* scan_devices(void) + char *filename; + int max_device = 0; + +- ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, versionsort); ++ ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, alphasort); + if (ndev <= 0) + return NULL; + +@@ -923,7 +923,7 @@ static int version(void) + #ifndef PACKAGE_VERSION + #define PACKAGE_VERSION "" + #endif +- printf("%s %s\n", program_invocation_short_name, PACKAGE_VERSION); ++ printf("%s %s\n", getprogname(), PACKAGE_VERSION); + return EXIT_SUCCESS; + } + +@@ -935,12 +935,12 @@ static int usage(void) + { + printf("USAGE:\n"); + printf(" Capture mode:\n"); +- printf(" %s [--grab] /dev/input/eventX\n", program_invocation_short_name); ++ printf(" %s [--grab] /dev/input/eventX\n", getprogname()); + printf(" --grab grab the device for exclusive access\n"); + printf("\n"); + printf(" Query mode: (check exit code)\n"); + printf(" %s --query /dev/input/eventX \n", +- program_invocation_short_name); ++ getprogname()); + + printf("\n"); + printf(" is one of: EV_KEY, EV_SW, EV_LED, EV_SND\n"); Added: head/x11/evtest/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/evtest/pkg-descr Thu Nov 12 14:07:06 2020 (r554961) @@ -0,0 +1,5 @@ +evtest is a tool to print evdev kernel events. It reads directly from the +kernel device and prints a device description and the events with the value +and the symbolic name. + +WWW: https://gitlab.freedesktop.org/libevdev/evtest