svn commit: r455871 - in head/sysutils/solaar: . files
Tobias Kortkamp
tobik at FreeBSD.org
Sat Dec 9 19:05:05 UTC 2017
Author: tobik
Date: Sat Dec 9 19:05:03 2017
New Revision: 455871
URL: https://svnweb.freebsd.org/changeset/ports/455871
Log:
sysutils/solaar
Add missing example devd config that allows non-root users to have raw
access to the Logitech Unifying USB receivers.
Added:
head/sysutils/solaar/files/devd-solaar.conf (contents, props changed)
head/sysutils/solaar/pkg-plist (contents, props changed)
Modified:
head/sysutils/solaar/Makefile
Modified: head/sysutils/solaar/Makefile
==============================================================================
--- head/sysutils/solaar/Makefile Sat Dec 9 18:58:49 2017 (r455870)
+++ head/sysutils/solaar/Makefile Sat Dec 9 19:05:03 2017 (r455871)
@@ -2,7 +2,7 @@
PORTNAME= solaar
PORTVERSION= g20170327
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MAINTAINER= tobik at FreeBSD.org
@@ -40,5 +40,9 @@ post-patch:
${WRKSRC}/lib/logitech_receiver/listener.py
@${REINPLACE_CMD} 's|[[:<:]]cmd[[:>:]]|action|' \
${WRKSRC}/lib/solaar/cli/__init__.py
+
+post-install:
+ ${INSTALL_DATA} ${FILESDIR}/devd-solaar.conf \
+ ${STAGEDIR}${PREFIX}/etc/devd/solaar.conf.sample
.include <bsd.port.mk>
Added: head/sysutils/solaar/files/devd-solaar.conf
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/solaar/files/devd-solaar.conf Sat Dec 9 19:05:03 2017 (r455871)
@@ -0,0 +1,13 @@
+# Allows non-root users to have raw access to Logitech Unifying USB
+# Receiver devices.
+
+notify 100 {
+ match "system" "USB";
+ match "subsystem" "DEVICE";
+ match "type" "ATTACH";
+ match "vendor" "0x046d";
+ match "product" "(0xc52b|0xc532|0xc52f|0xc526|0xc52e|0xc51b|0xc531|0xc517|0xc518|0xc51a|0xc521|0xc525)";
+# Please uncomment the line below and change the group name to suit
+# your own needs.
+# action "chgrp solaar /dev/$cdev && chmod 660 /dev/$cdev";
+};
Added: head/sysutils/solaar/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/solaar/pkg-plist Sat Dec 9 19:05:03 2017 (r455871)
@@ -0,0 +1 @@
+ at sample etc/devd/solaar.conf.sample
More information about the svn-ports-all
mailing list