[Lunar-commits] r16435 - in moonbase/trunk/utils/gpm: . init.d
Stefan Wold
ratler at lunar-linux.org
Tue Sep 13 07:50:27 UTC 2005
Author: ratler
Date: 2005-09-13 07:50:26 +0000 (Tue, 13 Sep 2005)
New Revision: 16435
Modified:
moonbase/trunk/utils/gpm/BUILD
moonbase/trunk/utils/gpm/DEPENDS
moonbase/trunk/utils/gpm/DETAILS
moonbase/trunk/utils/gpm/init.d/gpm
Log:
Version bump. Built and tested with gcc 3.4.4 and glibc 2.3.5. This version actually build with gcc 3.4.4, many of the old patches have been included, serialconsole support(?) was dropped
Modified: moonbase/trunk/utils/gpm/BUILD
===================================================================
--- moonbase/trunk/utils/gpm/BUILD 2005-09-12 23:18:38 UTC (rev 16434)
+++ moonbase/trunk/utils/gpm/BUILD 2005-09-13 07:50:26 UTC (rev 16435)
@@ -5,14 +5,6 @@
patch_it $SOURCE_CACHE/$SOURCE2 1 &&
patch_it $SOURCE_CACHE/$SOURCE3 1 &&
-patch_it $SOURCE_CACHE/$SOURCE4 1 &&
-patch_it $SOURCE_CACHE/$SOURCE5 1 &&
-patch_it $SOURCE_CACHE/$SOURCE6 1 &&
-patch_it $SOURCE_CACHE/$SOURCE7 1 &&
-patch_it $SOURCE_CACHE/$SOURCE8 1 &&
-patch_it $SOURCE_CACHE/$SOURCE9 1 &&
-patch_it $SOURCE_CACHE/$SOURCE10 1 &&
-patch_it $SOURCE_CACHE/$SOURCE11 1 &&
# ************************ WARNING *************************
# DO NOT MESS WITH THE CONFIGURE STUFF here unless you
@@ -32,8 +24,6 @@
--infodir=/usr/share/info \
--mandir=/usr/share/man &&
- #sedit "s/src doc contrib/src contrib/" Makefile &&
-
# binary section
make &&
prepare_install &&
Modified: moonbase/trunk/utils/gpm/DEPENDS
===================================================================
--- moonbase/trunk/utils/gpm/DEPENDS 2005-09-12 23:18:38 UTC (rev 16434)
+++ moonbase/trunk/utils/gpm/DEPENDS 2005-09-13 07:50:26 UTC (rev 16435)
@@ -1,3 +1,2 @@
-optional_depends "gpm-docs" "" "" "documentation for gpm" &&
depends chkconfig &&
depends bison
Modified: moonbase/trunk/utils/gpm/DETAILS
===================================================================
--- moonbase/trunk/utils/gpm/DETAILS 2005-09-12 23:18:38 UTC (rev 16434)
+++ moonbase/trunk/utils/gpm/DETAILS 2005-09-13 07:50:26 UTC (rev 16435)
@@ -1,31 +1,18 @@
MODULE=gpm
- VERSION=1.19.3
- SOURCE=$MODULE-$VERSION.tar.gz
- SOURCE2=gpm-1.19.1-secenhance.patch
- SOURCE3=gpm-1.19.2-limits.patch
- SOURCE4=gpm-1.19.3-devfs.patch
- SOURCE5=gpm-1.19.3-docfix.patch
- SOURCE6=gpm-1.19.3-noworldwrite.patch
- SOURCE7=gpm-1.19.3-root.patch
- SOURCE8=gpm-1.19.3-serialconsole.patch
- SOURCE9=gpm-nops.patch
- SOURCE10=gpm-root.patch
- SOURCE11=gpm-special-limits.patch
- SOURCE_URL[0]=$LRESORT_URL/
- SOURCE2_URL[0]=$PATCH_URL/
- SOURCE3_URL[0]=$PATCH_URL/
- SOURCE4_URL[0]=$PATCH_URL/
- SOURCE5_URL[0]=$PATCH_URL/
- SOURCE6_URL[0]=$PATCH_URL/
- SOURCE7_URL[0]=$PATCH_URL/
- SOURCE8_URL[0]=$PATCH_URL/
- SOURCE9_URL[0]=$PATCH_URL/
- SOURCE10_URL[0]=$PATCH_URL/
- SOURCE11_URL[0]=$PATCH_URL/
- WEB_SITE=unknown
+ VERSION=1.20.1
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE2=gpm-1.20.1-secenhance.patch
+ SOURCE3=gpm-1.20.1-limits.patch
+ SOURCE_URL=ftp://arcana.linux.it/pub/gpm/
+ SOURCE2_URL=$PATCH_URL/
+ SOURCE3_URL=$PATCH_URL/
+ SOURCE_VFY=sha1:c48d937e62abb438c2f6439b34ef3332c89af8d1
+ SOURCE2_VFY=sha1:09acfa6cdbaa4b8235836a94e518fc4e13c7d7c8
+ SOURCE3_VFY=sha1:c7016a27255edadf791ead945f4dda64e430c536
+ WEB_SITE=http://linux.schottelius.org/gpm/
ENTERED=20011003
- UPDATED=20030111
- SHORT="GPM is a mouse server for the console and xterm"
+ UPDATED=20050912
+ SHORT="A mouse server for the console and xterm"
cat << EOF
GPM (General Purpose Mouse) is a mouse server for the console and xterm,
with sample clients included (emacs, etc).
Modified: moonbase/trunk/utils/gpm/init.d/gpm
===================================================================
--- moonbase/trunk/utils/gpm/init.d/gpm 2005-09-12 23:18:38 UTC (rev 16434)
+++ moonbase/trunk/utils/gpm/init.d/gpm 2005-09-13 07:50:26 UTC (rev 16435)
@@ -9,22 +9,23 @@
# pidfile: /var/run/gpm.pid
# config: /etc/config.d/mouse
-. /lib/lsb/init-functions
. /etc/config.d/mouse
GPMPID="/var/run/gpm.pid"
-case $1 in
- start)
- [ -e "$GPMPID" ] && gpm -k &> /dev/null; rm -f $GPMPID
- gpm $OPTIONS -t $MOUSETYPE -m $DEVICE &> /dev/null
- ;;
- stop)
- [ -e "$GPMPID" ] && gpm -k &> /dev/null ; rm -f $GPMPID
- ;;
- restart)
- $0 stop;
- $0 start;
- ;;
- *)
-esac
+start ()
+{
+ echo -n "Starting gpm: "
+ gpm -m $DEVICE -t $MOUSETYPE $OPTIONS &> /dev/null &&
+ echo -e $RESULT_OK || echo -e $RESULT_FAIL
+}
+
+stop ()
+{
+ echo -n "Stopping gpm: "
+ /bin/pkill -P 1 gpm &&
+ echo -e $RESULT_OK || echo -e $RESULT_FAIL
+ [ -e $GPMPID ] && rm -f $GPMPID
+}
+
+. /lib/lsb/init-functions
More information about the Lunar-commits
mailing list