It's excellent that cwiid finally entered portage; however, a few notes about the ebuild: 1) cwiid needs a set of udev rules to be able to be used by normal user, otherwise you are stuck running it as root. So, please consider adding the following lines (or something similar) to the ebuild: +cat <<- EOF > 99-uinput.rules +KERNEL=="uinput", MODE="0660", GROUP="plugdev" +EOF + +insinto /etc/udev/rules.d +doins 99-uinput.rules 2) What's the point of 'bluetooth'-use-flag? Nintendo Wiimote is a bluetooth device, so you can't use without net-wireless/bluez anyway. I don't think cwiid ever compiles without bluez (didn't test; waste of time). 3) dodoc is missing. Other than that, a long awaited package :)
Thanks, will be addressed as soon as possible
Created attachment 259405 [details] files/99-uinput.rules
Created attachment 259407 [details] cwiid-20110107.ebuild
A minor note: udev 165 still ships with a Gentoo rule of: KERNEL=="ts[0-9]*|uinput", NAME="input/%k" File providing that rule is maintained by Gentoo. By now, that rule is pointless and serves only to cause a warning. OTOH, default udev rule is: KERNEL=="ts[0-9]*|uinput", MODE="0640"
(In reply to comment #4) > A minor note: udev 165 still ships with a Gentoo rule of: sorry. please correct me if I'm wrong. looking here: http://packages.gentoo.org/package/sys-fs/udev no udev-165 version exist up today. even here: cloc3@s939 ~ $ grep -rH uinput /usr/portage/sys-fs/udev/ cloc3@s939 ~ $ I not find anything about uinput udev rules. so, I guess the problem you pointing about is not for persent, but for future. I agree that a gentoo global politic for uinput udev rules should be better then a local one in a single ebuild. perhaps, may I stady a reversible way to add 99-uinput.rules file, depending from a logical condition about udev version.
(In reply to comment #5) > even here: > cloc3@s939 ~ $ grep -rH uinput /usr/portage/sys-fs/udev/ > cloc3@s939 ~ $ > > I not find anything about uinput udev rules. > ops: now I've found: cloc3@s939 ~ $ tar xjf /var/gentoo-var/distfiles/udev-164.tar.bz2 udev-164/rules/rules.d -O|grep uinput KERNEL=="ts[0-9]*|uinput", MODE="0640"
+*cwiid-20110107-r1 (11 Jan 2011) + + 11 Jan 2011; Fabio Erculiani <lxnay@gentoo.org> +files/60-cwiid.rules, + -cwiid-20110107.ebuild, +cwiid-20110107-r1.ebuild: + add dodoc, implement udev rules, remove useless bluetooth use flag, close + bug #351227, thanks to Jouni Rinne + Thanks.
As that rule file (as per the comment in it) is maintained by Gentoo, perhaps Gentoo should simply ping udev upstream about it ?
No, we have many custom udev rules in our ebuilds in tree. I don't think udev upstream would be interested.