aboutsummaryrefslogtreecommitdiff
path: root/x11/inputplug/Makefile
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2020-10-10 11:53:46 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2020-10-10 11:53:46 +0000
commit1f9979e09ed41bb2f02c1b735f44a99d15f0131a (patch)
treed4925d1868616c887d7cb7ec50d126e322029592 /x11/inputplug/Makefile
parent65f41e9981cd9f95133b36087b17441f051e41e5 (diff)
downloadports-1f9979e09ed41bb2f02c1b735f44a99d15f0131a.tar.gz
ports-1f9979e09ed41bb2f02c1b735f44a99d15f0131a.zip
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
Notes
Notes: svn path=/head/; revision=551917
Diffstat (limited to 'x11/inputplug/Makefile')
-rw-r--r--x11/inputplug/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/inputplug/Makefile b/x11/inputplug/Makefile
new file mode 100644
index 000000000000..e8791764ab9e
--- /dev/null
+++ b/x11/inputplug/Makefile
@@ -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>