Date: Thu, 12 Nov 2020 14:07:06 +0000 (UTC) From: Mateusz Piotrowski <0mp@FreeBSD.org> 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 Message-ID: <202011121407.0ACE76DX054159@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> 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 <config.h> + #endif + +-#include <linux/version.h> ++#include <sys/syslimits.h> + #include <linux/input.h> + + #include <string.h> +@@ -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 "<version undefined>" + #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 <type> <value>\n", +- program_invocation_short_name); ++ getprogname()); + + printf("\n"); + printf("<type> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011121407.0ACE76DX054159>