summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Smith <smitdane@gmail.com>2010-08-13 00:08:54 -0400
committerDane Smith <smitdane@gmail.com>2010-08-13 00:08:54 -0400
commit046dfb8540eec4d90b6ce9ebe93e2f1e21e9e64c (patch)
treef85cf6f43f44eea084d878390513e14949b526bb /app-misc
parentFinal try (diff)
downloadsmithdanea-046dfb8540eec4d90b6ce9ebe93e2f1e21e9e64c.tar.gz
smithdanea-046dfb8540eec4d90b6ce9ebe93e2f1e21e9e64c.tar.bz2
smithdanea-046dfb8540eec4d90b6ce9ebe93e2f1e21e9e64c.zip
New ebuild for mouseremote
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/mouseremote/ChangeLog12
-rw-r--r--app-misc/mouseremote/Manifest9
-rw-r--r--app-misc/mouseremote/files/mouseremote-0.90-makefile.patch20
-rw-r--r--app-misc/mouseremote/files/mouseremote-gentoo.diff66
-rw-r--r--app-misc/mouseremote/files/mouseremote.conf14
-rw-r--r--app-misc/mouseremote/files/mouseremote.start29
-rw-r--r--app-misc/mouseremote/metadata.xml8
-rw-r--r--app-misc/mouseremote/mouseremote-0.90.ebuild69
8 files changed, 227 insertions, 0 deletions
diff --git a/app-misc/mouseremote/ChangeLog b/app-misc/mouseremote/ChangeLog
new file mode 100644
index 0000000..2a86b9e
--- /dev/null
+++ b/app-misc/mouseremote/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for app-misc/mouseremote
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*mouseremote-0.90 (13 Aug 2010)
+
+ 13 Aug 2010; Dane Smith (c1pher) <smithdanea@gmail.com>
+ +mouseremote-0.90.ebuild, +files/mouseremote-0.90-makefile.patch,
+ +files/mouseremote.conf, +files/mouseremote.start,
+ +files/mouseremote-gentoo.diff, +metadata.xml:
+ New ebuild for mouseremote. Fixes LDFLAGS wrt bug 331859
+
diff --git a/app-misc/mouseremote/Manifest b/app-misc/mouseremote/Manifest
new file mode 100644
index 0000000..b005458
--- /dev/null
+++ b/app-misc/mouseremote/Manifest
@@ -0,0 +1,9 @@
+AUX mouseremote-0.90-makefile.patch 511 RMD160 91cdc8a563314a51c9098cc2f4057922eadffbb9 SHA1 24d8439f1da890b969bded0c54980c4fb58f070f SHA256 232e2f0d6db8a52114ba6f7045fdad26dfb355b2473ac791cc9a931bd0320a12
+AUX mouseremote-gentoo.diff 1130 RMD160 a9ad9f88d135dc5056ff3010ddb4de28e43d1454 SHA1 fe4ceaa44b44c2bc7eff352531186192a83e8f08 SHA256 28e0c6eb9799f34d511189fb8ccd515dd807fb758722b3b0f201d40cf35824c7
+AUX mouseremote.conf 581 RMD160 ce1c9190b6b7f44b12e40f3c806c02259d78d917 SHA1 be39ff503008dede30d9349d4fa2fae12e1ed35a SHA256 7adfa89726ea28274a76fb93d9a7f4c0678153c7059ff2b1d59da2fd0e48899e
+AUX mouseremote.start 718 RMD160 88dd87be6076e10a0812a6089e5b70d02e47b77c SHA1 5166bad3f89a6a0194a20120a9040f032cfd6d5d SHA256 d4d8379958b0c759072a37f512093a666cb5cb0592de7b00ae5b37d9a182c35d
+DIST MouseRemote.tar.gz 41752 RMD160 d33cfe287ed29b9620f24033b5eb84d5f13c7dee SHA1 6c3026e3d1470004318f3134a9abbd06db988985 SHA256 cde90093c11d7d5b398d2ff9448a7c67bfc3bfa26d71802dff2de715f179b50f
+EBUILD mouseremote-0.90.ebuild 2073 RMD160 f8a433b7b67182ab1b27700c986e689e22fe6616 SHA1 017cec36a5c2bb6b9c7546f9572fa9d68a317b40 SHA256 ecac3ab54902473f77cd8d83164fe28e39f5fbda2a49b29ac163735143fdfe04
+MISC ChangeLog 442 RMD160 89e62898870c9436b76c3a8454d3fa0ef15b9b18 SHA1 76af5b891f374a0c3e287b1182c8f52e3023e512 SHA256 44fa0c4c4e82234832b57449a4d56514a910c8d719ac33de6f184f7906fac01e
+MISC ChangeLog.new~ 400 RMD160 dad11eda718ccfe179264b2ee1dfef0ae1682ce7 SHA1 3bfee4fe117fe364c6327aae499b0355bba23b11 SHA256 d5a1c88d806fa46fb8c88ca23621794b4650b249edfaa87594fb92f74eae2a41
+MISC metadata.xml 232 RMD160 854b06094287201d0b98f2b21d36054db25d81cd SHA1 cc4f98e9ee0102aea687d71cf3af924cf156edbb SHA256 21382e863647add08888c924279a4b931b2b90ccd0cf5e526ee74a3d5e1fd0df
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 0000000..6f03549
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote-0.90-makefile.patch
@@ -0,0 +1,20 @@
+--- MultiMouse/Makefile 1997-08-21 08:52:56.000000000 -0400
++++ MultiMouse/Makefile.new 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-gentoo.diff b/app-misc/mouseremote/files/mouseremote-gentoo.diff
new file mode 100644
index 0000000..d86902e
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote-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.conf b/app-misc/mouseremote/files/mouseremote.conf
new file mode 100644
index 0000000..839e8c7
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote.conf
@@ -0,0 +1,14 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/mouseremote/files/mouseremote.conf,v 1.3 2004/07/14 21:33:40 agriffis Exp $
+
+# 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 0000000..37e7bb1
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote.start
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/mouseremote/files/mouseremote.start,v 1.4 2004/07/14 21:33:40 agriffis Exp $
+
+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 0000000..616f048
--- /dev/null
+++ b/app-misc/mouseremote/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/mouseremote/mouseremote-0.90.ebuild b/app-misc/mouseremote/mouseremote-0.90.ebuild
new file mode 100644
index 0000000..9863fbf
--- /dev/null
+++ b/app-misc/mouseremote/mouseremote-0.90.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/mouseremote/mouseremote-0.90.ebuild,v 1.17 2007/04/22 15:16:40 phreak Exp $
+
+inherit eutils
+
+S="${WORKDIR}/MouseRemote"
+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="~ppc x86"
+IUSE=""
+
+DEPEND="virtual/perl-Time-HiRes"
+
+src_unpack() {
+ unpack "${A}"
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch "${FILESDIR}"/${PN}-gentoo.diff
+}
+
+src_compile() {
+ cd MultiMouse && emake \
+ CC=$(tc-getCC) \
+ PREFIX=/usr \
+ LOCKDIR=/var/lock \
+ JMANDIR=/usr/share/man/ja_JP.ujis || die
+}
+
+src_install() {
+ dobin MultiMouse/multimouse || die
+ dosbin MultiMouse/multimoused || die
+
+ dodoc README MultiMouse/README.jis MultiMouse/README.newstuff || die
+ newdoc MultiMouse/README README.MultiMouse || die
+ newdoc client/MouseRemote.conf MouseRemote.conf.dist || die
+ newdoc client/MouseRemote.pl MouseRemote.pl.dist || die
+ newdoc client/MouseRemoteKeys.pl MouseRemoteKeys.pl.dist || die
+
+ newinitd "${FILESDIR}"/mouseremote.start mouseremote || die
+ newconfd "${FILESDIR}"/mouseremote.conf mouseremote || die
+}
+
+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."
+}