diff options
Diffstat (limited to 'sys-apps/mouseemu/files')
-rw-r--r-- | sys-apps/mouseemu/files/mouseemu-0.12-fix.diff | 48 | ||||
-rw-r--r-- | sys-apps/mouseemu/files/mouseemu-0.13-fix.patch | 14 | ||||
-rw-r--r-- | sys-apps/mouseemu/files/mouseemu-0.15-build.patch | 9 | ||||
-rw-r--r-- | sys-apps/mouseemu/files/mouseemu-0.15-openrc.patch | 8 |
4 files changed, 79 insertions, 0 deletions
diff --git a/sys-apps/mouseemu/files/mouseemu-0.12-fix.diff b/sys-apps/mouseemu/files/mouseemu-0.12-fix.diff new file mode 100644 index 000000000000..993f7633e127 --- /dev/null +++ b/sys-apps/mouseemu/files/mouseemu-0.12-fix.diff @@ -0,0 +1,48 @@ +--- mouseemu-0.12.orig/Makefile ++++ mouseemu-0.12/Makefile +@@ -1,6 +1,6 @@ + all: +- gcc -Wall -I/usr/src/linux/include -g -o mouseemu mouseemu.c ++ gcc -Wall -g -o mouseemu mouseemu.c + clean: + rm -f *.o core* mouseemu + install: +- cp -f mouseemu /usr/sbin/ ++ cp -f mouseemu $(DESTDIR)/usr/sbin/ +--- mouseemu-0.12.orig/mouseemu.conf ++++ mouseemu-0.12/mouseemu.conf +@@ -0,0 +1,10 @@ ++# Mouseemu Configuration File ++# Each uncommented line is read by the mouseemu initscript ++# (/etc/init.d/mouseemu). If you use mouseemu without the ++# initscript, source this file in your .bashrc/.cshrc/.zshrc ++# Keycodes can be found using the "showkey" program. ++ ++#MID_CLICK="-middle 0 68" # F10 with no modifier ++#RIGHT_CLICK="-right 0 87" # F11 with no modifier ++#SCROLL="-scroll 56" # Alt key ++#TYPING_BLOCK="-typing-block 300" # block mouse for 300ms after a keypress +--- mouseemu-0.12.orig/mouseemu.c ++++ mouseemu-0.12/mouseemu.c +@@ -428,7 +428,7 @@ + "\t[-nofork]\n", + argv[0]); + printf("Key codes can be found in " +- "/usr/src/linux/include/linux.h,\n" ++ "/usr/src/linux/include/linux/input.h,\n" + "or by using `showkey` in console.\n" + "Use decimal values. BTN_LEFT(272) is usable as " + "B2_KEY or B3_KEY.\n\n"); +--- mouseemu-0.12.orig/mouseemu.init.gentoo.old ++++ mouseemu-0.12/mouseemu.init.gentoo +@@ -13,6 +13,10 @@ + + start() { + ebegin "Starting mouseemu" ++ # Source configuration file /etc/mouseemu.conf ++ if [ -f /etc/mouseemu.conf ] ; then ++ . /etc/mouseemu.conf ++ fi + start-stop-daemon --start --quiet \ + --exec /usr/sbin/mouseemu -- \ + $MID_CLICK $RIGHT_CLICK $SCROLL $TYPING_BLOCK > /var/log/mouseemu.log diff --git a/sys-apps/mouseemu/files/mouseemu-0.13-fix.patch b/sys-apps/mouseemu/files/mouseemu-0.13-fix.patch new file mode 100644 index 000000000000..f4d0aa981762 --- /dev/null +++ b/sys-apps/mouseemu/files/mouseemu-0.13-fix.patch @@ -0,0 +1,14 @@ +diff -Naur ../mouseemu.orig/mouseemu.conf ./mouseemu.conf +--- ../mouseemu.orig/mouseemu.conf 1970-01-01 01:00:00.000000000 +0100 ++++ ./mouseemu.conf 2005-02-14 09:10:30.236462888 +0100 +@@ -0,0 +1,10 @@ ++# Mouseemu Configuration File ++# Each uncommented line is read by the mouseemu initscript ++# (/etc/init.d/mouseemu). If you use mouseemu without the ++# initscript, source this file in your .bashrc/.cshrc/.zshrc ++# Keycodes can be found using the "showkey" program. ++ ++#MID_CLICK="-middle 0 68" # F10 with no modifier ++#RIGHT_CLICK="-right 0 87" # F11 with no modifier ++#SCROLL="-scroll 56" # Alt key ++#TYPING_BLOCK="-typing-block 300" # block mouse for 300ms after a keypress diff --git a/sys-apps/mouseemu/files/mouseemu-0.15-build.patch b/sys-apps/mouseemu/files/mouseemu-0.15-build.patch new file mode 100644 index 000000000000..ad4deae7bf22 --- /dev/null +++ b/sys-apps/mouseemu/files/mouseemu-0.15-build.patch @@ -0,0 +1,9 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,5 +1,5 @@ + all: +- gcc -Wall -g -o mouseemu mouseemu.c ++ gcc -Wall $(CFLAGS) $(LDFLAGS) -o mouseemu mouseemu.c + clean: + rm -f *.o core* mouseemu + install: diff --git a/sys-apps/mouseemu/files/mouseemu-0.15-openrc.patch b/sys-apps/mouseemu/files/mouseemu-0.15-openrc.patch new file mode 100644 index 000000000000..fdd7e4578633 --- /dev/null +++ b/sys-apps/mouseemu/files/mouseemu-0.15-openrc.patch @@ -0,0 +1,8 @@ +--- a/mouseemu.init.gentoo ++++ b/mouseemu.init.gentoo +@@ -1,4 +1,4 @@ +-#!/sbin/runscript ++#!/sbin/openrc-run + # Copyright 1999-2004 Gentoo Technologies, Inc. + # Distributed under the terms of the GNU General Public License v2 + |