debian/0000755000000000000000000000000011472062613007170 5ustar debian/rules0000755000000000000000000000350511470606726010262 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/quilt/quilt.make # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) else CROSS= --build $(DEB_BUILD_GNU_TYPE) endif config.status: patch configure dh_testdir ./configure $(CROSS) --prefix=/usr \ CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" build: build-stamp build-stamp: config.status dh_testdir $(MAKE) touch $@ clean: dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || ( $(MAKE) clean; rm Makefile ) dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) PREFIX=$(CURDIR)/debian/spacenavd/usr install # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_installinit dh_installman dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/spnavd_ctl.80000644000000000000000000000002511470606726011422 0ustar .so man8/spacenavd.8 debian/watch0000644000000000000000000000007211470606726010227 0ustar version=3 http://sf.net/spacenav/spacenavd-(.+)\.tar\.gz debian/control0000644000000000000000000000144011472062610010567 0ustar Source: spacenavd Section: utils Priority: optional Maintainer: M G Berberich Build-Depends: debhelper (>= 7), quilt, autotools-dev, libx11-dev Standards-Version: 3.9.1 Homepage: http://spacenav.sourceforge.net DM-Upload-Allowed: yes Package: spacenavd Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: daemon for using 3D input devices from 3Dconnexion Spacenavd, is a free software replacement user-space driver (daemon), for 3Dconnexion's six-degree-of-freedom input devices. It is compatible with the original 3dxsrv proprietary daemon provided by 3Dconnexion, and works perfectly with any program that was written for the 3Dconnexion driver. It also offers another method of accessing the device via a new non-X11-dependent protocol. debian/spacenavd.init0000644000000000000000000000232011470606726012025 0ustar #!/bin/sh # # spacenavd free driver for 3Dconnexion 6dof devices # # chkconfig: 2345 99 99 # description: A free user space driver for 3Dconnexion input devices,\ # compatible with the proprietary 3dxsrv daemon. ### BEGIN INIT INFO # Provides: spacenavd # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: start spacenavd daemon # Description: free user space driver for 3Dconnexion input devices ### END INIT INFO DAEMON=/usr/sbin/spacenavd [ -x "$DAEMON" ] || exit 0 case "$1" in start) echo 'Starting spacenavd daemon' $DAEMON -v ;; stop) echo 'Stopping spacenavd daemon' # detect daemon's process id pid=`cat /var/run/spnavd.pid 2>/dev/null` if [ $? != 0 ]; then pid=`ps -e | grep spacenavd | awk '{ print $1 }'` if [ -z "$pid" ]; then echo 'spacenavd daemon is not running, nothing to do.' exit 1 fi fi kill $pid ;; reload|restart|force-reload) $0 stop && sleep 1 && $0 start ;; status) pid=`cat /var/run/spnavd.pid 2>/dev/null` if [ $? != 0 ]; then echo 'spacenavd daemon is not running.' exit 3 else echo 'spacenavd daemon is running.' exit 0 fi ;; esac debian/spacenavd.80000644000000000000000000000540411470606726011237 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH SPACENAVD 8 "January 27, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME spacenavd, spnavd_ctl \- daemon for 3D-input-devices .SH SYNOPSIS .B spacenavd .br .B spnavd_ctl .SH DESCRIPTION This manual page documents briefly the .B spacenavd commands. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. The \fBspacenav\fP project provides a free, compatible alternative, to the proprietary 3Dconnexion device driver and SDK, for their 3D input devices (called \*(lqspace navigator\*(rq, \*(lqspace pilot\*(rq, \*(lqspace traveller\*(rq, etc). \fBspacenavd,\fP is a free software replacement user-space driver (daemon), for 3Dconnexion's space-something 6dof input devices. It's compatible with the original 3dxsrv proprietary daemon provided by 3Dconnexion, and works perfectly with any program that was written for the 3Dconnexion driver. .SS Starting Depending on how your system startup process is set up, it might be the case that the spacenavd daemon starts before the X server (for instance if you don't use a graphical login). In that case the daemon will start properly, but won't connect to the X server until explicitly told to do so. You can do that by running \fBspnavd_ctl x11 start\fP as root, or by using the graphical \fBspnavcfg\fP program. You don't really want to have to do that all the time though, so it's a better idea to add the aforementioned \fBspnavd_ctl\fP command to either your ~/.xsession or ~/.xinitrd file, or the system-wide /etc/X11/Xsession file. .SS Configuration The \fBspacenavd\fP daemon reads a number of options from the /etc/spnavrc file. If that file doesn't exist, then it uses default values for everything. You may use the graphical \fBspnavcfg\fP program to interactively set any of these options. The daemon should respond immediately to your changes, and also the configuration file should be updated automatically. .SH AUTHOR \fBspacenavd\fP was written by John Tsiombikas (nuclear@member.fsf.org) .PP This manual page was assembled by M G Berberich , for the Debian project (but may be used by others). debian/changelog0000644000000000000000000000105111470606726011046 0ustar spacenavd (0.5-1) unstable; urgency=low * New upstream. -- M G Berberich Tue, 16 Nov 2010 22:57:21 +0100 spacenavd (0.4-2) unstable; urgency=low * Put daemon in /usr/sbin (Closes: #591437). * Fixed typo in control-file (Closes: #589663). -- M G Berberich Tue, 03 Aug 2010 22:38:27 +0200 spacenavd (0.4-1) unstable; urgency=low * Initial Debian upload (Closes: #552380). * New upstream release -- M G Berberich Sun, 25 Oct 2009 21:22:23 +0100 debian/docs0000644000000000000000000000000711470606726010047 0ustar README debian/spacenavd.manpages0000644000000000000000000000004711470606726012661 0ustar debian/spacenavd.8 debian/spnavd_ctl.8 debian/stamp-patched0000664000000000000000000000000011472062536011641 0ustar debian/copyright0000644000000000000000000000134611470606726011136 0ustar This package was debianized by M G Berberich on Tue, 27 Jan 2009 18:56:23 +0100. It was downloaded from http://spacenav.sourceforge.net/index.html Upstream Author: John Tsiombikas (nuclear@member.fsf.org) Copyright: Copyright (C) 2007-2009 John Tsiombikas License: The spacenavd driver is released under the GNU General Public License (GPL) version 3 (or any later version) You should have received a copy of the GNU General Public License with the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL-3; The Debian packaging is (C) copyright 2010, M G Berberich and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/compat0000644000000000000000000000000211470606726010375 0ustar 7 debian/source/0000755000000000000000000000000011470606726010477 5ustar debian/source/format0000644000000000000000000000001411470606726011705 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011470606726010626 5ustar debian/patches/init-file.dpatch0000644000000000000000000000305211470606726013673 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## init-file.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: changed init-script for debian @DPATCH@ diff -urNad spacenavd-0.4~/init_script spacenavd-0.4/init_script --- spacenavd-0.4~/init_script 2009-07-24 04:52:07.000000000 +0200 +++ spacenavd-0.4/init_script 2009-10-25 21:46:06.000000000 +0100 @@ -5,6 +5,15 @@ # chkconfig: 2345 99 99 # description: A free user space driver for 3Dconnexion input devices,\ # compatible with the proprietary 3dxsrv daemon. +### BEGIN INIT INFO +# Provides: spacenavd +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: start spacenavd daemon +# Description: free user space driver for 3Dconnexion input devices +### END INIT INFO DAEMON=/usr/local/bin/spacenavd @@ -33,4 +42,15 @@ reload|restart|force-reload) $0 stop && sleep 1 && $0 start ;; + +status) + pid=`cat /var/run/spnavd.pid 2>/dev/null` + if [ $? != 0 ]; then + echo 'spacenavd daemon is not running.' + exit 3 + else + echo 'spacenavd daemon is running.' + exit 0 + fi + ;; esac debian/patches/makefile.dpatch0000755000000000000000000000161511470606726013576 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## makefile.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: cleaning src/config.h too @DPATCH@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' spacenavd~/Makefile.in spacenavd/Makefile.in --- spacenavd~/Makefile.in 2010-06-29 22:26:52.000000000 +0200 +++ spacenavd/Makefile.in 2010-06-29 22:28:18.000000000 +0200 @@ -16,12 +16,13 @@ .PHONY: clean clean: - rm -f $(obj) $(bin) + rm -f $(obj) $(bin) src/config.h .PHONY: install install: $(bin) + $(INSTALL) -d $(PREFIX)/sbin + $(INSTALL) -m 755 $(bin) $(PREFIX)/sbin/$(bin) $(INSTALL) -d $(PREFIX)/bin - $(INSTALL) -m 755 $(bin) $(PREFIX)/bin/$(bin) $(INSTALL) -m 755 $(srcdir)/$(ctl) $(PREFIX)/bin/$(ctl) cd $(srcdir) && ./setup_init --no-install debian/patches/series0000644000000000000000000000004111470606726012036 0ustar init-file.dpatch makefile.dpatch