Date: Sat, 10 Oct 2020 11:53:46 +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: r551917 - in head/x11: . inputplug inputplug/files Message-ID: <202010101153.09ABrkbu022913@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: 0mp Date: Sat Oct 10 11:53:46 2020 New Revision: 551917 URL: https://svnweb.freebsd.org/changeset/ports/551917 Log: Add x11/inputplug inputplug is a very simple daemon which monitors XInput events and runs arbitrary scripts on hierarchy change events (such as a device being attached, removed, enabled or disabled). For example, inputplug can be used in shell scripts which monitor attachments of keyboards in order to run change keyboard mappings with commands like "setxkbmap -option ctrl:nocaps". WWW: https://github.com/andrewshadura/inputplug Added: head/x11/inputplug/ head/x11/inputplug/Makefile (contents, props changed) head/x11/inputplug/distinfo (contents, props changed) head/x11/inputplug/files/ head/x11/inputplug/files/patch-inputplug.c (contents, props changed) head/x11/inputplug/pkg-descr (contents, props changed) Modified: head/x11/Makefile Modified: head/x11/Makefile ============================================================================== --- head/x11/Makefile Sat Oct 10 11:39:44 2020 (r551916) +++ head/x11/Makefile Sat Oct 10 11:53:46 2020 (r551917) @@ -107,6 +107,7 @@ SUBDIR += idesk SUBDIR += imwheel SUBDIR += innerspace + SUBDIR += inputplug SUBDIR += j4-dmenu-desktop SUBDIR += jgmenu SUBDIR += kanshi Added: head/x11/inputplug/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/inputplug/Makefile Sat Oct 10 11:53:46 2020 (r551917) @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= inputplug +DISTVERSION= 0.3 +CATEGORIES= x11 + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= XInput event monitor daemon + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= mk-configure>=0:devel/mk-configure + +USES= localbase perl5 pkgconfig xorg +USE_GITHUB= yes +GH_ACCOUNT= andrewshadura +USE_PERL5= build +USE_XORG= x11 xcb xi +MAKE_CMD= mkcmake +MAKE_ARGS= MANDIR="${PREFIX}/share/man" + +PLIST_FILES= bin/inputplug \ + share/man/man1/inputplug.1.gz + +.include <bsd.port.mk> Added: head/x11/inputplug/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/inputplug/distinfo Sat Oct 10 11:53:46 2020 (r551917) @@ -0,0 +1,3 @@ +TIMESTAMP = 1602328140 +SHA256 (andrewshadura-inputplug-0.3_GH0.tar.gz) = acac8e3972f3f10f9b6791321d2441e6b54d93d97c2de81e13eb14734a635ef7 +SIZE (andrewshadura-inputplug-0.3_GH0.tar.gz) = 7003 Added: head/x11/inputplug/files/patch-inputplug.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/inputplug/files/patch-inputplug.c Sat Oct 10 11:53:46 2020 (r551917) @@ -0,0 +1,12 @@ +--- inputplug.c.orig 2020-10-10 11:36:14 UTC ++++ inputplug.c +@@ -3,6 +3,9 @@ + #include <assert.h> + #include <unistd.h> + #include <errno.h> ++#if __FreeBSD__ ++#include <signal.h> ++#endif + #include <stdio.h> + #include <stdbool.h> + #include <stdint.h> Added: head/x11/inputplug/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/inputplug/pkg-descr Sat Oct 10 11:53:46 2020 (r551917) @@ -0,0 +1,9 @@ +inputplug is a very simple daemon which monitors XInput events and runs +arbitrary scripts on hierarchy change events (such as a device being attached, +removed, enabled or disabled). + +For example, inputplug can be used in shell scripts which monitor attachments +of keyboards in order to run change keyboard mappings with commands like +"setxkbmap -option ctrl:nocaps". + +WWW: https://github.com/andrewshadura/inputplug
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010101153.09ABrkbu022913>