diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/spacenavd | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/spacenavd')
-rw-r--r-- | app-misc/spacenavd/Manifest | 1 | ||||
-rw-r--r-- | app-misc/spacenavd/files/99-space-navigator.rules | 6 | ||||
-rw-r--r-- | app-misc/spacenavd/files/99-space-navigator.rules-r1 | 7 | ||||
-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 | 25 | ||||
-rw-r--r-- | app-misc/spacenavd/spacenavd-0.5-r2.ebuild | 79 | ||||
-rw-r--r-- | app-misc/spacenavd/spacenavd-0.5-r4.ebuild | 79 | ||||
-rw-r--r-- | app-misc/spacenavd/spacenavd-0.5-r5.ebuild | 82 |
12 files changed, 410 insertions, 0 deletions
diff --git a/app-misc/spacenavd/Manifest b/app-misc/spacenavd/Manifest new file mode 100644 index 000000000000..f3abd1d0ac2a --- /dev/null +++ b/app-misc/spacenavd/Manifest @@ -0,0 +1 @@ +DIST spacenavd-0.5.tar.gz 41746 SHA256 0eecc5b5ad47ee6376d1521f2bc7c8f8fc02904cf3fede3f77e59f4795b592e3 SHA512 908f598e4ba5febbc1191cc32cd444817acd40c22e79b1f139c50787e1e25d4cd8328dc3fd6d9dde09bb80232b52f0e75ae429fb3345eb51fbe5a47577b038e2 WHIRLPOOL e2cf70c7e9cc4b8e32b15ab79dae565c8c2a4bc32a6485a0a1857ea4d4667859ac0bb82e32cd54b722d51c34b9ea094fe8bcb1459a9f60077bde8a01207ab910 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..a5e8f0b65305 --- /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 +# $Id$ + +# 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 new file mode 100644 index 000000000000..8135060fbf23 --- /dev/null +++ b/app-misc/spacenavd/files/99-space-navigator.rules-r1 @@ -0,0 +1,7 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 or later +# $Id$ + +# 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 new file mode 100644 index 000000000000..3b834a43952d --- /dev/null +++ b/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch @@ -0,0 +1,67 @@ +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 new file mode 100644 index 000000000000..5b2372242e14 --- /dev/null +++ b/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch @@ -0,0 +1,16 @@ +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 new file mode 100644 index 000000000000..bbdd7d6196ec --- /dev/null +++ b/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch @@ -0,0 +1,13 @@ +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 new file mode 100644 index 000000000000..b9b14d80086a --- /dev/null +++ b/app-misc/spacenavd/files/spacenavd.service @@ -0,0 +1,8 @@ +[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 new file mode 100644 index 000000000000..383a2adc390f --- /dev/null +++ b/app-misc/spacenavd/files/spnavd @@ -0,0 +1,27 @@ +#!/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 new file mode 100644 index 000000000000..7427fff80184 --- /dev/null +++ b/app-misc/spacenavd/metadata.xml @@ -0,0 +1,25 @@ +<?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> + <upstream> + <remote-id type="sourceforge">spacenav</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-misc/spacenavd/spacenavd-0.5-r2.ebuild b/app-misc/spacenavd/spacenavd-0.5-r2.ebuild new file mode 100644 index 000000000000..3a87bac9d9c4 --- /dev/null +++ b/app-misc/spacenavd/spacenavd-0.5-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils linux-info toolchain-funcs + +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 || die + + # 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" +} + +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\`" + 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 "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." +} diff --git a/app-misc/spacenavd/spacenavd-0.5-r4.ebuild b/app-misc/spacenavd/spacenavd-0.5-r4.ebuild new file mode 100644 index 000000000000..80b98d24127f --- /dev/null +++ b/app-misc/spacenavd/spacenavd-0.5-r4.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils linux-info 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 + + # 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 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\`" + 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." +} diff --git a/app-misc/spacenavd/spacenavd-0.5-r5.ebuild b/app-misc/spacenavd/spacenavd-0.5-r5.ebuild new file mode 100644 index 000000000000..7cbf4815a2af --- /dev/null +++ b/app-misc/spacenavd/spacenavd-0.5-r5.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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." +} |