summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/spacenavd')
-rw-r--r--app-misc/spacenavd/ChangeLog9
-rw-r--r--app-misc/spacenavd/Manifest11
-rw-r--r--app-misc/spacenavd/files/99-space-navigator.rules6
-rw-r--r--app-misc/spacenavd/spacenavd-0.5-r2.ebuild (renamed from app-misc/spacenavd/spacenavd-0.5-r1.ebuild)11
4 files changed, 30 insertions, 7 deletions
diff --git a/app-misc/spacenavd/ChangeLog b/app-misc/spacenavd/ChangeLog
index fca83ca85006..1b603c3c5623 100644
--- a/app-misc/spacenavd/ChangeLog
+++ b/app-misc/spacenavd/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-misc/spacenavd
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/ChangeLog,v 1.1 2012/02/06 19:51:21 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/ChangeLog,v 1.2 2012/02/09 03:46:36 sping Exp $
+
+*spacenavd-0.5-r2 (09 Feb 2012)
+
+ 09 Feb 2012; Sebastian Pipping <sping@gentoo.org>
+ +files/99-space-navigator.rules, -spacenavd-0.5-r1.ebuild,
+ +spacenavd-0.5-r2.ebuild:
+ Add udev rule
*spacenavd-0.5-r1 (06 Feb 2012)
diff --git a/app-misc/spacenavd/Manifest b/app-misc/spacenavd/Manifest
index 26c2ee3d8dc5..c8d27f1492a6 100644
--- a/app-misc/spacenavd/Manifest
+++ b/app-misc/spacenavd/Manifest
@@ -1,17 +1,18 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX 99-space-navigator.rules 442 RMD160 549c74ba04736c33ed0f39a6782a49eca44f316d SHA1 91f67b9c885f6675464ab964b9dd8bcdade26ad6 SHA256 648add933b7775f02d8a54d9070a7505098d41b8e5b605bb56b11419cddb099b
AUX spacenavd-0.5-custom-flags.patch 2008 RMD160 c665becac1ff1b31eec94fe3ef70b98f851a2488 SHA1 79909d72d9da7ff0af369685869bb6709edadc90 SHA256 78c8aebbd33f0c135501e6dea132c4f6edd9068bfddf741bfc8fe11d5269f546
AUX spacenavd-0.5-destdir.patch 649 RMD160 3ffb705f3a0a2a940e4e4a9c3d34c3ede6c95f33 SHA1 8a946d85a1d8d454579e635c2248bc17dc1a399d SHA256 df58f5006d3b1be15a40182ca91ea964d62572a6e0a47b05c037958674db5366
AUX spnavd 579 RMD160 13e324d36ffb8900eb672492b7d8e10ae6a6c718 SHA1 dbef423d85a95f9fc329cfa379256a7331bdd7ac SHA256 2ad811c9c2de7ffa054e22a3d1a8c597b0a1cdc9fda719a7cc94a4fd8ca7ad42
DIST spacenavd-0.5.tar.gz 41746 RMD160 7b455d4cd96074707e671103e45cd0a5423cafc3 SHA1 76438d6fce981337b272210311124fe711606235 SHA256 0eecc5b5ad47ee6376d1521f2bc7c8f8fc02904cf3fede3f77e59f4795b592e3
-EBUILD spacenavd-0.5-r1.ebuild 1753 RMD160 be9bcaf163f10ee87dfeee8b994073bd82d4dde7 SHA1 2a49a3c8537b10e44cde80b9297a4537d5f3d251 SHA256 d1a3a2d6409ed1bed793a481e62c990678e8d9c55855498bbadd0cfd7a851c55
-MISC ChangeLog 520 RMD160 c675a2a8139cdb36ca1d2e55a9f0d5097e9813db SHA1 127210905abd916bdfeb0bb194e35f55997d4349 SHA256 3123a4ed241fb57f7ce154fe385e0398dcc33b9f15c9be9f367364f4ae2a6859
+EBUILD spacenavd-0.5-r2.ebuild 2215 RMD160 64ea23e1b5446646d8750f3d888d8b533749076f SHA1 2fa3fb8aca62d26ad46ad51850df2e7727270e2d SHA256 11229a9338576df7fd2a5331f9cb3b4873ed42868894e8978add9b40d9630cd7
+MISC ChangeLog 711 RMD160 d183c9bf2923f9e311acb7cb1caaa1a868196d8f SHA1 d00aab6169bdce884841bc3529340df632db34a6 SHA256 c4b385702e7c78c5eb6c6cb469d8cca6310d1fa4ba1a6cf0fc8c29e1af6b4253
MISC metadata.xml 843 RMD160 4e1c3eaba52e4bf6288364151cf6159b12b195cd SHA1 098de8c59b5b3f7e721df2067a7762e8914bd34d SHA256 40d478c2563fec01498586ee132dd94f6c9c7acef0ada92812f8bdbe73dd7f21
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iEYEARECAAYFAk8wL0cACgkQsAvGakAaFgBlqwCg16zk0vCSp6wfWTU/nQ+1JpM3
-q70AoKgKKkc01Ud/piUy+lbGv45faTQH
-=t0mr
+iEYEARECAAYFAk8zQYYACgkQsAvGakAaFgAfkQCeMZJM/lrQQi0mwMKapJRx1EqB
+slYAoKwpDWzXNsF+UFrIre4HQzyZkZ3E
+=gFXH
-----END PGP SIGNATURE-----
diff --git a/app-misc/spacenavd/files/99-space-navigator.rules b/app-misc/spacenavd/files/99-space-navigator.rules
new file mode 100644
index 000000000000..972b49d06c63
--- /dev/null
+++ b/app-misc/spacenavd/files/99-space-navigator.rules
@@ -0,0 +1,6 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/files/99-space-navigator.rules,v 1.1 2012/02/09 03:46:36 sping Exp $
+
+# Start daemon on insertion of a SpaceNavigator device
+SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="Space Navigator", RUN+="/etc/init.d/spacenavd --quiet start"
diff --git a/app-misc/spacenavd/spacenavd-0.5-r1.ebuild b/app-misc/spacenavd/spacenavd-0.5-r2.ebuild
index 9f041f86ea76..f5dd31d271ea 100644
--- a/app-misc/spacenavd/spacenavd-0.5-r1.ebuild
+++ b/app-misc/spacenavd/spacenavd-0.5-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/spacenavd-0.5-r1.ebuild,v 1.1 2012/02/06 19:51:21 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/spacenavd-0.5-r2.ebuild,v 1.1 2012/02/09 03:46:36 sping Exp $
EAPI="4"
@@ -47,6 +47,11 @@ src_install() {
# Init script
newinitd "${FILESDIR}/spnavd" spacenavd || die
+ # Install udev rule but leave activiation to the user
+ # since Xorg may be configured to grab the device already
+ insinto /etc/udev/rules.d
+ newins "${FILESDIR}"/99-space-navigator.rules 99-space-navigator.rules.ignored || die
+
# Daemon
dobin "${S}/spacenavd"
use X && dobin "${S}/spnavd_ctl"
@@ -64,6 +69,10 @@ pkg_postinst() {
elog "\`spnavd_ctl x11 start\`"
elog
fi
+ elog "If you want to auto-start the daemon when you plug in"
+ elog "a SpaceNavigator device, activate the related udev rule :"
+ elog "\`sudo ln -s 99-space-navigator.rules.ignored /etc/udev/rules.d/99-space-navigator.rules\`"
+ elog
ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
ewarn "the new version of the daemon."
}