summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extra/gpm/.footprint33
-rw-r--r--extra/gpm/.md5sum4
-rwxr-xr-xextra/gpm/Pkgfile32
-rw-r--r--extra/gpm/gpm-1.20.5-make-install-fixes.patch54
-rw-r--r--extra/gpm/gpm-1.20.5-no-dumb-error-messages.patch13
-rw-r--r--extra/gpm/gpm-1.20.5-nodebug.patch16
6 files changed, 152 insertions, 0 deletions
diff --git a/extra/gpm/.footprint b/extra/gpm/.footprint
new file mode 100644
index 000000000..641ead036
--- /dev/null
+++ b/extra/gpm/.footprint
@@ -0,0 +1,33 @@
+drwxr-xr-x root/root etc/
+-rw------- root/root etc/gpm-root.conf
+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/display-buttons
+-rwxr-xr-x root/root usr/bin/display-coords
+-rwxr-xr-x root/root usr/bin/get-versions
+-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.1 -> libgpm.so.1.19.0
+lrwxrwxrwx root/root usr/lib/libgpm.so.2 -> libgpm.so.2.1.0
+-rw-r--r-- root/root usr/lib/libgpm.so.2.1.0
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/gpm
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/info/
+-rw-r--r-- root/root usr/share/info/gpm.info.gz
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/gpm-root.1.gz
+-rw-r--r-- root/root usr/share/man/man1/mev.1.gz
+-rw-r--r-- root/root usr/share/man/man1/mouse-test.1.gz
+drwxr-xr-x root/root usr/share/man/man7/
+-rw-r--r-- root/root usr/share/man/man7/gpm-types.7.gz
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/gpm.8.gz
diff --git a/extra/gpm/.md5sum b/extra/gpm/.md5sum
new file mode 100644
index 000000000..1012d6116
--- /dev/null
+++ b/extra/gpm/.md5sum
@@ -0,0 +1,4 @@
+1dcfee8792dc2f8f6940a72647c7b153 gpm-1.20.5-make-install-fixes.patch
+92a5e1b2a2eeda5d58f279a6a0f04af3 gpm-1.20.5-no-dumb-error-messages.patch
+6848e18e128dfd11861dadc2692dffef gpm-1.20.5-nodebug.patch
+e55473932e4052f3b74c730dfefe0d15 gpm-1.20.5.tar.bz2
diff --git a/extra/gpm/Pkgfile b/extra/gpm/Pkgfile
new file mode 100755
index 000000000..2c1123299
--- /dev/null
+++ b/extra/gpm/Pkgfile
@@ -0,0 +1,32 @@
+# Description: Demon pour la souris pour console et X terminal.
+# URL: http://unix.schottelius.org/gpm
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on:
+
+name=gpm
+version=1.20.5
+release=1
+source=( http://unix.schottelius.org/$name/archives/$name-$version.tar.bz2\
+ gpm-$version-nodebug.patch \
+ gpm-$version-no-dumb-error-messages.patch \
+ gpm-$version-make-install-fixes.patch )
+
+
+build() {
+ cd $name-$version
+ patch -p 1 -i ../gpm-$version-nodebug.patch
+ patch -p 1 -i ../gpm-$version-no-dumb-error-messages.patch
+ patch -p 1 -i ../gpm-$version-make-install-fixes.patch
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-cxx \
+ --enable-mpbsd
+ LDFLAGS="-lm" make
+ make ROOT=$PKG install
+ ln -sv libgpm.so.1.19.0 $PKG/usr/lib/libgpm.so.1
+# ln -sv libgpm.so.1.19.0 $PKG/usr/lib/libgpm.so
+ cp -v conf/gpm-root.conf $PKG/etc
+}
diff --git a/extra/gpm/gpm-1.20.5-make-install-fixes.patch b/extra/gpm/gpm-1.20.5-make-install-fixes.patch
new file mode 100644
index 000000000..098d5d509
--- /dev/null
+++ b/extra/gpm/gpm-1.20.5-make-install-fixes.patch
@@ -0,0 +1,54 @@
+diff -pruN gpm-1.20.5.orig/configure gpm-1.20.5/configure
+--- gpm-1.20.5.orig/configure 2008-06-17 09:54:54.858258511 +1000
++++ gpm-1.20.5/configure 2008-06-17 10:16:33.330255126 +1000
+@@ -3378,15 +3378,8 @@ else
+ echo "${ECHO_T}no" >&6; }
+ fi
+
+-
+-
+-if test ${ac_cv_path_emacs} = no ; then
+- EMACS=:
+- ELISP=
+-else
+- EMACS=${ac_cv_path_emacs}
+- ELISP="emacs/t-mouse.el emacs/t-mouse.elc"
+-fi
++EMACS=:
++ELISP=
+
+ if test $EMACS != : ; then
+ { echo "$as_me:$LINENO: checking where to install Emacs Lisp files" >&5
+diff -pruN gpm-1.20.5.orig/doc/Makefile.in gpm-1.20.5/doc/Makefile.in
+--- gpm-1.20.5.orig/doc/Makefile.in 2008-06-17 09:54:54.856257925 +1000
++++ gpm-1.20.5/doc/Makefile.in 2008-06-17 10:18:14.557261978 +1000
+@@ -32,7 +32,7 @@ include $(top_builddir)/Makefile.include
+
+ MANPAGES = gpm.8 mev.1 gpm-root.1 gpm-types.7 mouse-test.1
+
+-all: $(srcdir)/gpm.info gpm.man
++all: gpm.man
+
+ # HTML (texi2html)
+ %.html: %.texinfo
+diff -pruN gpm-1.20.5.orig/Makefile.include.in gpm-1.20.5/Makefile.include.in
+--- gpm-1.20.5.orig/Makefile.include.in 2008-06-17 09:54:54.862260471 +1000
++++ gpm-1.20.5/Makefile.include.in 2008-06-17 10:13:14.742262245 +1000
+@@ -44,7 +44,6 @@ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ INSTALL_DATA = @INSTALL_DATA@
+ LN_S = @LN_S@
+-EMACS = @EMACS@
+ ELISP = @ELISP@
+ SHLIB = @SHLIB@
+ SED = @SED@
+@@ -52,7 +51,7 @@ DIFF = @DIFF@
+ TEX = @TEX@
+ TEXINDEX = @TEXINDEX@
+ DVIPS = @DVIPS@
+-MAKEINFO = @MAKEINFO@
++MAKEINFO = no
+ TEXI2HTML = texi2html
+ STRIP = -s
+
+
diff --git a/extra/gpm/gpm-1.20.5-no-dumb-error-messages.patch b/extra/gpm/gpm-1.20.5-no-dumb-error-messages.patch
new file mode 100644
index 000000000..44f4e7655
--- /dev/null
+++ b/extra/gpm/gpm-1.20.5-no-dumb-error-messages.patch
@@ -0,0 +1,13 @@
+diff -pruN gpm-1.20.5.orig/src/lib/liblow.c gpm-1.20.5/src/lib/liblow.c
+--- gpm-1.20.5.orig/src/lib/liblow.c 2008-06-17 09:54:54.811257867 +1000
++++ gpm-1.20.5/src/lib/liblow.c 2008-06-17 10:00:27.489256401 +1000
+@@ -377,7 +377,7 @@ int Gpm_Open(Gpm_Connect *conn, int flag
+ /*....................................... Error: free all memory */
+ err:
+ if (gpm_is_disabled < 2) /* be quiet if no gpmctl socket found */
+- 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! "); */
+ while(gpm_stack) {
+ new=gpm_stack->next;
+ free(gpm_stack);
+
diff --git a/extra/gpm/gpm-1.20.5-nodebug.patch b/extra/gpm/gpm-1.20.5-nodebug.patch
new file mode 100644
index 000000000..a77aa233e
--- /dev/null
+++ b/extra/gpm/gpm-1.20.5-nodebug.patch
@@ -0,0 +1,16 @@
+Binary files gpm-1.20.5.orig/.Makefile.in.swp and gpm-1.20.5/.Makefile.in.swp differ
+diff -pruN gpm-1.20.5.orig/src/lib/report-lib.c gpm-1.20.5/src/lib/report-lib.c
+--- gpm-1.20.5.orig/src/lib/report-lib.c 2008-06-17 09:54:54.811257867 +1000
++++ gpm-1.20.5/src/lib/report-lib.c 2008-06-17 10:08:36.780265133 +1000
+@@ -29,6 +29,10 @@ void gpm_report(int line, char *file, in
+ char *string = NULL;
+ int log_level;
+ va_list ap;
++#ifndef DEBUG_VERBOSE
++ if(stat==GPM_STAT_DEBUG)
++ return;
++#endif
+
+ if (stat == GPM_STAT_DEBUG) return;
+
+