diff options
author | Sebastian Pipping <sping@gentoo.org> | 2012-02-09 03:46:37 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2012-02-09 03:46:37 +0000 |
commit | 979bf58dda485397643809c9021823fe271922a3 (patch) | |
tree | ce48b524f5ace05580d4f8fd2faa7785bc914b9a /app-misc/spacenavd | |
parent | Stable for HPPA (bug #397057). (diff) | |
download | gentoo-2-979bf58dda485397643809c9021823fe271922a3.tar.gz gentoo-2-979bf58dda485397643809c9021823fe271922a3.tar.bz2 gentoo-2-979bf58dda485397643809c9021823fe271922a3.zip |
app-misc/spacenavd: Add udev rule
(Portage version: 2.1.10.45/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/spacenavd')
-rw-r--r-- | app-misc/spacenavd/ChangeLog | 9 | ||||
-rw-r--r-- | app-misc/spacenavd/files/99-space-navigator.rules | 6 | ||||
-rw-r--r-- | app-misc/spacenavd/spacenavd-0.5-r2.ebuild (renamed from app-misc/spacenavd/spacenavd-0.5-r1.ebuild) | 11 |
3 files changed, 24 insertions, 2 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/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." } |