diff options
Diffstat (limited to 'meta-oe/recipes-support/gpm')
-rw-r--r-- | meta-oe/recipes-support/gpm/gpm-1.99.7/init | 32 | ||||
-rw-r--r-- | meta-oe/recipes-support/gpm/gpm-1.99.7/no-docs.patch | 18 | ||||
-rw-r--r-- | meta-oe/recipes-support/gpm/gpm-1.99.7/processcreds.patch | 12 | ||||
-rw-r--r-- | meta-oe/recipes-support/gpm/gpm_1.99.7.bb | 43 |
4 files changed, 105 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/gpm/gpm-1.99.7/init b/meta-oe/recipes-support/gpm/gpm-1.99.7/init new file mode 100644 index 0000000000..2dcf9ab049 --- /dev/null +++ b/meta-oe/recipes-support/gpm/gpm-1.99.7/init @@ -0,0 +1,32 @@ +#! /bin/sh + +# Grab the common functions +#. /etc/init.d/functions + +# FIXME: +# Add a configuration file for GPM here + +test -x /usr/sbin/gpm || exit 0 + +case "$1" in + start) + if [ ! -p /dev/gpmdata ]; then + mkfifo /dev/gpmdata + fi + + echo "Starting GPM:" + start-stop-daemon -S -x /usr/sbin/gpm -- -R -m /dev/psaux -t ps2 + ;; + stop) + echo "Stopping GPM:" + start-stop-daemon -K -x /usr/sbin/gpm + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + usage /etc/init.d/gpm +esac + +exit 0 diff --git a/meta-oe/recipes-support/gpm/gpm-1.99.7/no-docs.patch b/meta-oe/recipes-support/gpm/gpm-1.99.7/no-docs.patch new file mode 100644 index 0000000000..f10217a942 --- /dev/null +++ b/meta-oe/recipes-support/gpm/gpm-1.99.7/no-docs.patch @@ -0,0 +1,18 @@ + +# +# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher +# + +Index: gpm-1.99.7/Makefile.in +=================================================================== +--- gpm-1.99.7.orig/Makefile.in 2008-07-24 03:36:35.000000000 -0700 ++++ gpm-1.99.7/Makefile.in 2010-06-22 18:28:45.269507001 -0700 +@@ -19,7 +19,7 @@ + # user-overridable flags, but it's also all the implicit rule looks at. + # missing ? + +-SUBDIRS = src doc contrib gpm2 ++SUBDIRS = src + + + ### simple, but effective rules diff --git a/meta-oe/recipes-support/gpm/gpm-1.99.7/processcreds.patch b/meta-oe/recipes-support/gpm/gpm-1.99.7/processcreds.patch new file mode 100644 index 0000000000..d647eca0ad --- /dev/null +++ b/meta-oe/recipes-support/gpm/gpm-1.99.7/processcreds.patch @@ -0,0 +1,12 @@ +Index: gpm-1.99.7/src/daemon/processconn.c +=================================================================== +--- gpm-1.99.7.orig/src/daemon/processconn.c 2010-09-29 17:36:18.571782951 +0400 ++++ gpm-1.99.7/src/daemon/processconn.c 2010-09-29 17:42:44.659991758 +0400 +@@ -20,6 +20,7 @@ + * + ********/ + ++#define _GNU_SOURCE + #include <sys/socket.h> /* accept */ + #include <stdlib.h> /* malloc */ + #include <unistd.h> /* close */ diff --git a/meta-oe/recipes-support/gpm/gpm_1.99.7.bb b/meta-oe/recipes-support/gpm/gpm_1.99.7.bb new file mode 100644 index 0000000000..bd42de3dc8 --- /dev/null +++ b/meta-oe/recipes-support/gpm/gpm_1.99.7.bb @@ -0,0 +1,43 @@ +DESCRIPTION = "GPM (General Purpose Mouse) is a mouse server \ +for the console and xterm, with sample clients included \ +(emacs, etc)." +SECTION = "console/utils" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://gpm2/core/main.c;endline=19;md5=66d3c205c4e7ee5704b2ee351dfed72f" + +DEPENDS = "ncurses" + +SRC_URI = "ftp://arcana.linux.it/pub/gpm/gpm-${PV}.tar.bz2 \ + file://no-docs.patch \ + file://processcreds.patch \ + file://init" + +inherit autotools update-rc.d + +INITSCRIPT_NAME = "gpm" +INITSCRIPT_PARAMS = "defaults" + +#export LIBS = "-lm" + +# all fields are /* FIXME: gpm 1.99.13 */ +# gpm-1.99.7/src/lib/libhigh.c:171:43: error: parameter 'clientdata' set but not used [-Werror=unused-but-set-parameter] +# gpm-1.99.7/src/lib/report-lib.c:28:21: error: parameter 'line' set but not used [-Werror=unused-but-set-parameter] +# gpm-1.99.7/src/lib/report-lib.c:28:33: error: parameter 'file' set but not used [-Werror=unused-but-set-parameter] +# gpm-1.99.7/src/drivers/empty/i.c:26:23: error: parameter 'fd' set but not used [-Werror=unused-but-set-parameter] +# gpm-1.99.7/src/drivers/empty/i.c:26:42: error: parameter 'flags' set but not used [-Werror=unused-but-set-parameter] +# gpm-1.99.7/src/drivers/etouch/i.c:34:43: error: parameter 'flags' set but not used [-Werror=unused-but-set-parameter] +# gpm-1.99.7/src/drivers/msc/r.c:32:12: error: variable 'dy' set but not used [-Werror=unused-but-set-variable] +# gpm-1.99.7/src/drivers/msc/r.c:32:8: error: variable 'dx' set but not used [-Werror=unused-but-set-variable] +# cc1: all warnings being treated as errors +CFLAGS += "-Wno-extra -Wno-error=unused-but-set-parameter -Wno-error=unused-but-set-variable" + +do_install () { + oe_runmake 'ROOT=${D}' install + install -m 0644 src/headers/gpm.h ${D}${includedir} + install -d ${D}/${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/gpm + cd ${D}${libdir} && ln -sf libgpm.so.1.19.0 libgpm.so.1 +} +SRC_URI[md5sum] = "9fdddf5f53cb11d40bb2bb671d3ac544" +SRC_URI[sha256sum] = "6071378b24494e36ca3ef6377606e7e565040413c86704753a162d2180af32ee" + |