rpms/rinputd/devel rinputd.init, NONE, 1.1 rinputd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Jarod Wilson
jwilson at fedoraproject.org
Tue Feb 16 04:26:14 UTC 2010
Author: jwilson
Update of /cvs/pkgs/rpms/rinputd/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9379
Modified Files:
.cvsignore sources
Added Files:
rinputd.init rinputd.spec
Log Message:
initial import of rinputd to Fedora
--- NEW FILE rinputd.init ---
#! /bin/sh
# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: rinputd
# Required-Start: $network
# Required-Stop:
# Should-Start: $saslauthd $network
# Default-Start:
# Default-Stop: 0 6
# Short-Description: rinputd remote input server daemon
# Description: Listens for remote input clients that send input events
# like key presses or mouse movements.
### END INIT INFO
# the following is the chkconfig init header
#
# rinputd: rinputd remote input server daemon
#
# chkconfig: - 70 99
# description: Listens for remote input clients that send input events
# like key presses or mouse movements.
#
# Author: Chase Douglas <chasedouglas at gmail.com>
# Modified for Fedora by Jarod Wilson <jarod at redhat.com>
DESC="Remote Input Daemon"
prog=rinputd
DAEMON=/usr/sbin/$prog
PIDFILE=/var/run/$prog.pid
LOCKFILE=/var/lock/subsys/$prog
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/rinput/$prog.conf ] && . /etc/rinput/$prog.conf
# Source function library
. /etc/init.d/functions
#
# Function that starts the daemon/service
#
do_start()
{
# We have a hard dependency on uinput to deliver events,
# so make damned sure the uinput driver is loaded.
/sbin/modprobe uinput >/dev/null 2>&1
echo -n $"Starting $DESC: "
daemon $prog -q $RINPUTD_ARGS
retval=$?
if [ $retval -eq 0 ]; then
success
echo
touch $LOCKFILE
else
failure
echo
fi
return $retval
}
#
# Function that stops the daemon/service
#
do_stop()
{
echo -n $"Stopping $DESC: "
killproc $prog
echo
rm -f $LOCKFILE
return $?
}
case "$1" in
start)
do_start
;;
stop)
do_stop
;;
restart|reload|force-reload)
do_stop
do_start
;;
status)
status $prog
exit $?
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2
exit 2
;;
esac
:
--- NEW FILE rinputd.spec ---
Name: rinputd
Version: 1.0.2
Release: 2%{?dist}
Summary: A server for receiving input events over the network
Group: System Environment/Base
License: GPLv2 and OpenSSL
URL: https://launchpad.net/rinput
Source0: http://launchpad.net/rinput/trunk/%{version}/+download/%{name}_%{version}.tar.gz
Source1: rinputd.init
BuildRequires: cmake, avahi-qt4-devel, cyrus-sasl-devel, openssl-devel
Requires(post): openssl, chkconfig
%description
The Remote Input server allows clients to send input events, such as
mouse movements or keyboard presses, over a secure, authenticated
communication channel. Remote devices, be they separate computers
or mobile devices, can provide mouse, keyboard, multi-touch,
switches and other input to the Remote Input server, and the server
will create virtual keyboards and mice for each connection.
%package devel
Summary: Development headers for building rinputd clients
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development headers for building rinputd clients, see
https://wiki.ubuntu.com/RemoteInput/RemoteInputProtocol for
protocol documentation.
%prep
%setup -q -n %{name}_%{version}-1
%build
# need shared libs off to prevent bogus libcommon dep, its an internal libcommon...
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rinput
touch $RPM_BUILD_ROOT%{_sysconfdir}/rinput/rinput.{key,crt}
cat <<- __EOF__ > $RPM_BUILD_ROOT/%{_sysconfdir}/rinput/%{name}.conf
# Arguments passed to rinputd when started from /etc/init.d/rinputd
RINPUTD_ARGS=""
__EOF__
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
install -p -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%preun
/sbin/chkconfig --del %{_sysconfdir}/init.d/%{name}
%post
/sbin/chkconfig --add %{_sysconfdir}/init.d/%{name}
if [ ! -e %{_sysconfdir}/rinput/rinput.key ]; then
openssl genrsa -out %{_sysconfdir}/rinput/rinput.key 1024 > /dev/null 2>&1
fi
if [ ! -e %{_sysconfdir}/rinput/rinput.crt ]; then
echo "
$(hostname)
" | openssl req -new -x509 -key %{_sysconfdir}/rinput/rinput.key -out %{_sysconfdir}/rinput/rinput.crt -days 1095 > /dev/null 2>&1
fi
%files
%defattr(-,root,root,-)
%doc LICENSE LICENSE.openssl
%dir %{_sysconfdir}/rinput
%config(noreplace) %{_sysconfdir}/rinput/rinputd.conf
%ghost %config(noreplace) %{_sysconfdir}/rinput/rinput.key
%ghost %config(noreplace) %{_sysconfdir}/rinput/rinput.crt
%{_sysconfdir}/init.d/%{name}
%{_sbindir}/rinputd
%{_mandir}/man8/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/rinput.h
%changelog
* Thu Feb 11 2010 Jarod Wilson <jarod at redhat.com> 1.0.2-2
- Fix Source0 URL
* Wed Jan 13 2010 Jarod Wilson <jarod at redhat.com> 1.0.2-1
- Update to 1.0.2, adds true daemonize support
* Sat Jan 09 2010 Jarod Wilson <jarod at redhat.com> 1.0.1-3
- Fix up rpmlint warnings
* Fri Jan 08 2010 Jarod Wilson <jarod at redhat.com> 1.0.1-2
- Add initscript and cfg, split off devel package
* Thu Jan 07 2010 Jarod Wilson <jarod at redhat.com> 1.0.1-1
- Initial build
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rinputd/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 16 Feb 2010 03:55:57 -0000 1.1
+++ .cvsignore 16 Feb 2010 04:26:13 -0000 1.2
@@ -0,0 +1 @@
+rinputd_1.0.2.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rinputd/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 16 Feb 2010 03:55:57 -0000 1.1
+++ sources 16 Feb 2010 04:26:14 -0000 1.2
@@ -0,0 +1 @@
+2d3266b6c3b3865edda9e5d8dd8a1b9c rinputd_1.0.2.tar.gz
More information about the scm-commits
mailing list