summaryrefslogtreecommitdiff
path: root/app-misc/mouseremote
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /app-misc/mouseremote
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'app-misc/mouseremote')
-rw-r--r--app-misc/mouseremote/Manifest1
-rw-r--r--app-misc/mouseremote/files/mouseremote-0.90-fix-clang-16.patch29
-rw-r--r--app-misc/mouseremote/files/mouseremote-0.90-fix-warnings.patch21
-rw-r--r--app-misc/mouseremote/files/mouseremote-0.90-gentoo.patch64
-rw-r--r--app-misc/mouseremote/files/mouseremote-0.90-makefile.patch20
-rw-r--r--app-misc/mouseremote/files/mouseremote.conf13
-rw-r--r--app-misc/mouseremote/files/mouseremote.start-r128
-rw-r--r--app-misc/mouseremote/metadata.xml5
-rw-r--r--app-misc/mouseremote/mouseremote-0.90-r4.ebuild68
9 files changed, 249 insertions, 0 deletions
diff --git a/app-misc/mouseremote/Manifest b/app-misc/mouseremote/Manifest
new file mode 100644
index 000000000000..67c6f3078779
--- /dev/null
+++ b/app-misc/mouseremote/Manifest
@@ -0,0 +1 @@
+DIST MouseRemote.tar.gz 41752 BLAKE2B 90e80bf4d6584db567e035c293460bbf4d30592fa6c25a6cf97769f4e9879b935ef597d8073f429e630e3fb4947f9e8cbdff7450cb5c3b64d0f482e576e2905d SHA512 d92ec4a1efda7e63cc02283b2aabcd6b42bedba17539371856e6ca3b6b5feaf9c306604db9a781836375afb6da226c16b8031f5f749d367857c2cde28e097483
diff --git a/app-misc/mouseremote/files/mouseremote-0.90-fix-clang-16.patch b/app-misc/mouseremote/files/mouseremote-0.90-fix-clang-16.patch
new file mode 100644
index 000000000000..041a28041652
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote-0.90-fix-clang-16.patch
@@ -0,0 +1,29 @@
+From 4363dd75d5df8c85869f0f6f5d3a22d561cff7e0 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Mon, 24 Oct 2022 17:28:49 +0100
+Subject: [PATCH] Fix build with Clang 16
+
+Bug: https://bugs.gentoo.org/874957
+--- a/MultiMouse/daemon.c
++++ b/MultiMouse/daemon.c
+@@ -78,6 +78,7 @@ int MakeMeDaemon()
+ setsid();
+ close(fileno(stderr));
+ kill(parent, SIGTERM);
++ return 0;
+ }
+
+ void SetSignals()
+--- a/MultiMouse/main.c
++++ b/MultiMouse/main.c
+@@ -30,6 +30,10 @@
+
+ #include "mumse.h"
+
++int MakeMeDaemon(void);
++void SetSignals(void);
++void Selection(int numMouse);
++
+ static
+ void InitMouse(int mfd, u_short baud, u_short cflag)
+ {
diff --git a/app-misc/mouseremote/files/mouseremote-0.90-fix-warnings.patch b/app-misc/mouseremote/files/mouseremote-0.90-fix-warnings.patch
new file mode 100644
index 000000000000..11a7e63b850b
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote-0.90-fix-warnings.patch
@@ -0,0 +1,21 @@
+--- a/MultiMouse/daemon.c
++++ b/MultiMouse/daemon.c
+@@ -22,6 +22,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <signal.h>
++#include <stdlib.h>
+
+ #include "mumse.h"
+
+--- a/MultiMouse/main.c
++++ b/MultiMouse/main.c
+@@ -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.patch b/app-misc/mouseremote/files/mouseremote-0.90-gentoo.patch
new file mode 100644
index 000000000000..1d73ffeb8725
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote-0.90-gentoo.patch
@@ -0,0 +1,64 @@
+--- a/client/MouseRemote.conf
++++ b/client/MouseRemote.conf
+@@ -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
+--- a/client/MouseRemoteKeys.pl
++++ b/client/MouseRemoteKeys.pl
+@@ -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.patch b/app-misc/mouseremote/files/mouseremote-0.90-makefile.patch
new file mode 100644
index 000000000000..560740c67a2e
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote-0.90-makefile.patch
@@ -0,0 +1,20 @@
+--- a/MultiMouse/Makefile
++++ b/MultiMouse/Makefile
+@@ -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-r1 b/app-misc/mouseremote/files/mouseremote.start-r1
new file mode 100644
index 000000000000..fd6aa9c854f1
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote.start-r1
@@ -0,0 +1,28 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use modules logger
+ before display-manager
+}
+
+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..85e4ed814fa2
--- /dev/null
+++ b/app-misc/mouseremote/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-misc/mouseremote/mouseremote-0.90-r4.ebuild b/app-misc/mouseremote/mouseremote-0.90-r4.ebuild
new file mode 100644
index 000000000000..3c211b40c07a
--- /dev/null
+++ b/app-misc/mouseremote/mouseremote-0.90-r4.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="X10 MouseRemote"
+HOMEPAGE="http://www4.pair.com/gribnif/ha/"
+SRC_URI="http://www4.pair.com/gribnif/ha/MouseRemote.tar.gz"
+S="${WORKDIR}"/MouseRemote
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+
+RDEPEND="virtual/perl-Time-HiRes"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-fix-warnings.patch
+ "${FILESDIR}"/${P}-fix-clang-16.patch
+)
+
+src_compile() {
+ emake -C MultiMouse \
+ 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-r1 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 ${EROOT}/etc/conf.d/mouseremote."
+ elog
+ elog "See ${EROOT}/usr/share/doc/${PF} on how to configure the buttons."
+}