Mailinglist Archive: opensuse-commit (1248 mails)
| < Previous | Next > |
commit input-utils for openSUSE:Factory
- From: root@xxxxxxxxxxxxxxx (h_root)
- Date: Thu, 01 Apr 2010 17:47:49 +0200
- Message-id: <20100401154749.58D1C20299@xxxxxxxxxxxxxxx>
Hello community,
here is the log from the commit of package input-utils for openSUSE:Factory
checked in at Thu Apr 1 17:47:49 CEST 2010.
--------
--- input-utils/input-utils.changes 2009-06-19 11:01:58.000000000 +0200
+++ /mounts/work_src_done/STABLE/input-utils/input-utils.changes
2009-09-29 16:55:41.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Sep 29 16:27:10 CEST 2009 - prusnak@xxxxxxx
+
+- added initscript for inputattach [bnc#456829] [Fate#306376]
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
inputattach.init
inputattach.sysconfig
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ input-utils.spec ++++++
--- /var/tmp/diff_new_pack.lCswJF/_old 2010-04-01 17:45:58.000000000 +0200
+++ /var/tmp/diff_new_pack.lCswJF/_new 2010-04-01 17:45:58.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package input-utils (Version 2007.06.22)
#
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,16 +20,18 @@
Name: input-utils
BuildRequires: SDL-devel linux-kernel-headers
+PreReq: %fillup_prereq
Version: 2007.06.22
-Release: 158
+Release: 159
Provides: joystick
Obsoletes: joystick
-AutoReqProv: on
Group: Hardware/Joystick
-License: GPL v2 or later
+License: GPLv2+
Url: http://linuxconsole.sourceforge.net/input/input.html
Summary: A Set of Utilities for Input Devices
Source: %{name}-%{version}.tar.bz2
+Source1: inputattach.init
+Source2: inputattach.sysconfig
Patch0: %{name}-makefile.patch
Patch1: %{name}-on_exit.patch
Patch2: %{name}-dtor.patch
@@ -63,14 +65,26 @@
make CFLAGS="$RPM_OPT_FLAGS -Wall" PROGRAMS="%{programs}"
%install
-install -m755 -d $RPM_BUILD_ROOT%{_bindir}
-install -m755 -t $RPM_BUILD_ROOT%{_bindir} %{programs}
+install -m 0755 -d $RPM_BUILD_ROOT%{_bindir}
+install -m 0755 -t $RPM_BUILD_ROOT%{_bindir} %{programs}
+# init script
+install -D -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/inputattach
+mkdir -p $RPM_BUILD_ROOT%{_sbindir}
+ln -sf %{_sysconfdir}/init.d/inputattach
$RPM_BUILD_ROOT%{_sbindir}/rcinputattach
+# sysconfig
+install -D -m 700 %{SOURCE2}
$RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.inputattach-%{name}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%{fillup_only -an inputattach}
+
%files
%defattr(-,root,root)
%{_bindir}/*
+%{_sysconfdir}/init.d/inputattach
+%{_sbindir}/rcinputattach
+/var/adm/fillup-templates/sysconfig.inputattach-%{name}
%changelog
++++++ inputattach.init ++++++
#!/bin/sh
#
# /etc/init.d/inputattach
#
# This connects devices on serial ports to
# user-specified kernel drivers.
#
### BEGIN INIT INFO
# Provides: boot.inputattach
# Should-Start: $local_fs boot.loadmodules setserial
# Should-Stop: $null
# Required-Start:
# Required-Stop:
# Default-Start: 1 2 3 5
# Default-Stop: 0 6
# Description: Attaches drivers to serial devices
### END INIT INFO
. /etc/rc.status
. /etc/sysconfig/inputattach
inputattach_bin=/usr/bin/inputattach
rc_reset
case $1 in
start)
echo -n "Starting inputattach for serial drivers:"
if test -n "$INPUTATTACH_DRIVERS" ; then
echo
for pair in $INPUTATTACH_DRIVERS ; do
serial_node="${pair%%:*}"
inputattach_driver="${pair##*:}"
inputattach_params="--${inputattach_driver} ${serial_node}"
startproc ${inputattach_bin} ${inputattach_params}
rc_status -v
done
else
rc_status -u
fi
;;
stop)
echo -n "Stopping inputattach for serial drivers:"
killproc -TERM ${inputattach_bin}
rc_status -v
;;
restart)
$0 stop
$0 start
rc_status
force-reload)
$0 stop
$0 start
rc_status
status)
echo -n "Checking for inputattach:"
checkproc ${inputattach_bin}
rc_status -v
*)
echo "Usage: $0 {start|stop|restart|force-reload|status}"
;;
esac
rc_exit
++++++ inputattach.sysconfig ++++++
## Path: Hardware/Serial
## Description: Serial port driver settings
## Type: string
## Default: ""
#
# Attach a kernel driver to a device on a serial port.
# Use pairs <device>:<driver> separated by space.
# Specify the full path of the serial device node.
# See "inputattach --help" for a list of driver strings.
# Use the full driver name, e.g. "sunkbd" not "skb".
# Example: "/dev/ttyS0:elotouch /dev/ttyS3:sunmouse"
#
INPUTATTACH_DRIVERS=""
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx
| < Previous | Next > |