summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2013-05-14 19:11:14 +0000
committerSven Wegener <swegener@gentoo.org>2013-05-14 19:11:14 +0000
commitca1fd7d7be83c20cfa63387a5a1f799ef0e324a9 (patch)
treead19438859cf7a70e9ac5152efdb6671a8225318 /games-util
parentwe messed up, use right automake-version (diff)
downloadgentoo-2-ca1fd7d7be83c20cfa63387a5a1f799ef0e324a9.tar.gz
gentoo-2-ca1fd7d7be83c20cfa63387a5a1f799ef0e324a9.tar.bz2
gentoo-2-ca1fd7d7be83c20cfa63387a5a1f799ef0e324a9.zip
Revision bump, add init script to run a system-wide xboxdrv daemon.
(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 0x64D4CF24)
Diffstat (limited to 'games-util')
-rw-r--r--games-util/xboxdrv/ChangeLog8
-rw-r--r--games-util/xboxdrv/files/xboxdrv.confd6
-rw-r--r--games-util/xboxdrv/files/xboxdrv.initd19
-rw-r--r--games-util/xboxdrv/xboxdrv-0.8.5-r1.ebuild46
4 files changed, 78 insertions, 1 deletions
diff --git a/games-util/xboxdrv/ChangeLog b/games-util/xboxdrv/ChangeLog
index f9c5810decbf..2800c4b22c96 100644
--- a/games-util/xboxdrv/ChangeLog
+++ b/games-util/xboxdrv/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-util/xboxdrv
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/ChangeLog,v 1.29 2013/04/30 22:12:02 tristan Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/ChangeLog,v 1.30 2013/05/14 19:11:14 swegener Exp $
+
+*xboxdrv-0.8.5-r1 (14 May 2013)
+
+ 14 May 2013; Sven Wegener <swegener@gentoo.org> +xboxdrv-0.8.5-r1.ebuild,
+ +files/xboxdrv.confd, +files/xboxdrv.initd:
+ Revision bump, add init script to run a system-wide xboxdrv daemon.
*xboxdrv-0.8.5 (30 Apr 2013)
diff --git a/games-util/xboxdrv/files/xboxdrv.confd b/games-util/xboxdrv/files/xboxdrv.confd
new file mode 100644
index 000000000000..7457a7d54188
--- /dev/null
+++ b/games-util/xboxdrv/files/xboxdrv.confd
@@ -0,0 +1,6 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/files/xboxdrv.confd,v 1.1 2013/05/14 19:11:14 swegener Exp $
+
+XBOXDRV_OPTS=""
+#XBOXDRV_OPTS="${XBOXDRV_OPTS} --next-controller --config /etc/xboxdrv/controller.ini"
diff --git a/games-util/xboxdrv/files/xboxdrv.initd b/games-util/xboxdrv/files/xboxdrv.initd
new file mode 100644
index 000000000000..397729c38cac
--- /dev/null
+++ b/games-util/xboxdrv/files/xboxdrv.initd
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/files/xboxdrv.initd,v 1.1 2013/05/14 19:11:14 swegener Exp $
+
+PIDFILE="/var/run/${SVCNAME}.pid"
+
+start() {
+ ebegin "Starting xboxdrv"
+ start-stop-daemon --start --pidfile "${PIDFILE}" --exec /usr/bin/xboxdrv -- \
+ --daemon --detach --pid-file "${PIDFILE}" ${XBOXDRV_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping xboxdrv"
+ start-stop-daemon --stop --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/games-util/xboxdrv/xboxdrv-0.8.5-r1.ebuild b/games-util/xboxdrv/xboxdrv-0.8.5-r1.ebuild
new file mode 100644
index 000000000000..bbe5c5dfdf47
--- /dev/null
+++ b/games-util/xboxdrv/xboxdrv-0.8.5-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/xboxdrv-0.8.5-r1.ebuild,v 1.1 2013/05/14 19:11:14 swegener Exp $
+
+EAPI=5
+inherit base linux-info scons-utils toolchain-funcs
+
+MY_P=${PN}-linux-${PV}
+DESCRIPTION="Userspace Xbox 360 Controller driver"
+HOMEPAGE="http://pingus.seul.org/~grumbel/xboxdrv/"
+SRC_URI="http://pingus.seul.org/~grumbel/xboxdrv/${MY_P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/boost
+ virtual/udev
+ sys-apps/dbus
+ dev-libs/glib:2
+ virtual/libusb:1
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD"
+
+src_compile() {
+ escons \
+ BUILD=custom \
+ CXX="$(tc-getCXX)" \
+ CXXFLAGS="-Wall ${CXXFLAGS}" \
+ LINKFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin xboxdrv
+ doman doc/xboxdrv.1
+ dodoc AUTHORS NEWS PROTOCOL README TODO
+
+ newinitd "${FILESDIR}"/xboxdrv.initd xboxdrv
+ newconfd "${FILESDIR}"/xboxdrv.confd xboxdrv
+}