diff options
author | Han Boetes <han@mijncomputer.nl> | 2006-11-13 21:12:21 +0100 |
---|---|---|
committer | Han Boetes <han@mijncomputer.nl> | 2006-11-13 21:12:21 +0100 |
commit | 32295a9faf0f964a313a84bb5a4e3fdeaf15e72f (patch) | |
tree | 48bd60cc85026b7f5effe956cd01e09d1e66234c /gpm | |
parent | 4d6af94f215944409f18f85d1804bc04c3d32efd (diff) | |
download | contrib-32295a9faf0f964a313a84bb5a4e3fdeaf15e72f.tar.gz contrib-32295a9faf0f964a313a84bb5a4e3fdeaf15e72f.tar.xz |
abiword: initial release
Diffstat (limited to 'gpm')
-rw-r--r-- | gpm/.footprint | 27 | ||||
-rw-r--r-- | gpm/.md5sum | 5 | ||||
-rw-r--r-- | gpm/Pkgfile | 32 | ||||
-rw-r--r-- | gpm/gpm-1.20.0-nodebug.patch | 14 | ||||
-rw-r--r-- | gpm/gpm-1.20.1-liblow-segv.patch | 12 | ||||
-rw-r--r-- | gpm/gpm-1.20.1-no-dumb-error-messages.patch | 20 | ||||
-rw-r--r-- | gpm/gpm.initfile | 21 |
7 files changed, 131 insertions, 0 deletions
diff --git a/gpm/.footprint b/gpm/.footprint new file mode 100644 index 000000000..d2448b491 --- /dev/null +++ b/gpm/.footprint @@ -0,0 +1,27 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/gpm +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/disable-paste +-rwxr-xr-x root/root usr/bin/gpm-root +-rwxr-xr-x root/root usr/bin/hltest +-rwxr-xr-x root/root usr/bin/mev +-rwxr-xr-x root/root usr/bin/mouse-test +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/gpm.h +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/libgpm.a +lrwxrwxrwx root/root usr/lib/libgpm.so -> libgpm.so.1.19.0 +-rw-r--r-- root/root usr/lib/libgpm.so.1.19.0 +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/gpm-root.1.gz +-rw-r--r-- root/root usr/man/man1/mev.1.gz +-rw-r--r-- root/root usr/man/man1/mouse-test.1.gz +drwxr-xr-x root/root usr/man/man7/ +-rw-r--r-- root/root usr/man/man7/gpm-types.7.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/gpm.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/gpm diff --git a/gpm/.md5sum b/gpm/.md5sum new file mode 100644 index 000000000..fc6f4ea4b --- /dev/null +++ b/gpm/.md5sum @@ -0,0 +1,5 @@ +0b999233f10c0ee52a71cee27b1a057b gpm-1.20.0-nodebug.patch +503d4925b891ce0133f0acd3e925bcbe gpm-1.20.1-liblow-segv.patch +68fcdfbcca069516ea181c8b8946bc9f gpm-1.20.1-no-dumb-error-messages.patch +2c63e827d755527950d9d13fe3d87692 gpm-1.20.1.tar.bz2 +e8160a72365d3c79064ff76fbb7bfc70 gpm.initfile diff --git a/gpm/Pkgfile b/gpm/Pkgfile new file mode 100644 index 000000000..cd00e468a --- /dev/null +++ b/gpm/Pkgfile @@ -0,0 +1,32 @@ +# Packager: Eduardo Lopes <eduol@gmx.net> +# Maintainer: Han Boetes <han@mijncomputer.nl> +# Description: Console mouse server +# URL: none + +name=gpm +version=1.20.1 +release=5 +source=" + ftp://arcana.linux.it/pub/gpm/$name-$version.tar.bz2 + gpm-1.20.0-nodebug.patch + gpm-1.20.1-no-dumb-error-messages.patch + gpm-1.20.1-liblow-segv.patch + $name.initfile +" + +build () +{ + cd $name-$version + # idiots + sed -i 's/^MAKEINFO.*/MAKEINFO = no/;/^EMACS.*/d' Makefile.include.in + # idiots, emacs gpm support is included in emacs. xterm-mouse-mode + sed -i 's/EMACS=.*/EMACS=:/;s/ELISP=.*/ELISP=/' configure + patch -p1 < $SRC/gpm-1.20.0-nodebug.patch + patch -p1 < $SRC/gpm-1.20.1-no-dumb-error-messages.patch + patch -p1 < $SRC/gpm-1.20.1-liblow-segv.patch + ./configure --prefix=/usr + make LDFLAGS='-lm' + make install ROOT=$PKG + rm -rf $PKG/usr/{info,etc} + install -D $SRC/$name.initfile -m 755 $PKG/etc/rc.d/$name +} diff --git a/gpm/gpm-1.20.0-nodebug.patch b/gpm/gpm-1.20.0-nodebug.patch new file mode 100644 index 000000000..5a2dcd2c3 --- /dev/null +++ b/gpm/gpm-1.20.0-nodebug.patch @@ -0,0 +1,14 @@ +--- gpm-1.20.0/src/lib/report-lib.c.foo Wed Mar 27 17:13:24 2002 ++++ gpm-1.20.0/src/lib/report-lib.c Wed Mar 27 17:14:08 2002 +@@ -27,6 +27,11 @@ + { + char *string = NULL; + va_list ap; ++#ifndef DEBUG_VERBOSE ++ if(stat==GPM_STAT_DEBUG) ++ return; ++#endif ++ + va_start(ap,text); + + switch(stat) { diff --git a/gpm/gpm-1.20.1-liblow-segv.patch b/gpm/gpm-1.20.1-liblow-segv.patch new file mode 100644 index 000000000..8d2fe0d10 --- /dev/null +++ b/gpm/gpm-1.20.1-liblow-segv.patch @@ -0,0 +1,12 @@ +--- gpm-1.20.1/src/lib/liblow.c.orig 2002-12-24 23:57:16.000000000 +0100 ++++ gpm-1.20.1/src/lib/liblow.c 2004-08-19 04:02:13.834170632 +0200 +@@ -199,7 +199,8 @@ + Gpm_Stst *new = NULL; + char* sock_name = 0; + +- option.consolename = NULL; ++ if(!checked_con) ++ option.consolename = NULL; + + gpm_report(GPM_PR_DEBUG,"VC: %d",flag); + diff --git a/gpm/gpm-1.20.1-no-dumb-error-messages.patch b/gpm/gpm-1.20.1-no-dumb-error-messages.patch new file mode 100644 index 000000000..8b5f137c0 --- /dev/null +++ b/gpm/gpm-1.20.1-no-dumb-error-messages.patch @@ -0,0 +1,20 @@ +--- gpm-1.20.1/src/lib/liblow.c.no-dumb-error-messages 2003-07-07 15:42:18.000000000 +0200 ++++ gpm-1.20.1/src/lib/liblow.c 2003-07-07 16:33:33.000000000 +0200 +@@ -259,7 +259,7 @@ int Gpm_Open(Gpm_Connect *conn, int flag + /* do we really need this check ? */ + if(strncmp(tty,option.consolename,strlen(option.consolename)-1) + || !isdigit(tty[strlen(option.consolename)-1])) { +- gpm_report(GPM_PR_ERR,"strncmp/isdigit/option.consolename failed"); ++ /* gpm_report(GPM_PR_ERR,"strncmp/isdigit/option.consolename failed"); */ + goto err; + } + +@@ -368,7 +368,7 @@ int Gpm_Open(Gpm_Connect *conn, int flag + + /*....................................... Error: free all memory */ + err: +- gpm_report(GPM_PR_ERR,"Oh, oh, it's an error! possibly I die! "); ++ /* gpm_report(GPM_PR_ERR,"Oh, oh, it's an error! possibly I die! "); */ + do { + new=gpm_stack->next; + free(gpm_stack); diff --git a/gpm/gpm.initfile b/gpm/gpm.initfile new file mode 100644 index 000000000..c3fee86a3 --- /dev/null +++ b/gpm/gpm.initfile @@ -0,0 +1,21 @@ +#!/bin/sh +# +# /etc/rc.d/gpm: start/stop console mouse +# + +case $1 in + start) + /usr/sbin/gpm -m /dev/input/mouse0 -t ps2 + ;; + stop) + pkill -f 'gpm -m /dev/input/mouse0' + ;; + restart) + pkill -HUP -f 'gpm -m /dev/input/mouse0' + ;; + *) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file |