summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-06-02 08:35:44 +0000
committerMichał Górny <mgorny@gentoo.org>2015-06-02 08:35:44 +0000
commita36c7222e711efbe5eb31eab434e98de721b2326 (patch)
tree4db170186cf2db82421034882cc1c2efbcb9ea0d /games-util
parentVersion bump (bug 550292 by Tomáš Chaloupka). (diff)
downloadhistorical-a36c7222e711efbe5eb31eab434e98de721b2326.tar.gz
historical-a36c7222e711efbe5eb31eab434e98de721b2326.tar.bz2
historical-a36c7222e711efbe5eb31eab434e98de721b2326.zip
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.
Package-Manager: portage-2.2.20/cvs/Linux x86_64 Manifest-Sign-Key: 0xEFB4464E!
Diffstat (limited to 'games-util')
-rw-r--r--games-util/xboxdrv/ChangeLog12
-rw-r--r--games-util/xboxdrv/Manifest28
-rw-r--r--games-util/xboxdrv/files/org.seul.Xboxdrv.conf7
-rw-r--r--games-util/xboxdrv/files/xboxdrv.service14
-rw-r--r--games-util/xboxdrv/files/xboxdrv.udev-rules5
-rw-r--r--games-util/xboxdrv/xboxdrv-0.8.5-r2.ebuild63
6 files changed, 126 insertions, 3 deletions
diff --git a/games-util/xboxdrv/ChangeLog b/games-util/xboxdrv/ChangeLog
index 375850e4f0a8..01a0247e528a 100644
--- a/games-util/xboxdrv/ChangeLog
+++ b/games-util/xboxdrv/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for games-util/xboxdrv
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/ChangeLog,v 1.34 2014/01/20 18:20:39 mr_bones_ Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/ChangeLog,v 1.35 2015/06/02 08:35:38 mgorny Exp $
+
+*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.
20 Jan 2014; Michael Sterrett <mr_bones_@gentoo.org> -xboxdrv-0.8.4-r1.ebuild,
-xboxdrv-0.8.4.ebuild, -xboxdrv-0.8.5.ebuild:
diff --git a/games-util/xboxdrv/Manifest b/games-util/xboxdrv/Manifest
index b61a5b5834f6..774210ee0eb3 100644
--- a/games-util/xboxdrv/Manifest
+++ b/games-util/xboxdrv/Manifest
@@ -1,8 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX org.seul.Xboxdrv.conf 247 SHA256 be9338d20d388e7ba882eac8ef4ee93e5328b12c071263c623a2f3795e00bdb6 SHA512 1416e80d326481e224ce3381a8feeacf304107f945d787183c74118aae955e191cc89269e8de44d6ce4efc2502def6957b690e9bad70072fcf0bbd47c8ab12cc WHIRLPOOL 4150838bb20ae2c6a11546dc95368666a28d8ac10d990cd6106cf4cfd3c70e89f1aa552064a3a00591917ca4e37452e45c26bb9fd6eac26bef334a8bb0655ddf
AUX xboxdrv-0.8.4-libusbx-1.0.13-fix.patch 9643 SHA256 e0b6be6447cd730ffd817cf0b08c07612479f687b130af368321e034f1ae8867 SHA512 992b304f8fef04479d537310b6f9883506787a72fb2c918906fb0d66934205188cd30f1c5c2bf7442c5ef1ba71ec932dcf1cc5e48b0e4311253deace2c1865df WHIRLPOOL 9716a8cc6ad469b110e137e03dd06c2322ec722391dc1e4b7871fd532c4be952844feb2efcec5189609f754e1dffc49c271de6206b0f09885fe11821dd1292b2
AUX xboxdrv-0.8.5-scons.patch 356 SHA256 63956f60b3e5da208219a93627a3031140cbc47c357e7eb1251cc188c15d3c13 SHA512 da24073d39390d92d474d2dbfd2809027cb8f9fb8dd2409129cbab4bc0979d4ebfd0264e2971447a981fc68c63974603d7afeaa48c326af50b1eb9159bbc9dbf WHIRLPOOL 4b76e924a8b8c1d0aa1709830e1416f7f5f725d43ab7efcad4bd962e56b1260b15ac3182bd19c4bac5b056cd224578fe05544f13e3bede9e945f17a65c883639
AUX xboxdrv.confd 326 SHA256 8fa28de2b0314e5ff37543c7637d29aea57b3100ddb6bcafcdb68eebc0626d87 SHA512 58f13e553058dec58f2bb941cfdb6a28bf18c1a035a15a425eb822faf1f09839fbd17c0b450c27d1a18a28403449269df48f4c3ce3153407ec407b7a808b9eee WHIRLPOOL e4eeb3b7b1371d18e0846c58bfbaea95ec99af9d62101cbad4828616c14cd36be026fabadd11eb3f375a0122a536ee9fbd3104075b9a44d35f864e2fa97b3a04
AUX xboxdrv.initd 560 SHA256 98118d0dbba426ca3064c2577c25a63ae920b7b1ce0077531ca1966c8f2ae9ad SHA512 cdf180d1b33f5b529ad69a64df7125a8d596d3f2ba140df04a637b3a82085a4c0c295fef5143860c3fc1f45bea1eb25139acfa3270c6bd0d825ef547d24c6e0a WHIRLPOOL 3cf68cde7b297da702a64eece45d76ecf27302487453e821e111c14db35d431f89b39c40d296af48108055d09acfc2773ad16f7f35341d88fec52ca6318a454c
+AUX xboxdrv.service 371 SHA256 8f0f7d536d7f2c452a3d64f94caf1ef97f6daba8e57005f556bb9e278beaa0a8 SHA512 80e7657edae9c771740628ef5f9752b79d50288ead33afe97e71ffc6e7d7c24343eeb213668cdc823b28742976e2e56f4defdcd823716897f3262be1fc7832e9 WHIRLPOOL c26e38a756b8f3f3ec690017a968ae5f0262d976c85e81dcb6df2ab2de92dc6201b8935d61f62fd606c60aa2f1a74eaa49e853258f0c0235492c3ac2001dc55e
+AUX xboxdrv.udev-rules 225 SHA256 7a55625ff3fd9fae1b9bde594898d411c3d8649e605890c0e5c9aa3246fca9d7 SHA512 eb9e535bb18077e4c61db8fa5020a779b856a6df29eb4daa72a2ab9675720f809a981b0e4706fbbc6bf5a368cc162c7151cd6ae10399d091f10d2f75b1c48a3e WHIRLPOOL f6fb8b02f985222d1eaf4d7a3d643f3ab4146a167ebeb99d5fd3f44c4a7eb3cc2af60876319b84828e90dd342bddacf41825157e851d7fc8ebd68b5e413982ee
DIST xboxdrv-linux-0.8.5.tar.bz2 265805 SHA256 411195c4f5310a1a5f21f015daaf00b277f75da89df710308f8abfcf8f337e78 SHA512 954a3664462dfeff63a455f3dfea4bc14f8c3e07fa9b0c299bb523b4089faad7f8d634511eb66c023bd289adbbf18e96ce26cbcf5b8ffc9bb3088f1afe532601 WHIRLPOOL f47cdbcf40bd237715ff2b55354c6570ebbccd9cd0beb09b91869fa37db247c57019593b317d2acd767044fe92019defa01c9592bb3b63d2283103ff10dae844
EBUILD xboxdrv-0.8.5-r1.ebuild 1183 SHA256 51ef13e8287990fd5a02769d45da862976acebe4e7ea217cccd86243c5ef96f1 SHA512 93f8ae4fd4c95c20c4c8822a28133fd3a71359f306b08bef12d47ecf56dc9177a90019b2f609704ed61acce82dec7b60e0fd459745fb24a9f741ab74462480b9 WHIRLPOOL ed2b46501ff09f3e10aec8202e3facbd2510932fa31440f367c93324336a22b4c12b56ecd0c8add2c8069462cfd50c295cfc3d2419a462fb875d9301386d2886
-MISC ChangeLog 4736 SHA256 c466ccfac2bee48c1f8773d4b717d9b123b56dc1b72716b992e2787113611fa5 SHA512 92878fb1d4e0445ed4d6a6b0d0a682994329d64ce14a2232990fbb1bb4d861535d647174748864171aa7f83a24ff8f3e0cc579f145465911b9cdcb8d966ff98b WHIRLPOOL 1a500b7c55c613f686a2b4598297ccb2d354f69b8b62997524ac68ff8c205799a96a351acd9e81d842dfbee27683636097734e316a8ce311f585612bec98dd70
+EBUILD xboxdrv-0.8.5-r2.ebuild 1468 SHA256 78ee98ced12eadf514bf32b8d9e6cc92ddc1a2eb5aab40c98a01665ec16b5cc7 SHA512 0b9ee427ca653b1b01d9f5e875e07627084094927e56b5c40e866bd09360dc0cdcaf57d8620762abfa0a9b04ee843765c830ce155763a5dbb8e70088ca0ab3c1 WHIRLPOOL 10f9887fb17c296dc1077156d7d73fc232b78d22b2786d19f6a034feb8ffd1dffd3bd2137cee9439cb5e36f0a666be04163b95abd85b1179c68921a0c880d174
+MISC ChangeLog 5140 SHA256 ae0a5c2b8b6c2fd0e0cb815b8e81d8d3e60c80ade6e2de0834fbc68a917f3bd9 SHA512 33d6486227c59f06663c559bb47fa22a14dff618905ad40dcfa2cef351d4e2e1d978a1670c5387caa2b965cde826210f8bdfaedee97fbf009e56ffe054a525fb WHIRLPOOL 207755bbfee1b147869f16a0149dd40897f94fcd72e26ccf3e5e767aaa91ca57b14acee09c787dcc807e814d4e4e30c4e147e38a8b11869fe68d3e243462503e
MISC metadata.xml 254 SHA256 94013c86722577c3622e96f1c5a36b40520c1115a3edd5843b366a0cea0b23c6 SHA512 c154f0ec5e052c95141c1e182294e35c49bd8404157765a75b18025ad4b969d5007fab3363861f8e15dccd989e499d0eec4bafdc060bbf4400004969be8a6d8e WHIRLPOOL 536a04b316c96f02ebeb6d8198bccf0b0a7de25707d5b7f69b4cbf0e81e6919c4345d03b22b6f87aa72fe6bebf3aa14f42a94cd31194491e93bfeb775897a68d
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQJ8BAEBCABmBQJVbWrbXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC
+MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOsFUQAOB5zsUh2kUIn0tvnaZXBT8z
+s7mqXi0k4Z62spPy3jY3QkGpCYbfv68vNoSdH7qcbjaMrn6s09f62AWU9L0zoJNf
+pzPo0Vvr/2mZsdwCOo8AsrdKrlEZV8OUvEXoSEs+LQKuZn3v/Tr3Ij+kQ8JcTf99
+EEukE7u84RbNVGPv6W/QaUmJsUoCk3iNPl0uQ4JRjvEpvIz3MYExCjLPH7TN53v1
+EooSjpQPjl9KH8zFZkZ9yx+DnNFPsGoiFLSEXoCquAComQQmJ8h2SnWDEw72Id+n
+7+FUSNwmDul9EimEEhSNIpJch1ynG9u/VApe8TE7+KJi3/hQxf8pteXQK5Y7wnTz
+owkyXVWHRBSKSp09lwkV8a8LyA1pEsFbCInEAVefTjJGFPnsoDXADqucNUphk4hV
+3ushIE9vAKBYkVxNM1EpFUk8VimFDLWj0DjPCMG7hYJb+AxOPRyrzYufQq43n7CM
+osl8F8vA6OoFNIWCncEGrvZpPM1hyok+7zSDD0VCS+TQb6bB1wBFsJQiS4eo/FYE
+2e8tORxvBIicOZQx0GjBCBNWsvsCr0JJOW+0Ail5ulPOaKqYPlgWxWQRVMAVqoHs
+lp9oicel/CtTJJA/MCBj4PsUQjiSiIvCTvXASG1yYORXL9yQNcKfKFw9s3SlEepM
+iE+alE1WVPawYo1EJq0c
+=N2Xt
+-----END PGP SIGNATURE-----
diff --git a/games-util/xboxdrv/files/org.seul.Xboxdrv.conf b/games-util/xboxdrv/files/org.seul.Xboxdrv.conf
new file mode 100644
index 000000000000..fc685d6e8e83
--- /dev/null
+++ b/games-util/xboxdrv/files/org.seul.Xboxdrv.conf
@@ -0,0 +1,7 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy context="default">
+ <allow own="org.seul.Xboxdrv"/>
+ </policy>
+</busconfig>
diff --git a/games-util/xboxdrv/files/xboxdrv.service b/games-util/xboxdrv/files/xboxdrv.service
new file mode 100644
index 000000000000..b0d372696e0a
--- /dev/null
+++ b/games-util/xboxdrv/files/xboxdrv.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Userspace Xbox 360 Controller driver
+BindsTo=sys-subsystem-usb-xbox-controller0.device
+After=sys-subsystem-usb-xbox-controller0.device
+
+[Service]
+BusName=org.seul.Xboxdrv
+ExecStart=/usr/bin/xboxdrv --silent --daemon
+KillSignal=SIGINT
+# xboxdrv can not stop gracefully if controller gets unplugged
+TimeoutStopSec=2
+
+[Install]
+WantedBy=multi-user.target
diff --git a/games-util/xboxdrv/files/xboxdrv.udev-rules b/games-util/xboxdrv/files/xboxdrv.udev-rules
new file mode 100644
index 000000000000..c571b2b5ab02
--- /dev/null
+++ b/games-util/xboxdrv/files/xboxdrv.udev-rules
@@ -0,0 +1,5 @@
+SUBSYSTEM=="usb", ACTION=="add",\
+ ENV{ID_MODEL_FROM_DATABASE}=="Xbox*Controller|Xbox*Controller S",\
+ TAG+="systemd",\
+ ENV{SYSTEMD_ALIAS}="/sys/subsystem/usb/xbox/controller$number",\
+ ENV{SYSTEMD_WANTS}+="xboxdrv.service"
diff --git a/games-util/xboxdrv/xboxdrv-0.8.5-r2.ebuild b/games-util/xboxdrv/xboxdrv-0.8.5-r2.ebuild
new file mode 100644
index 000000000000..b8b730fcd3f6
--- /dev/null
+++ b/games-util/xboxdrv/xboxdrv-0.8.5-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 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-r2.ebuild,v 1.1 2015/06/02 08:35:38 mgorny Exp $
+
+EAPI=5
+inherit linux-info scons-utils toolchain-funcs systemd udev
+
+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
+ dev-libs/dbus-glib:=
+ virtual/libudev:=
+ 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_prepare() {
+ epatch "${FILESDIR}"/${P}-scons.patch
+}
+
+src_compile() {
+ escons \
+ BUILD=custom \
+ CXX="$(tc-getCXX)" \
+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)" \
+ 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
+
+ insinto /etc/dbus-1/system.d/
+ doins "${FILESDIR}/org.seul.Xboxdrv.conf"
+
+ udev_newrules "${FILESDIR}"/xboxdrv.udev-rules 99-xbox-controller.rules
+ systemd_dounit "${FILESDIR}"/xboxdrv.service
+}
+
+pkg_postinst() {
+ udev_reload
+}