View | Details | Raw Unified | Return to bug 267117
Collapse All | Expand All

(-)b/x11/evtest/Makefile (-3 / +5 lines)
Lines 1-8 Link Here
1
PORTNAME=	evtest
1
PORTNAME=	evtest
2
DISTVERSIONPREFIX=	${PORTNAME}-
2
DISTVERSION=	1.35
3
DISTVERSION=	1.34
4
CATEGORIES=	x11
3
CATEGORIES=	x11
5
MASTER_SITES=	https://gitlab.freedesktop.org/libevdev/${PORTNAME}/-/archive/${PORTNAME}-${DISTVERSION}/
6
4
7
MAINTAINER=	0mp@FreeBSD.org
5
MAINTAINER=	0mp@FreeBSD.org
8
COMMENT=	Input device event monitor and query tool
6
COMMENT=	Input device event monitor and query tool
Lines 16-21 LIB_DEPENDS= libevdev.so:devel/libevdev Link Here
16
14
17
USES=		autoreconf localbase
15
USES=		autoreconf localbase
18
GNU_CONFIGURE=	yes
16
GNU_CONFIGURE=	yes
17
USE_GITLAB=	yes
18
GL_SITE=	https://gitlab.freedesktop.org/
19
GL_ACCOUNT=	libevdev
20
GL_COMMIT=	da347a8f88d2e5729dd12d61ee9743f902065b55
19
21
20
CFLAGS+=	-DPACKAGE_VERSION=${PKGVERSION}
22
CFLAGS+=	-DPACKAGE_VERSION=${PKGVERSION}
21
23
(-)b/x11/evtest/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1605183618
1
TIMESTAMP = 1665907568
2
SHA256 (evtest-evtest-1.34.tar.gz) = 0e7a2eeff380af796e5e9b21b6f48fd706c58c931162c151c2c1074bdfeb85c6
2
SHA256 (libevdev-evtest-da347a8f88d2e5729dd12d61ee9743f902065b55_GL0.tar.gz) = 40539cec08d54a6c43a0b5d753f98066e03fceb21e424c31810823af47a642b7
3
SIZE (evtest-evtest-1.34.tar.gz) = 19954
3
SIZE (libevdev-evtest-da347a8f88d2e5729dd12d61ee9743f902065b55_GL0.tar.gz) = 20768
(-)a/x11/evtest/files/patch-evtest.c (-44 lines)
Removed Link Here
1
--- evtest.c.orig	2019-08-02 18:14:30 UTC
2
+++ evtest.c
3
@@ -43,7 +43,7 @@
4
 #include <config.h>
5
 #endif
6
 
7
-#include <linux/version.h>
8
+#include <sys/syslimits.h>
9
 #include <linux/input.h>
10
 
11
 #include <string.h>
12
@@ -875,7 +875,7 @@ static char* scan_devices(void)
13
 	char *filename;
14
 	int max_device = 0;
15
 
16
-	ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, versionsort);
17
+	ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, alphasort);
18
 	if (ndev <= 0)
19
 		return NULL;
20
 
21
@@ -923,7 +923,7 @@ static int version(void)
22
 #ifndef PACKAGE_VERSION
23
 #define PACKAGE_VERSION "<version undefined>"
24
 #endif
25
-	printf("%s %s\n", program_invocation_short_name, PACKAGE_VERSION);
26
+	printf("%s %s\n", getprogname(), PACKAGE_VERSION);
27
 	return EXIT_SUCCESS;
28
 }
29
 
30
@@ -935,12 +935,12 @@ static int usage(void)
31
 {
32
 	printf("USAGE:\n");
33
 	printf(" Capture mode:\n");
34
-	printf("   %s [--grab] /dev/input/eventX\n", program_invocation_short_name);
35
+	printf("   %s [--grab] /dev/input/eventX\n", getprogname());
36
 	printf("     --grab  grab the device for exclusive access\n");
37
 	printf("\n");
38
 	printf(" Query mode: (check exit code)\n");
39
 	printf("   %s --query /dev/input/eventX <type> <value>\n",
40
-		program_invocation_short_name);
41
+		getprogname());
42
 
43
 	printf("\n");
44
 	printf("<type> is one of: EV_KEY, EV_SW, EV_LED, EV_SND\n");

Return to bug 267117