summaryrefslogtreecommitdiff
path: root/sys-apps/mouseemu
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/mouseemu')
-rw-r--r--sys-apps/mouseemu/Manifest11
-rw-r--r--sys-apps/mouseemu/files/mouseemu-0.12-fix.diff48
-rw-r--r--sys-apps/mouseemu/files/mouseemu-0.13-fix.patch14
-rw-r--r--sys-apps/mouseemu/files/mouseemu-0.15-build.patch9
-rw-r--r--sys-apps/mouseemu/files/mouseemu-0.15-openrc.patch8
-rw-r--r--sys-apps/mouseemu/metadata.xml8
-rw-r--r--sys-apps/mouseemu/mouseemu-0.12.ebuild36
-rw-r--r--sys-apps/mouseemu/mouseemu-0.15.ebuild40
8 files changed, 174 insertions, 0 deletions
diff --git a/sys-apps/mouseemu/Manifest b/sys-apps/mouseemu/Manifest
new file mode 100644
index 000000000000..a82128b1ffe9
--- /dev/null
+++ b/sys-apps/mouseemu/Manifest
@@ -0,0 +1,11 @@
+AUX mouseemu-0.12-fix.diff 1715 SHA256 8b1f4b14de46f5189f84dfd319d4d827faa38feaa42df68ff5d53c0c5c260ff7 SHA512 98963e74636d83621b17281ef539102718c8ffc087dd0864b524fcaf6e2d0b6c58fbc84abb9959402fc67cf51e97e2f8d3beeb71b7360da4faff73d5e4250f01 WHIRLPOOL e9f3923fada4c447e58b28361c44eb18536a2af96c6101225a5fba6e3adb1c4189e40578472f30f39eab8ce50013eaf013fcb689f644ba00c905cd2e5b4a7a1a
+AUX mouseemu-0.13-fix.patch 707 SHA256 eb67274a5fe0e8f14a2dfe0003ae8e7725a8e141ab051f1d79b4cacef3da4b96 SHA512 dfcd90a8e300d98e85ccb16455989a2a8e31f9b782887834e5ab3491391f0a681571f438e808860e095639e95fef4fbfc7f8d1c0edccd4b7b5d9bc915facfc87 WHIRLPOOL 5a9ea30279a0f81ced83f9a0ffd8d16e6f95ede0d8c431be65dec87f12f0c686fc7c16db389432c8b4e755339ec5df307d5a9a95ab9a2e0f2425c52f0c149e92
+AUX mouseemu-0.15-build.patch 191 SHA256 83d0ac3b50582084ba45468786bffe8785dcfa7f8738acddcd1e6030df61a507 SHA512 e0c55d7b77b18bfadd0b060d9fb6dd534e0fdf3cbcf5768262d8bdb8c26c0beb976c2c000bdf6cb9b26781dfb0e3dd5bb99cd005e34e49cfb0147ab4b19800e9 WHIRLPOOL 42e0a32919257837eb4bcb4de9a9043e2afd863079fe9ab244f86bd2b8ea579ff23d1c6e1bd1e7d3268c4e936e35dffdad8a47a33170574a87c16c80df1ea56b
+AUX mouseemu-0.15-openrc.patch 228 SHA256 c05b6be36c08770b3e31a3c4e6b8a3e9a6674654ba20f03247fd6b6e8bb299f4 SHA512 e26a9749c777852eb1a0feb5c15f6ed64635f40264e6065b4e9a7fb450db53357132e08b522724ae63735720d24fe92431f9a31d9b5ae2023783fc45f882269a WHIRLPOOL afea004eb2ec490d1019d07896f99cbc349796d6bc400598fa05733312aff43807a5606d7c4b825e9ae0577c3f83d9641a250aaa5419c3ab7bff049b9b63b3f1
+DIST mouseemu-0.15.tar.gz 13958 SHA256 bbef220a814931f8ee482c82dfd63ad0a8ec895fc7df7bac1a1ada880d59af59 SHA512 7a6cbb0526a9ca51632d589bf873adb182c02f4a666cf9e94cedba9499d6c6cc1ad2ac7e5a482d22949e64ad69f04f444cb0fa78ea728c5653989d150f62918b WHIRLPOOL 7f6df70683c8d017c9e1ad8f9963252016a869e097240f14ab35a83f74dc0ffdd33bfae0abab9651a4f877aad510fdc4dd7aad154727d5cbeaf7d572a0752afc
+DIST mouseemu.tar.gz 12019 SHA256 67d5015d2859a58794208278178eabb7b189cb9da106628085c75c7a50f7ee9c SHA512 192cb502d93ff6347082769444205597ef18f62b901033a9987f70c80b0f59fa0de2d79dc73ae2b04a90321842035549ff0d9c2f45284a2dc8324a944e85f514 WHIRLPOOL 21776bbb8604dfee3577059f6fdbe98ed492673d5e2fa0cb12efd52bcd4b471f4ea994ac25863324544a7206925ef8e3117850c1057ff5346c8e3727c0ef4228
+EBUILD mouseemu-0.12.ebuild 925 SHA256 45119abef0e6e0e57077b44a922703676ba7d4219a844fe3467a93bd04ffebc3 SHA512 b528fe4cd4b3a0592e67c6da8bb83fd803b0f0f555e12cbf3f4543118c73b61e8417b607a20bddc54540b4fac7e1cbe3c04c74304a62f236fd9288220a2081d3 WHIRLPOOL bd2930823a79f817e0e8b4776b86d44061dbc9ccca2cfcc5e5b23859531665b05b31d417472d19388108e1bd3a2ab34696a1b85e0bfb72ab783a951a0bd16aaa
+EBUILD mouseemu-0.15.ebuild 1010 SHA256 01dfcc04bd4bc6178ba10cd69d20d434d56ba44ad19cc5d2c7fece94ff22b8dd SHA512 dd4a627c303a281a43435829af6d6e60f61c04b4e53d76154c5b963f6cac0e8c42d44ba90130d7c397105ba50480d68d7887c1856f211d78b838f1c6bffe526e WHIRLPOOL 2a034d26aeaccfbc78b64c830295e4d52151eb1eba7fcf4116fc5cab997744ce45259131877186e43393fa062c2fb16f50110b758bbc935d39833d70533f1532
+MISC ChangeLog 2581 SHA256 9807789d3fa912329b3493ff9b6baa00b9f209c2f78208e75771ad344f4f63d3 SHA512 e07a2b8210d6ba87d7aa93315195f73bebef1804dfe738f8b6f7e779b049746a04f74fce3808b8986eb75f57ec30958c7bb5d12c6aeb89652ce947d086ab5f38 WHIRLPOOL bba2ed89fe3ced23b527d2961e30f5cf12b9d3f9914cb4e4dcf976fae0a981762857e41250b7e10da40c9e692a3d56d0afd3d291a4dc0399f24a09ef98af1e42
+MISC ChangeLog-2015 1444 SHA256 0de3cf61af0f1df0f07204c57b073c9d9d83740d9283d38f424d1c0d5824fbcd SHA512 783746866ffd117fa498be4be2dc4d1cb1fb04791af19c5b26a3f54bc3da82a08232a02ab6a20eb5eebcd592b279c2d0fcb76866ecd8f46db7996a8f63ed4ead WHIRLPOOL 4bbd9577563f06802cfe68fbfa3d57f455cea99f091802121c514d99f6550e0c512943f3ee2ba785b282ca2506c1b4f21bd1d3fa080941fe8a05652337f369b9
+MISC metadata.xml 259 SHA256 e7ac6b67c4c89040a00b23bda7a3b2fd4ac8affc1055daf3015ccc8580640f6f SHA512 ca71b1781806d20022c238e5b5d10f9154c78e0fa51f2603de34c48ecbe4cbc2c3190cf046526840546743644c691ee7fe51e31a4617b01bb7602dde803c1538 WHIRLPOOL 2a2aa19a448eca4dea84d129fd194a7ee4d77bdc1b5120abd3b667ce156cdeeb4616a7c7cd23fbccb7ba08e6e166aaba0fac63a6afa208d826acee37b0e560fe
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
+
diff --git a/sys-apps/mouseemu/metadata.xml b/sys-apps/mouseemu/metadata.xml
new file mode 100644
index 000000000000..5eb05198076b
--- /dev/null
+++ b/sys-apps/mouseemu/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>ppc@gentoo.org</email>
+ <name>Gentoo Linux PowerPC Development</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-apps/mouseemu/mouseemu-0.12.ebuild b/sys-apps/mouseemu/mouseemu-0.12.ebuild
new file mode 100644
index 000000000000..2b972aee53f3
--- /dev/null
+++ b/sys-apps/mouseemu/mouseemu-0.12.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Emulates scrollwheel, right- & left-click for one-button mice/touchpads"
+HOMEPAGE="http://geekounet.org/powerbook/"
+SRC_URI="http://geekounet.org/powerbook/files/${PN}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ppc"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}/${PN}
+PATCHES=( "${FILESDIR}"/${P}-fix.diff )
+
+src_install() {
+ dosbin mouseemu
+ einstalldocs
+
+ newinitd mouseemu.init.gentoo mouseemu
+ insinto /etc
+ doins mouseemu.conf
+}
+
+pkg_postinst() {
+ einfo "For mouseemu to work you need uinput support in your kernel:"
+ einfo " CONFIG_INPUT_UINPUT=y"
+ einfo "(Device Drivers->Input device support->Misc->User level driver support)"
+ einfo "Don't forget to add mouseemu to your default runlevel:"
+ einfo " rc-update add mouseemu default"
+ einfo "Configuration is in /etc/mouseemu.conf."
+}
diff --git a/sys-apps/mouseemu/mouseemu-0.15.ebuild b/sys-apps/mouseemu/mouseemu-0.15.ebuild
new file mode 100644
index 000000000000..2770a2215251
--- /dev/null
+++ b/sys-apps/mouseemu/mouseemu-0.15.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Emulates scrollwheel, right- & left-click for one-button mice/touchpads"
+HOMEPAGE="http://geekounet.org/powerbook/"
+SRC_URI="http://geekounet.org/powerbook/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~ppc"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}/${PN}
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.13-fix.patch
+ "${FILESDIR}"/${PN}-0.15-build.patch
+ "${FILESDIR}"/${PN}-0.15-openrc.patch
+)
+
+src_install() {
+ dosbin mouseemu
+ einstalldocs
+
+ newinitd mouseemu.init.gentoo mouseemu
+ insinto /etc
+ doins mouseemu.conf
+}
+
+pkg_postinst() {
+ einfo "For mouseemu to work you need uinput support in your kernel:"
+ einfo " CONFIG_INPUT_UINPUT=y"
+ einfo "(Device Drivers->Input device support->Misc->User level driver support)"
+ einfo "Don't forget to add mouseemu to your default runlevel:"
+ einfo " rc-update add mouseemu default"
+ einfo "Configuration is in /etc/mouseemu.conf."
+}