Index: head/sysutils/solaar/Makefile =================================================================== --- head/sysutils/solaar/Makefile (revision 455870) +++ head/sysutils/solaar/Makefile (revision 455871) @@ -1,44 +1,48 @@ # $FreeBSD$ PORTNAME= solaar PORTVERSION= g20170327 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MAINTAINER= tobik@FreeBSD.org COMMENT= Device manager for the Logitech Unifying Receiver LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING # libhidapi.so is only loaded at runtime via ctypes (dlopen) RUN_DEPENDS= ${LOCALBASE}/lib/libhidapi.so:comms/hidapi USES= python USE_PYTHON= distutils autoplist concurrent optsuffix USE_GITHUB= yes GH_ACCOUNT= pwr GH_PROJECT= Solaar # The latest release is from 2013 and there is not going to be a new # release for now: # https://github.com/pwr/Solaar/issues/288 # https://github.com/pwr/Solaar/issues/296 GH_TAGNAME= 53ec751 NO_ARCH= yes OPTIONS_DEFINE= GUI GUI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gobject3>=0:devel/py-gobject3@${FLAVOR} post-patch: @${CP} ${FILESDIR}/hidapi.py ${WRKSRC}/lib/hidapi/udev.py @${REINPLACE_CMD} -e '/pyudev/d' \ -e 's|python-gi|${PYTHON_PKGNAMEPREFIX}gobject3|' \ ${WRKSRC}/lib/solaar/gtk.py @${REINPLACE_CMD} 's|receiver\.path\.split.*|receiver.path)|' \ ${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 Index: head/sysutils/solaar/files/devd-solaar.conf =================================================================== --- head/sysutils/solaar/files/devd-solaar.conf (nonexistent) +++ head/sysutils/solaar/files/devd-solaar.conf (revision 455871) @@ -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"; +}; Property changes on: head/sysutils/solaar/files/devd-solaar.conf ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/solaar/pkg-plist =================================================================== --- head/sysutils/solaar/pkg-plist (nonexistent) +++ head/sysutils/solaar/pkg-plist (revision 455871) @@ -0,0 +1 @@ +@sample etc/devd/solaar.conf.sample Property changes on: head/sysutils/solaar/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property