Created attachment 399944 [details] xboxdrv.service --- ../../../gentoo/games-util/xboxdrv/xboxdrv-0.8.5-r1.ebuild 2015-03-09 12:18:27.000000000 +0300 +++ ./xboxdrv-0.8.5-r2.ebuild 2015-03-28 14:43:56.539967431 +0300 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/xboxdrv-0.8.5-r1.ebuild,v 1.4 2013/10/14 22:08:04 tristan Exp $ EAPI=5 -inherit base linux-info scons-utils toolchain-funcs +inherit base linux-info scons-utils toolchain-funcs systemd udev MY_P=${PN}-linux-${PV} DESCRIPTION="Userspace Xbox 360 Controller driver" @@ -12,7 +12,7 @@ LICENSE="GPL-3" SLOT="0" -KEYWORDS="amd64 x86" +KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND="dev-libs/boost @@ -46,4 +46,11 @@ newinitd "${FILESDIR}"/xboxdrv.initd xboxdrv newconfd "${FILESDIR}"/xboxdrv.confd xboxdrv + + udev_newrules "${FILESDIR}"/xboxdrv.udev-rules 99-xbox-controller.rules + systemd_dounit "${FILESDIR}"/xboxdrv.service +} + +pkg_postinst() { + udev_reload }
Created attachment 399946 [details] xboxdrv.udev-rules
https://bugs.gentoo.org/show_bug.cgi?id=481572 also must be fixed for this to work
+*xboxdrv-0.8.5-r2 (02 Jun 2015) + + 02 Jun 2015; Michał Górny <mgorny@gentoo.org> +files/org.seul.Xboxdrv.conf, + +files/xboxdrv.service, +files/xboxdrv.udev-rules, +xboxdrv-0.8.5-r2.ebuild: + Add D-Bus and systemd service files. Add slot operators and missing dbus-glib + dep. Fixes bugs #481572 and #544752. https://github.com/gentoo/gentoo-portage- + rsync-mirror/pull/134 by nE0sIghT with my changes.