- remove unnecessary diagnostic and check of the consolename (#129962)
- remove /etc/sysconfig/gpm; set unset defaults in the init script instead after mousecfg is (or is not) read
This commit is contained in:
parent
687840152f
commit
68ec9e296c
@ -1 +1,2 @@
|
|||||||
gpm-1.20.1.tar.gz
|
gpm-1.20.1.tar.gz
|
||||||
|
gpm.rc
|
||||||
|
0
gpm-1.20.1-consolename.patch
Normal file
0
gpm-1.20.1-consolename.patch
Normal file
20
gpm.init
20
gpm.init
@ -12,22 +12,21 @@
|
|||||||
# source function library
|
# source function library
|
||||||
. /etc/init.d/functions
|
. /etc/init.d/functions
|
||||||
|
|
||||||
if test -e /etc/sysconfig/gpm ; then
|
|
||||||
. /etc/sysconfig/gpm
|
|
||||||
MOUSECFG=/etc/sysconfig/gpm
|
|
||||||
fi
|
|
||||||
if test -e /etc/sysconfig/mouse ; then
|
if test -e /etc/sysconfig/mouse ; then
|
||||||
. /etc/sysconfig/mouse
|
. /etc/sysconfig/mouse
|
||||||
MOUSECFG=/etc/sysconfig/mouse
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo -n $"Starting console mouse services: "
|
echo -n $"Starting console mouse services: "
|
||||||
if [ -z "$MOUSECFG" ]; then
|
|
||||||
echo $"(no mouse is configured)"
|
if [ -z "$MOUSETYPE" ]; then
|
||||||
exit 0
|
DEVICE="/dev/input/mice"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$DEVICE" ]; then
|
||||||
|
DEVICE="/dev/input/mice"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MOUSETYPE" = "none" ]; then
|
if [ "$MOUSETYPE" = "none" ]; then
|
||||||
@ -35,15 +34,10 @@ start() {
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$MOUSETYPE" = "Microsoft" ]; then
|
if [ "$MOUSETYPE" = "Microsoft" ]; then
|
||||||
MOUSETYPE=ms
|
MOUSETYPE=ms
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$DEVICE" ]; then
|
|
||||||
DEVICE="/dev/input/mice"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$IMOUSETYPE" ]; then
|
if [ -n "$IMOUSETYPE" ]; then
|
||||||
modprobe sermouse > /dev/null 2>&1
|
modprobe sermouse > /dev/null 2>&1
|
||||||
/usr/sbin/inputattach -$IMOUSETYPE $DEVICE --daemon
|
/usr/sbin/inputattach -$IMOUSETYPE $DEVICE --daemon
|
||||||
|
21
gpm.spec
21
gpm.spec
@ -5,7 +5,7 @@ Release: 59
|
|||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source: http://ftp.linux.it/pub/People/rubini/gpm/%{name}-%{version}.tar.gz
|
Source: http://ftp.linux.it/pub/People/rubini/gpm/%{name}-%{version}.tar.gz
|
||||||
Source1: gpm.init
|
Source1: gpm.rc
|
||||||
Source2: inputattach.c
|
Source2: inputattach.c
|
||||||
Patch1: gpm-evdev-cumulative.patch
|
Patch1: gpm-evdev-cumulative.patch
|
||||||
Patch2: gpm-1.20.1-math.patch
|
Patch2: gpm-1.20.1-math.patch
|
||||||
@ -15,6 +15,7 @@ Patch5: gpm-1.20.1-gpmopen.patch
|
|||||||
Patch6: gpm-1.20.1-idie.patch
|
Patch6: gpm-1.20.1-idie.patch
|
||||||
Patch16: gpm-1.20.1-subscript.patch
|
Patch16: gpm-1.20.1-subscript.patch
|
||||||
Patch17: gpm-1.20.1-input.patch
|
Patch17: gpm-1.20.1-input.patch
|
||||||
|
Patch18: gpm-1.20.1-consolename.patch
|
||||||
|
|
||||||
Prereq: /sbin/chkconfig /sbin/ldconfig /sbin/install-info
|
Prereq: /sbin/chkconfig /sbin/ldconfig /sbin/install-info
|
||||||
Requires: bash >= 2.0
|
Requires: bash >= 2.0
|
||||||
@ -54,6 +55,7 @@ mouse button.
|
|||||||
%patch6 -p1 -b .idie
|
%patch6 -p1 -b .idie
|
||||||
%patch16 -p1 -b .subscript
|
%patch16 -p1 -b .subscript
|
||||||
%patch17 -p1 -b .input
|
%patch17 -p1 -b .input
|
||||||
|
%patch18 -p1 -b .consolename
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoconf
|
autoconf
|
||||||
@ -94,16 +96,16 @@ cp contrib/emacs/t-mouse.el* %{buildroot}%{_datadir}/emacs/site-lisp
|
|||||||
|
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
|
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
|
||||||
install -m 755 $RPM_SOURCE_DIR/gpm.init %{buildroot}%{_sysconfdir}/rc.d/init.d/gpm
|
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/gpm
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
||||||
cat >$RPM_BUILD_ROOT/etc/sysconfig/gpm <<EOF
|
#cat >$RPM_BUILD_ROOT/etc/sysconfig/gpm <<EOF
|
||||||
# Additional options for gpm (e.g. acceleration), device
|
## Additional options for gpm (e.g. acceleration), device
|
||||||
OPTIONS=""
|
#OPTIONS=""
|
||||||
DEVICE="/dev/input/mice"
|
#DEVICE="/dev/input/mice"
|
||||||
MOUSETYPE="exps2"
|
#MOUSETYPE="exps2"
|
||||||
EOF
|
#EOF
|
||||||
|
|
||||||
# remove stuff from the buildroot that we aren't shipping
|
# remove stuff from the buildroot that we aren't shipping
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/disable-paste
|
rm -f $RPM_BUILD_ROOT%{_bindir}/disable-paste
|
||||||
@ -162,7 +164,6 @@ fi
|
|||||||
%{_datadir}/emacs/site-lisp/t-mouse.el*
|
%{_datadir}/emacs/site-lisp/t-mouse.el*
|
||||||
%{_infodir}/gpm.info*
|
%{_infodir}/gpm.info*
|
||||||
%{_libdir}/libgpm.so.*
|
%{_libdir}/libgpm.so.*
|
||||||
%config %{_sysconfdir}/sysconfig/gpm
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -173,6 +174,8 @@ fi
|
|||||||
%changelog
|
%changelog
|
||||||
* Wed Oct 13 2004 Adrian Havill <havill@redhat.com> 1.20.1-59
|
* Wed Oct 13 2004 Adrian Havill <havill@redhat.com> 1.20.1-59
|
||||||
- remove unnecessary diagnostic and check of the consolename (#129962)
|
- remove unnecessary diagnostic and check of the consolename (#129962)
|
||||||
|
- remove /etc/sysconfig/gpm; set unset defaults in the init script instead
|
||||||
|
after mousecfg is (or is not) read
|
||||||
|
|
||||||
* Wed Oct 13 2004 Florian La Roche <laroche@redhat.com>
|
* Wed Oct 13 2004 Florian La Roche <laroche@redhat.com>
|
||||||
- sysconfig/gpm should probably go away, that is more confusing than
|
- sysconfig/gpm should probably go away, that is more confusing than
|
||||||
|
Loading…
Reference in New Issue
Block a user