Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Dec 2017 19:05:04 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455871 - in head/sysutils/solaar: . files
Message-ID:  <201712091905.vB9J54M2081693@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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 @@
+@sample etc/devd/solaar.conf.sample



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712091905.vB9J54M2081693>