diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/mouseremote | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/mouseremote')
-rw-r--r-- | app-misc/mouseremote/Manifest | 8 | ||||
-rw-r--r-- | app-misc/mouseremote/files/mouseremote-0.90-fix-warnings.diff | 23 | ||||
-rw-r--r-- | app-misc/mouseremote/files/mouseremote-0.90-gentoo.diff | 66 | ||||
-rw-r--r-- | app-misc/mouseremote/files/mouseremote-0.90-makefile.diff | 20 | ||||
-rw-r--r-- | app-misc/mouseremote/files/mouseremote.conf | 13 | ||||
-rw-r--r-- | app-misc/mouseremote/files/mouseremote.start | 28 | ||||
-rw-r--r-- | app-misc/mouseremote/metadata.xml | 5 | ||||
-rw-r--r-- | app-misc/mouseremote/mouseremote-0.90-r2.ebuild | 71 |
8 files changed, 234 insertions, 0 deletions
diff --git a/app-misc/mouseremote/Manifest b/app-misc/mouseremote/Manifest new file mode 100644 index 000000000000..9bca62d34f95 --- /dev/null +++ b/app-misc/mouseremote/Manifest @@ -0,0 +1,8 @@ +AUX mouseremote-0.90-fix-warnings.diff 631 BLAKE2B ca0d5dfc9cdcb51a9a7426be220113a21aa12d2100503632cc6c7e56cee58174b2c81bc885abd152a67dbd7cd5fd35969434e429a6e83c128b20bfda77246733 SHA512 203b8df256510e98e5f46365c308b12c80fb7c92f164663ace8627e1ff9ae0e47c69912fe562e92466f289c0827d46f295b776ce43859d94b272ff6f8cf35a6f +AUX mouseremote-0.90-gentoo.diff 1130 BLAKE2B f219bba9912a620a02a91881e6bce1d0558dfec032d1b926b4be7439b25a224a8655de2f054230a0705fa1a5777d1e997dde7f9c07f5d542937519e3cf178921 SHA512 607483c622f3347d3fad6de2f8c9eacd3a4f389baaa2bed94e72a6d5db65006c67231b92962ad08b1756983fe6af7d599b93bba880558867a032840942654e6b +AUX mouseremote-0.90-makefile.diff 507 BLAKE2B c93decf07db9ad8f25c9ee8902b1e9841fe29e10c26cb1dc0c49736a3755edc25cd8545190b25aafc1b36d903e381f24e01fbf1a80efd04983f815883cdba09e SHA512 160efb2db998c42ab2efb34e8b462f3b709a03b8d4a8bf0be4c6c45c8204285e67bc6e5cecc4dd25ee71c6625b3e7653f83a2be8c51ed09103e2f119102b2ec0 +AUX mouseremote.conf 461 BLAKE2B 323401e37e6824b581ac63c947f5551b96bea35b9901310a039f86754ab35648b09b49fe5a01ce80be518fc6841b424d65c5ae5d1e64c8864035ca080183325a SHA512 b1e99866c0aec8036ea6bbd0e831afca79a5530ab1635fa1f6f407f7c49df5aa1df9c14e7e864fd6503063c05fc882792f6da4785e694865e4ef90d459a8e1f4 +AUX mouseremote.start 598 BLAKE2B 758b559aacbf1c3af63286cbe994087fd02e7c44d272ba1542d78b388baa7346240a5e0e66dada484ed877645e56a786ed6b7eaa4411893a66d88ea0e80200ea SHA512 9cbcd5037057498ccbe8dc4a16308f7390112389440cbbcc4675b2750bfeeca2c54b1fd3da5d91efb3f2e9bcd453b125c526c3412a1e30fa56a937183aca7abe +DIST MouseRemote.tar.gz 41752 BLAKE2B 90e80bf4d6584db567e035c293460bbf4d30592fa6c25a6cf97769f4e9879b935ef597d8073f429e630e3fb4947f9e8cbdff7450cb5c3b64d0f482e576e2905d SHA512 d92ec4a1efda7e63cc02283b2aabcd6b42bedba17539371856e6ca3b6b5feaf9c306604db9a781836375afb6da226c16b8031f5f749d367857c2cde28e097483 +EBUILD mouseremote-0.90-r2.ebuild 1945 BLAKE2B 7bd0b8a6b5bdfc7f8e1485a1f0dd1d28ce83d832175460321e4bd7527824bce590d846d8c440d7e588d336871bbc5f981e74e8b181de82a0dbcd5c69d8e3ee52 SHA512 0463baf4ac6a0d07a85a15ea46b04fd08a3660d23ee5a027e924498063f0b22bddb3c7444ece5667f4a1991d7499509474b774a2992282185b5091ded5fe3814 +MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 diff --git a/app-misc/mouseremote/files/mouseremote-0.90-fix-warnings.diff b/app-misc/mouseremote/files/mouseremote-0.90-fix-warnings.diff new file mode 100644 index 000000000000..63447b9bc4ce --- /dev/null +++ b/app-misc/mouseremote/files/mouseremote-0.90-fix-warnings.diff @@ -0,0 +1,23 @@ +diff -ur MultiMouse.orig/daemon.c MultiMouse/daemon.c +--- MultiMouse.orig/daemon.c 1999-10-09 20:08:58.000000000 +0000 ++++ MultiMouse/daemon.c 2016-04-27 22:36:59.133322312 +0000 +@@ -22,6 +22,7 @@ + #include <unistd.h> + #include <sys/types.h> + #include <signal.h> ++#include <stdlib.h> + + #include "mumse.h" + +diff -ur MultiMouse.orig/main.c MultiMouse/main.c +--- MultiMouse.orig/main.c 1999-10-03 17:40:23.000000000 +0000 ++++ MultiMouse/main.c 2016-04-27 22:34:58.346647395 +0000 +@@ -25,6 +25,8 @@ + #include <sys/types.h> + #include <sys/time.h> + #include <signal.h> ++#include <stdlib.h> ++#include <string.h> + + #include "mumse.h" + diff --git a/app-misc/mouseremote/files/mouseremote-0.90-gentoo.diff b/app-misc/mouseremote/files/mouseremote-0.90-gentoo.diff new file mode 100644 index 000000000000..d86902e37ed5 --- /dev/null +++ b/app-misc/mouseremote/files/mouseremote-0.90-gentoo.diff @@ -0,0 +1,66 @@ +diff -Naur MouseRemote.ORG/client/MouseRemote.conf MouseRemote/client/MouseRemote.conf +--- MouseRemote.ORG/client/MouseRemote.conf Sat Oct 9 21:03:42 1999 ++++ MouseRemote/client/MouseRemote.conf Sat May 4 16:04:43 2002 +@@ -61,3 +61,35 @@ + + # Definitions for the DVD device + [DVD] ++Power ++ChUp ++ChDown ++Mute ++VolUp ++VolDown ++Play ++Stop ++TxtRes ++Rew ++FF ++0 ++1 ++2 ++3 ++4 ++5 ++6 ++7 ++8 ++9 ++Ent ++Pause ++Last ++Disp ++AB ++Shift ++Guide ++Select ++TxtOff ++TxtTrns ++Rec +diff -Naur MouseRemote.ORG/client/MouseRemoteKeys.pl MouseRemote/client/MouseRemoteKeys.pl +--- MouseRemote.ORG/client/MouseRemoteKeys.pl Sun Oct 10 00:09:42 1999 ++++ MouseRemote/client/MouseRemoteKeys.pl Sat May 4 15:58:58 2002 +@@ -11,6 +11,7 @@ + play => 0x0d, + stop => 0x0e, + power => 0x0f, ++ txtres => 0x1b, + rew => 0x1c, + ff => 0x1d, + 0 => 0x40, +@@ -31,11 +32,13 @@ + 'shift' => 0x6b, + guide => 0x6d, + 'select' => 0x93, ++ txtoff => 0x9b, ++ txttrns => 0xeb, + rec => 0xff, + + pc => 0x2b, +- phone => 0x4b, ++ phone => 0x4b, # Marked as F2 on my model + web => 0x8b, + cd => 0xab, +- dvd => 0xcb, ++ dvd => 0xcb, # Marked as F1 on my model + ); diff --git a/app-misc/mouseremote/files/mouseremote-0.90-makefile.diff b/app-misc/mouseremote/files/mouseremote-0.90-makefile.diff new file mode 100644 index 000000000000..2f6fb8a81f15 --- /dev/null +++ b/app-misc/mouseremote/files/mouseremote-0.90-makefile.diff @@ -0,0 +1,20 @@ +--- MultiMouse/Makefile 1997-08-21 08:52:56.000000000 -0400 ++++ MultiMouse/Makefile 2010-08-13 00:05:47.000000000 -0400 +@@ -20,14 +20,13 @@ + -DMOUSE_FIFO=\"$(FIFO)\"\ + -DLOCKDIR=\"$(LOCKDIR)\"\ + -DMAX_MICE=$(MICE) +-CFLAGS= $(OPTS)\ +- -O2 # -DDEBUG +-LDLAGS= -O2 ++ ++OUTPUT_OPTION= $(OPTS) -o $@ + + all: $(TARGET) + + multimoused: $(OBJS) +- $(CC) -o $@ $(OBJS) ++ $(CC) $(LDFLAGS) -o $@ $(OBJS) + + multimouse.1 multimoused.8 multimouse: Makefile + sed -e 's|%LOCKDIR%|$(LOCKDIR)|' -e 's|%BINDIR%|$(BINDIR)|'\ diff --git a/app-misc/mouseremote/files/mouseremote.conf b/app-misc/mouseremote/files/mouseremote.conf new file mode 100644 index 000000000000..3ca7396177bc --- /dev/null +++ b/app-misc/mouseremote/files/mouseremote.conf @@ -0,0 +1,13 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Config file for /etc/init.d/mouseremote + +# Configure the type of mouseremote you have and the device it is connected to + +# If your device is attached to the regular psaux port then set DRV to X10 +# If your device is attached to a serial port then set DRV to SX10 +#DRV=SX10 + +# Set this to the port on which your mouseremote is attached +#DEV=/dev/ttyS1 diff --git a/app-misc/mouseremote/files/mouseremote.start b/app-misc/mouseremote/files/mouseremote.start new file mode 100644 index 000000000000..e149dd8eb70c --- /dev/null +++ b/app-misc/mouseremote/files/mouseremote.start @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use modules logger + before xdm +} + +checkconfig() { + [ -z "$DEV" ] || [ -z "$DRV" ] || return 0 + eerror "You need to setup DEV and DRV in /etc/conf.d/mouseremote first" + return 1 +} + +start() { + checkconfig || return 1 + + ebegin "Starting X10 MouseRemote Server" + /usr/sbin/multimoused -${DRV} ${DEV} 2> /dev/null + eend $? +} + +stop() { + ebegin "Stopping X10 MouseRemote Server" + kill $(cat /var/lock/MultiMouse.pid) + eend ${?} "Failed to stop MouseRemote Server" +} diff --git a/app-misc/mouseremote/metadata.xml b/app-misc/mouseremote/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/app-misc/mouseremote/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/app-misc/mouseremote/mouseremote-0.90-r2.ebuild b/app-misc/mouseremote/mouseremote-0.90-r2.ebuild new file mode 100644 index 000000000000..ddddb1fbdd1e --- /dev/null +++ b/app-misc/mouseremote/mouseremote-0.90-r2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="X10 MouseRemote" +HOMEPAGE="http://www4.pair.com/gribnif/ha/" +SRC_URI="http://www4.pair.com/gribnif/ha/MouseRemote.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="virtual/perl-Time-HiRes" + +S="${WORKDIR}/MouseRemote" + +src_prepare() { + eapply -p0 "${FILESDIR}"/${P}-makefile.diff + eapply "${FILESDIR}"/${P}-gentoo.diff + eapply -p0 "${FILESDIR}"/${P}-fix-warnings.diff + + eapply_user +} + +src_compile() { + cd MultiMouse && emake \ + CC=$(tc-getCC) \ + PREFIX=/usr \ + LOCKDIR=/var/lock \ + JMANDIR=/usr/share/man/ja_JP.ujis +} + +src_install() { + dobin MultiMouse/multimouse + dosbin MultiMouse/multimoused + + dodoc README MultiMouse/README.jis MultiMouse/README.newstuff + newdoc MultiMouse/README README.MultiMouse + newdoc client/MouseRemote.conf MouseRemote.conf.dist + newdoc client/MouseRemote.pl MouseRemote.pl.dist + newdoc client/MouseRemoteKeys.pl MouseRemoteKeys.pl.dist + + newinitd "${FILESDIR}"/mouseremote.start mouseremote + newconfd "${FILESDIR}"/mouseremote.conf mouseremote +} + +pkg_postinst() { + [ -e /dev/mumse ] || mkfifo "${ROOT}"/dev/mumse + [ -e /dev/x10fifo ] || mkfifo "${ROOT}"/dev/x10fifo + + elog "To use the mouse function in X, add the following to your XF86Config" + elog "Section \"InputDevice\"" + elog " Identifier \"MouseREM\"" + elog " Driver \"mouse\"" + elog " Option \"Protocol\" \"MouseSystems\"" + elog " Option \"Device\" \"/dev/mumse\"" + elog "EndSection" + elog + elog "Don't forget to add the new device to the section \"ServerLayout\"" + elog "like: InputDevice \"MouseREM\" \"SendCoreEvents\"" + elog + elog "Enable the daemon with \"rc-update add mouseremote default\"." + elog + elog "Configure the daemon is run in /etc/conf.d/mouseremote." + elog + elog "See /usr/share/doc/${PF} on how to configure the buttons." +} |