Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544752 - games-util/xboxdrv: add systemd unit and udev rules
Summary: games-util/xboxdrv: add systemd unit and udev rules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tristan Heaven (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 481572
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2015-03-28 11:56 UTC by nE0sIghT
Modified: 2015-06-02 09:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xboxdrv.service (xboxdrv.service,371 bytes, text/plain)
2015-03-28 11:56 UTC, nE0sIghT
Details
xboxdrv.udev-rules (xboxdrv.udev-rules,225 bytes, text/plain)
2015-03-28 11:57 UTC, nE0sIghT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nE0sIghT 2015-03-28 11:56:46 UTC
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
 }
Comment 1 nE0sIghT 2015-03-28 11:57:11 UTC
Created attachment 399946 [details]
xboxdrv.udev-rules
Comment 2 nE0sIghT 2015-03-28 12:29:41 UTC
https://bugs.gentoo.org/show_bug.cgi?id=481572 also must be fixed for this to work
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-06-02 09:00:52 UTC
+*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.