1 |
commit: c25de1e5ab0c365ecee6a796bdd0693129957206 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 26 20:18:42 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 20:18:42 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c25de1e5 |
7 |
|
8 |
app-misc/mouseremote: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
app-misc/mouseremote/files/mouseremote.start | 4 +- |
15 |
app-misc/mouseremote/mouseremote-0.90-r2.ebuild | 69 +++++++++++++++++++++++++ |
16 |
2 files changed, 71 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/app-misc/mouseremote/files/mouseremote.start b/app-misc/mouseremote/files/mouseremote.start |
19 |
index e804e75..669fedf 100644 |
20 |
--- a/app-misc/mouseremote/files/mouseremote.start |
21 |
+++ b/app-misc/mouseremote/files/mouseremote.start |
22 |
@@ -1,5 +1,5 @@ |
23 |
-#!/sbin/runscript |
24 |
-# Copyright 1999-2004 Gentoo Foundation |
25 |
+#!/sbin/openrc-run |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
# $Id$ |
29 |
|
30 |
|
31 |
diff --git a/app-misc/mouseremote/mouseremote-0.90-r2.ebuild b/app-misc/mouseremote/mouseremote-0.90-r2.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..b0d3c1f |
34 |
--- /dev/null |
35 |
+++ b/app-misc/mouseremote/mouseremote-0.90-r2.ebuild |
36 |
@@ -0,0 +1,69 @@ |
37 |
+# Copyright 1999-2016 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+inherit eutils |
42 |
+ |
43 |
+S="${WORKDIR}/MouseRemote" |
44 |
+DESCRIPTION="X10 MouseRemote" |
45 |
+HOMEPAGE="http://www4.pair.com/gribnif/ha/" |
46 |
+SRC_URI="http://www4.pair.com/gribnif/ha/MouseRemote.tar.gz" |
47 |
+ |
48 |
+SLOT="0" |
49 |
+LICENSE="GPL-2" |
50 |
+KEYWORDS="amd64 ~ppc x86" |
51 |
+IUSE="" |
52 |
+ |
53 |
+DEPEND="virtual/perl-Time-HiRes" |
54 |
+ |
55 |
+src_unpack() { |
56 |
+ unpack ${A} |
57 |
+ cd "${S}" |
58 |
+ |
59 |
+ epatch "${FILESDIR}"/${P}-makefile.diff |
60 |
+ epatch "${FILESDIR}"/${PN}-gentoo-${PVR}.diff |
61 |
+} |
62 |
+ |
63 |
+src_compile() { |
64 |
+ cd MultiMouse && emake \ |
65 |
+ CC=$(tc-getCC) \ |
66 |
+ PREFIX=/usr \ |
67 |
+ LOCKDIR=/var/lock \ |
68 |
+ JMANDIR=/usr/share/man/ja_JP.ujis || die |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ dobin MultiMouse/multimouse || die |
73 |
+ dosbin MultiMouse/multimoused || die |
74 |
+ |
75 |
+ dodoc README MultiMouse/README.jis MultiMouse/README.newstuff || die |
76 |
+ newdoc MultiMouse/README README.MultiMouse || die |
77 |
+ newdoc client/MouseRemote.conf MouseRemote.conf.dist || die |
78 |
+ newdoc client/MouseRemote.pl MouseRemote.pl.dist || die |
79 |
+ newdoc client/MouseRemoteKeys.pl MouseRemoteKeys.pl.dist || die |
80 |
+ |
81 |
+ newinitd "${FILESDIR}"/mouseremote.start mouseremote || die |
82 |
+ newconfd "${FILESDIR}"/mouseremote.conf mouseremote || die |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ [ -e /dev/mumse ] || mkfifo "${ROOT}"/dev/mumse |
87 |
+ [ -e /dev/x10fifo ] || mkfifo "${ROOT}"/dev/x10fifo |
88 |
+ |
89 |
+ elog "To use the mouse function in X, add the following to your XF86Config" |
90 |
+ elog "Section \"InputDevice\"" |
91 |
+ elog " Identifier \"MouseREM\"" |
92 |
+ elog " Driver \"mouse\"" |
93 |
+ elog " Option \"Protocol\" \"MouseSystems\"" |
94 |
+ elog " Option \"Device\" \"/dev/mumse\"" |
95 |
+ elog "EndSection" |
96 |
+ elog |
97 |
+ elog "Don't forget to add the new device to the section \"ServerLayout\"" |
98 |
+ elog "like: InputDevice \"MouseREM\" \"SendCoreEvents\"" |
99 |
+ elog |
100 |
+ elog "Enable the daemon with \"rc-update add mouseremote default\"." |
101 |
+ elog |
102 |
+ elog "Configure the daemon is run in /etc/conf.d/mouseremote." |
103 |
+ elog |
104 |
+ elog "See /usr/share/doc/${PF} on how to configure the buttons." |
105 |
+} |