Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Lubomir Blaha (347c8f36f81d05e84ee261e5172518af015185c5)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Lubomir Blaha <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Lubomir Blaha (347c8f36f81d05e84ee261e5172518af015185c5)
  • Date: Thu, 31 Jan 2008 14:40:17 -0600

GIT changes to master grimoire by Lubomir Blaha <tritol AT trilogic.cz>:

utils/logitech_applet/DEPENDS | 1
utils/logitech_applet/DETAILS | 15 ++++++
utils/logitech_applet/HISTORY | 4 +
utils/logitech_applet/PRE_BUILD | 3 +
utils/logitech_applet/init.d/logitech_applet | 16 +++++++
utils/logitech_applet/init.d/logitech_applet.conf | 7 +++
utils/logitech_applet/mx518.patch | 48
++++++++++++++++++++++
utils/logitech_applet/verbose-report.patch | 11 +++++
8 files changed, 105 insertions(+)

New commits:
commit 347c8f36f81d05e84ee261e5172518af015185c5
Author: Lubomir Blaha <tritol AT trilogic.cz>
Commit: Lubomir Blaha <tritol AT trilogic.cz>

logitech_applet: Tool for setting the special features of Logitech mice.

diff --git a/utils/logitech_applet/DEPENDS b/utils/logitech_applet/DEPENDS
new file mode 100755
index 0000000..5487d07
--- /dev/null
+++ b/utils/logitech_applet/DEPENDS
@@ -0,0 +1 @@
+depends libusb
diff --git a/utils/logitech_applet/DETAILS b/utils/logitech_applet/DETAILS
new file mode 100755
index 0000000..0655eb2
--- /dev/null
+++ b/utils/logitech_applet/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=logitech_applet
+ VERSION=0.4test1
+ SOURCE=$SPELL-$VERSION.tar.gz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
+ SOURCE_URL[0]=http://gentoo.osuosl.org/distfiles/$SOURCE
+ WEB_SITE=NoValidWebsite
+ ENTERED=20080126
+
SOURCE_HASH=sha512:64389b365d9d3473bf3ec027c7d9ee34cbdcddf9abb6bfabf4e771a255dade80e6758b7a997da3eaf23c19f1bd4559e79fb199e9f62e0f2ad1af92eab4b23789
+ LICENSE[0]=GPL
+ SHORT="Tool for setting the special features of Logitech mice."
+cat << EOF
+Logitech Mouse Applet is a small command line tool for setting the special
+features that are available on some Logitech mice. It is particularly useful
to
+those who want to switch their mouse to 800cpi instead of the default 400cpi.
+EOF
diff --git a/utils/logitech_applet/HISTORY b/utils/logitech_applet/HISTORY
new file mode 100644
index 0000000..5601c8a
--- /dev/null
+++ b/utils/logitech_applet/HISTORY
@@ -0,0 +1,4 @@
+2008-01-26 Lubomir Blaha <tritol AT trilogic.cz>
+ * DEPENDS, DETAILS, HISTORY, PRE_BUILD, init.d: created this spell
+ * mx518.patch, verbose-report.patch: taken from
http://cvs.mandriva.com/cgi-bin/viewvc.cgi/contrib-SPECS/logitech_applet/
+
diff --git a/utils/logitech_applet/PRE_BUILD b/utils/logitech_applet/PRE_BUILD
new file mode 100755
index 0000000..5d43fc4
--- /dev/null
+++ b/utils/logitech_applet/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build
&&
+cd $SOURCE_DIRECTORY && patch -p1 < ${SCRIPT_DIRECTORY}/mx518.patch
&&
+cd $SOURCE_DIRECTORY && patch -p1 < ${SCRIPT_DIRECTORY}/verbose-report.patch
diff --git a/utils/logitech_applet/init.d/logitech_applet
b/utils/logitech_applet/init.d/logitech_applet
new file mode 100755
index 0000000..972acef
--- /dev/null
+++ b/utils/logitech_applet/init.d/logitech_applet
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. /etc/sysconfig/logitech_applet
+
+NAME="Logitech applet"
+PROGRAM=/usr/bin/logitech_applet
+ARGS=$LA_ARGS
+RUNLEVEL=3
+
+. /etc/init.d/smgl_init
+
+stop()
+{
+ return 0;
+}
+
diff --git a/utils/logitech_applet/init.d/logitech_applet.conf
b/utils/logitech_applet/init.d/logitech_applet.conf
new file mode 100644
index 0000000..09c2f8e
--- /dev/null
+++ b/utils/logitech_applet/init.d/logitech_applet.conf
@@ -0,0 +1,7 @@
+# parameters:
+#
+# --set-res=X set the sensor resolution to X, where X is 400 or 800 maybe
1200 or 1600
+# --enable-cc enable Cruise Control
+# --disable-cc disable Cruise Control
+#
+LA_ARGS="--set-res=800 --disable-cc"
diff --git a/utils/logitech_applet/mx518.patch
b/utils/logitech_applet/mx518.patch
new file mode 100644
index 0000000..819220a
--- /dev/null
+++ b/utils/logitech_applet/mx518.patch
@@ -0,0 +1,48 @@
+--- logitech_applet-0.4test1/logitech_applet.c.mx518 2004-09-21
20:18:55.000000000 +0800
++++ logitech_applet-0.4test1/logitech_applet.c 2005-05-03 08:04:38.000000000
+0800
+@@ -251,6 +251,7 @@ struct device_table {
+ { VENDOR_LOGITECH, 0xC012, "M-BL63B", "MouseMan Dual Optical", HAS_RES
},
+ { VENDOR_LOGITECH, 0xC01B, "M-BP86", "MX310 Optical Mouse", HAS_RES },
+ { VENDOR_LOGITECH, 0xC01D, "M-BS81A", "MX510 Optical Mouse", HAS_RES |
HAS_SS | HAS_SSR },
++ { VENDOR_LOGITECH, 0xC01E, "M-BS81A", "MX518 Optical Mouse", HAS_RES },
+ { VENDOR_LOGITECH, 0xC024, "M-BP82", "MX300 Optical Mouse", HAS_RES },
+ { VENDOR_LOGITECH, 0xC025, "M-BP81A", "MX500 Optical Mouse", HAS_RES |
HAS_SS | HAS_SSR },
+ { VENDOR_LOGITECH, 0xC031, "M-UT58A", "iFeel Mouse (silver)", HAS_RES },
+@@ -318,8 +319,12 @@ int main(int argc, char **argv)
+ resolution = 400;
+ else if (!strcmp("800", optarg))
+ resolution = 800;
++ else if (!strcmp("1200", optarg))
++ resolution = 1200;
++ else if (!strcmp("1600", optarg))
++ resolution = 1600;
+ else
+- printf("Bad argument (should be 400 or 800)\n");
++ printf("Bad argument (should be 400 or 800;\non some models
1200 and 1600 are acceptable)\n");
+ break;
+ case 'v':
+ version();
+@@ -363,14 +368,22 @@ int main(int argc, char **argv)
+ break;
+ case 4: printf("800cpi\n");
+ break;
++ case 5: printf("1200cpi\n");
++ break;
++ case 6: printf("1600cpi\n");
++ break;
+ default: printf("(Unexpected result:%i)\n",
resolution);
+ break;
+ }
+ } else {
+ if (400 == resolution)
+ set_resolution(dev, 0x03);
+- else
++ else if (800 == resolution)
+ set_resolution(dev, 0x04);
++ else if (1200 == resolution)
++ set_resolution(dev, 0x05);
++ else
++ set_resolution(dev, 0x06);
+ }
+ }
+
diff --git a/utils/logitech_applet/verbose-report.patch
b/utils/logitech_applet/verbose-report.patch
new file mode 100644
index 0000000..044fb94
--- /dev/null
+++ b/utils/logitech_applet/verbose-report.patch
@@ -0,0 +1,11 @@
+--- logitech_applet-0.4test1/logitech_applet.c.bak 2005-05-03
08:04:38.000000000 +0800
++++ logitech_applet-0.4test1/logitech_applet.c 2005-05-03 08:44:35.000000000
+0800
+@@ -398,7 +398,7 @@
+ break;
+ case 1: printf("Enabled\n");
+ break;
+- default: printf("Unknown (Unexpected
result)\n");
++ default: printf("Unknown (Unexpected result:
%i)\n", cruise);
+ break;
+ }
+ }




Archive powered by MHonArc 2.6.24.

Top of Page