1 |
commit: 72cc71931abef9f30a081c37c6f63ef4378ec750 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 20 14:20:24 2018 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 20 14:20:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72cc7193 |
7 |
|
8 |
app-misc/lirc: Drop old version 0.9.0-r6 |
9 |
|
10 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
app-misc/lirc/Manifest | 1 - |
14 |
app-misc/lirc/files/irexec-initd-0.8.6-r2 | 27 - |
15 |
app-misc/lirc/files/irexec.service | 10 - |
16 |
.../files/lirc-0.8.3_pre1-remotewonderplus.patch | 26 - |
17 |
.../lirc/files/lirc-0.8.4-portaudio_check.patch | 18 - |
18 |
.../lirc/files/lirc-0.9.0-add-zotac-support.patch | 658 --------------------- |
19 |
app-misc/lirc/files/lirc-0.9.0-atiusb_kfifo.patch | 14 - |
20 |
app-misc/lirc/files/lirc-0.9.0-fixed-font.patch | 20 - |
21 |
.../files/lirc-0.9.0-kernel-2.6.39-fixes.patch | 67 --- |
22 |
.../lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch | 50 -- |
23 |
.../lirc/files/lirc-0.9.0-kernel-3.5-err-fix.patch | 12 - |
24 |
.../lirc/files/lirc-0.9.0-kernel-3.8-fixes.patch | 80 --- |
25 |
app-misc/lirc/files/lirc.service | 11 - |
26 |
app-misc/lirc/files/lircm.service | 11 - |
27 |
app-misc/lirc/files/lircmd | 19 - |
28 |
app-misc/lirc/lirc-0.9.0-r6.ebuild | 428 -------------- |
29 |
app-misc/lirc/metadata.xml | 2 - |
30 |
17 files changed, 1454 deletions(-) |
31 |
|
32 |
diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest |
33 |
index d4b40149b07..0c62fff01aa 100644 |
34 |
--- a/app-misc/lirc/Manifest |
35 |
+++ b/app-misc/lirc/Manifest |
36 |
@@ -1,2 +1 @@ |
37 |
DIST lirc-0.10.1.tar.bz2 2523226 BLAKE2B 47b7ee87de8f64f7f829af519c0d296a85cf91790148927e850965177d4984bb994a0ad122cb59c3db508813d0824ffec45126e794abd08174a052361cea53e5 SHA512 31c0b6ee169b302b99994a2a3fa0ebcae0e01cb83c02fe02acf1de5ba8cf77a091a0221c7d8104448c30930adafe654cd08afb7d0df6b5b7ec2d47df26e5df9d |
38 |
-DIST lirc-0.9.0.tar.bz2 857286 BLAKE2B 034c7b8492dd42301bb6d40da8c6c95f714b925ee50e7396290231684024dc3fe3bb64987db92d2a4e4d56203436007e68222bbf9a775bb9d29bbefcc4a7c1e4 SHA512 e91534c63e6065bd7da3b15e1676edf1672b8beb21864a6825df86247d7d165bf2dee6f8191732933e24e42a406e46afc55559948e4061eed2de7b08fac13431 |
39 |
|
40 |
diff --git a/app-misc/lirc/files/irexec-initd-0.8.6-r2 b/app-misc/lirc/files/irexec-initd-0.8.6-r2 |
41 |
deleted file mode 100644 |
42 |
index e62497306d0..00000000000 |
43 |
--- a/app-misc/lirc/files/irexec-initd-0.8.6-r2 |
44 |
+++ /dev/null |
45 |
@@ -1,27 +0,0 @@ |
46 |
-#!/sbin/openrc-run |
47 |
-# Copyright 2003 Martin Hierling <mad@×××××××××××.de> |
48 |
-# Distributed under the terms of the GNU General Public License v2 |
49 |
- |
50 |
-: ${IREXEC_USER:=root} |
51 |
- |
52 |
-depend() { |
53 |
- need lirc |
54 |
-} |
55 |
- |
56 |
-start() { |
57 |
- if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then |
58 |
- ewarn "Warning: Running irexec as root can open security holes" |
59 |
- fi |
60 |
- |
61 |
- ebegin "Starting irexec" |
62 |
- start-stop-daemon --start --chuid ${IREXEC_USER} --user ${IREXEC_USER} --chdir / \ |
63 |
- --exec /usr/bin/irexec -- --daemon ${IREXEC_OPTS} |
64 |
- eend $? "Failed to start irexec." |
65 |
-} |
66 |
- |
67 |
-stop() { |
68 |
- ebegin "Stopping irexec" |
69 |
- start-stop-daemon --stop --exec /usr/bin/irexec --user ${IREXEC_USER} |
70 |
- eend $? "Failed to stop irexec." |
71 |
-} |
72 |
- |
73 |
|
74 |
diff --git a/app-misc/lirc/files/irexec.service b/app-misc/lirc/files/irexec.service |
75 |
deleted file mode 100644 |
76 |
index 53dac65dc23..00000000000 |
77 |
--- a/app-misc/lirc/files/irexec.service |
78 |
+++ /dev/null |
79 |
@@ -1,10 +0,0 @@ |
80 |
-[Unit] |
81 |
-Description=IR Exec |
82 |
-After=lirc.service |
83 |
-Wants=lirc.service |
84 |
- |
85 |
-[Service] |
86 |
-ExecStart=/usr/bin/irexec |
87 |
- |
88 |
-[Install] |
89 |
-WantedBy=multi-user.target |
90 |
|
91 |
diff --git a/app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch b/app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch |
92 |
deleted file mode 100644 |
93 |
index 66527bcc570..00000000000 |
94 |
--- a/app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch |
95 |
+++ /dev/null |
96 |
@@ -1,26 +0,0 @@ |
97 |
---- lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c.orig 2005-10-29 08:18:53.000000000 -0600 |
98 |
-+++ lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c 2006-04-01 14:31:05.000000000 -0700 |
99 |
-@@ -147,8 +147,9 @@ |
100 |
- /* init strings */ |
101 |
- #define USB_OUTLEN 7 |
102 |
- |
103 |
--static char init1[] = {0x01, 0x00, 0x20, 0x14}; |
104 |
--static char init2[] = {0x01, 0x00, 0x20, 0x14, 0x20, 0x20, 0x20}; |
105 |
-+static char init1[] = {0x80, 0x05, 0x1b, 0x15, 0x14, 0x20, 0x24, 0x15}; |
106 |
-+static char init2[] = {0x83, 0x03}; |
107 |
-+static char init3[] = {0x84, 0xd7, 0x020}; |
108 |
- |
109 |
- struct in_endpt { |
110 |
- /* inner link in list of endpoints for the remote specified by ir */ |
111 |
-@@ -1034,8 +1034,9 @@ |
112 |
- usb_sndintpipe(ir->usbdev, oep->ep->bEndpointAddress), oep->buf, |
113 |
- USB_OUTLEN, usb_remote_send, oep, oep->ep->bInterval); |
114 |
- |
115 |
-- send_packet(oep, 0x8004, init1); |
116 |
-- send_packet(oep, 0x8007, init2); |
117 |
-+ send_packet(oep, 0x8007, init1); |
118 |
-+ send_packet(oep, 0x8002, init2); |
119 |
-+ send_packet(oep, 0x8003, init3); |
120 |
- } |
121 |
- } |
122 |
- |
123 |
|
124 |
diff --git a/app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch b/app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch |
125 |
deleted file mode 100644 |
126 |
index 36f5f360cd1..00000000000 |
127 |
--- a/app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch |
128 |
+++ /dev/null |
129 |
@@ -1,18 +0,0 @@ |
130 |
-Portaudio is only needed for LIRC_DEVICES=audio, so not checking for Portaudio when the device is disabled will prevent automagic dependencies. |
131 |
---- configure.ac.orig 2009-03-13 10:02:50.000000000 +0100 |
132 |
-+++ configure.ac 2009-03-13 10:04:00.000000000 +0100 |
133 |
-@@ -336,14 +336,6 @@ |
134 |
- AC_DEFINE(HAVE_LIBIRMAN_SW) |
135 |
- possible_drivers="${possible_drivers} (irman_sw)" |
136 |
- ) |
137 |
--dnl audio driver requires PortAudio library installed and some linker flags |
138 |
--AC_CHECK_HEADERS(portaudio.h,[ |
139 |
-- AC_CHECK_LIB(portaudio, Pa_Initialize,[ |
140 |
-- AC_DEFINE(HAVE_LIBPORTAUDIO) |
141 |
-- possible_drivers="${possible_drivers} (audio)" |
142 |
-- ],,${portaudio_lib_other} |
143 |
-- )] |
144 |
--) |
145 |
- dnl audio_alsa driver requires ALSA library installed and some linker flags |
146 |
- have_alsa=no |
147 |
- AC_CHECK_HEADERS(alsa/asoundlib.h,[ |
148 |
|
149 |
diff --git a/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch b/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch |
150 |
deleted file mode 100644 |
151 |
index 381860ced6f..00000000000 |
152 |
--- a/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch |
153 |
+++ /dev/null |
154 |
@@ -1,658 +0,0 @@ |
155 |
-diff -rupN base/configure.ac mod/configure.ac |
156 |
---- base/configure.ac 2011-03-25 23:28:18.000000000 +0100 |
157 |
-+++ mod/configure.ac 2013-03-21 16:25:07.218419985 +0100 |
158 |
-@@ -383,7 +383,7 @@ AC_CHECK_HEADERS(linux/input.h,[ |
159 |
- dnl check if hiddev is available |
160 |
- AC_CHECK_HEADERS([linux/types.h]) |
161 |
- AC_CHECK_HEADERS([linux/hiddev.h],[ |
162 |
-- possible_drivers="${possible_drivers} (asusdh) (bw6130) (dvico) (macmini)" |
163 |
-+ possible_drivers="${possible_drivers} (asusdh) (bw6130) (dvico) (macmini) (zotac)" |
164 |
- AC_MSG_CHECKING(for HIDDEV_FLAG_UREF support) |
165 |
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
166 |
- #include <linux/types.h> |
167 |
-@@ -393,7 +393,7 @@ AC_CHECK_HEADERS([linux/hiddev.h],[ |
168 |
- ]])],[ |
169 |
- AC_MSG_RESULT(yes) |
170 |
- AC_DEFINE(HAVE_LINUX_HIDDEV_FLAG_UREF) |
171 |
-- possible_drivers="${possible_drivers} (samsung) (sb0540)" |
172 |
-+ possible_drivers="${possible_drivers} (samsung) (sb0540) (zotac)" |
173 |
- ],[ |
174 |
- AC_MSG_RESULT(no) |
175 |
- ]) |
176 |
-@@ -446,7 +446,7 @@ AC_ARG_WITH(driver, |
177 |
- srm7500libusb, tekram, |
178 |
- tekram_bt829, tira, tira_raw, ttusbir, |
179 |
- tuxbox, tvbox, udp, uirt2, uirt2_raw, |
180 |
-- usb_uirt_raw, usbx, wpc8769l], |
181 |
-+ usb_uirt_raw, usbx, wpc8769l, zotac], |
182 |
- driver=${withval}, |
183 |
- driver="unset" |
184 |
- ) |
185 |
-@@ -464,6 +464,7 @@ portaudio_lib="" |
186 |
- alsa_lib="" |
187 |
- atilibusb_lib="" |
188 |
- atwf83_lib="" |
189 |
-+zotac_lib="" |
190 |
- awlibusb_lib="" |
191 |
- dfclibusb_lib="" |
192 |
- srm7500libusb_lib="" |
193 |
-@@ -683,6 +684,10 @@ if test "$driver" = "userspace" -o "$dri |
194 |
- usbx) |
195 |
- hw_module="${hw_module} hw_usbx.o serial.o" |
196 |
- ;; |
197 |
-+ zotac) |
198 |
-+ hw_module="${hw_module} hw_zotac.o" |
199 |
-+ zotac_lib=-lpthread |
200 |
-+ ;; |
201 |
- esac |
202 |
- done |
203 |
- #remove duplicates |
204 |
-@@ -733,6 +738,14 @@ if test "$driver" = "alsa_usb"; then |
205 |
- lircd_conf="creative/lircd.conf.alsa_usb" |
206 |
- fi |
207 |
- |
208 |
-+if test "$driver" = "zotac"; then |
209 |
-+ lirc_driver="$driver" |
210 |
-+ hw_module="hw_zotac.o" |
211 |
-+ HW_DEFAULT="hw_zotac" |
212 |
-+ lircd_conf="zotac/lircd.conf.zotac" |
213 |
-+ zotac_lib=-lpthread |
214 |
-+fi |
215 |
-+ |
216 |
- if test "$driver" = "animax"; then |
217 |
- lirc_driver="lirc_dev lirc_serial" |
218 |
- lircd_conf="animax/lircd.conf.animax" |
219 |
-@@ -1499,6 +1512,7 @@ if test "$lirc_driver" = "none" || \ |
220 |
- test "$lirc_driver" = "macmini" || \ |
221 |
- test "$lirc_driver" = "samsung" || \ |
222 |
- test "$lirc_driver" = "sb0540" || \ |
223 |
-+ test "$lirc_driver" = "zotac" || \ |
224 |
- test "$lirc_driver" = "srm7500libusb" || \ |
225 |
- test "$lirc_driver" = "userspace"; then |
226 |
- lirc_driver= |
227 |
-@@ -1669,7 +1683,7 @@ if ! echo ${hw_module}|grep " receive.o" |
228 |
- receive="receive.o" |
229 |
- fi |
230 |
- |
231 |
--hw_module_libs="${alsa_lib} ${atilibusb_lib} ${awlibusb_lib} ${caraca_lib} ${commandir_lib} ${dfclibusb_lib} ${ftdi_lib} ${iguanaIR_lib} ${irman_lib} ${portaudio_lib} ${srm7500libusb_lib} ${atwf83_lib}" |
232 |
-+hw_module_libs="${alsa_lib} ${atilibusb_lib} ${awlibusb_lib} ${caraca_lib} ${commandir_lib} ${dfclibusb_lib} ${ftdi_lib} ${iguanaIR_lib} ${irman_lib} ${portaudio_lib} ${srm7500libusb_lib} ${atwf83_lib} ${zotac_lib}" |
233 |
- |
234 |
- dnl tell the Makefiles what we decided |
235 |
- AC_SUBST(daemon) |
236 |
-diff -rupN base/daemons/Makefile.am mod/daemons/Makefile.am |
237 |
---- base/daemons/Makefile.am 2011-03-25 23:28:18.000000000 +0100 |
238 |
-+++ mod/daemons/Makefile.am 2013-03-21 16:25:40.488790784 +0100 |
239 |
-@@ -58,7 +58,8 @@ EXTRA_libhw_module_a_SOURCES = \ |
240 |
- hw_usbx.c hw_usbx.h \ |
241 |
- receive.c receive.h \ |
242 |
- transmit.c transmit.h \ |
243 |
-- serial.c serial.h |
244 |
-+ serial.c serial.h \ |
245 |
-+ hw_zotac.c |
246 |
- |
247 |
- libhw_module_a_LIBADD = @hw_module@ |
248 |
- libhw_module_a_DEPENDENCIES = @hw_module@ |
249 |
-diff -rupN base/daemons/hw-types.c mod/daemons/hw-types.c |
250 |
---- base/daemons/hw-types.c 2011-03-25 23:28:18.000000000 +0100 |
251 |
-+++ mod/daemons/hw-types.c 2013-03-21 16:26:38.913200218 +0100 |
252 |
-@@ -59,6 +59,7 @@ extern struct hardware hw_uirt2; |
253 |
- extern struct hardware hw_uirt2_raw; |
254 |
- extern struct hardware hw_usb_uirt_raw; |
255 |
- extern struct hardware hw_usbx; |
256 |
-+extern struct hardware hw_zotac; |
257 |
- |
258 |
- #ifndef HW_DEFAULT |
259 |
- # define HW_DEFAULT hw_default |
260 |
-@@ -160,6 +161,7 @@ struct hardware *hw_list[] = { |
261 |
- #ifdef HAVE_LINUX_HIDDEV_FLAG_UREF |
262 |
- &hw_samsung, |
263 |
- &hw_sb0540, |
264 |
-+ &hw_zotac, |
265 |
- #endif |
266 |
- &hw_silitek, |
267 |
- #ifdef HAVE_LIBUSB |
268 |
-diff -rupN base/daemons/hw_zotac.c mod/daemons/hw_zotac.c |
269 |
---- base/daemons/hw_zotac.c 1970-01-01 01:00:00.000000000 +0100 |
270 |
-+++ mod/daemons/hw_zotac.c 2013-03-21 16:31:06.989272556 +0100 |
271 |
-@@ -0,0 +1,429 @@ |
272 |
-+/**************************************************************************** |
273 |
-+ ** hw_zotac.c ************************************************************* |
274 |
-+ **************************************************************************** |
275 |
-+ * |
276 |
-+ * Lirc driver for Zotac remote |
277 |
-+ * |
278 |
-+ * Copyright (C) 2010 Rainer Hochecker |
279 |
-+ * |
280 |
-+ * Distribute under GPL version 2 or later. |
281 |
-+ * |
282 |
-+ */ |
283 |
-+ |
284 |
-+#ifdef HAVE_CONFIG_H |
285 |
-+# include <config.h> |
286 |
-+#endif |
287 |
-+ |
288 |
-+#include <stdio.h> |
289 |
-+#include <pthread.h> |
290 |
-+#include <sys/fcntl.h> |
291 |
-+#include <signal.h> |
292 |
-+#include <linux/hiddev.h> |
293 |
-+#include <sys/ioctl.h> |
294 |
-+#include "hardware.h" |
295 |
-+#include "ir_remote.h" |
296 |
-+#include "lircd.h" |
297 |
-+ |
298 |
-+enum { |
299 |
-+ RPT_NO = 0, |
300 |
-+ RPT_YES = 1, |
301 |
-+}; |
302 |
-+ |
303 |
-+static int zotac_init(); |
304 |
-+static int zotac_deinit(); |
305 |
-+static char *zotac_rec(struct ir_remote *remotes); |
306 |
-+static int zotac_decode(struct ir_remote *remote, ir_code * prep, ir_code * codep, ir_code * postp, int *repeat_flagp, |
307 |
-+ lirc_t * min_remaining_gapp, lirc_t * max_remaining_gapp); |
308 |
-+static void *zotac_repeat(); |
309 |
-+static int zotac_getcode(); |
310 |
-+ |
311 |
-+/** Max number of repetitions */ |
312 |
-+static unsigned max_repeat_count = 500; |
313 |
-+/** Code that triggers key release */ |
314 |
-+static unsigned release_code = 0x00000000; |
315 |
-+/** Code that triggers device remove */ |
316 |
-+static unsigned remove_code =0x00FFFFFF; |
317 |
-+/** Time to wait before first repetition */ |
318 |
-+static unsigned repeat_time1_us = 500000; |
319 |
-+/** Time to wait between two repetitions */ |
320 |
-+static unsigned repeat_time2_us = 100000; |
321 |
-+/** Pipe between main thread and repetition thread */ |
322 |
-+static int fd_pipe[2] = { -1, -1 }; |
323 |
-+ |
324 |
-+/** Thread that simulates repetitions */ |
325 |
-+static pthread_t repeat_thread; |
326 |
-+/** File descriptor for the real device */ |
327 |
-+static int fd_hidraw; |
328 |
-+ |
329 |
-+static int main_code_length = 32; |
330 |
-+static signed int main_code = 0; |
331 |
-+static struct timeval start, end, last; |
332 |
-+static int repeat_state = RPT_NO; |
333 |
-+static int error_state = 0; |
334 |
-+static int probe_code = 0; |
335 |
-+ |
336 |
-+#ifdef HAVE_LINUX_HIDDEV_FLAG_UREF |
337 |
-+/* Zotac USB iR Receiver */ |
338 |
-+struct hardware hw_zotac = { |
339 |
-+ "/dev/usb/hiddev0", /* "device" */ |
340 |
-+ -1, /* fd (device) */ |
341 |
-+ LIRC_CAN_REC_LIRCCODE, /* features */ |
342 |
-+ 0, /* send_mode */ |
343 |
-+ LIRC_MODE_LIRCCODE, /* rec_mode */ |
344 |
-+ 32, /* code_length */ |
345 |
-+ zotac_init, /* init_func */ |
346 |
-+ zotac_deinit, /* deinit_func */ |
347 |
-+ NULL, /* send_func */ |
348 |
-+ zotac_rec, /* rec_func */ |
349 |
-+ zotac_decode, /* decode_func */ |
350 |
-+ NULL, /* ioctl_func */ |
351 |
-+ NULL, /* readdata */ |
352 |
-+ "zotac" /* name */ |
353 |
-+}; |
354 |
-+#endif |
355 |
-+ |
356 |
-+static int zotac_decode(struct ir_remote *remote, ir_code * prep, ir_code * codep, ir_code * postp, int *repeat_flagp, |
357 |
-+ lirc_t * min_remaining_gapp, lirc_t * max_remaining_gapp) |
358 |
-+{ |
359 |
-+ LOGPRINTF(1, "zotac_decode"); |
360 |
-+ |
361 |
-+ if (!map_code(remote, prep, codep, postp, 0, 0, main_code_length, main_code, 0, 0)) { |
362 |
-+ return 0; |
363 |
-+ } |
364 |
-+ |
365 |
-+ map_gap(remote, &start, &last, 0, repeat_flagp, min_remaining_gapp, max_remaining_gapp); |
366 |
-+ /* override repeat */ |
367 |
-+ *repeat_flagp = repeat_state; |
368 |
-+ |
369 |
-+ return 1; |
370 |
-+} |
371 |
-+ |
372 |
-+static int zotac_getcode() { |
373 |
-+ |
374 |
-+ ssize_t rd; |
375 |
-+ struct hiddev_usage_ref uref; |
376 |
-+ struct hiddev_report_info rinfo; |
377 |
-+ struct hiddev_field_info finfo; |
378 |
-+ int shift = 0; |
379 |
-+ |
380 |
-+ rd = read(fd_hidraw, &uref, sizeof(uref)); |
381 |
-+ if (rd < 0) { |
382 |
-+ logprintf(LOG_ERR, "error reading '%s'", hw.device); |
383 |
-+ logperror(LOG_ERR, NULL); |
384 |
-+ zotac_deinit(); |
385 |
-+ error_state = 1; |
386 |
-+ return -1; |
387 |
-+ } |
388 |
-+ |
389 |
-+ if (uref.field_index == HID_FIELD_INDEX_NONE) { |
390 |
-+ /* |
391 |
-+ * we get this when the new report has been send from |
392 |
-+ * device at this point we have the uref structure |
393 |
-+ * prefilled with correct report type and id |
394 |
-+ * |
395 |
-+ */ |
396 |
-+ |
397 |
-+ switch (uref.report_id) { |
398 |
-+ case 1: /* USB standard keyboard usage page */ |
399 |
-+ { |
400 |
-+ /* This page reports cursor keys */ |
401 |
-+ LOGPRINTF(3, "Keyboard (standard)\n"); |
402 |
-+ |
403 |
-+ /* check for special codes */ |
404 |
-+ uref.field_index = 0; |
405 |
-+ uref.usage_index = 1; |
406 |
-+ /* fetch the usage code for given indexes */ |
407 |
-+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref, sizeof(uref)); |
408 |
-+ /* fetch the value from report */ |
409 |
-+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref, sizeof(uref)); |
410 |
-+ |
411 |
-+ if (uref.value) |
412 |
-+ shift = 1; |
413 |
-+ |
414 |
-+ /* populate required field number */ |
415 |
-+ uref.field_index = 1; |
416 |
-+ uref.usage_index = 0; |
417 |
-+ /* fetch the usage code for given indexes */ |
418 |
-+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref, sizeof(uref)); |
419 |
-+ /* fetch the value from report */ |
420 |
-+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref, sizeof(uref)); |
421 |
-+ /* now we have the key */ |
422 |
-+ |
423 |
-+ LOGPRINTF(3, "usage: %x value: %x shift: %d\n",uref.usage_code, uref.value, shift); |
424 |
-+ |
425 |
-+ /* now we have the key */ |
426 |
-+ if (uref.value) { |
427 |
-+ probe_code = (uref.usage_code | uref.value); |
428 |
-+ if (shift) |
429 |
-+ probe_code |= 0x10000000; |
430 |
-+ LOGPRINTF(3, "Main code 1: %x\n", probe_code); |
431 |
-+ return 1; |
432 |
-+ } |
433 |
-+ else { |
434 |
-+ LOGPRINTF(3, "rel button\n"); |
435 |
-+ probe_code = release_code; |
436 |
-+ return 2; |
437 |
-+ } |
438 |
-+ } |
439 |
-+ break; |
440 |
-+ |
441 |
-+ case 2: |
442 |
-+ case 3: /* USB generic desktop usage page */ |
443 |
-+ case 4: |
444 |
-+ { |
445 |
-+ /* This page reports power key |
446 |
-+ * (via SystemControl SLEEP) |
447 |
-+ */ |
448 |
-+ LOGPRINTF(3, "Generic desktop (standard)\n"); |
449 |
-+ |
450 |
-+ |
451 |
-+ /* traverse report descriptor */ |
452 |
-+ rinfo.report_type = HID_REPORT_TYPE_INPUT; |
453 |
-+ rinfo.report_id = HID_REPORT_ID_FIRST; |
454 |
-+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo); |
455 |
-+ |
456 |
-+ unsigned int i,j; |
457 |
-+ while (rd >= 0) { |
458 |
-+ for (i = 0; i < rinfo.num_fields; i++) { |
459 |
-+ finfo.report_type = rinfo.report_type; |
460 |
-+ finfo.report_id = rinfo.report_id; |
461 |
-+ finfo.field_index = i; |
462 |
-+ ioctl(fd_hidraw, HIDIOCGFIELDINFO, &finfo); |
463 |
-+ for (j = 0; j < finfo.maxusage; j++) { |
464 |
-+ uref.field_index = i; |
465 |
-+ uref.usage_index = j; |
466 |
-+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref); |
467 |
-+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref); |
468 |
-+ |
469 |
-+ if (uref.value != 0) { |
470 |
-+ LOGPRINTF(3, "field: %d, idx: %d, usage: %x value: %x\n",i, j, uref.usage_code, uref.value); |
471 |
-+ probe_code = uref.usage_code; |
472 |
-+ return 1; |
473 |
-+ } |
474 |
-+ } |
475 |
-+ } |
476 |
-+ rinfo.report_id |= HID_REPORT_ID_NEXT; |
477 |
-+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo); |
478 |
-+ } |
479 |
-+ return 2; |
480 |
-+ } |
481 |
-+ break; |
482 |
-+ default: |
483 |
-+ /* Unknown/unsupported report id. |
484 |
-+ * Should not happen because remaining reports |
485 |
-+ * from report descriptor seem to be unused by remote. |
486 |
-+ */ |
487 |
-+ logprintf(LOG_ERR, "Unexpected report id %d", uref.report_id); |
488 |
-+ break; |
489 |
-+ } |
490 |
-+ } |
491 |
-+ else { |
492 |
-+ /* This page reports power key |
493 |
-+ * (via SystemControl SLEEP) |
494 |
-+ */ |
495 |
-+ LOGPRINTF(3, "Same Event ...\n"); |
496 |
-+ |
497 |
-+ /* traverse report descriptor */ |
498 |
-+ rinfo.report_type = HID_REPORT_TYPE_INPUT; |
499 |
-+ rinfo.report_id = HID_REPORT_ID_FIRST; |
500 |
-+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo); |
501 |
-+ |
502 |
-+ unsigned int i,j; |
503 |
-+ while (rd >= 0) { |
504 |
-+ for (i = 0; i < rinfo.num_fields; i++) { |
505 |
-+ finfo.report_type = rinfo.report_type; |
506 |
-+ finfo.report_id = rinfo.report_id; |
507 |
-+ finfo.field_index = i; |
508 |
-+ ioctl(fd_hidraw, HIDIOCGFIELDINFO, &finfo); |
509 |
-+ for (j = 0; j < finfo.maxusage; j++) { |
510 |
-+ uref.field_index = i; |
511 |
-+ uref.usage_index = j; |
512 |
-+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref); |
513 |
-+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref); |
514 |
-+ |
515 |
-+ if (uref.value != 0) { |
516 |
-+ LOGPRINTF(3, "usage: %x value: %x\n",uref.usage_code, uref.value); |
517 |
-+ //probe_code = uref.usage_code; |
518 |
-+ return 0; |
519 |
-+ } |
520 |
-+ } |
521 |
-+ } |
522 |
-+ rinfo.report_id |= HID_REPORT_ID_NEXT; |
523 |
-+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo); |
524 |
-+ } |
525 |
-+ return 2; |
526 |
-+ } |
527 |
-+ return 0; |
528 |
-+} |
529 |
-+ |
530 |
-+static int zotac_init() |
531 |
-+{ |
532 |
-+ logprintf(LOG_INFO, "zotac initializing '%s'", hw.device); |
533 |
-+ if ((fd_hidraw = open(hw.device, O_RDONLY)) < 0) { |
534 |
-+ logprintf(LOG_ERR, "unable to open '%s'", hw.device); |
535 |
-+ return 0; |
536 |
-+ } |
537 |
-+ int flags = HIDDEV_FLAG_UREF | HIDDEV_FLAG_REPORT; |
538 |
-+ if (ioctl(fd_hidraw, HIDIOCSFLAG, &flags)) { |
539 |
-+ return 0; |
540 |
-+ } |
541 |
-+ hw.fd = fd_hidraw; |
542 |
-+ |
543 |
-+ /* Create pipe so that events sent by the repeat thread will |
544 |
-+ trigger main thread */ |
545 |
-+ if (pipe(fd_pipe) != 0) { |
546 |
-+ logperror(LOG_ERR, "couldn't open pipe"); |
547 |
-+ close(fd_hidraw); |
548 |
-+ return 0; |
549 |
-+ } |
550 |
-+ hw.fd = fd_pipe[0]; |
551 |
-+ /* Create thread to simulate repetitions */ |
552 |
-+ if (pthread_create(&repeat_thread, NULL, zotac_repeat, NULL)) { |
553 |
-+ logprintf(LOG_ERR, "Could not create \"repeat thread\""); |
554 |
-+ return 0; |
555 |
-+ } |
556 |
-+ return 1; |
557 |
-+} |
558 |
-+ |
559 |
-+static int zotac_deinit() |
560 |
-+{ |
561 |
-+ pthread_cancel(repeat_thread); |
562 |
-+ if (fd_hidraw != -1) { |
563 |
-+ // Close device if it is open |
564 |
-+ logprintf(LOG_INFO, "closing '%s'", hw.device); |
565 |
-+ close(fd_hidraw); |
566 |
-+ fd_hidraw = -1; |
567 |
-+ } |
568 |
-+ // Close pipe input |
569 |
-+ if (fd_pipe[1] >= 0) { |
570 |
-+ close(fd_pipe[1]); |
571 |
-+ fd_pipe[1] = -1; |
572 |
-+ } |
573 |
-+ // Close pipe output |
574 |
-+ if (fd_pipe[0] >= 0) { |
575 |
-+ close(fd_pipe[0]); |
576 |
-+ fd_pipe[0] = -1; |
577 |
-+ } |
578 |
-+ hw.fd = -1; |
579 |
-+ return 1; |
580 |
-+} |
581 |
-+ |
582 |
-+/** |
583 |
-+ * Runtime that reads device, forwards codes to main thread |
584 |
-+ * and simulates repetitions. |
585 |
-+ */ |
586 |
-+static void *zotac_repeat() |
587 |
-+{ |
588 |
-+ int repeat_count = 0; |
589 |
-+ unsigned current_code; |
590 |
-+ int ret; |
591 |
-+ int sel; |
592 |
-+ fd_set files; |
593 |
-+ struct timeval delay; |
594 |
-+ int pressed = 0; |
595 |
-+ int fd = fd_pipe[1]; |
596 |
-+ |
597 |
-+ while (1) { |
598 |
-+ // Initialize set to monitor device's events |
599 |
-+ FD_ZERO(&files); |
600 |
-+ FD_SET(fd_hidraw, &files); |
601 |
-+ if (pressed) { |
602 |
-+ sel = select(FD_SETSIZE, &files, NULL, NULL, &delay); |
603 |
-+ } else { |
604 |
-+ sel = select(FD_SETSIZE, &files, NULL, NULL, NULL); |
605 |
-+ } |
606 |
-+ |
607 |
-+ switch (sel) { |
608 |
-+ case 1: |
609 |
-+ // Data ready in device's file |
610 |
-+ ret = zotac_getcode(); |
611 |
-+ |
612 |
-+ if (ret < 0) { |
613 |
-+ // Error |
614 |
-+ logprintf(LOG_ERR, "(%s) Could not read %s", __FUNCTION__, hw.device); |
615 |
-+ goto exit_loop; |
616 |
-+ } |
617 |
-+ if (ret == 1) { |
618 |
-+ // Key code : forward it to main thread |
619 |
-+ pressed = 1; |
620 |
-+ repeat_count = 0; |
621 |
-+ delay.tv_sec = 0; |
622 |
-+ delay.tv_usec = repeat_time1_us; |
623 |
-+ current_code = probe_code; |
624 |
-+ } else if (ret == 2) { |
625 |
-+ // Release code : stop repetitions |
626 |
-+ pressed = 0; |
627 |
-+ current_code = release_code; |
628 |
-+ } else if (ret == 0) { |
629 |
-+ continue; |
630 |
-+ } |
631 |
-+ break; |
632 |
-+ case 0: |
633 |
-+ repeat_count++; |
634 |
-+ if (repeat_count >= max_repeat_count) { |
635 |
-+ // Too many repetitions, something must have gone wrong |
636 |
-+ logprintf(LOG_ERR,"(%s) too many repetitions", __FUNCTION__); |
637 |
-+ goto exit_loop; |
638 |
-+ } |
639 |
-+ // Timeout : send current_code again to main |
640 |
-+ // thread to simulate repetition |
641 |
-+ delay.tv_sec = 0; |
642 |
-+ delay.tv_usec = repeat_time2_us; |
643 |
-+ break; |
644 |
-+ default: |
645 |
-+ // Error |
646 |
-+ logprintf(LOG_ERR, "(%s) select() failed", __FUNCTION__); |
647 |
-+ goto exit_loop; |
648 |
-+ } |
649 |
-+ // Send code to main thread through pipe |
650 |
-+ write(fd, ¤t_code, sizeof(current_code)); |
651 |
-+ } |
652 |
-+exit_loop: |
653 |
-+ |
654 |
-+ // Wake up main thread with special key code |
655 |
-+ current_code = remove_code; |
656 |
-+ write(fd, ¤t_code, sizeof(current_code)); |
657 |
-+ return NULL; |
658 |
-+} |
659 |
-+ |
660 |
-+/* |
661 |
-+* Aureal Technology ATWF@83 cheap remote |
662 |
-+* specific code. |
663 |
-+*/ |
664 |
-+ |
665 |
-+static char *zotac_rec(struct ir_remote *remotes) |
666 |
-+{ |
667 |
-+ unsigned ev; |
668 |
-+ int rd; |
669 |
-+ last = end; |
670 |
-+ gettimeofday(&start, NULL); |
671 |
-+ rd = read(hw.fd, &ev, sizeof(ev)); |
672 |
-+ |
673 |
-+ if (rd == -1) { |
674 |
-+ // Error |
675 |
-+ logprintf(LOG_ERR, "(%s) could not read pipe", __FUNCTION__); |
676 |
-+ zotac_deinit(); |
677 |
-+ return 0; |
678 |
-+ } |
679 |
-+ |
680 |
-+ if (ev == release_code) { |
681 |
-+ // Release code |
682 |
-+ main_code = 0; |
683 |
-+ return 0; |
684 |
-+ } else if (ev == remove_code) { |
685 |
-+ // Device has been removed |
686 |
-+ zotac_deinit(); |
687 |
-+ return 0; |
688 |
-+ } |
689 |
-+ |
690 |
-+ LOGPRINTF(1, "zotac : %x", ev); |
691 |
-+ // Record the code and check for repetition |
692 |
-+ if (main_code == ev) { |
693 |
-+ repeat_state = RPT_YES; |
694 |
-+ } else { |
695 |
-+ main_code = ev; |
696 |
-+ repeat_state = RPT_NO; |
697 |
-+ } |
698 |
-+ gettimeofday(&end, NULL); |
699 |
-+ return decode_all(remotes); |
700 |
-+} |
701 |
-diff -rupN base/remotes/zotac/lircd.conf.zotac mod/remotes/zotac/lircd.conf.zotac |
702 |
---- base/remotes/zotac/lircd.conf.zotac 1970-01-01 01:00:00.000000000 +0100 |
703 |
-+++ mod/remotes/zotac/lircd.conf.zotac 2013-03-21 16:31:31.343367869 +0100 |
704 |
-@@ -0,0 +1,77 @@ |
705 |
-+ |
706 |
-+# Please make this file available to others |
707 |
-+# by sending it to <lirc@×××××××××.de> |
708 |
-+# |
709 |
-+# this config file was automatically generated |
710 |
-+# using lirc-0.9.1-git(zotac) on Mon Apr 2 14:10:29 2012 |
711 |
-+# |
712 |
-+# contributed by |
713 |
-+# |
714 |
-+# brand: zotac.conf |
715 |
-+# model no. of remote control: |
716 |
-+# devices being controlled by this remote: |
717 |
-+# |
718 |
-+ |
719 |
-+begin remote |
720 |
-+ |
721 |
-+ name zotac.conf |
722 |
-+ bits 32 |
723 |
-+ eps 30 |
724 |
-+ aeps 100 |
725 |
-+ |
726 |
-+ one 0 0 |
727 |
-+ zero 0 0 |
728 |
-+ gap 100123 |
729 |
-+ min_repeat 9 |
730 |
-+# suppress_repeat 9 |
731 |
-+# uncomment to suppress unwanted repeats |
732 |
-+# toggle_bit_mask 0x7004F |
733 |
-+ |
734 |
-+ begin codes |
735 |
-+ KEY_SLEEP 0x00010082 |
736 |
-+ KEY_WAKEUP 0x00010083 |
737 |
-+ KEY_RECORD 0x000C00B2 |
738 |
-+ KEY_PAUSE 0x000C00B1 |
739 |
-+ KEY_STOP 0x000C00B7 |
740 |
-+ KEY_REWIND 0x000C00B4 |
741 |
-+ KEY_PLAY 0x000C00B0 |
742 |
-+ KEY_FORWARD 0x000C00B3 |
743 |
-+ KEY_LEFTSHIFT 0x000C00B6 |
744 |
-+ KEY_RIGHTSHIFT 0x000C00B5 |
745 |
-+ KEY_BACK 0x000C0224 |
746 |
-+ KEY_INFO 0x000C0209 |
747 |
-+ KEY_MENU 0xFFBC000D |
748 |
-+ KEY_UP 0x00070052 |
749 |
-+ KEY_LEFT 0x00070050 |
750 |
-+ KEY_RIGHT 0x0007004F |
751 |
-+ KEY_DOWN 0x00070051 |
752 |
-+ KEY_OK 0x00070028 |
753 |
-+ KEY_VOLUMEUP 0x000C00E9 |
754 |
-+ KEY_VOLUMEDOWN 0x000C00EA |
755 |
-+ KEY_MUTE 0x000C00E2 |
756 |
-+ KEY_CHANNELUP 0x000C009C |
757 |
-+ KEY_CHANNELDOWN 0x000C009D |
758 |
-+ KEY_1 0x0007001E |
759 |
-+ KEY_2 0x0007001F |
760 |
-+ KEY_3 0x00070020 |
761 |
-+ KEY_4 0x00070021 |
762 |
-+ KEY_5 0x00070022 |
763 |
-+ KEY_6 0x00070023 |
764 |
-+ KEY_7 0x00070024 |
765 |
-+ KEY_8 0x00070025 |
766 |
-+ KEY_9 0x00070026 |
767 |
-+ KEY_0 0x00070027 |
768 |
-+ KEY_NUMERIC_STAR 0x10070025 |
769 |
-+ KEY_NUMERIC_POUND 0x10070020 |
770 |
-+ KEY_CLEAR 0x00070029 |
771 |
-+ KEY_TEXT 0xFFBC005A |
772 |
-+ KEY_TITLE 0x000C008D |
773 |
-+ KEY_ENTER 0x00070028 |
774 |
-+ KEY_RED 0xFFBC005B |
775 |
-+ KEY_GREEN 0xFFBC005C |
776 |
-+ KEY_YELLOW 0xFFBC005D |
777 |
-+ KEY_BLUE 0xFFBC005E |
778 |
-+ end codes |
779 |
-+ |
780 |
-+end remote |
781 |
-+ |
782 |
-diff -rupN base/setup.data mod/setup.data |
783 |
---- base/setup.data 2011-03-25 23:28:18.000000000 +0100 |
784 |
-+++ mod/setup.data 2013-03-21 16:28:11.433935463 +0100 |
785 |
-@@ -146,6 +146,7 @@ hw_menu_entry: @hw-usb |
786 |
- usb_uirt_raw: "USB-UIRT" |
787 |
- mplay: "VLSystem MPlay Blast" |
788 |
- mplay: "VLSystem MPlay Mini" |
789 |
-+ zotac: "Zotac USB IR Receiver" |
790 |
- |
791 |
- param_type: \ |
792 |
- act200l \ |
793 |
-@@ -260,7 +261,8 @@ param_type: \ |
794 |
- ttusbir \ |
795 |
- tvbox \ |
796 |
- udp \ |
797 |
-- wpc8769l |
798 |
-+ wpc8769l \ |
799 |
-+ zotac |
800 |
- none: |
801 |
- |
802 |
- default_param: \ |
803 |
-@@ -331,7 +333,8 @@ default_param: \ |
804 |
- ttusbir \ |
805 |
- tvbox \ |
806 |
- udp \ |
807 |
-- wpc8769l |
808 |
-+ wpc8769l \ |
809 |
-+ zotac |
810 |
- none: |
811 |
- |
812 |
- default_param: \ |
813 |
|
814 |
diff --git a/app-misc/lirc/files/lirc-0.9.0-atiusb_kfifo.patch b/app-misc/lirc/files/lirc-0.9.0-atiusb_kfifo.patch |
815 |
deleted file mode 100644 |
816 |
index 32edb244b41..00000000000 |
817 |
--- a/app-misc/lirc/files/lirc-0.9.0-atiusb_kfifo.patch |
818 |
+++ /dev/null |
819 |
@@ -1,14 +0,0 @@ |
820 |
---- a/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:04:39.000000000 -0400 |
821 |
-+++ b/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:19:06.000000000 -0400 |
822 |
-@@ -1050,7 +1050,11 @@ |
823 |
- goto new_irctl_failure_check; |
824 |
- } |
825 |
- |
826 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 38) |
827 |
- if (lirc_buffer_init(driver->rbuf, dclen, 1)) { |
828 |
-+#else |
829 |
-+ if (lirc_buffer_init(driver->rbuf, dclen, 2)) { |
830 |
-+#endif |
831 |
- mem_failure = 4; |
832 |
- goto new_irctl_failure_check; |
833 |
- } |
834 |
|
835 |
diff --git a/app-misc/lirc/files/lirc-0.9.0-fixed-font.patch b/app-misc/lirc/files/lirc-0.9.0-fixed-font.patch |
836 |
deleted file mode 100644 |
837 |
index fd122e7362b..00000000000 |
838 |
--- a/app-misc/lirc/files/lirc-0.9.0-fixed-font.patch |
839 |
+++ /dev/null |
840 |
@@ -1,20 +0,0 @@ |
841 |
---- a/tools/xmode2.c 2011-03-25 23:28:18.000000000 +0100 |
842 |
-+++ b/tools/xmode2.c 2012-07-29 19:36:34.972246587 +0200 |
843 |
-@@ -69,7 +69,7 @@ |
844 |
- Window w0, w1; /*w0 = root */ |
845 |
- char w1_wname[] = "xmode2"; |
846 |
- char w1_iname[] = "xmode2"; |
847 |
--char font1_name[] = "-*-Courier-medium-r-*-*-8-*-*-m-*-iso8859-1"; |
848 |
-+char font1_name[] = "fixed"; |
849 |
- |
850 |
- int w1_x = 0, w1_y = 0; |
851 |
- unsigned int w1_w = 640, w1_h = 480, w1_border = 0; |
852 |
-@@ -201,7 +201,7 @@ |
853 |
- printf("coudn't allocate blue color\n"); |
854 |
- f1_str = XLoadQueryFont(d1, font1_name); |
855 |
- if (f1_str == NULL) { |
856 |
-- printf("could't load font\n"); |
857 |
-+ printf("couldn't load font\n"); |
858 |
- exit(EXIT_FAILURE); |
859 |
- } |
860 |
- |
861 |
|
862 |
diff --git a/app-misc/lirc/files/lirc-0.9.0-kernel-2.6.39-fixes.patch b/app-misc/lirc/files/lirc-0.9.0-kernel-2.6.39-fixes.patch |
863 |
deleted file mode 100644 |
864 |
index 624737090bb..00000000000 |
865 |
--- a/app-misc/lirc/files/lirc-0.9.0-kernel-2.6.39-fixes.patch |
866 |
+++ /dev/null |
867 |
@@ -1,67 +0,0 @@ |
868 |
-diff -u a/drivers/lirc_atiusb/lirc_atiusb.c b/drivers/lirc_atiusb/lirc_atiusb.c |
869 |
---- a/drivers/lirc_atiusb/lirc_atiusb.c |
870 |
-+++ b/drivers/lirc_atiusb/lirc_atiusb.c |
871 |
-@@ -48,7 +48,9 @@ |
872 |
- #include <linux/slab.h> |
873 |
- #include <linux/module.h> |
874 |
- #include <linux/kmod.h> |
875 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) |
876 |
- #include <linux/smp_lock.h> |
877 |
-+#endif |
878 |
- #include <linux/completion.h> |
879 |
- #include <linux/uaccess.h> |
880 |
- #include <linux/usb.h> |
881 |
-diff -u a/drivers/lirc_i2c/lirc_i2c.c b/drivers/lirc_i2c/lirc_i2c.c |
882 |
---- a/drivers/lirc_i2c/lirc_i2c.c |
883 |
-+++ b/drivers/lirc_i2c/lirc_i2c.c |
884 |
-@@ -555,8 +555,8 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) |
885 |
- kfree(ir); |
886 |
- return -EINVAL; |
887 |
- } |
888 |
-- printk(KERN_INFO "lirc_i2c: chip 0x%x found @ 0x%02x (%s)\n", |
889 |
-- adap->id, addr, ir->c.name); |
890 |
-+ printk(KERN_INFO "lirc_i2c: chip found @ 0x%02x (%s)\n", |
891 |
-+ addr, ir->c.name); |
892 |
- |
893 |
- #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31) |
894 |
- /* register device */ |
895 |
-diff -u a/drivers/lirc_wpc8769l/lirc_wpc8769l.c b/drivers/lirc_wpc8769l/lirc_wpc8769l.c |
896 |
---- a/drivers/lirc_wpc8769l/lirc_wpc8769l.c |
897 |
-+++ b/drivers/lirc_wpc8769l/lirc_wpc8769l.c |
898 |
-@@ -361,14 +361,22 @@ static irqreturn_t irq_handler(int irqno, void *blah, struct pt_regs *regs) |
899 |
- size = count << 3; |
900 |
- |
901 |
- ldata = (unsigned long *) data_buf; |
902 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) |
903 |
- next_one = generic_find_next_le_bit(ldata, size, 0); |
904 |
-+#else |
905 |
-+ next_one = find_next_zero_bit_le(ldata, size, 0); |
906 |
-+#endif |
907 |
- |
908 |
- if (next_one > 0) |
909 |
- put_pulse_bit(next_one |
910 |
- * WPC8769L_USECS_PER_BIT); |
911 |
- |
912 |
- while (next_one < size) { |
913 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) |
914 |
- next_zero = generic_find_next_zero_le_bit(ldata, |
915 |
-+#else |
916 |
-+ next_zero = find_next_zero_bit_le(ldata, |
917 |
-+#endif |
918 |
- size, next_one + 1); |
919 |
- |
920 |
- put_space_bit( |
921 |
-@@ -376,7 +384,11 @@ static irqreturn_t irq_handler(int irqno, void *blah, struct pt_regs *regs) |
922 |
- * WPC8769L_USECS_PER_BIT); |
923 |
- |
924 |
- if (next_zero < size) { |
925 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) |
926 |
- next_one = generic_find_next_le_bit(ldata, |
927 |
-+#else |
928 |
-+ next_one = find_next_bit_le(ldata, |
929 |
-+#endif |
930 |
- size, next_zero + 1); |
931 |
- |
932 |
- put_pulse_bit( |
933 |
--- |
934 |
-1.7.5.4 |
935 |
|
936 |
diff --git a/app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch b/app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch |
937 |
deleted file mode 100644 |
938 |
index 9b7d3ef1f53..00000000000 |
939 |
--- a/app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch |
940 |
+++ /dev/null |
941 |
@@ -1,50 +0,0 @@ |
942 |
-diff -ur drivers/lirc_serial/lirc_serial.c drivers.new/lirc_serial/lirc_serial.c |
943 |
---- drivers/lirc_serial/lirc_serial.c 2011-03-25 18:28:18.000000000 -0400 |
944 |
-+++ drivers.new/lirc_serial/lirc_serial.c 2012-10-24 14:32:14.000000000 -0400 |
945 |
-@@ -66,7 +66,12 @@ |
946 |
- #include <linux/poll.h> |
947 |
- #include <linux/platform_device.h> |
948 |
- |
949 |
-+#include "drivers/kcompat.h" |
950 |
-+#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0) |
951 |
-+#include <asm/switch_to.h> |
952 |
-+#else |
953 |
- #include <asm/system.h> |
954 |
-+#endif |
955 |
- #include <linux/io.h> |
956 |
- #include <linux/irq.h> |
957 |
- #include <linux/fcntl.h> |
958 |
-@@ -80,7 +85,6 @@ |
959 |
- #define UART_IE_IXP42X_UUE 0x40 /* IXP42X UART Unit enable */ |
960 |
- #define UART_IE_IXP42X_RTOIE 0x10 /* IXP42X Receiver Data Timeout int.enable */ |
961 |
- |
962 |
--#include "drivers/kcompat.h" |
963 |
- #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35) |
964 |
- #include <media/lirc.h> |
965 |
- #include <media/lirc_dev.h> |
966 |
-diff -ur drivers/lirc_sir/lirc_sir.c drivers.new/lirc_sir/lirc_sir.c |
967 |
---- drivers/lirc_sir/lirc_sir.c 2011-03-25 18:28:18.000000000 -0400 |
968 |
-+++ drivers.new/lirc_sir/lirc_sir.c 2012-10-24 14:32:46.000000000 -0400 |
969 |
-@@ -59,7 +59,14 @@ |
970 |
- #include <linux/mm.h> |
971 |
- #include <linux/delay.h> |
972 |
- #include <linux/poll.h> |
973 |
-+ |
974 |
-+#include "drivers/kcompat.h" |
975 |
-+#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0) |
976 |
-+#include <asm/switch_to.h> |
977 |
-+#else |
978 |
- #include <asm/system.h> |
979 |
-+#endif |
980 |
-+ |
981 |
- #include <linux/io.h> |
982 |
- #include <asm/irq.h> |
983 |
- #include <linux/fcntl.h> |
984 |
-@@ -74,7 +81,6 @@ |
985 |
- |
986 |
- #include <linux/timer.h> |
987 |
- |
988 |
--#include "drivers/kcompat.h" |
989 |
- #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35) |
990 |
- #include <media/lirc.h> |
991 |
- #include <media/lirc_dev.h> |
992 |
|
993 |
diff --git a/app-misc/lirc/files/lirc-0.9.0-kernel-3.5-err-fix.patch b/app-misc/lirc/files/lirc-0.9.0-kernel-3.5-err-fix.patch |
994 |
deleted file mode 100644 |
995 |
index b06d94efb32..00000000000 |
996 |
--- a/app-misc/lirc/files/lirc-0.9.0-kernel-3.5-err-fix.patch |
997 |
+++ /dev/null |
998 |
@@ -1,12 +0,0 @@ |
999 |
---- a/drivers/kcompat.h 2011-03-25 18:28:18.000000000 -0400 |
1000 |
-+++ b/drivers/kcompat.h 2012-11-27 13:37:55.000000000 -0500 |
1001 |
-@@ -136,4 +136,9 @@ |
1002 |
- ) |
1003 |
- #endif |
1004 |
- |
1005 |
-+#ifndef err |
1006 |
-+#define err(format, arg...) \ |
1007 |
-+ printk(KERN_ERR KBUILD_MODNAME ": " format "\n", ##arg) |
1008 |
-+#endif |
1009 |
-+ |
1010 |
- #endif /* _KCOMPAT_H */ |
1011 |
|
1012 |
diff --git a/app-misc/lirc/files/lirc-0.9.0-kernel-3.8-fixes.patch b/app-misc/lirc/files/lirc-0.9.0-kernel-3.8-fixes.patch |
1013 |
deleted file mode 100644 |
1014 |
index bd11b61c19d..00000000000 |
1015 |
--- a/app-misc/lirc/files/lirc-0.9.0-kernel-3.8-fixes.patch |
1016 |
+++ /dev/null |
1017 |
@@ -1,80 +0,0 @@ |
1018 |
-diff -Naur lirc-0.9.0/drivers/lirc_serial/lirc_serial.c lirc-0.9.0.new/drivers/lirc_serial/lirc_serial.c |
1019 |
---- lirc-0.9.0/drivers/lirc_serial/lirc_serial.c 2013-05-24 11:58:31.017566567 -0400 |
1020 |
-+++ lirc-0.9.0.new/drivers/lirc_serial/lirc_serial.c 2013-05-24 12:00:38.733568898 -0400 |
1021 |
-@@ -1107,12 +1107,12 @@ |
1022 |
- |
1023 |
- static struct platform_device *lirc_serial_dev; |
1024 |
- |
1025 |
--static int __devinit lirc_serial_probe(struct platform_device *dev) |
1026 |
-+static int lirc_serial_probe(struct platform_device *dev) |
1027 |
- { |
1028 |
- return 0; |
1029 |
- } |
1030 |
- |
1031 |
--static int __devexit lirc_serial_remove(struct platform_device *dev) |
1032 |
-+static int lirc_serial_remove(struct platform_device *dev) |
1033 |
- { |
1034 |
- return 0; |
1035 |
- } |
1036 |
-@@ -1163,7 +1163,7 @@ |
1037 |
- |
1038 |
- static struct platform_driver lirc_serial_driver = { |
1039 |
- .probe = lirc_serial_probe, |
1040 |
-- .remove = __devexit_p(lirc_serial_remove), |
1041 |
-+ .remove = lirc_serial_remove, |
1042 |
- .suspend = lirc_serial_suspend, |
1043 |
- .resume = lirc_serial_resume, |
1044 |
- .driver = { |
1045 |
-diff -Naur lirc-0.9.0/drivers/lirc_sir/lirc_sir.c lirc-0.9.0.new/drivers/lirc_sir/lirc_sir.c |
1046 |
---- lirc-0.9.0/drivers/lirc_sir/lirc_sir.c 2013-05-24 11:58:31.017566567 -0400 |
1047 |
-+++ lirc-0.9.0.new/drivers/lirc_sir/lirc_sir.c 2013-05-24 12:00:38.733568898 -0400 |
1048 |
-@@ -1296,19 +1296,19 @@ |
1049 |
- return 0; |
1050 |
- } |
1051 |
- |
1052 |
--static int __devinit lirc_sir_probe(struct platform_device *dev) |
1053 |
-+static int lirc_sir_probe(struct platform_device *dev) |
1054 |
- { |
1055 |
- return 0; |
1056 |
- } |
1057 |
- |
1058 |
--static int __devexit lirc_sir_remove(struct platform_device *dev) |
1059 |
-+static int lirc_sir_remove(struct platform_device *dev) |
1060 |
- { |
1061 |
- return 0; |
1062 |
- } |
1063 |
- |
1064 |
- static struct platform_driver lirc_sir_driver = { |
1065 |
- .probe = lirc_sir_probe, |
1066 |
-- .remove = __devexit_p(lirc_sir_remove), |
1067 |
-+ .remove = lirc_sir_remove, |
1068 |
- .driver = { |
1069 |
- .name = "lirc_sir", |
1070 |
- .owner = THIS_MODULE, |
1071 |
-diff -Naur lirc-0.9.0/drivers/lirc_wpc8769l/lirc_wpc8769l.c lirc-0.9.0.new/drivers/lirc_wpc8769l/lirc_wpc8769l.c |
1072 |
---- lirc-0.9.0/drivers/lirc_wpc8769l/lirc_wpc8769l.c 2013-05-24 11:58:30.974566567 -0400 |
1073 |
-+++ lirc-0.9.0.new/drivers/lirc_wpc8769l/lirc_wpc8769l.c 2013-05-24 12:00:38.734568898 -0400 |
1074 |
-@@ -942,12 +942,12 @@ |
1075 |
- #ifdef MODULE |
1076 |
- static struct platform_device *lirc_wpc8769l_platform_dev; |
1077 |
- |
1078 |
--static int __devinit lirc_wpc8769l_probe(struct platform_device *dev) |
1079 |
-+static int lirc_wpc8769l_probe(struct platform_device *dev) |
1080 |
- { |
1081 |
- return 0; |
1082 |
- } |
1083 |
- |
1084 |
--static int __devexit lirc_wpc8769l_remove(struct platform_device *dev) |
1085 |
-+static int lirc_wpc8769l_remove(struct platform_device *dev) |
1086 |
- { |
1087 |
- return 0; |
1088 |
- } |
1089 |
-@@ -975,7 +975,7 @@ |
1090 |
- |
1091 |
- static struct platform_driver lirc_wpc8769l_platform_driver = { |
1092 |
- .probe = lirc_wpc8769l_probe, |
1093 |
-- .remove = __devexit_p(lirc_wpc8769l_remove), |
1094 |
-+ .remove = lirc_wpc8769l_remove, |
1095 |
- .suspend = lirc_wpc8769l_suspend, |
1096 |
- .resume = lirc_wpc8769l_resume, |
1097 |
- .driver = { |
1098 |
|
1099 |
diff --git a/app-misc/lirc/files/lirc.service b/app-misc/lirc/files/lirc.service |
1100 |
deleted file mode 100644 |
1101 |
index e184dfc09d4..00000000000 |
1102 |
--- a/app-misc/lirc/files/lirc.service |
1103 |
+++ /dev/null |
1104 |
@@ -1,11 +0,0 @@ |
1105 |
-[Unit] |
1106 |
-Description=Linux Infrared Remote Control |
1107 |
-After=network.target |
1108 |
- |
1109 |
-[Service] |
1110 |
-RuntimeDirectory=lirc |
1111 |
-ExecStart=/usr/sbin/lircd --nodaemon --driver=default --device=/dev/lirc0 |
1112 |
- |
1113 |
-[Install] |
1114 |
-WantedBy=multi-user.target |
1115 |
- |
1116 |
|
1117 |
diff --git a/app-misc/lirc/files/lircm.service b/app-misc/lirc/files/lircm.service |
1118 |
deleted file mode 100644 |
1119 |
index cfd2c93caf6..00000000000 |
1120 |
--- a/app-misc/lirc/files/lircm.service |
1121 |
+++ /dev/null |
1122 |
@@ -1,11 +0,0 @@ |
1123 |
-[Unit] |
1124 |
-Description=LIRC Mouse |
1125 |
-Requires=lirc.service |
1126 |
-After=network.target lirc.service |
1127 |
- |
1128 |
-[Service] |
1129 |
-ExecStart=/usr/sbin/lircmd --nodaemon |
1130 |
- |
1131 |
-[Install] |
1132 |
-WantedBy=multi-user.target |
1133 |
- |
1134 |
|
1135 |
diff --git a/app-misc/lirc/files/lircmd b/app-misc/lirc/files/lircmd |
1136 |
deleted file mode 100644 |
1137 |
index e979f74413f..00000000000 |
1138 |
--- a/app-misc/lirc/files/lircmd |
1139 |
+++ /dev/null |
1140 |
@@ -1,19 +0,0 @@ |
1141 |
-#!/sbin/openrc-run |
1142 |
-# Copyright 1999-2016 Gentoo Foundation |
1143 |
-# Distributed under the terms of the GNU General Public License v2 |
1144 |
- |
1145 |
-depend() { |
1146 |
- need lircd |
1147 |
-} |
1148 |
- |
1149 |
-start() { |
1150 |
- ebegin "Starting lircmd" |
1151 |
- start-stop-daemon --start --quiet --exec /usr/sbin/lircmd |
1152 |
- eend $? |
1153 |
-} |
1154 |
- |
1155 |
-stop() { |
1156 |
- ebegin "Stopping lircmd" |
1157 |
- start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd |
1158 |
- eend $? |
1159 |
-} |
1160 |
|
1161 |
diff --git a/app-misc/lirc/lirc-0.9.0-r6.ebuild b/app-misc/lirc/lirc-0.9.0-r6.ebuild |
1162 |
deleted file mode 100644 |
1163 |
index 8672858485e..00000000000 |
1164 |
--- a/app-misc/lirc/lirc-0.9.0-r6.ebuild |
1165 |
+++ /dev/null |
1166 |
@@ -1,428 +0,0 @@ |
1167 |
-# Copyright 1999-2017 Gentoo Foundation |
1168 |
-# Distributed under the terms of the GNU General Public License v2 |
1169 |
- |
1170 |
-EAPI=4 |
1171 |
- |
1172 |
-inherit eutils linux-mod linux-info systemd toolchain-funcs flag-o-matic autotools |
1173 |
- |
1174 |
-DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" |
1175 |
-HOMEPAGE="http://www.lirc.org/" |
1176 |
- |
1177 |
-MY_P=${PN}-${PV/_/} |
1178 |
- |
1179 |
-if [[ "${PV/_pre/}" = "${PV}" ]]; then |
1180 |
- SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" |
1181 |
-else |
1182 |
- SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2" |
1183 |
-fi |
1184 |
- |
1185 |
-LICENSE="GPL-2+" |
1186 |
-SLOT="0" |
1187 |
-KEYWORDS="amd64 ppc ppc64 x86" |
1188 |
-IUSE="debug doc hardware-carrier transmitter static-libs X" |
1189 |
- |
1190 |
-S="${WORKDIR}/${MY_P}" |
1191 |
- |
1192 |
-RDEPEND=" |
1193 |
- X? ( |
1194 |
- x11-libs/libX11 |
1195 |
- x11-libs/libSM |
1196 |
- x11-libs/libICE |
1197 |
- ) |
1198 |
- lirc_devices_alsa_usb? ( media-libs/alsa-lib ) |
1199 |
- lirc_devices_audio? ( >media-libs/portaudio-18 ) |
1200 |
- lirc_devices_irman? ( media-libs/libirman )" |
1201 |
- |
1202 |
-# 2012-07-17, Ian Stakenvicius |
1203 |
-# A helper script that scrapes out values for nearly all of the variables below |
1204 |
-# from lirc's configure.ac is available at |
1205 |
-# https://dev.gentoo.org/~axs/helper-for-lirc-iuse.sh |
1206 |
- |
1207 |
-# This are drivers with names matching the |
1208 |
-# parameter --with-driver=NAME |
1209 |
-IUSE_LIRC_DEVICES_DIRECT=" |
1210 |
- all userspace accent act200l act220l |
1211 |
- adaptec alsa_usb animax asusdh atilibusb |
1212 |
- atiusb audio audio_alsa avermedia avermedia_vdomate |
1213 |
- avermedia98 awlibusb bestbuy bestbuy2 breakoutbox |
1214 |
- bte bw6130 caraca chronos commandir |
1215 |
- cph06x creative creative_infracd |
1216 |
- devinput digimatrix dsp dvico ea65 ene0100 |
1217 |
- exaudio flyvideo ftdi gvbctv5pci hauppauge |
1218 |
- hauppauge_dvb hercules_smarttv_stereo i2cuser |
1219 |
- igorplugusb iguanaIR imon imon_24g imon_knob |
1220 |
- imon_lcd imon_pad imon_rsc irdeo irdeo_remote |
1221 |
- irlink irman irreal it87 ite8709 |
1222 |
- knc_one kworld leadtek_0007 leadtek_0010 |
1223 |
- leadtek_pvr2000 livedrive_midi |
1224 |
- livedrive_seq logitech macmini |
1225 |
- mediafocusI mouseremote |
1226 |
- mouseremote_ps2 mp3anywhere mplay nslu2 |
1227 |
- packard_bell parallel pcmak pcmak_usb |
1228 |
- pctv pixelview_bt878 pixelview_pak |
1229 |
- pixelview_pro provideo realmagic |
1230 |
- remotemaster sa1100 samsung sasem sb0540 serial |
1231 |
- silitek sir slinke streamzap tekram |
1232 |
- tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2 |
1233 |
- uirt2_raw usb_uirt_raw usbx wpc8769l zotac" |
1234 |
- |
1235 |
-# drivers that need special handling and |
1236 |
-# must have another name specified for |
1237 |
-# parameter --with-driver=NAME |
1238 |
-IUSE_LIRC_DEVICES_SPECIAL=" |
1239 |
- serial_igor_cesko |
1240 |
- remote_wonder_plus xboxusb inputlirc" |
1241 |
- |
1242 |
-IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}" |
1243 |
- |
1244 |
-# The following are lists which are used to provide ewarns on incompatibilities |
1245 |
-# with the kernel: |
1246 |
- |
1247 |
-#drivers that do not build kernel modules |
1248 |
-NO_KMOD_BUILT_FOR_DEV=" |
1249 |
- accent bte creative creative_infracd devinput dsp ea65 exaudio |
1250 |
- ftdi i2cuser irlink irreal livedrive_midi livedrive_seq logitech |
1251 |
- mediafocusI mouseremote mouseremote_ps2 mp3anywhere mplay mplay2 |
1252 |
- pcmak pcmak_usb pctv realmagic remotemaster silitek tira tira_raw |
1253 |
- tuxbox udp uirt2 uirt2_raw usb_uirt_raw usbx" |
1254 |
- |
1255 |
-#drivers that build lirc_dev and so will conflict with kernel lirc_dev |
1256 |
-LIRCDEV_BUILT_FOR_DEV="all |
1257 |
- act200l act220l adaptec animax atiusb breakoutbox hauppauge |
1258 |
- hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_24g |
1259 |
- imon_knob imon_lcd imon_pad imon_rsc irdeo irdeo_remote knc_one |
1260 |
- leadtek_pvr2000 nslu2 packard_bell parallel pixelview_bt878 |
1261 |
- provideo sa1100 sasem serial sir tekram tekram_bt829 ttusbir |
1262 |
- tvbox wpc8769l zotac" |
1263 |
- |
1264 |
-#lirc_gpio drivers, which cannot be supported on kernel >= 2.6.22 |
1265 |
-LIRC_GPIO_DEV=" |
1266 |
- avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 chronos |
1267 |
- cph03x cph06x flyvideo gvbctv5pci kworld leadtek_0007 leadtek_0010 |
1268 |
- pixelview_pak pixelview_pro" |
1269 |
- |
1270 |
-#device-driver which use libusb |
1271 |
-LIBUSB_USED_BY_DEV=" |
1272 |
- all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad |
1273 |
- imon_rsc streamzap xboxusb irlink commandir" |
1274 |
- |
1275 |
-for dev in ${LIBUSB_USED_BY_DEV}; do |
1276 |
- DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )" |
1277 |
-done |
1278 |
- |
1279 |
-# adding only compile-time depends |
1280 |
-DEPEND="${RDEPEND} ${DEPEND} |
1281 |
- virtual/linux-sources |
1282 |
- lirc_devices_ftdi? ( dev-embedded/libftdi:0 ) |
1283 |
- lirc_devices_all? ( dev-embedded/libftdi:0 )" |
1284 |
- |
1285 |
-# adding only run-time depends |
1286 |
-RDEPEND="${RDEPEND} |
1287 |
- lirc_devices_inputlirc? ( app-misc/inputlircd ) |
1288 |
- lirc_devices_iguanaIR? ( app-misc/iguanaIR )" |
1289 |
- |
1290 |
-# add all devices to IUSE |
1291 |
-# and ensure lirc_devices_all is not set alongside lirc_devices_* |
1292 |
-REQUIRED_USE="lirc_devices_all? (" |
1293 |
-for dev in ${IUSE_LIRC_DEVICES}; do |
1294 |
- IUSE="${IUSE} lirc_devices_${dev}" |
1295 |
- if [[ "${dev}" != "all" ]]; then |
1296 |
- REQUIRED_USE="${REQUIRED_USE} !lirc_devices_${dev}" |
1297 |
- fi |
1298 |
-done |
1299 |
-REQUIRED_USE="${REQUIRED_USE} )" |
1300 |
- |
1301 |
-add_device() { |
1302 |
- local dev="${1}" |
1303 |
- local desc="device ${dev}" |
1304 |
- if [[ -n "${2}" ]]; then |
1305 |
- desc="${2}" |
1306 |
- fi |
1307 |
- |
1308 |
- # Bug #187418 |
1309 |
- if kernel_is ge 2 6 22 && [[ " ${LIRC_GPIO_DEV} " == *" ${dev} "* ]]; then |
1310 |
- eerror "${desc} uses lirc_gpio which fails with kernel 2.6.22 or above. Not building." |
1311 |
- eerror "Use 'devinput' instead, or use 'userspace' along with in-kernel drivers" |
1312 |
- return 0 |
1313 |
- fi |
1314 |
- : ${lirc_device_count:=0} |
1315 |
- ((lirc_device_count++)) |
1316 |
- |
1317 |
- elog "Compiling support for ${desc}" |
1318 |
- |
1319 |
- if [[ " ${LIRCDEV_BUILT_FOR_DEV} " == *" ${dev} "* ]] ; then |
1320 |
- if linux_chkconfig_present LIRC ; then |
1321 |
- ewarn "${desc} builds lirc_dev and CONFIG_LIRC is set in the kernel -- this may conflict." |
1322 |
- fi |
1323 |
- if ! linux_chkconfig_present MODULE_UNLOAD ; then |
1324 |
- ewarn "${desc} builds modules and CONFIG_MODULE_UNLOAD is unset in kernel." |
1325 |
- ewarn "You will need MODULE_UNLOAD support in your kernel." |
1326 |
- fi |
1327 |
- fi |
1328 |
- if [[ " ${NO_KMOD_BUILT_FOR_DEV} " == *" ${dev} "* ]] && ! linux_chkconfig_present IR_LIRC_CODEC ; then |
1329 |
- ewarn "${desc} builds no kernel module and CONFIG_IR_LIRC_CODEC is unset in kernel." |
1330 |
- fi |
1331 |
- |
1332 |
- if [[ ${lirc_device_count} -eq 2 ]] ; then |
1333 |
- ewarn |
1334 |
- ewarn "LIRC_DEVICES has more than one entry." |
1335 |
- ewarn "When selecting multiple devices for lirc to be supported," |
1336 |
- ewarn "it can not be guaranteed that the drivers play nice together." |
1337 |
- ewarn "If this is not intended, then please adjust LIRC_DEVICES" |
1338 |
- ewarn "and re-emerge." |
1339 |
- ewarn |
1340 |
- fi |
1341 |
- |
1342 |
- MY_OPTS="${MY_OPTS} --with-driver=${dev}" |
1343 |
-} |
1344 |
- |
1345 |
-pkg_pretend() { |
1346 |
- if [[ -n "${LIRC_OPTS}" ]] ; then |
1347 |
- ewarn |
1348 |
- ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." |
1349 |
- ewarn |
1350 |
- ewarn "Please use LIRC_DEVICES from now on." |
1351 |
- ewarn "e.g. LIRC_DEVICES=\"serial sir\"" |
1352 |
- ewarn |
1353 |
- ewarn "Flags are now set per use-flags." |
1354 |
- ewarn "e.g. transmitter, hardware-carrier" |
1355 |
- |
1356 |
- local opt |
1357 |
- local unsupported_opts="" |
1358 |
- |
1359 |
- # test for allowed options for LIRC_OPTS |
1360 |
- for opt in ${LIRC_OPTS}; do |
1361 |
- case ${opt} in |
1362 |
- --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) |
1363 |
- MY_OPTS="${MY_OPTS} ${opt}" |
1364 |
- ;; |
1365 |
- *) |
1366 |
- unsupported_opts="${unsupported_opts} ${opt}" |
1367 |
- ;; |
1368 |
- esac |
1369 |
- done |
1370 |
- if [[ -n ${unsupported_opts} ]]; then |
1371 |
- eerror "These options are no longer allowed to be set" |
1372 |
- eerror "with LIRC_OPTS: ${unsupported_opts}" |
1373 |
- die "LIRC_OPTS is no longer supported, use LIRC_DEVICES." |
1374 |
- fi |
1375 |
- fi |
1376 |
-} |
1377 |
- |
1378 |
-pkg_setup() { |
1379 |
- linux-mod_pkg_setup |
1380 |
- |
1381 |
- # set default configure options |
1382 |
- MY_OPTS="" |
1383 |
- LIRC_DRIVER_DEVICE="/dev/lirc0" |
1384 |
- |
1385 |
- if use lirc_devices_all; then |
1386 |
- # compile in drivers for a lot of devices |
1387 |
- add_device all "a lot of devices" |
1388 |
- else |
1389 |
- # compile in only requested drivers |
1390 |
- local dev |
1391 |
- for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do |
1392 |
- if use lirc_devices_${dev}; then |
1393 |
- add_device ${dev} |
1394 |
- fi |
1395 |
- done |
1396 |
- |
1397 |
- if use lirc_devices_remote_wonder_plus; then |
1398 |
- add_device atiusb "device Remote Wonder Plus (atiusb-based)" |
1399 |
- fi |
1400 |
- |
1401 |
- if use lirc_devices_serial_igor_cesko; then |
1402 |
- add_device serial "serial with Igor Cesko design" |
1403 |
- MY_OPTS="${MY_OPTS} --with-igor" |
1404 |
- fi |
1405 |
- |
1406 |
- if use lirc_devices_imon_pad; then |
1407 |
- ewarn "The imon_pad driver has incorporated the previous pad2keys patch" |
1408 |
- ewarn "and removed the pad2keys_active option for the lirc_imon module" |
1409 |
- ewarn "because it is always active." |
1410 |
- ewarn "If you have an older imon VFD device, you may need to add the module" |
1411 |
- ewarn "option display_type=1 to override autodetection and force VFD mode." |
1412 |
- fi |
1413 |
- |
1414 |
- if use lirc_devices_xboxusb; then |
1415 |
- add_device atiusb "device xboxusb" |
1416 |
- fi |
1417 |
- |
1418 |
- if [[ "${MY_OPTS}" == "" ]]; then |
1419 |
- if [[ "${PROFILE_ARCH}" == "xbox" ]]; then |
1420 |
- # on xbox: use special driver |
1421 |
- add_device atiusb "device xboxusb" |
1422 |
- else |
1423 |
- # no driver requested |
1424 |
- elog |
1425 |
- elog "Compiling only the lirc-applications, but no drivers." |
1426 |
- elog "Enable drivers with LIRC_DEVICES if you need them." |
1427 |
- MY_OPTS="--with-driver=none" |
1428 |
- fi |
1429 |
- fi |
1430 |
- fi |
1431 |
- |
1432 |
- use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" |
1433 |
- use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" |
1434 |
- |
1435 |
- einfo |
1436 |
- einfo "lirc-configure-opts: ${MY_OPTS}" |
1437 |
- elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" |
1438 |
- |
1439 |
- filter-flags -Wl,-O1 |
1440 |
-} |
1441 |
- |
1442 |
-src_prepare() { |
1443 |
- # Rip out dos CRLF |
1444 |
- edos2unix contrib/lirc.rules |
1445 |
- |
1446 |
- # Apply patches needed for some special device-types |
1447 |
- use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch |
1448 |
- use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch |
1449 |
- |
1450 |
- # Apply fixes for kernel-2.6.39 and above |
1451 |
- epatch "${FILESDIR}"/${P}-kernel-2.6.39-fixes.patch |
1452 |
- # Slightly massaged upstream patch to fix kfifo issues >=2.6.38 |
1453 |
- # for bug 377033 |
1454 |
- epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch |
1455 |
- # Apply fixes for kernel-3.3 and above (bug 439538) |
1456 |
- epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch |
1457 |
- # Apply fix for missing err() in usb.h for kernel 3.5+ (bug 444736) |
1458 |
- epatch "${FILESDIR}"/${P}-kernel-3.5-err-fix.patch |
1459 |
- # Apply fix for missing __devinit __devexit defines in kernel 3.8+ (bug 461532) |
1460 |
- epatch "${FILESDIR}"/${P}-kernel-3.8-fixes.patch |
1461 |
- # Add support for zotac remote, bug 342848 |
1462 |
- epatch "${FILESDIR}"/${P}-add-zotac-support.patch |
1463 |
- # Use fixed font |
1464 |
- epatch "${FILESDIR}"/${P}-fixed-font.patch |
1465 |
- |
1466 |
- # Do not build drivers from the top-level Makefile |
1467 |
- sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am |
1468 |
- |
1469 |
- # remove parallel driver on SMP systems |
1470 |
- if linux_chkconfig_present SMP ; then |
1471 |
- sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am |
1472 |
- fi |
1473 |
- |
1474 |
- # Bug #187418 - only need this part for lirc_devices_all as others die in pkg_setup |
1475 |
- if use lirc_devices_all && kernel_is ge 2 6 22 ; then |
1476 |
- ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+" |
1477 |
- sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am |
1478 |
- fi |
1479 |
- |
1480 |
- # respect CFLAGS |
1481 |
- sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac |
1482 |
- |
1483 |
- # setting default device-node |
1484 |
- local f |
1485 |
- for f in configure.ac acconfig.h; do |
1486 |
- [[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f" |
1487 |
- done |
1488 |
- echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h |
1489 |
- |
1490 |
- sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die # automake 1.13 |
1491 |
- eautoreconf |
1492 |
-} |
1493 |
- |
1494 |
-src_configure() { |
1495 |
- econf \ |
1496 |
- --localstatedir=/var \ |
1497 |
- --with-syslog=LOG_DAEMON \ |
1498 |
- --enable-sandboxed \ |
1499 |
- --with-kerneldir="${KV_DIR}" \ |
1500 |
- --with-moduledir="/lib/modules/${KV_FULL}/misc" \ |
1501 |
- $(use_enable debug) \ |
1502 |
- $(use_enable static-libs static) \ |
1503 |
- $(use_with X x) \ |
1504 |
- ${MY_OPTS} \ |
1505 |
- ABI="${KERNEL_ABI}" \ |
1506 |
- ARCH="$(tc-arch-kernel)" |
1507 |
-} |
1508 |
- |
1509 |
-src_compile() { |
1510 |
- # force non-parallel make, Bug 196134 (confirmed valid for 0.9.0-r2) |
1511 |
- emake -j1 |
1512 |
- |
1513 |
- MODULE_NAMES="lirc(misc:${S}/drivers)" |
1514 |
- BUILD_TARGETS="all" |
1515 |
- linux-mod_src_compile |
1516 |
-} |
1517 |
- |
1518 |
-src_install() { |
1519 |
- emake DESTDIR="${D}" install |
1520 |
- emake -C drivers DESTDIR="${D}" install |
1521 |
- |
1522 |
- newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd |
1523 |
- newinitd "${FILESDIR}"/lircmd lircmd |
1524 |
- newconfd "${FILESDIR}"/lircd.conf.4 lircd |
1525 |
- |
1526 |
- insinto /etc/modprobe.d/ |
1527 |
- newins "${FILESDIR}"/modprobed.lirc lirc.conf |
1528 |
- |
1529 |
- newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec |
1530 |
- newconfd "${FILESDIR}"/irexec-confd irexec |
1531 |
- |
1532 |
- systemd_dounit "${FILESDIR}"/irexec.service |
1533 |
- systemd_dounit "${FILESDIR}"/lirc.service |
1534 |
- systemd_dounit "${FILESDIR}"/lircm.service |
1535 |
- |
1536 |
- if use doc ; then |
1537 |
- dohtml doc/html/*.html |
1538 |
- insinto /usr/share/doc/${PF}/images |
1539 |
- doins doc/images/* |
1540 |
- fi |
1541 |
- |
1542 |
- insinto /usr/share/lirc/remotes |
1543 |
- doins -r remotes/* |
1544 |
- |
1545 |
- keepdir /etc/lirc |
1546 |
- if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then |
1547 |
- newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example |
1548 |
- fi |
1549 |
- |
1550 |
- use static-libs || rm "${D}/usr/$(get_libdir)/liblirc_client.la" |
1551 |
-} |
1552 |
- |
1553 |
-pkg_preinst() { |
1554 |
- linux-mod_pkg_preinst |
1555 |
- |
1556 |
- local dir="${EROOT}/etc/modprobe.d" |
1557 |
- if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then |
1558 |
- elog "Renaming ${dir}/lirc to lirc.conf" |
1559 |
- mv -f "${dir}/lirc" "${dir}/lirc.conf" |
1560 |
- fi |
1561 |
- |
1562 |
- # copy the first file that can be found |
1563 |
- if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then |
1564 |
- cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf |
1565 |
- elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then |
1566 |
- cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf |
1567 |
- MOVE_OLD_LIRCD_CONF=1 |
1568 |
- elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then |
1569 |
- cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf |
1570 |
- fi |
1571 |
- |
1572 |
- # stop portage from touching the config file |
1573 |
- if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then |
1574 |
- rm -f "${D}"/etc/lirc/lircd.conf |
1575 |
- fi |
1576 |
-} |
1577 |
- |
1578 |
-pkg_postinst() { |
1579 |
- linux-mod_pkg_postinst |
1580 |
- |
1581 |
- # copy config file to new location |
1582 |
- # without portage knowing about it |
1583 |
- # so it will not delete it on unmerge or ever touch it again |
1584 |
- if [[ -e "${T}"/lircd.conf ]]; then |
1585 |
- cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf |
1586 |
- if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then |
1587 |
- elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf" |
1588 |
- rm -f "${EROOT}"/etc/lircd.conf |
1589 |
- fi |
1590 |
- fi |
1591 |
- |
1592 |
- einfo "The new default location for lircd.conf is inside of" |
1593 |
- einfo "/etc/lirc/ directory" |
1594 |
-} |
1595 |
|
1596 |
diff --git a/app-misc/lirc/metadata.xml b/app-misc/lirc/metadata.xml |
1597 |
index 3a8d3814118..98b33f1b6a8 100644 |
1598 |
--- a/app-misc/lirc/metadata.xml |
1599 |
+++ b/app-misc/lirc/metadata.xml |
1600 |
@@ -8,8 +8,6 @@ |
1601 |
<use> |
1602 |
<flag name="uinput">Enable support for uinput</flag> |
1603 |
<flag name="devinput">Support the devinput input device</flag> |
1604 |
- <flag name="hardware-carrier">The transmitter device generates its clock signal in hardware</flag> |
1605 |
- <flag name="transmitter">Add transmitter support to some lirc-drivers (e.g. serial)</flag> |
1606 |
<flag name="inputlirc">Add a dependency on app-misc/inputlircd</flag> |
1607 |
<flag name="audio">Support using an audio device connected to an IR receiver</flag> |
1608 |
<flag name="ftdi">Support FTDI devices</flag> |