summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/spacenavd')
-rw-r--r--sys-libs/spacenavd/ChangeLog13
-rw-r--r--sys-libs/spacenavd/Manifest4
-rw-r--r--sys-libs/spacenavd/files/spnavd5
-rw-r--r--sys-libs/spacenavd/spacenavd-0.5-r1.ebuild64
4 files changed, 82 insertions, 4 deletions
diff --git a/sys-libs/spacenavd/ChangeLog b/sys-libs/spacenavd/ChangeLog
new file mode 100644
index 0000000..25bbc05
--- /dev/null
+++ b/sys-libs/spacenavd/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sys-libs/spacenavd
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*spacenavd-0.5-r1 (24 Jan 2012)
+
+ 24 Jan 2012; Sebastian Pipping <sping@gentoo.org> +spacenavd-0.5-r1.ebuild,
+ files/spnavd:
+ Do not pass unknown parameter --system to spacenavd in init script, install
+ config sample to /etc/spnavrc.sample rather than /etc/conf.d/spnavrc so the
+ app finds it, rename daemon from spnavd to spacenavd, use dobin rather than
+ doexe, fix information presented in pkg_postinst
+
diff --git a/sys-libs/spacenavd/Manifest b/sys-libs/spacenavd/Manifest
index 1d55bcc..e2b549e 100644
--- a/sys-libs/spacenavd/Manifest
+++ b/sys-libs/spacenavd/Manifest
@@ -1,6 +1,8 @@
AUX spacenavd-0.5-custom-flags.patch 1952 RMD160 bd945358bc6c3f582df3f8d2ac1d7be7ba779337 SHA1 058237d123d55fee541aaae464ec0c47520a8638 SHA256 753cddd71bdad3ecc40b382c0a02306a714e321dc8ff1a8a378bdcac006bbe22
AUX spacenavd-0.5-destdir.patch 649 RMD160 3ffb705f3a0a2a940e4e4a9c3d34c3ede6c95f33 SHA1 8a946d85a1d8d454579e635c2248bc17dc1a399d SHA256 df58f5006d3b1be15a40182ca91ea964d62572a6e0a47b05c037958674db5366
-AUX spnavd 596 RMD160 6b697f6d8bdcbc412efb3edf9abf5c9b6d78403a SHA1 4463db5aae4b91142258aac0137efbb77535d0b2 SHA256 fc9e78e68bb98948df92910b824d1bf3dc627ae1969af8f2d77f3c870ef06a4d
+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 1615 RMD160 05a6a415657b9719be61884c5f4fe615750d9b47 SHA1 943318a20072f51db3f36d37d029b6492ff8ade5 SHA256 85f6ed6232304fa20c6da49f6fed9cbc73efc4abda113466728488031e541a1e
EBUILD spacenavd-0.5.ebuild 1594 RMD160 fbd2872cd45c6194d4ac30b8375ad879b187a5d9 SHA1 39849f999add92b5093a562cad7a55ecced39112 SHA256 37552d30d3d46827977c4862bfe0ae06ba2472dbfe77bbd1ee2a5770e01bcef3
+MISC ChangeLog 532 RMD160 40283a589c74966036c94ff1001670e500932c2e SHA1 2dd00fcc3cbaddae1407c4701c70ac3297ca48c3 SHA256 9c4a842847ca2907189d23efe3a0442ec9d909d8d48d447604e68d7b79c70f4a
MISC metadata.xml 781 RMD160 53424577bb5817179fb8c23bcaafc91f62e38757 SHA1 15f130ab23ac2f9247a2cbdf6bb1e198d2347236 SHA256 5e7443c84a89d8f0785806728817cbe8d33f37b8221e8307e6365a6daaf18600
diff --git a/sys-libs/spacenavd/files/spnavd b/sys-libs/spacenavd/files/spnavd
index 3fe7f41..383a2ad 100644
--- a/sys-libs/spacenavd/files/spnavd
+++ b/sys-libs/spacenavd/files/spnavd
@@ -1,7 +1,6 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $
depend() {
need localmount
@@ -11,7 +10,7 @@ depend() {
start() {
ebegin "Starting Spacenav system daemon"
- start-stop-daemon --start --pidfile /var/run/spnavd.pid --exec /usr/bin/spacenavd -- --system
+ start-stop-daemon --start --pidfile /var/run/spnavd.pid --exec /usr/bin/spacenavd
eend $?
}
diff --git a/sys-libs/spacenavd/spacenavd-0.5-r1.ebuild b/sys-libs/spacenavd/spacenavd-0.5-r1.ebuild
new file mode 100644
index 0000000..c7dfe21
--- /dev/null
+++ b/sys-libs/spacenavd/spacenavd-0.5-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils linux-info
+
+DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon."
+HOMEPAGE="http://spacenav.sourceforge.net/"
+SRC_URI="http://sourceforge.net/projects/spacenav/files/spacenav%20daemon/spacenavd%20${PV}/${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X debug"
+
+RDEPEND="X? ( x11-apps/xdpyinfo )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ CONFIG_CHECK="~HOTPLUG"
+ ERROR_CFG="Your kernel needs HOTPLUG for the spacenavd to work properly"
+ check_extra_config
+}
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-destdir.patch
+ epatch "${FILESDIR}"/${P}-custom-flags.patch
+}
+
+src_configure() {
+ econf \
+ --enable-opt --enable-ldopt \
+ $(use_enable X x11) \
+ $(use_enable debug)
+}
+
+src_install() {
+ # Config file
+ insinto /etc
+ newins "${S}/doc/example-spnavrc" spnavrc.sample || die
+
+ # Init script
+ newinitd "${FILESDIR}/spnavd" spacenavd || die
+
+ # Daemon
+ dobin "${S}/spacenavd"
+ use X && dobin "${S}/spnavd_ctl"
+}
+
+pkg_postinst() {
+ elog "To start the Spacenav daemon system-wide by default"
+ elog "you should add it to the default runlevel :"
+ elog "\`rc-update add spnavd default\`"
+ elog
+ if use X; then
+ elog "To start generating Spacenav X events by default"
+ elog "you should add this command in your user startup"
+ elog "scripts such as .gnomerc or .xinitrc :"
+ elog "\`spnavd_ctl x11 start\`"
+ elog
+ fi
+ ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
+ ewarn "the new version of the daemon."
+}