From 84a7019a724cbeadf5d77a03792440fa9e759c41 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 05:49:48 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20gpm-1.1?= =?UTF-8?q?9.3-16.src.rpm=20Fri=20Apr=2006=202001=20Preston=20Brown=20=20-=20work=20better=20with=20unsupported=20devf?= =?UTF-8?q?s=20(#23500,=20#34883)=20Mon=20Feb=2005=202001=20Karsten=20Hopp?= =?UTF-8?q?=20=20-=20found=20another=20bug:=20tmpfile?= =?UTF-8?q?=20was=20never=20removed=20if=20gpm=20was=20already=20running?= =?UTF-8?q?=20Mon=20Feb=2005=202001=20Karsten=20Hopp=20?= =?UTF-8?q?=20-=20really=20fix=20tmpfile=20path=20Mon=20Feb=2005=202001=20?= =?UTF-8?q?Karsten=20Hopp=20=20-=20fix=20tmpfile=20path?= =?UTF-8?q?=20(bugzilla=20#25967)=20Tue=20Jan=2030=202001=20Preston=20Brow?= =?UTF-8?q?n=20=20-=20don't=20make=20PID=20file=20world?= =?UTF-8?q?-writable.=20Mon=20Jan=2029=202001=20Preston=20Brown=20=20-=20fix=20up=20devel=20dependency=20on=20main=20p?= =?UTF-8?q?ackage=20Sun=20Jan=2028=202001=20Bernhard=20Rosenkraenzer=20=20-=20Don't=20crash=20if=20we=20can't=20open=20/?= =?UTF-8?q?dev/console=20(Happens=20with=20some=20devfs=20=20=20=20=20enab?= =?UTF-8?q?led=20kernels)=20Tue=20Jan=2023=202001=20Trond=20Eivind=20Gloms?= =?UTF-8?q?r=F8d=20=20-=20fix=20bug=20in=20i18n=20of=20ini?= =?UTF-8?q?tscript=20Tue=20Jan=2023=202001=20Preston=20Brown=20=20-=20bash2=20style=20of=20i18n=20for=20initscript=20W?= =?UTF-8?q?ed=20Jan=2017=202001=20Preston=20Brown=20=20?= =?UTF-8?q?-=20i18n=20the=20initscript.=20Thu=20Jan=2011=202001=20Bernhard?= =?UTF-8?q?=20Rosenkraenzer=20=20-=20Add=20hooks=20for=20?= =?UTF-8?q?extra=20options=20in=20/etc/sysconfig/gpm=20(#23547)=20Fri=20Ja?= =?UTF-8?q?n=2005=202001=20Preston=20Brown=20=20-=20pat?= =?UTF-8?q?ch=20added=20to=20abort=20if=20running=20on=20a=20serial=20cons?= =?UTF-8?q?ole=20(#15784)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpm.init | 19 ++++++++------ gpm.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 76 insertions(+), 20 deletions(-) diff --git a/gpm.init b/gpm.init index 9b646c5..f99f5ce 100755 --- a/gpm.init +++ b/gpm.init @@ -11,22 +11,23 @@ # source function library . /etc/init.d/functions +[ -e /etc/sysconfig/gpm ] && . /etc/sysconfig/gpm MOUSECFG=/etc/sysconfig/mouse RETVAL=0 start() { - echo -n "Starting console mouse services: " + echo -n $"Starting console mouse services: " if [ -f "$MOUSECFG" ]; then . "$MOUSECFG" else - echo "(no mouse is configured)" + echo $"(no mouse is configured)" exit 0 fi if [ "$MOUSETYPE" = "none" ]; then - echo "(no mouse is configured)" + echo $"(no mouse is configured)" exit 0 fi @@ -35,10 +36,14 @@ start() { MOUSETYPE=ms fi + if [ -n "$DEVICE" ]; then + DEVICE="/dev/mouse" + fi + if [ -n "$MOUSETYPE" ]; then - daemon gpm -t $MOUSETYPE + daemon gpm $OPTIONS -t $MOUSETYPE -m $DEVICE else - daemon gpm + daemon gpm $OPTIONS -m $DEVICE fi RETVAL=$? echo @@ -46,7 +51,7 @@ start() { } stop() { - echo -n "Shutting down console mouse services: " + echo -n $"Shutting down console mouse services: " killproc gpm RETVAL=$? @@ -78,7 +83,7 @@ case "$1" in RETVAL=$? ;; *) - echo "Usage: gpm {start|stop|restart|condrestart|status}" + echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac diff --git a/gpm.spec b/gpm.spec index 0922284..4f181a4 100644 --- a/gpm.spec +++ b/gpm.spec @@ -1,7 +1,7 @@ Summary: A mouse server for the Linux console. Name: gpm Version: 1.19.3 -Release: 4 +Release: 16 License: GPL Group: System Environment/Daemons Source: ftp://ftp.systemy.it/pub/develop/%{name}-%{version}.tar.gz @@ -12,8 +12,12 @@ Patch3: gpm-1.19.3-root.patch Patch4: gpm-root.patch Patch5: gpm-1.19.1-secenhance.patch Patch6: gpm-1.19.2-limits.patch -Prereq: /sbin/chkconfig /sbin/ldconfig /sbin/install-info /etc/init.d -Requires: pam >= 0.72-22 +Patch7: gpm-1.19.3-serialconsole.patch +Patch8: gpm-1.19.3-devfs.patch +Patch9: gpm-1.19.3-noworldwrite.patch + +Prereq: /sbin/chkconfig /sbin/ldconfig /sbin/install-info +Requires: pam >= 0.72-22 bash >= 2.0 # this defines the library version that this package builds. %define LIBVER 1.18.0 BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -25,21 +29,19 @@ also provides console cut-and-paste operations using the mouse and includes a program to allow pop-up menus to appear at the click of a mouse button. -Gpm should be installed if you intend to use a mouse with your Red Hat -Linux system. %package devel -Requires: gpm -Summary: Libraries and header files for developing mouse driven programs. -Group: Development/Libraries +Requires: %{name} = %{version} +Summary: A mouse server for the Linux console. +Group: System Environment/Daemons %description devel -The gpm-devel program contains the libraries and header files needed -for the development of mouse driven programs for the console. This -package allows you to develop text-mode programs which use the mouse. +Gpm provides mouse support to text-based Linux applications like the +Emacs editor and the Midnight Commander file management system. Gpm +also provides console cut-and-paste operations using the mouse and +includes a program to allow pop-up menus to appear at the click of a +mouse button. -Install gpm-devel if you need to develop text-mode programs which will -use the mouse. You'll also need to install the gpm package. %prep %setup -q @@ -49,6 +51,9 @@ use the mouse. You'll also need to install the gpm package. %patch4 -p1 -b .root %patch5 -p1 -b .secenhance %patch6 -p1 -b .limits +%patch7 -p1 -b .serialconsole +%patch8 -p1 -b .devfs +%patch9 -p1 -b .noworldwrite %build autoconf @@ -83,6 +88,13 @@ cp t-mouse.el* %{buildroot}%{_datadir}/emacs/site-lisp mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d install -m 755 $RPM_SOURCE_DIR/gpm.init %{buildroot}%{_sysconfdir}/rc.d/init.d/gpm +mkdir -p $RPM_BUILD_ROOT/etc/sysconfig +cat >$RPM_BUILD_ROOT/etc/sysconfig/gpm < +- work better with unsupported devfs (#23500, #34883) + +* Mon Feb 05 2001 Karsten Hopp +- found another bug: tmpfile was never removed if + gpm was already running + +* Mon Feb 05 2001 Karsten Hopp +- really fix tmpfile path + +* Mon Feb 05 2001 Karsten Hopp +- fix tmpfile path (bugzilla #25967) + +* Tue Jan 30 2001 Preston Brown +- don't make PID file world-writable. + +* Mon Jan 29 2001 Preston Brown +- fix up devel dependency on main package + +* Sun Jan 28 2001 Bernhard Rosenkraenzer +- Don't crash if we can't open /dev/console + (Happens with some devfs enabled kernels) + +* Tue Jan 23 2001 Trond Eivind Glomsrød +- fix bug in i18n of initscript + +* Tue Jan 23 2001 Preston Brown +- bash2 style of i18n for initscript + +* Wed Jan 17 2001 Preston Brown +- i18n the initscript. + +* Thu Jan 11 2001 Bernhard Rosenkraenzer +- Add hooks for extra options in /etc/sysconfig/gpm (#23547) + +* Fri Jan 05 2001 Preston Brown +- patch added to abort if running on a serial console (#15784) + * Fri Jul 28 2000 Preston Brown - cleaned up post section