forked from pool/spacenavd
Accepting request 288576 from home:hgraeber:branches:hardware
- Update to version 0.6 - Remove init file OBS-URL: https://build.opensuse.org/request/show/288576 OBS-URL: https://build.opensuse.org/package/show/hardware/spacenavd?expand=0&rev=2
This commit is contained in:
parent
b2bfd7b8b1
commit
8acb1e64f2
103
init-spacenavd
103
init-spacenavd
@ -1,103 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# /etc/init.d/spacenavd
|
||||
# and its symbolic link
|
||||
# /usr/sbin/rcspacenavd
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: spacenavd
|
||||
# Required-Start: $syslog $remote_fs
|
||||
# Should-Start:
|
||||
# Required-Stop: $syslog $remote_fs
|
||||
# Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: spacenavd daemon for 3d connexion devices
|
||||
# Description: Start spacenavd to control 3d connexion devices
|
||||
### END INIT INFO
|
||||
#
|
||||
|
||||
# Check for missing binaries (stale symlinks should not happen)
|
||||
# Note: Special treatment of stop for LSB conformance
|
||||
SPACENAVD_BIN=/usr/sbin/spacenavd
|
||||
test -x $SPACENAVD_BIN || { echo "$SPACENAVD_BIN not installed";
|
||||
if [ "$1" = "stop" ]; then exit 0;
|
||||
else exit 5; fi; }
|
||||
|
||||
# Check for existence of needed config file and read it
|
||||
#SPACENAVD_CONFIG=/etc/sysconfig/spacenavd
|
||||
#test -r $SPACENAVD_CONFIG || { echo "$SPACENAVD_CONFIG not existing";
|
||||
# if [ "$1" = "stop" ]; then exit 0;
|
||||
# else exit 6; fi; }
|
||||
|
||||
# Read config
|
||||
#. $SPACENAVD_CONFIG
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
# Reset status of this service
|
||||
rc_reset
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting spacenavd"
|
||||
/sbin/startproc $SPACENAVD_BIN
|
||||
|
||||
# Remember status and be verbose
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down spacenavd"
|
||||
/sbin/killproc -TERM $SPACENAVD_BIN
|
||||
|
||||
# Remember status and be verbose
|
||||
rc_status -v
|
||||
;;
|
||||
try-restart|condrestart)
|
||||
if test "$1" = "condrestart"; then
|
||||
echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
|
||||
fi
|
||||
$0 status
|
||||
if test $? = 0; then
|
||||
$0 restart
|
||||
else
|
||||
rc_reset # Not running is not a failure.
|
||||
fi
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
force-reload)
|
||||
echo -n "Reload service spacenavd"
|
||||
## if it supports it:
|
||||
/sbin/killproc -HUP $SPACENAVD_BIN
|
||||
touch /var/run/spnavd.pid
|
||||
rc_status -v
|
||||
;;
|
||||
reload)
|
||||
# If it supports signaling:
|
||||
echo -n "Reload service spacenavd"
|
||||
/sbin/killproc -HUP $SPACENAVD_BIN
|
||||
touch /var/run/spnavd.pid
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for service spacenavd"
|
||||
/sbin/checkproc $SPACENAVD_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
probe)
|
||||
test /etc/spnavrc -nt /var/run/spnavd.pid && echo reload
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
rc_exit
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b172eb02d53965bf2704580c562a48ec273e4d792fafe3303352a570b5b62d24
|
||||
size 36811
|
3
spacenavd-0.6.tar.gz
Normal file
3
spacenavd-0.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c2d203bf96c5a959590146a43fe5d6e5e8c5c38a8b2f55aa199d967d0d88d0ab
|
||||
size 54730
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 2 20:45:40 UTC 2015 - herbert@graeber-clan.de
|
||||
|
||||
- Update to version 0.6
|
||||
- Remove init file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 8 13:59:19 UTC 2013 - herbert@graeber-clan.de
|
||||
|
||||
|
@ -10,14 +10,13 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: spacenavd
|
||||
Version: 0.5
|
||||
Version: 0.6
|
||||
Release: 0
|
||||
Summary: Daemon for 3D connexion devices
|
||||
Group: Hardware/Other
|
||||
License: GPL-3.0+
|
||||
URL: http://spacenav.sourceforge.net
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source1: init-%{name}
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
Source2: spnavrc
|
||||
Source3: xinitrc-%{name}
|
||||
SOurce4: %{name}.service
|
||||
@ -51,10 +50,9 @@ For more info on the spacenav project, visit: http://spacenav.sourceforge.net
|
||||
%install
|
||||
install -D -m 755 %{name} %{buildroot}%{_sbindir}/%{name}
|
||||
install -D -m 755 spnavd_ctl %{buildroot}%{_bindir}/spnavd_ctl
|
||||
install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/%{name}
|
||||
install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/spnavrc
|
||||
install -D -m 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/%{name}
|
||||
ln -s ../..%{_sysconfdir}/init.d/%{name} $RPM_BUILD_ROOT%{_sbindir}/rc%{name}
|
||||
ln -sf service $RPM_BUILD_ROOT%{_sbindir}/rc%{name}
|
||||
%if 0%{?has_systemd}
|
||||
install -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service
|
||||
%endif
|
||||
@ -90,7 +88,6 @@ install -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service
|
||||
%{_sbindir}/rc%{name}
|
||||
%{_bindir}/spnavd_ctl
|
||||
%config(noreplace) %{_sysconfdir}/spnavrc
|
||||
%{_sysconfdir}/init.d/%{name}
|
||||
%if 0%{?has_systemd}
|
||||
%{_unitdir}/%{name}.service
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user