summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/spacenavd')
-rw-r--r--app-misc/spacenavd/Manifest13
-rw-r--r--app-misc/spacenavd/files/99-space-navigator.rules-r17
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch67
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.5-destdir.patch16
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch13
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.6-custom-flags.patch12
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.6-debug.patch12
-rw-r--r--app-misc/spacenavd/files/spacenavd.service8
-rw-r--r--app-misc/spacenavd/files/spnavd27
-rw-r--r--app-misc/spacenavd/metadata.xml22
-rw-r--r--app-misc/spacenavd/spacenavd-0.5-r6.ebuild82
-rw-r--r--app-misc/spacenavd/spacenavd-0.6.ebuild80
12 files changed, 0 insertions, 359 deletions
diff --git a/app-misc/spacenavd/Manifest b/app-misc/spacenavd/Manifest
deleted file mode 100644
index 0a491da..0000000
--- a/app-misc/spacenavd/Manifest
+++ /dev/null
@@ -1,13 +0,0 @@
-AUX 99-space-navigator.rules-r1 604 SHA256 7b01eb002298b725c11a9fc0de421947ea2a1ceaf8b9e335c0012b468b6dada3 SHA512 11d6a1b267cf6116fd4cd4a7b4793702740510ff6fe7fe906b6b0d219d00d62b8a325b6761747491ad3c9a6d83acde291dc8b1fde35f60d098a28abd7eea590c WHIRLPOOL 7aab3abbaa081fb98f0ffed4265f2174a47b499ea5db8df0335836df3bfb70ebceccc225ed3de3ba2d641d0144dc8c8152ba54db985d2d511d62f554396fcbad
-AUX spacenavd-0.5-custom-flags.patch 2008 SHA256 78c8aebbd33f0c135501e6dea132c4f6edd9068bfddf741bfc8fe11d5269f546 SHA512 547d9f3098846901418acb71be996cec39bf18616e4a7eee5fc09bc201bfb2a534ff70f38d515b0f6c685330d002ea277c03b448ba70de4a3df65e6286780174 WHIRLPOOL da8e4d838d91e8334b7adb16751e928193ac27dde496d2304a9fa4f9412f70791ff2df785ee0662dde805ff813f7e17f83291671629f54e704544725e6dd9466
-AUX spacenavd-0.5-destdir.patch 649 SHA256 df58f5006d3b1be15a40182ca91ea964d62572a6e0a47b05c037958674db5366 SHA512 4330ae7b49e661a60f01931716f9924c01cade4e169b3de48ec08039099ce10c6dfe5c8df9a3b01c1890ccb83b3c92d45ea06f5fd9465c3f1514902cc375e1f0 WHIRLPOOL d90f63eb471509eae6cc3bd4e28e08f56882ae8e8a04b5867b75afba271c938da424d7625ead6166bfdfd31039cc482ccef53748bb055260bf2de9088dec59e9
-AUX spacenavd-0.5-no-x11.patch 388 SHA256 1c4a16f41176da31e61cb4a0984d4d3b158d334e598325c2eda9e8f6ab6ef933 SHA512 d6cb2d6337b3e19ef56f5e0ccbfdc731b038009df852b3d1f7272001aa18e70a1701c3af2d1b4976cac7392a6176c0f4cee787d2c9b4b96ba029d1cc0db3d7ae WHIRLPOOL 7ea4516dc404900377d44dc056b2056b32c066759ebdf3363fc43379069d90b4eaecc32f3156173a9a030b1bc392c7665d33b11749fc05bec50a781b5c1f94ef
-AUX spacenavd-0.6-custom-flags.patch 539 SHA256 1b85dcb6b1cb8b756590af476d7cab1cb74dd4d09b4c15079424112aa64dec10 SHA512 32cc9d9d36cbd47573feb445153efa538239780a4ae910d75d6cac77b86332bc8e2d8773c28fd74fec89f9cb2173eb3a5926909c58ea9bad757d2e7926dd45b5 WHIRLPOOL 297d63246accf173a351692c06e699ddfa59c39fb5a735bb8634f00faf955d8ad6606713fecd458af98d770f338127bc5a1879f9a31d9874bc711cf4efd5c33c
-AUX spacenavd-0.6-debug.patch 341 SHA256 179f4ccd9d997a00cb3df4d2f68782ad8873c3c98ed886b811f0497a6fbc1ef8 SHA512 11ce1f74733bdd6a70f600e8c8ba8be5a795ccccdc3b1d389008cdb0dc6d8505ee0719531ac47f2fea2cada5048aede6039e5cc5d10d470052b2655398b13d64 WHIRLPOOL e532832790c1aa3b59ea7f7bacc52b004a9cef0658691cb4353555240b87152b64dfb960fae4788caee3d97b41576742dd55bda5bda32ae01f9c1acffd1bc5b0
-AUX spacenavd.service 143 SHA256 d6e8831b5fc37da1fa14ea4ae7568cec1c0964bb080c3217cbd78df1a279f349 SHA512 1f2fd8bf2bdffe3e52f5e2e53e0643e0d5ad5134bfd636ebc2c98f397da5c87bca3582fd76f9e987fb6ed3d17130196f4eee193998f97e388dc04877277c04d5 WHIRLPOOL 62804c40afc19a2fba63ee5f98441b90b765c09b710a58802749e015870e491f714c9cd0b4d51afd47b79a32c7798a0c43e03cdffb6edbbb39417194886375c1
-AUX spnavd 579 SHA256 2ad811c9c2de7ffa054e22a3d1a8c597b0a1cdc9fda719a7cc94a4fd8ca7ad42 SHA512 9088928719172ac114d86cfdde0bd3c435fec51538334b8f8beaa7945848fcb89373577b1daaa446f43c01f3f9e3d6e03cdea53d153530a8f8508552e14b8fa9 WHIRLPOOL 45e40c8a59013a6f24e466ebaac60126113e85dee89c719a4df496c9da0f45ecc2d4aa17ce828618fb043e8d5b1bb1007043cade553e98ce08741c8beafc53dd
-DIST spacenavd-0.5.tar.gz 41746 SHA256 0eecc5b5ad47ee6376d1521f2bc7c8f8fc02904cf3fede3f77e59f4795b592e3 SHA512 908f598e4ba5febbc1191cc32cd444817acd40c22e79b1f139c50787e1e25d4cd8328dc3fd6d9dde09bb80232b52f0e75ae429fb3345eb51fbe5a47577b038e2 WHIRLPOOL e2cf70c7e9cc4b8e32b15ab79dae565c8c2a4bc32a6485a0a1857ea4d4667859ac0bb82e32cd54b722d51c34b9ea094fe8bcb1459a9f60077bde8a01207ab910
-DIST spacenavd-0.6.tar.gz 54730 SHA256 c2d203bf96c5a959590146a43fe5d6e5e8c5c38a8b2f55aa199d967d0d88d0ab SHA512 ff039e169805365ce8c1df1258eda6d263a0724c087b22a9e78269629455580817027d936e6bb7014b7654f48aa23232e8059585175003034e4bd3e0d6ed8200 WHIRLPOOL 2f7ff91302c9970d54c7983e7e3ee75d2254d2a8640d701e1449f9a31dfab0937c811491acfdf15356ebfe4914462468031090954c28ffab59a30068a60f19cf
-EBUILD spacenavd-0.5-r6.ebuild 2457 SHA256 fb7fcee31236de09edd0c35f45113b6f47709e26715a2d7389487404bbe7d1ca SHA512 e160af9cc7150dffc83fa049cfd25003d054110d14e243311d18c1ed521b02f975eebb427a5afa82c6071b365a3da3e63a67ec2ca2d0a84f13662ae58ed7f1e2 WHIRLPOOL a8b02126007bd5227e3d6e273d9529279912ab611ed543bc95321a8b11122b9ab49088888d06d7c717e12571bcf1b147ebe6a81ed70b13a3981862257f276f87
-EBUILD spacenavd-0.6.ebuild 2401 SHA256 27c6012d4c4ca88236d8cadfa1ec3dbc850b09dd30514db4d8398f5580c21650 SHA512 4b7c1d955309d63d113b7dea2e245e20359e17de7025f90451be44c9d88b43f7105ae9d7298a27d3e1646e64c1d9080e1df8b5e00013ce7a99328f18ae688463 WHIRLPOOL d76a4db5eb3a8d033911dae0b41c72db02b1c9fef95754c940d839515e591c7bf1fdeebed98e3a0ea4cd5af25c68649538f5b44508d3513fecb1cd3d779d0555
-MISC metadata.xml 853 SHA256 ce9a9943bd9e35ed71fbb9d2d40b42c1e7331b2bde217e4fc7b25e7972541e31 SHA512 7bb805662eebb527d733641385f33ebd2f5a7680e3911b77bc3f324ab760930d34b2f97f245901d99f63bd180d987e4d28d6116c15f18bc0899500ee07361d39 WHIRLPOOL 0fa61f2aa608d8b5aaabc5ed27558084907330e86d85258b1e359ab0a7b58231e5ae861dc3af17f30a073f42b0b2060530a7056747d6e9e162373feae28ce9ef
diff --git a/app-misc/spacenavd/files/99-space-navigator.rules-r1 b/app-misc/spacenavd/files/99-space-navigator.rules-r1
deleted file mode 100644
index 793d432..0000000
--- a/app-misc/spacenavd/files/99-space-navigator.rules-r1
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright 1999-2014 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-r1,v 1.1 2014/03/30 09:53:03 pacho 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"
-SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="SpaceNavigator", TAG+="systemd", ENV{SYSTEMD_WANTS}+="spacenavd.service"
diff --git a/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch b/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch
deleted file mode 100644
index 3b834a4..0000000
--- a/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-diff -Npur spacenavd-0.5.orig/Makefile.in spacenavd-0.5/Makefile.in
---- spacenavd-0.5.orig/Makefile.in 2012-01-31 22:22:20.460368687 +0100
-+++ spacenavd-0.5/Makefile.in 2012-01-31 22:23:18.170367675 +0100
-@@ -6,8 +6,8 @@ ctl = spnavd_ctl
-
- CC = gcc
- INSTALL = install
--CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src
--LDFLAGS = $(xlib)
-+CFLAGS = $(opt) -fno-strict-aliasing -I$(srcdir)/src
-+LDFLAGS = $(ldopt) $(xlib)
-
- $(bin): $(obj)
- $(CC) -o $@ $(obj) $(LDFLAGS)
-diff -Npur spacenavd-0.5.orig/configure spacenavd-0.5/configure
---- spacenavd-0.5.orig/configure 2012-01-31 22:22:20.460368687 +0100
-+++ spacenavd-0.5/configure 2012-01-31 22:22:49.257368187 +0100
-@@ -28,6 +28,7 @@ test_kver() {
-
- PREFIX=/usr/local
- OPT=yes
-+LDOPT=yes
- DBG=yes
- X11=yes
- HOTPLUG=yes
-@@ -70,6 +71,11 @@ for arg; do
- --disable-opt)
- OPT=no;;
-
-+ --enable-ldopt)
-+ LDOPT=yes;;
-+ --disable-ldopt)
-+ LDOPT=no;;
-+
- --enable-debug)
- DBG=yes;;
- --disable-debug)
-@@ -95,6 +101,8 @@ for arg; do
- echo ' --disable-hotplug: disable hotplug, fallback to polling for the device'
- echo ' --enable-opt: enable speed optimizations (default)'
- echo ' --disable-opt: disable speed optimizations'
-+ echo ' --enable-ldopt: enable link optimizations (default)'
-+ echo ' --disable-ldopt: disable link optimizations'
- echo ' --enable-debug: include debugging symbols (default)'
- echo ' --disable-debug: do not include debugging symbols'
- echo 'all invalid options are silently ignored'
-@@ -105,6 +113,7 @@ done
-
- echo " prefix: $PREFIX"
- echo " optimize for speed: $OPT"
-+echo " optimize link: $LDOPT"
- echo " include debugging symbols: $DBG"
- echo " x11 communication method: $X11"
- echo " use hotplug: $HOTPLUG"
-@@ -128,7 +137,11 @@ if [ "$DBG" = 'yes' ]; then
- fi
-
- if [ "$OPT" = 'yes' ]; then
-- echo 'opt = -O3' >>Makefile
-+ echo "opt = ${CFLAGS:--O3}" >>Makefile
-+fi
-+
-+if [ "$LDOPT" = 'yes' ]; then
-+ echo "ldopt = ${LDFLAGS}" >>Makefile
- fi
-
- if [ "$X11" = 'yes' ]; then
diff --git a/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch b/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch
deleted file mode 100644
index 5b23722..0000000
--- a/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff -Npur spacenavd-0.5.orig/Makefile.in spacenavd-0.5/Makefile.in
---- spacenavd-0.5.orig/Makefile.in 2011-11-16 21:43:53.210859753 +0100
-+++ spacenavd-0.5/Makefile.in 2011-11-16 21:45:36.386857932 +0100
-@@ -24,9 +24,9 @@ clean:
-
- .PHONY: install
- install: $(bin)
-- $(INSTALL) -d $(PREFIX)/bin
-- $(INSTALL) -m 755 $(bin) $(PREFIX)/bin/$(bin)
-- $(INSTALL) -m 755 $(srcdir)/$(ctl) $(PREFIX)/bin/$(ctl)
-+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
-+ $(INSTALL) -m 755 $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
-+ $(INSTALL) -m 755 $(srcdir)/$(ctl) $(DESTDIR)$(PREFIX)/bin/$(ctl)
- cd $(srcdir) && ./setup_init --no-install
-
- # [ -d /etc/hal/fdi/policy ] && \
diff --git a/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch b/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch
deleted file mode 100644
index bbdd7d6..0000000
--- a/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -Npur spacenavd-0.5.old/src/event.c spacenavd-0.5/src/event.c
---- src/event.c 2012-03-21 22:15:37.093401293 +0100
-+++ src/event.c 2012-03-21 22:14:10.734401301 +0100
-@@ -20,7 +20,9 @@ along with this program. If not, see <h
- #include <stdlib.h>
- #include "event.h"
- #include "client.h"
-+#ifdef USE_X11
- #include "proto_x11.h"
-+#endif
- #include "proto_unix.h"
- #include "spnavd.h"
-
diff --git a/app-misc/spacenavd/files/spacenavd-0.6-custom-flags.patch b/app-misc/spacenavd/files/spacenavd-0.6-custom-flags.patch
deleted file mode 100644
index 1b61f1a..0000000
--- a/app-misc/spacenavd/files/spacenavd-0.6-custom-flags.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Npur spacenavd-0.6.orig/Makefile.in spacenavd-0.6/Makefile.in
---- spacenavd-0.6.orig/Makefile.in 2017-01-14 17:01:33.194550674 +0100
-+++ spacenavd-0.6/Makefile.in 2017-01-14 17:01:55.046552564 +0100
-@@ -7,7 +7,7 @@ ctl = spnavd_ctl
-
- CC = gcc
- INSTALL = install
--CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src -I/usr/local/include $(add_cflags)
-+CFLAGS = $(dbg) -fno-strict-aliasing -I$(srcdir)/src -I/usr/local/include $(add_cflags)
- LDFLAGS = -L/usr/local/lib $(xlib) $(add_ldflags)
-
- $(bin): $(obj)
diff --git a/app-misc/spacenavd/files/spacenavd-0.6-debug.patch b/app-misc/spacenavd/files/spacenavd-0.6-debug.patch
deleted file mode 100644
index 8a7fac1..0000000
--- a/app-misc/spacenavd/files/spacenavd-0.6-debug.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Npur spacenavd-0.6.orig/configure spacenavd-0.6/configure
---- spacenavd-0.6.orig/configure 2017-01-14 17:20:54.724651168 +0100
-+++ spacenavd-0.6/configure 2017-01-14 17:21:06.952652226 +0100
-@@ -36,7 +36,7 @@ check_header() {
-
- PREFIX=/usr/local
- OPT=yes
--DBG=yes
-+DBG=no
- X11=yes
- HOTPLUG=yes
- VER=`head -1 README | sed 's/^.*- //'`
diff --git a/app-misc/spacenavd/files/spacenavd.service b/app-misc/spacenavd/files/spacenavd.service
deleted file mode 100644
index b9b14d8..0000000
--- a/app-misc/spacenavd/files/spacenavd.service
+++ /dev/null
@@ -1,8 +0,0 @@
-[Unit]
-Description=3Dconnexion Input Devices Userspace Driver
-
-[Service]
-ExecStart=/usr/bin/spacenavd -d
-
-[Install]
-WantedBy=multi-user.target
diff --git a/app-misc/spacenavd/files/spnavd b/app-misc/spacenavd/files/spnavd
deleted file mode 100644
index 383a2ad..0000000
--- a/app-misc/spacenavd/files/spnavd
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2 or later
-
-depend() {
- need localmount
- after bootmisc
-}
-
-start() {
- ebegin "Starting Spacenav system daemon"
-
- start-stop-daemon --start --pidfile /var/run/spnavd.pid --exec /usr/bin/spacenavd
- eend $?
-}
-
-stop() {
- local retval
-
- ebegin "Stopping Spacenav system daemon"
-
- start-stop-daemon --stop --pidfile /var/run/spnavd.pid
- retval=$?
-
- eend ${retval}
- return ${retval}
-}
diff --git a/app-misc/spacenavd/metadata.xml b/app-misc/spacenavd/metadata.xml
deleted file mode 100644
index 07f8545..0000000
--- a/app-misc/spacenavd/metadata.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd>proxy-maintainers</herd>
- <maintainer>
- <email>anthoine.bourgeois@gmail.com</email>
- <name>Anthoine Bourgeois</name>
- </maintainer>
- <maintainer>
- <email>sping@gentoo.org</email>
- <name>Sebastian Pipping</name>
- </maintainer>
- <longdescription>
- The spacenavd daemon can be used directly as a drop-in replacement
- to the 3DxWare daemon. It can communicate with the official magellan
- SDK, and thus any program compiled with it can work with spacenavd
- transparently without any change or need of recompilation.
- Also, spacenavd provides an alternative communication protocol, for
- programs that use libspnav, that doesn't require an X server, as the
- original protocol does.
- </longdescription>
-</pkgmetadata>
diff --git a/app-misc/spacenavd/spacenavd-0.5-r6.ebuild b/app-misc/spacenavd/spacenavd-0.5-r6.ebuild
deleted file mode 100644
index ad4382e..0000000
--- a/app-misc/spacenavd/spacenavd-0.5-r6.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/spacenavd-0.5-r5.ebuild,v 1.1 2014/03/30 09:53:03 pacho Exp $
-
-EAPI="4"
-
-inherit eutils linux-info systemd toolchain-funcs udev
-
-MY_PN='spacenav'
-DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon."
-HOMEPAGE="http://spacenav.sourceforge.net/"
-SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz"
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="X"
-
-RDEPEND="X? ( x11-apps/xdpyinfo )"
-DEPEND="${RDEPEND}"
-
-pkg_setup() {
- CONFIG_CHECK="~INPUT_EVDEV"
- ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly"
- check_extra_config
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-destdir.patch
- epatch "${FILESDIR}"/${P}-custom-flags.patch
- epatch "${FILESDIR}"/${P}-no-x11.patch
-}
-
-src_configure() {
- econf \
- --enable-opt --enable-ldopt \
- $(use_enable X x11)
-}
-
-src_compile() {
- emake CC="$(tc-getCC)"
-}
-
-src_install() {
- # Config file
- insinto /etc
- newins "${S}/doc/example-spnavrc" spnavrc.sample
-
- # Init script
- newinitd "${FILESDIR}/spnavd" spacenavd
- systemd_dounit "${FILESDIR}/spacenavd.service"
-
- # Install udev rule but leave activiation to the user
- # since Xorg may be configured to grab the device already
- insinto "$(udev_get_udevdir)/rules.d"
- newins "${FILESDIR}"/99-space-navigator.rules-r1 99-space-navigator.rules.ignored
-
- # 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 spacenavd default\` (for openRC)"
- elog "\`systemctl enable spacenavd\` (for systemd)"
- 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
- elog
- 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 $(udev_get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`"
- ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
- ewarn "the new version of the daemon or \`systemctl restart spacenavd\`"
- ewarn "if using systemd."
-}
diff --git a/app-misc/spacenavd/spacenavd-0.6.ebuild b/app-misc/spacenavd/spacenavd-0.6.ebuild
deleted file mode 100644
index a523791..0000000
--- a/app-misc/spacenavd/spacenavd-0.6.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/spacenavd-0.5-r4.ebuild,v 1.6 2013/02/12 16:51:06 ago Exp $
-
-EAPI="4"
-
-inherit eutils linux-info systemd toolchain-funcs udev
-
-MY_PN='spacenav'
-DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon"
-HOMEPAGE="http://spacenav.sourceforge.net/"
-SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz"
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="X debug"
-
-RDEPEND="X? ( x11-apps/xdpyinfo )"
-DEPEND="${RDEPEND}"
-
-pkg_setup() {
- CONFIG_CHECK="~INPUT_EVDEV"
- ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly"
- check_extra_config
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-custom-flags.patch
-}
-
-src_configure() {
- econf \
- $(use_enable X x11) $(use_enable debug)
-}
-
-src_compile() {
- emake CC="$(tc-getCC)" \
- add_cflags="${CFLAGS}" add_ldflags="${LDFLAGS}"
-}
-
-src_install() {
- # Config file
- insinto /etc
- newins "${S}/doc/example-spnavrc" spnavrc.sample
-
- # Init script
- newinitd "${FILESDIR}/spnavd" spacenavd
- systemd_dounit "${FILESDIR}/spacenavd.service"
-
- # Install udev rule but leave activiation to the user
- # since Xorg may be configured to grab the device already
- insinto "$(get_udevdir)"
- newins "${FILESDIR}"/99-space-navigator.rules-r1 99-space-navigator.rules.ignored
-
- # 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 spacenavd default\` (for openRC)"
- elog "\`systemctl enable spacenavd\` (for systemd)"
- 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
- elog
- 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 $(get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`"
- ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
- ewarn "the new version of the daemon or \`systemctl restart spacenavd\`"
- ewarn "if using systemd."
-}