diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
commit | d87262dd706fec50cd150aab3e93883b6337466d (patch) | |
tree | 246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-misc/spacenavd | |
parent | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/spacenavd')
-rw-r--r-- | app-misc/spacenavd/Manifest | 14 | ||||
-rw-r--r-- | app-misc/spacenavd/files/99-space-navigator.rules | 5 | ||||
-rw-r--r-- | app-misc/spacenavd/files/99-space-navigator.rules-r1 | 6 | ||||
-rw-r--r-- | app-misc/spacenavd/files/99-space-navigator.rules-r2 | 6 | ||||
-rw-r--r-- | app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch | 67 | ||||
-rw-r--r-- | app-misc/spacenavd/files/spacenavd-0.5-destdir.patch | 16 | ||||
-rw-r--r-- | app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch | 13 | ||||
-rw-r--r-- | app-misc/spacenavd/files/spacenavd.service | 8 | ||||
-rw-r--r-- | app-misc/spacenavd/files/spnavd | 27 | ||||
-rw-r--r-- | app-misc/spacenavd/metadata.xml | 28 | ||||
-rw-r--r-- | app-misc/spacenavd/spacenavd-0.5-r5.ebuild | 81 | ||||
-rw-r--r-- | app-misc/spacenavd/spacenavd-0.5-r6.ebuild | 80 | ||||
-rw-r--r-- | app-misc/spacenavd/spacenavd-0.6.ebuild | 78 |
13 files changed, 0 insertions, 429 deletions
diff --git a/app-misc/spacenavd/Manifest b/app-misc/spacenavd/Manifest deleted file mode 100644 index e9f82f3f2f6c..000000000000 --- a/app-misc/spacenavd/Manifest +++ /dev/null @@ -1,14 +0,0 @@ -AUX 99-space-navigator.rules 319 BLAKE2B bd7dc7d14d1fece05030151cb85f0b4debfbd8a3dfc78724a2a607467ec1516ca6c0a4af43e4f40a2344496cfd5d8e3ab60190c74af1f81984e0399438e68ff1 SHA512 c66c5738ff980515cc0e6e77f873888b09f30bca54b5c947cc9c8276c388f37c9492d7c2a92420fa3713ca7d7d9f9f3ec5449fa01a71c6897b3204c0ac68fd3c -AUX 99-space-navigator.rules-r1 478 BLAKE2B 62b2bca510da6b672271d47cfac5c21f6294ba7586068f56a7cc818ff07572e005b1236956d52d286d9e21d057b6ebe489e832c3cc4f8c792e3eed86722920c6 SHA512 6398a8859c4d6e75f8885cf937543adab0c2d58ac80dc151ba814fa28b93086d4848eadb50ee2bbb3059fc11c17b78f334bf8805aaec75dbad41e672b07c8aa1 -AUX 99-space-navigator.rules-r2 461 BLAKE2B b97685a2c3c628bd5a52e66d044d2ef8123c96128ae02ff46c33dffbe9ca5cba63f26ccbbf072872217b8a3a881e65a040b0c51fe91a042867f8a2cda6b6c680 SHA512 6871c629999c5f6c6988709bf15ae2821d8375fe80e3f8271cf285734163b523541dc04e70571a3578eba567e1b04ecb3cc2a57f1fd9f138c62226c07a09e18f -AUX spacenavd-0.5-custom-flags.patch 2008 BLAKE2B 789dc350c1ef63c052e5ff298dcdd0c0ea4a2911153b51a01d3b933c855865d752e5cda72eb23fbdfa0c4170469b0858e205b724dc1cd4b52d497ea114748af1 SHA512 547d9f3098846901418acb71be996cec39bf18616e4a7eee5fc09bc201bfb2a534ff70f38d515b0f6c685330d002ea277c03b448ba70de4a3df65e6286780174 -AUX spacenavd-0.5-destdir.patch 649 BLAKE2B 7a3159e7820c03cc5d38ca54a732abc46c2436e277353283c0bd70fb3f0e3d60adc99f925b5c94d5873cb9a8234e12c86fa1dcf549f87c9fb008b6d46e18655e SHA512 4330ae7b49e661a60f01931716f9924c01cade4e169b3de48ec08039099ce10c6dfe5c8df9a3b01c1890ccb83b3c92d45ea06f5fd9465c3f1514902cc375e1f0 -AUX spacenavd-0.5-no-x11.patch 388 BLAKE2B 14c4cac74d5eb13d2c3619b5dde2296f934dfb6215dfe72538d2135eaddf39097100d6e048fe8dfe5e3acaddba02582d7195f7537a6e10b2bdd4e97864430a0a SHA512 d6cb2d6337b3e19ef56f5e0ccbfdc731b038009df852b3d1f7272001aa18e70a1701c3af2d1b4976cac7392a6176c0f4cee787d2c9b4b96ba029d1cc0db3d7ae -AUX spacenavd.service 143 BLAKE2B 43621538a7362ccd655ed06517865b0b4f7b992aa6ded4765d8b4cba3a347e260c15d21792d4e0ee3d31cd7817a641cb2f8c42989bdc2a1f20d0fd4521fa2e20 SHA512 1f2fd8bf2bdffe3e52f5e2e53e0643e0d5ad5134bfd636ebc2c98f397da5c87bca3582fd76f9e987fb6ed3d17130196f4eee193998f97e388dc04877277c04d5 -AUX spnavd 580 BLAKE2B 948a29de5edffd17643ba2540b9a787e578e6114cef0d7536120f9a6f0b69e2dedb65a80cd8dc6827ae9f75500d1d13eadc83431927eda159cc3705f53f3bee5 SHA512 460ce173a1a68ab571fb39a0a00bdedcffaee5251037cc5787ecf90054f67333537087b3fabfd4a0e5b28acb5f72a7ef9b2bf50e9279336cdf95a18ecec13ce5 -DIST spacenavd-0.5.tar.gz 41746 BLAKE2B bd97cb9ad1ce684cbe0f39e03db0fe0a9cead9aa4a8142546632397fa923fc1067e2d33ea0270625b5bb06bc784c75f0e9ae49cfba7194d23537a7427abe1e68 SHA512 908f598e4ba5febbc1191cc32cd444817acd40c22e79b1f139c50787e1e25d4cd8328dc3fd6d9dde09bb80232b52f0e75ae429fb3345eb51fbe5a47577b038e2 -DIST spacenavd-0.6.tar.gz 54730 BLAKE2B 5d158ebb190359c6e6c2a20093f824f176e028c0d375ab4aadc635f7b26884df2ae58585e82dc3978892d04d139cc6c4704fedc300508f9314478f19d4ee11b6 SHA512 ff039e169805365ce8c1df1258eda6d263a0724c087b22a9e78269629455580817027d936e6bb7014b7654f48aa23232e8059585175003034e4bd3e0d6ed8200 -EBUILD spacenavd-0.5-r5.ebuild 2319 BLAKE2B 7f555ec38a828848ff3686def93a853a3a3b1c8af40274c7f040b3143f1d0f44c71d9931f0587db9c48a23aa8085fe3297c6d53fff4b9ffea23c4a894e362f4f SHA512 4fca63971153edfb5a69ca8cf40e543edcfd3f8c97ec729fc3afb550d00027566097f409a46c15bc2585dfe833e63208f709e3d713e58cdef2e730cd58c95444 -EBUILD spacenavd-0.5-r6.ebuild 2303 BLAKE2B 2acc81a1da275309f5fa0d9dd6931f9242107a7622467c23b37b0b0ff401bc6c560bae31a614c281527183e2464dd9ec09f95584a07a79b8b9e556f74cf6ebe0 SHA512 aeb2e1501a7a0c40f94c809994c29dc902a142362b5d5802d4a3354b62dd9c7880699eb2ba9c79a3f288cc301d453177e24ec9850c40b26758c2bfd82740d31b -EBUILD spacenavd-0.6.ebuild 2230 BLAKE2B f536ec95b124cce754294a8e5664c0d3b23d907ef74d296ba910ef09a1e1fa12a4205719b9d72eadc07bed677e0ec0995cfea0c9f926cd819bdb01922b2cc413 SHA512 aa5c1d28e0f21c2a12abce33b32001df0b708d0424136694ca222b9016a701af08eadf7d78141483720c7b72871313389286abfd70bd3fbd573ab5d4d65be827 -MISC metadata.xml 1044 BLAKE2B a38794b340bd633034a037621929c22a0673f3cd69725407a0c84e47143cc600e27e2c5b53224374741dbb0e02250f6e52485e4c011594cea986f927ae066c4e SHA512 04b15a567deac4a6bc1a0b250c585d863d9bebdca0a5160a3b77e1830190abadf1b98371b33e60a8d67978de3f0db117d51d598a861782663cf7b35e74a5d859 diff --git a/app-misc/spacenavd/files/99-space-navigator.rules b/app-misc/spacenavd/files/99-space-navigator.rules deleted file mode 100644 index ef2640e65715..000000000000 --- a/app-misc/spacenavd/files/99-space-navigator.rules +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 or later - -# 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/files/99-space-navigator.rules-r1 b/app-misc/spacenavd/files/99-space-navigator.rules-r1 deleted file mode 100644 index fa5dc93fcca5..000000000000 --- a/app-misc/spacenavd/files/99-space-navigator.rules-r1 +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 or later - -# 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/99-space-navigator.rules-r2 b/app-misc/spacenavd/files/99-space-navigator.rules-r2 deleted file mode 100644 index 47d013275b61..000000000000 --- a/app-misc/spacenavd/files/99-space-navigator.rules-r2 +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 or later - -# Start daemon on insertion of a SpaceNavigator device -SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="Space*", RUN+="/etc/init.d/spacenavd --quiet start" -SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="Space*", 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 3b834a43952d..000000000000 --- 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 5b2372242e14..000000000000 --- 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 bbdd7d6196ec..000000000000 --- 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.service b/app-misc/spacenavd/files/spacenavd.service deleted file mode 100644 index b9b14d80086a..000000000000 --- 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 6bbe49a7bbf0..000000000000 --- a/app-misc/spacenavd/files/spnavd +++ /dev/null @@ -1,27 +0,0 @@ -#!/sbin/openrc-run -# 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 3e3914927158..000000000000 --- a/app-misc/spacenavd/metadata.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>anthoine.bourgeois@gmail.com</email> - <name>Anthoine Bourgeois</name> - </maintainer> - <maintainer type="person"> - <email>sping@gentoo.org</email> - <name>Sebastian Pipping</name> - </maintainer> - <maintainer type="project"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</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> - <upstream> - <remote-id type="sourceforge">spacenav</remote-id> - </upstream> -</pkgmetadata> diff --git a/app-misc/spacenavd/spacenavd-0.5-r5.ebuild b/app-misc/spacenavd/spacenavd-0.5-r5.ebuild deleted file mode 100644 index e586369f045c..000000000000 --- a/app-misc/spacenavd/spacenavd-0.5-r5.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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 "$(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." -} 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 21dab6b21ab9..000000000000 --- a/app-misc/spacenavd/spacenavd-0.5-r6.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -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 - udev_newrules "${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." -} diff --git a/app-misc/spacenavd/spacenavd-0.6.ebuild b/app-misc/spacenavd/spacenavd-0.6.ebuild deleted file mode 100644 index 86b0c8ae3156..000000000000 --- a/app-misc/spacenavd/spacenavd-0.6.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit 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_configure() { - econf \ - --disable-debug \ - --enable-hotplug \ - --disable-opt \ - $(use_enable X x11) -} - -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 - udev_newrules "${FILESDIR}"/99-space-navigator.rules-r2 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." -} |