diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/mouseremote |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/mouseremote')
-rw-r--r-- | app-misc/mouseremote/Manifest | 10 | ||||
-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, 236 insertions, 0 deletions
diff --git a/app-misc/mouseremote/Manifest b/app-misc/mouseremote/Manifest new file mode 100644 index 000000000000..509e53697584 --- /dev/null +++ b/app-misc/mouseremote/Manifest @@ -0,0 +1,10 @@ +AUX mouseremote-0.90-fix-warnings.diff 631 SHA256 d8261933f6182199a4a31edd784be47ed7d9da95b3b669054b967ecb0b4db66a SHA512 203b8df256510e98e5f46365c308b12c80fb7c92f164663ace8627e1ff9ae0e47c69912fe562e92466f289c0827d46f295b776ce43859d94b272ff6f8cf35a6f WHIRLPOOL c95874a234ac5308c04d10a958eb12341d0dd481c706a117d37373951315e911bc2900cb9c747d7795bcccb10d9142770a46548679ac898a21e0f71ec2692911 +AUX mouseremote-0.90-gentoo.diff 1130 SHA256 28e0c6eb9799f34d511189fb8ccd515dd807fb758722b3b0f201d40cf35824c7 SHA512 607483c622f3347d3fad6de2f8c9eacd3a4f389baaa2bed94e72a6d5db65006c67231b92962ad08b1756983fe6af7d599b93bba880558867a032840942654e6b WHIRLPOOL ef7240f0288b2a9e08d18694aef68b8e26e4521b54ed4d8fbf041e96c5ce14e9fca169e98a38f0eccb9138c79702f60fe1af6437dd6681b3a13dd5f60ebf3609 +AUX mouseremote-0.90-makefile.diff 507 SHA256 4eb87a4e108455d3c622a9ba7d711b5b28f747efe86034a7c821905e1f1e8f3f SHA512 160efb2db998c42ab2efb34e8b462f3b709a03b8d4a8bf0be4c6c45c8204285e67bc6e5cecc4dd25ee71c6625b3e7653f83a2be8c51ed09103e2f119102b2ec0 WHIRLPOOL ad4810ecb377ee3fa1939fc57f7f33caaefccf531e849a73d7252b6bd6502a5f4fe257471b8aa02591e9cde2301f54b4fb1c9671ad0fa9c4333a62402d601299 +AUX mouseremote.conf 461 SHA256 981640d64a8e668de1a716eb43d772c93d7ec7245f2f8b54c83229e9f718992a SHA512 b1e99866c0aec8036ea6bbd0e831afca79a5530ab1635fa1f6f407f7c49df5aa1df9c14e7e864fd6503063c05fc882792f6da4785e694865e4ef90d459a8e1f4 WHIRLPOOL a5414043b854934c8f0b781fa07e5db70486dd1e5ddea85a65d78418409dd02aa22396046121c3d197bfdcc75009c228cd42aab2e15f82f4bdfbd9699780d7a0 +AUX mouseremote.start 598 SHA256 669e21daeda36555fc8d2e7bef411f5c509998e138294cc956b51625a728264e SHA512 9cbcd5037057498ccbe8dc4a16308f7390112389440cbbcc4675b2750bfeeca2c54b1fd3da5d91efb3f2e9bcd453b125c526c3412a1e30fa56a937183aca7abe WHIRLPOOL 059981d595dac3846ccb270b92f957f3c468f85a1b1302192ed99801e8e169a7ced4bb77270c98f4bebb1dc76e95d61bdb71fd775ef3e6687d2972f7db713d21 +DIST MouseRemote.tar.gz 41752 SHA256 cde90093c11d7d5b398d2ff9448a7c67bfc3bfa26d71802dff2de715f179b50f SHA512 d92ec4a1efda7e63cc02283b2aabcd6b42bedba17539371856e6ca3b6b5feaf9c306604db9a781836375afb6da226c16b8031f5f749d367857c2cde28e097483 WHIRLPOOL 43f66bad05a2e8f64cc384e7e4d9fcc9eb53bbc19b215713fd0ff5b8f71095d933e80dafd02393c1f5a99f688edab5f2051355246e2d5a938200fe2c49c30d6b +EBUILD mouseremote-0.90-r2.ebuild 1945 SHA256 d1e739bd0b3912058d38c2fed47df959194d8e0c5862ea69dc0f49ab705205be SHA512 0463baf4ac6a0d07a85a15ea46b04fd08a3660d23ee5a027e924498063f0b22bddb3c7444ece5667f4a1991d7499509474b774a2992282185b5091ded5fe3814 WHIRLPOOL 00242ad6a809b58ff227d53fdbe57f61e35fcc9fac1adad5be59e84f09ca4585d9d76cac9751dc2ff3f1c1fea2f1dda5a5382533d19ca0f8d53651bcab5c3c5b +MISC ChangeLog 3510 SHA256 dad13fa81ef808e9d06e2460b12e471a63f84069154a66001c8ec859a4b2520e SHA512 390f7c15fecd18039288a95f21bb51a3fe09802dcb4bccc23528cb180ced6f8cf37f2f4dc15a3947c0e213c81bed9b1ca79a9a5401cd562a49acfeefde85bad7 WHIRLPOOL 8629a3c6f5085c36829b443075251cac7efe0776fd2ae5fcfce1caeaa004c482b78e85dac65548d9241f44fe202ffa9408e027a32039969d06e8830421eecb84 +MISC ChangeLog-2015 2221 SHA256 db05bfef6421d2d0466116db3fe2970c52dae02f3cde7575d97c31aa568a1c6b SHA512 bb4e692da551024ec65cb30755e112b87f6202c8201f63cc0b0b5a98a50124c52d8b61c640d8d1b557afb73d45b3286e39855b6e5f22bc049316a3559b142efc WHIRLPOOL e6b4e405b7e8cbdf9b0a4c4b2eab2ff13c5790b8453e64d33e40dafeb183a2a003c1ff35542b330a1d764271c4ffed56545ce81d9840c1104949ccc7b8aa10ff +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 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." +} |