1 |
commit: 2ba0a5c9d5ab59f63aba597e0424be9245054366 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Fri Oct 11 21:24:55 2019 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 11 21:25:22 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ba0a5c9 |
7 |
|
8 |
sys-apps/consolation: New package |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
sys-apps/consolation/Manifest | 1 + |
15 |
sys-apps/consolation/consolation-0.0.7.ebuild | 42 ++++++++++++++++++++++ |
16 |
.../files/consolation-0.0.7-makefile.patch | 25 +++++++++++++ |
17 |
sys-apps/consolation/files/consolation-confd | 4 +++ |
18 |
sys-apps/consolation/files/consolation-initd | 12 +++++++ |
19 |
sys-apps/consolation/metadata.xml | 8 +++++ |
20 |
6 files changed, 92 insertions(+) |
21 |
|
22 |
diff --git a/sys-apps/consolation/Manifest b/sys-apps/consolation/Manifest |
23 |
new file mode 100644 |
24 |
index 00000000000..821b3811e29 |
25 |
--- /dev/null |
26 |
+++ b/sys-apps/consolation/Manifest |
27 |
@@ -0,0 +1 @@ |
28 |
+DIST consolation-consolation-0.0.7.tar.gz 11811 BLAKE2B 7d100a49b766a250eac622785b2f310bef4801a16eac665d7ce5ede249c533c3b948f039d7215e9c55d711f3d2b575972640357fa0e34c114705bef389cdc60f SHA512 dfe101c5198fd57e51e51339a031b5b7216a6df26e039457303f5269b78a98e3c80902c303fd82f26158760543ffa22d1a0c1e73c794c717e0bdd6f1d298a72c |
29 |
|
30 |
diff --git a/sys-apps/consolation/consolation-0.0.7.ebuild b/sys-apps/consolation/consolation-0.0.7.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..b616cd134fe |
33 |
--- /dev/null |
34 |
+++ b/sys-apps/consolation/consolation-0.0.7.ebuild |
35 |
@@ -0,0 +1,42 @@ |
36 |
+# Copyright 2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+inherit systemd autotools |
42 |
+ |
43 |
+DESCRIPTION="libinput based console mouse daemon" |
44 |
+HOMEPAGE="https://salsa.debian.org/consolation-team/consolation" |
45 |
+SRC_URI="https://salsa.debian.org/consolation-team/${PN}/-/archive/${P}/${PN}-${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2+ MIT" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="" |
51 |
+ |
52 |
+DEPEND="dev-libs/libinput:= |
53 |
+ virtual/libudev:= |
54 |
+ dev-libs/libevdev:=" |
55 |
+RDEPEND="${DEPEND}" |
56 |
+BDEPEND="sys-apps/help2man" |
57 |
+ |
58 |
+S="${WORKDIR}/${PN}-${P}" |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}/consolation-0.0.7-makefile.patch" |
62 |
+) |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ |
67 |
+ eautoreconf |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ default |
72 |
+ |
73 |
+ newinitd "${FILESDIR}/${PN}-initd" ${PN} |
74 |
+ newconfd "${FILESDIR}/${PN}-confd" ${PN} |
75 |
+ |
76 |
+ systemd_dounit consolation.service |
77 |
+} |
78 |
|
79 |
diff --git a/sys-apps/consolation/files/consolation-0.0.7-makefile.patch b/sys-apps/consolation/files/consolation-0.0.7-makefile.patch |
80 |
new file mode 100644 |
81 |
index 00000000000..b699edc1e8e |
82 |
--- /dev/null |
83 |
+++ b/sys-apps/consolation/files/consolation-0.0.7-makefile.patch |
84 |
@@ -0,0 +1,25 @@ |
85 |
+diff --git a/Makefile.am b/Makefile.am |
86 |
+index c577a9a..8a0e07f 100644 |
87 |
+--- a/Makefile.am |
88 |
++++ b/Makefile.am |
89 |
+@@ -5,7 +5,7 @@ CLEANFILES = consolation.service |
90 |
+ |
91 |
+ all: consolation.8 consolation.service |
92 |
+ |
93 |
+-consolation.8: README src/shared.c $(top_srcdir)/configure.ac |
94 |
++consolation.8: src/consolation-recursive README src/shared.c $(top_srcdir)/configure.ac |
95 |
+ help2man --no-info --source=Debian --section=8 --include=README \ |
96 |
+ src/consolation \ |
97 |
+ | sed -e 's,\\fB,.TP\n\\fB,g' > consolation.8.new \ |
98 |
+diff --git a/configure.ac b/configure.ac |
99 |
+index 10bf054..25bdebc 100644 |
100 |
+--- a/configure.ac |
101 |
++++ b/configure.ac |
102 |
+@@ -5,6 +5,7 @@ AC_INIT([consolation], [0.0.7]) |
103 |
+ AC_CONFIG_AUX_DIR(config) |
104 |
+ |
105 |
+ AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz]) |
106 |
++AM_EXTRA_RECURSIVE_TARGETS([src/consolation]) |
107 |
+ AM_CONFIG_HEADER(src/config.h) |
108 |
+ |
109 |
+ # Check for programs |
110 |
|
111 |
diff --git a/sys-apps/consolation/files/consolation-confd b/sys-apps/consolation/files/consolation-confd |
112 |
new file mode 100644 |
113 |
index 00000000000..fd03ae38eec |
114 |
--- /dev/null |
115 |
+++ b/sys-apps/consolation/files/consolation-confd |
116 |
@@ -0,0 +1,4 @@ |
117 |
+# /etc/conf.d/consolation |
118 |
+ |
119 |
+# arguments to pass to consolation |
120 |
+#consolation_args="" |
121 |
|
122 |
diff --git a/sys-apps/consolation/files/consolation-initd b/sys-apps/consolation/files/consolation-initd |
123 |
new file mode 100644 |
124 |
index 00000000000..c9252a82b86 |
125 |
--- /dev/null |
126 |
+++ b/sys-apps/consolation/files/consolation-initd |
127 |
@@ -0,0 +1,12 @@ |
128 |
+#!/sbin/openrc-run |
129 |
+# Copyright 2019 Sony Interactive Entertainment Inc. |
130 |
+# Distributed under the terms of the GNU General Public License v2 |
131 |
+ |
132 |
+name="consolation daemon" |
133 |
+description="" |
134 |
+command=/usr/sbin/consolation |
135 |
+command_args="${consolation_args}" |
136 |
+ |
137 |
+depend() { |
138 |
+ need udev |
139 |
+} |
140 |
|
141 |
diff --git a/sys-apps/consolation/metadata.xml b/sys-apps/consolation/metadata.xml |
142 |
new file mode 100644 |
143 |
index 00000000000..56cae167d37 |
144 |
--- /dev/null |
145 |
+++ b/sys-apps/consolation/metadata.xml |
146 |
@@ -0,0 +1,8 @@ |
147 |
+<?xml version="1.0" encoding="UTF-8"?> |
148 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
149 |
+<pkgmetadata> |
150 |
+ <maintainer type="person"> |
151 |
+ <email>chutzpah@g.o</email> |
152 |
+ <name>Patrick McLean</name> |
153 |
+ </maintainer> |
154 |
+</pkgmetadata> |