summaryrefslogtreecommitdiff
path: root/package/gpm
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/gpm
Initial import
Diffstat (limited to 'package/gpm')
-rw-r--r--package/gpm/Config.in6
-rw-r--r--package/gpm/Makefile29
-rw-r--r--package/gpm/ipkg/gpm.control4
-rw-r--r--package/gpm/patches/patch-src_daemon_open_console_c12
-rw-r--r--package/gpm/patches/patch-src_synaptics_c15
5 files changed, 66 insertions, 0 deletions
diff --git a/package/gpm/Config.in b/package/gpm/Config.in
new file mode 100644
index 000000000..9afe47f6c
--- /dev/null
+++ b/package/gpm/Config.in
@@ -0,0 +1,6 @@
+config ADK_PACKAGE_GPM
+ prompt "gpm .............................. GPM"
+ tristate
+ default n
+ help
+ http://unix.schottelius.org/gpm/
diff --git a/package/gpm/Makefile b/package/gpm/Makefile
new file mode 100644
index 000000000..0c0fd2a55
--- /dev/null
+++ b/package/gpm/Makefile
@@ -0,0 +1,29 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= gpm
+PKG_VERSION:= 1.20.5
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 3915bdd6bf947ef867752a30b4be2387
+MASTER_SITES:= http://unix.schottelius.org/gpm/archives/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,GPM,gpm,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+TCFLAGS+= -I${WRKSRC}/src/headers
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_GPM}/usr/sbin/
+ ${INSTALL_DIR} ${IDIR_GPM}/usr/lib/
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/gpm ${IDIR_GPM}/usr/sbin/
+ ${CP} ${WRKINST}/usr/lib/libgpm.so.* ${IDIR_GPM}/usr/lib/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/gpm/ipkg/gpm.control b/package/gpm/ipkg/gpm.control
new file mode 100644
index 000000000..713af12a1
--- /dev/null
+++ b/package/gpm/ipkg/gpm.control
@@ -0,0 +1,4 @@
+Package: gpm
+Priority: optional
+Section: text
+Description: GPM
diff --git a/package/gpm/patches/patch-src_daemon_open_console_c b/package/gpm/patches/patch-src_daemon_open_console_c
new file mode 100644
index 000000000..28bd57e11
--- /dev/null
+++ b/package/gpm/patches/patch-src_daemon_open_console_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- gpm-1.20.5.orig/src/daemon/open_console.c 2008-06-13 10:08:19.000000000 +0200
++++ gpm-1.20.5/src/daemon/open_console.c 2008-09-16 17:11:51.000000000 +0200
+@@ -21,7 +21,7 @@
+
+ #include <fcntl.h> /* open and co. */
+ #include <sys/stat.h> /* stat() */
+-#include <stropts.h> /* ioctl */
++#include <sys/ioctl.h> /* ioctl */
+
+ /* Linux specific (to be outsourced in gpm2 */
+ #include <linux/serial.h> /* for serial console check */
diff --git a/package/gpm/patches/patch-src_synaptics_c b/package/gpm/patches/patch-src_synaptics_c
new file mode 100644
index 000000000..c442926a2
--- /dev/null
+++ b/package/gpm/patches/patch-src_synaptics_c
@@ -0,0 +1,15 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- gpm-1.20.5.orig/src/synaptics.c 2008-06-13 10:08:19.000000000 +0200
++++ gpm-1.20.5/src/synaptics.c 2008-10-09 14:07:01.000000000 +0200
+@@ -2134,9 +2134,9 @@ void tp_read_config_file (char* config_f
+ break;
+
+ case Flag_Param:
+- if (index ("YyTt1", token [0])) {
++ if (strchr ("YyTt1", token [0])) {
+ *(param_data [param].addr.flag_p) = 1;
+- } else if (index ("NnFf0", token [0])) {
++ } else if (strchr ("NnFf0", token [0])) {
+ *(param_data [param].addr.flag_p) = 0;
+ } else {
+ gpm_report (GPM_PR_WARN,"Flag value (%s) for parameter %s is invalid",