Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/mgorny:master commit in: app-misc/lirc/files/, app-misc/lirc/
Date: Fri, 01 Jun 2012 18:32:04
Message-Id: 1338575567.9ca2f8efb6730c10c5a7829e4d4667934166c1fe.mgorny@gentoo
1 commit: 9ca2f8efb6730c10c5a7829e4d4667934166c1fe
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 1 18:32:47 2012 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 1 18:32:47 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=9ca2f8ef
7
8 Remove live lirc ebuild (no longer maintained).
9
10 ---
11 app-misc/lirc/files/irexec-confd | 9 -
12 app-misc/lirc/files/irexec-initd-0.8.6-r2 | 28 --
13 .../files/lirc-0.8.3_pre1-remotewonderplus.patch | 26 --
14 .../lirc/files/lirc-0.8.4-portaudio_check.patch | 18 -
15 app-misc/lirc/files/lircd-0.8.6 | 41 ---
16 app-misc/lirc/files/lircd.conf.2 | 10 -
17 app-misc/lirc/files/lircmd | 20 --
18 app-misc/lirc/files/modprobed.lirc | 22 --
19 app-misc/lirc/lirc-9999.ebuild | 351 --------------------
20 app-misc/lirc/metadata.xml | 15 -
21 10 files changed, 0 insertions(+), 540 deletions(-)
22
23 diff --git a/app-misc/lirc/files/irexec-confd b/app-misc/lirc/files/irexec-confd
24 deleted file mode 100644
25 index 48eb8dd..0000000
26 --- a/app-misc/lirc/files/irexec-confd
27 +++ /dev/null
28 @@ -1,9 +0,0 @@
29 -# Options to pass to the irexec process
30 -IREXEC_OPTS="/etc/lircrc"
31 -
32 -# User to execute irexec as.
33 -# Warning: Running irexec as root can open security holes
34 -#IREXEC_USER="root"
35 -
36 -# Use this to disable the warning printed when starting irexec as root
37 -# IREXEC_DISABLE_ROOT_WARNING=yes
38
39 diff --git a/app-misc/lirc/files/irexec-initd-0.8.6-r2 b/app-misc/lirc/files/irexec-initd-0.8.6-r2
40 deleted file mode 100755
41 index 567322a..0000000
42 --- a/app-misc/lirc/files/irexec-initd-0.8.6-r2
43 +++ /dev/null
44 @@ -1,28 +0,0 @@
45 -#!/sbin/runscript
46 -# Copyright 2003 Martin Hierling <mad@×××××××××××.de>
47 -# Distributed under the terms of the GNU General Public License v2
48 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/irexec-initd-0.8.6-r2,v 1.1 2009/11/15 10:04:21 zzam Exp $
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/lirc-0.8.3_pre1-remotewonderplus.patch b/app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch
75 deleted file mode 100644
76 index 66527bc..0000000
77 --- a/app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch
78 +++ /dev/null
79 @@ -1,26 +0,0 @@
80 ---- lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c.orig 2005-10-29 08:18:53.000000000 -0600
81 -+++ lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c 2006-04-01 14:31:05.000000000 -0700
82 -@@ -147,8 +147,9 @@
83 - /* init strings */
84 - #define USB_OUTLEN 7
85 -
86 --static char init1[] = {0x01, 0x00, 0x20, 0x14};
87 --static char init2[] = {0x01, 0x00, 0x20, 0x14, 0x20, 0x20, 0x20};
88 -+static char init1[] = {0x80, 0x05, 0x1b, 0x15, 0x14, 0x20, 0x24, 0x15};
89 -+static char init2[] = {0x83, 0x03};
90 -+static char init3[] = {0x84, 0xd7, 0x020};
91 -
92 - struct in_endpt {
93 - /* inner link in list of endpoints for the remote specified by ir */
94 -@@ -1034,8 +1034,9 @@
95 - usb_sndintpipe(ir->usbdev, oep->ep->bEndpointAddress), oep->buf,
96 - USB_OUTLEN, usb_remote_send, oep, oep->ep->bInterval);
97 -
98 -- send_packet(oep, 0x8004, init1);
99 -- send_packet(oep, 0x8007, init2);
100 -+ send_packet(oep, 0x8007, init1);
101 -+ send_packet(oep, 0x8002, init2);
102 -+ send_packet(oep, 0x8003, init3);
103 - }
104 - }
105 -
106
107 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
108 deleted file mode 100644
109 index 36f5f36..0000000
110 --- a/app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch
111 +++ /dev/null
112 @@ -1,18 +0,0 @@
113 -Portaudio is only needed for LIRC_DEVICES=audio, so not checking for Portaudio when the device is disabled will prevent automagic dependencies.
114 ---- configure.ac.orig 2009-03-13 10:02:50.000000000 +0100
115 -+++ configure.ac 2009-03-13 10:04:00.000000000 +0100
116 -@@ -336,14 +336,6 @@
117 - AC_DEFINE(HAVE_LIBIRMAN_SW)
118 - possible_drivers="${possible_drivers} (irman_sw)"
119 - )
120 --dnl audio driver requires PortAudio library installed and some linker flags
121 --AC_CHECK_HEADERS(portaudio.h,[
122 -- AC_CHECK_LIB(portaudio, Pa_Initialize,[
123 -- AC_DEFINE(HAVE_LIBPORTAUDIO)
124 -- possible_drivers="${possible_drivers} (audio)"
125 -- ],,${portaudio_lib_other}
126 -- )]
127 --)
128 - dnl audio_alsa driver requires ALSA library installed and some linker flags
129 - have_alsa=no
130 - AC_CHECK_HEADERS(alsa/asoundlib.h,[
131
132 diff --git a/app-misc/lirc/files/lircd-0.8.6 b/app-misc/lirc/files/lircd-0.8.6
133 deleted file mode 100644
134 index dbf7a47..0000000
135 --- a/app-misc/lirc/files/lircd-0.8.6
136 +++ /dev/null
137 @@ -1,41 +0,0 @@
138 -#!/sbin/runscript
139 -# Copyright 1999-2004 Gentoo Foundation
140 -# Distributed under the terms of the GNU General Public License v2
141 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircd-0.8.6,v 1.2 2010/05/21 02:32:36 beandog Exp $
142 -
143 -PIDFILE=/var/run/lirc/${SVCNAME}.pid
144 -LIRCD_SYMLINKFILE=/dev/lircd
145 -LIRCD_SOCKET=/var/run/lirc/lircd
146 -
147 -depend() {
148 - need localmount
149 - use modules
150 - provide lirc
151 -}
152 -
153 -start() {
154 - local retval
155 - ebegin "Starting lircd"
156 - rm -f ${LIRCD_SOCKET} && ln -s ${LIRCD_SOCKET} ${LIRCD_SYMLINKFILE}
157 - if [ $? -ne 0 ]; then
158 - eend $? "Unable to create symbolic link ${LIRCD_SYMLINKFILE}"
159 - return 1
160 - fi
161 -
162 - start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd -- \
163 - -P "${PIDFILE}" ${LIRCD_OPTS}
164 - retval=$?
165 -
166 - if [ ${retval} -ne 0 ]; then
167 - rm -f ${LIRCD_SOCKET}
168 - fi
169 -
170 - eend ${retval}
171 -}
172 -
173 -stop() {
174 - ebegin "Stopping lircd"
175 - rm -f ${LIRCD_SYMLINKFILE}
176 - start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd
177 - eend $?
178 -}
179
180 diff --git a/app-misc/lirc/files/lircd.conf.2 b/app-misc/lirc/files/lircd.conf.2
181 deleted file mode 100644
182 index cfda2b8..0000000
183 --- a/app-misc/lirc/files/lircd.conf.2
184 +++ /dev/null
185 @@ -1,10 +0,0 @@
186 -# Options to pass to the lircd process
187 -
188 -# for devices with lirc-kernel-module
189 -#LIRCD_OPTS="-d /dev/lirc0"
190 -#LIRCD_OPTS="-d /dev/lirc"
191 -
192 -# for devices using the input-layer
193 -#LIRCD_OPTS="-H devinput -d /dev/input/by-path/pci-0000:00:0a.0--event-ir"
194 -# This should work, Bug #235107
195 -#LIRCD_OPTS="-H devinput -d name=*DVB*"
196
197 diff --git a/app-misc/lirc/files/lircmd b/app-misc/lirc/files/lircmd
198 deleted file mode 100644
199 index d383778..0000000
200 --- a/app-misc/lirc/files/lircmd
201 +++ /dev/null
202 @@ -1,20 +0,0 @@
203 -#!/sbin/runscript
204 -# Copyright 1999-2004 Gentoo Foundation
205 -# Distributed under the terms of the GNU General Public License v2
206 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircmd,v 1.2 2004/09/28 00:22:15 swegener Exp $
207 -
208 -depend() {
209 - need lircd
210 -}
211 -
212 -start() {
213 - ebegin "Starting lircmd"
214 - start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
215 - eend $?
216 -}
217 -
218 -stop() {
219 - ebegin "Stopping lircmd"
220 - start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
221 - eend $?
222 -}
223
224 diff --git a/app-misc/lirc/files/modprobed.lirc b/app-misc/lirc/files/modprobed.lirc
225 deleted file mode 100644
226 index 2ed9558..0000000
227 --- a/app-misc/lirc/files/modprobed.lirc
228 +++ /dev/null
229 @@ -1,22 +0,0 @@
230 -#
231 -# For first serial receivers:
232 -#
233 -#options lirc_serial irq=4 io=0x3f8
234 -#options lirc_sir irq=4 io=0x3f8
235 -
236 -#
237 -# Detach first serial port from serial-driver.
238 -# Use this when you have your serial-port-driver statically
239 -# compiled into your kernel, or as a module but loaded before
240 -# the lirc-module.
241 -#
242 -#install lirc_serial setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_serial
243 -#
244 -#install lirc_sir setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_sir
245 -
246 -
247 -#
248 -# For parallel receivers:
249 -#
250 -#options lirc_parallel irq=7 io=0x3bc
251 -
252
253 diff --git a/app-misc/lirc/lirc-9999.ebuild b/app-misc/lirc/lirc-9999.ebuild
254 deleted file mode 100644
255 index 39b9d5f..0000000
256 --- a/app-misc/lirc/lirc-9999.ebuild
257 +++ /dev/null
258 @@ -1,351 +0,0 @@
259 -# Copyright 1999-2011 Gentoo Foundation
260 -# Distributed under the terms of the GNU General Public License v2
261 -# $Header: $
262 -
263 -EGIT_REPO_URI="git://lirc.git.sourceforge.net/gitroot/lirc/lirc"
264 -
265 -inherit autotools eutils flag-o-matic git-2 linux-mod
266 -
267 -DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
268 -HOMEPAGE="http://www.lirc.org/"
269 -
270 -LICENSE="GPL-2"
271 -SLOT="0"
272 -KEYWORDS=""
273 -IUSE="debug doc X hardware-carrier transmitter"
274 -
275 -RDEPEND="
276 - X? (
277 - x11-libs/libX11
278 - x11-libs/libSM
279 - x11-libs/libICE
280 - )
281 - lirc_devices_alsa_usb? ( media-libs/alsa-lib )
282 - lirc_devices_audio? ( >media-libs/portaudio-18 )
283 - lirc_devices_irman? ( media-libs/libirman )"
284 -
285 -# This are drivers with names matching the
286 -# parameter --with-driver=NAME
287 -IUSE_LIRC_DEVICES_DIRECT="
288 - all userspace accent act200l act220l
289 - adaptec alsa_usb animax asusdh atilibusb
290 - atiusb audio audio_alsa avermedia avermedia_vdomate
291 - avermedia98 awlibusb bestbuy bestbuy2 breakoutbox
292 - bte bw6130 caraca chronos commandir
293 - cph06x creative creative_infracd
294 - devinput digimatrix dsp dvico ea65 ene0100
295 - exaudio flyvideo ftdi gvbctv5pci hauppauge
296 - hauppauge_dvb hercules_smarttv_stereo i2cuser
297 - igorplugusb iguanaIR imon imon_24g imon_knob
298 - imon_lcd imon_pad imon_rsc irdeo irdeo_remote
299 - irlink irman irreal it87 ite8709
300 - knc_one kworld leadtek_0007 leadtek_0010
301 - leadtek_pvr2000 livedrive_midi
302 - livedrive_seq logitech macmini
303 - mediafocusI mouseremote
304 - mouseremote_ps2 mp3anywhere mplay nslu2
305 - packard_bell parallel pcmak pcmak_usb
306 - pctv pixelview_bt878 pixelview_pak
307 - pixelview_pro provideo realmagic
308 - remotemaster sa1100 samsung sasem sb0540 serial
309 - silitek sir slinke streamzap tekram
310 - tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
311 - uirt2_raw usb_uirt_raw usbx wpc8769l"
312 -
313 -# drivers that need special handling and
314 -# must have another name specified for
315 -# parameter --with-driver=NAME
316 -IUSE_LIRC_DEVICES_SPECIAL="
317 - serial_igor_cesko
318 - remote_wonder_plus xboxusb usbirboy inputlirc"
319 -
320 -IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
321 -
322 -#device-driver which use libusb
323 -LIBUSB_USED_BY_DEV="
324 - all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad
325 - imon_rsc streamzap xboxusb irlink commandir"
326 -
327 -for dev in ${LIBUSB_USED_BY_DEV}; do
328 - DEPEND="${DEPEND} lirc_devices_${dev}? ( dev-libs/libusb )"
329 -done
330 -
331 -# adding only compile-time depends
332 -DEPEND="${RDEPEND} ${DEPEND}
333 - virtual/linux-sources
334 - lirc_devices_ftdi? ( dev-embedded/libftdi )
335 - lirc_devices_all? ( dev-embedded/libftdi )"
336 -
337 -# adding only run-time depends
338 -RDEPEND="${RDEPEND}
339 - lirc_devices_usbirboy? ( app-misc/usbirboy )
340 - lirc_devices_inputlirc? ( app-misc/inputlircd )
341 - lirc_devices_iguanaIR? ( app-misc/iguanaIR )"
342 -
343 -# add all devices to IUSE
344 -for dev in ${IUSE_LIRC_DEVICES}; do
345 - IUSE="${IUSE} lirc_devices_${dev}"
346 -done
347 -
348 -add_device() {
349 - : ${lirc_device_count:=0}
350 - ((lirc_device_count++))
351 -
352 - if [[ ${lirc_device_count} -eq 2 ]]; then
353 - ewarn
354 - ewarn "When selecting multiple devices for lirc to be supported,"
355 - ewarn "it can not be guaranteed that the drivers play nice together."
356 - ewarn
357 - ewarn "If this is not intended, then abort emerge now with Ctrl-C,"
358 - ewarn "Set LIRC_DEVICES and restart emerge."
359 - ewarn
360 - epause
361 - fi
362 -
363 - local dev="${1}"
364 - local desc="device ${dev}"
365 - if [[ -n "${2}" ]]; then
366 - desc="${2}"
367 - fi
368 -
369 - elog "Compiling support for ${desc}"
370 - MY_OPTS="${MY_OPTS} --with-driver=${dev}"
371 -}
372 -
373 -pkg_setup() {
374 -
375 - if use lirc_devices_mceusb2 || use lirc_devices_mceusb
376 - then
377 - ewarn "The mceusb2 and mceusb drivers have been merged into the mainline kernel"
378 - ewarn "Please only use the latter now and the userspace driver"
379 - fi
380 -
381 - ewarn "If your LIRC device requires modules, you'll need MODULE_UNLOAD"
382 - ewarn "support in your kernel."
383 -
384 - linux-mod_pkg_setup
385 -
386 - # set default configure options
387 - MY_OPTS=""
388 - LIRC_DRIVER_DEVICE="/dev/lirc0"
389 -
390 - if use lirc_devices_all; then
391 - # compile in drivers for a lot of devices
392 - add_device all "a lot of devices"
393 - else
394 - # compile in only requested drivers
395 - local dev
396 - for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
397 - if use lirc_devices_${dev}; then
398 - add_device ${dev}
399 - fi
400 - done
401 -
402 - if use lirc_devices_remote_wonder_plus; then
403 - add_device atiusb "device Remote Wonder Plus (atiusb-based)"
404 - fi
405 -
406 - if use lirc_devices_serial_igor_cesko; then
407 - add_device serial "serial with Igor Cesko design"
408 - MY_OPTS="${MY_OPTS} --with-igor"
409 - fi
410 -
411 - if use lirc_devices_imon_pad; then
412 - ewarn "The imon_pad driver has incorporated the previous pad2keys patch"
413 - ewarn "and removed the pad2keys_active option for the lirc_imon module"
414 - ewarn "because it is always active."
415 - ewarn "If you have an older imon VFD device, you may need to add the module"
416 - ewarn "option display_type=1 to override autodetection and force VFD mode."
417 - fi
418 -
419 - if use lirc_devices_xboxusb; then
420 - add_device atiusb "device xboxusb"
421 - fi
422 -
423 - if use lirc_devices_usbirboy; then
424 - add_device userspace "device usbirboy"
425 - LIRC_DRIVER_DEVICE="/dev/usbirboy"
426 - fi
427 -
428 - if [[ "${MY_OPTS}" == "" ]]; then
429 - if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
430 - # on xbox: use special driver
431 - add_device atiusb "device xboxusb"
432 - else
433 - # no driver requested
434 - elog
435 - elog "Compiling only the lirc-applications, but no drivers."
436 - elog "Enable drivers with LIRC_DEVICES if you need them."
437 - MY_OPTS="--with-driver=none"
438 - fi
439 - fi
440 - fi
441 -
442 - use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
443 - use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
444 -
445 - if [[ -n "${LIRC_OPTS}" ]] ; then
446 - ewarn
447 - ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
448 - ewarn
449 - ewarn "Please use LIRC_DEVICES from now on."
450 - ewarn "e.g. LIRC_DEVICES=\"serial sir\""
451 - ewarn
452 - ewarn "Flags are now set per use-flags."
453 - ewarn "e.g. transmitter, hardware-carrier"
454 -
455 - local opt
456 - local unsupported_opts=""
457 -
458 - # test for allowed options for LIRC_OPTS
459 - for opt in ${LIRC_OPTS}; do
460 - case ${opt} in
461 - --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
462 - MY_OPTS="${MY_OPTS} ${opt}"
463 - ;;
464 - *)
465 - unsupported_opts="${unsupported_opts} ${opt}"
466 - ;;
467 - esac
468 - done
469 - if [[ -n ${unsupported_opts} ]]; then
470 - ewarn "These options are no longer allowed to be set"
471 - ewarn "with LIRC_OPTS: ${unsupported_opts}"
472 - die "LIRC_OPTS is no longer recommended."
473 - fi
474 - fi
475 -
476 - # Setup parameter for linux-mod.eclass
477 - MODULE_NAMES="lirc(misc:${S})"
478 - BUILD_TARGETS="all"
479 -
480 - ECONF_PARAMS=" --localstatedir=/var
481 - --with-syslog=LOG_DAEMON
482 - --enable-sandboxed
483 - --with-kerneldir=${KV_DIR}
484 - --with-moduledir=/lib/modules/${KV_FULL}/misc
485 - $(use_enable debug)
486 - $(use_with X x)
487 - ${MY_OPTS}"
488 -
489 - einfo
490 - einfo "lirc-configure-opts: ${MY_OPTS}"
491 - elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
492 -
493 - filter-flags -Wl,-O1
494 -
495 - # force non-parallel make, Bug 196134
496 - MAKEOPTS="${MAKEOPTS} -j1"
497 -}
498 -
499 -src_unpack() {
500 - git-2_src_unpack
501 - cd "${S}"
502 -
503 - # Rip out dos CRLF
504 - edos2unix contrib/lirc.rules
505 -
506 - # Apply patches needed for some special device-types
507 - use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch
508 - use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
509 -
510 - # remove parallel driver on SMP systems
511 - if linux_chkconfig_present SMP ; then
512 - sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
513 - fi
514 -
515 - # Bug #187418
516 - if kernel_is ge 2 6 22 ; then
517 - ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
518 - sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
519 - fi
520 -
521 - # respect CFLAGS
522 - sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
523 -
524 - # setting default device-node
525 - local f
526 - for f in configure.ac acconfig.h; do
527 - [[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
528 - done
529 - echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
530 -
531 - eautoreconf
532 -}
533 -
534 -src_install() {
535 - emake DESTDIR="${D}" install || die "emake install failed"
536 -
537 - newinitd "${FILESDIR}"/lircd-0.8.6 lircd
538 - newinitd "${FILESDIR}"/lircmd lircmd
539 - newconfd "${FILESDIR}"/lircd.conf.2 lircd
540 -
541 - insinto /etc/modprobe.d/
542 - newins "${FILESDIR}"/modprobed.lirc lirc.conf
543 -
544 - newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec
545 - newconfd "${FILESDIR}"/irexec-confd irexec
546 -
547 - if use doc ; then
548 - dohtml doc/html/*.html
549 - insinto /usr/share/doc/${PF}/images
550 - doins doc/images/*
551 - fi
552 -
553 - insinto /usr/share/lirc/remotes
554 - doins -r remotes/*
555 -
556 - keepdir /var/run/lirc /etc/lirc
557 - if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
558 - newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
559 - fi
560 -}
561 -
562 -pkg_preinst() {
563 - linux-mod_pkg_preinst
564 -
565 - local dir="${ROOT}/etc/modprobe.d"
566 - if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
567 - elog "Renaming ${dir}/lirc to lirc.conf"
568 - mv -f "${dir}/lirc" "${dir}/lirc.conf"
569 - fi
570 -
571 - # copy the first file that can be found
572 - if [[ -f "${ROOT}"/etc/lirc/lircd.conf ]]; then
573 - cp "${ROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf
574 - elif [[ -f "${ROOT}"/etc/lircd.conf ]]; then
575 - cp "${ROOT}"/etc/lircd.conf "${T}"/lircd.conf
576 - MOVE_OLD_LIRCD_CONF=1
577 - elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
578 - cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf
579 - fi
580 -
581 - # stop portage from touching the config file
582 - if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
583 - rm -f "${D}"/etc/lirc/lircd.conf
584 - fi
585 -}
586 -
587 -pkg_postinst() {
588 - linux-mod_pkg_postinst
589 -
590 - # copy config file to new location
591 - # without portage knowing about it
592 - # so it will not delete it on unmerge or ever touch it again
593 - if [[ -e "${T}"/lircd.conf ]]; then
594 - cp "${T}"/lircd.conf "${ROOT}"/etc/lirc/lircd.conf
595 - if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
596 - elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
597 - rm -f "${ROOT}"/etc/lircd.conf
598 - fi
599 - fi
600 -
601 - ewarn
602 - ewarn "The lirc_gpio driver will not work with Kernels 2.6.22+"
603 - ewarn "You need to switch over to /dev/input/event? if you need gpio"
604 - ewarn "This device can than then be used via lirc's dev/input driver."
605 - ewarn
606 - ewarn "The new default location for lircd.conf is inside of"
607 - ewarn "/etc/lirc/ directory"
608 -
609 -}
610
611 diff --git a/app-misc/lirc/metadata.xml b/app-misc/lirc/metadata.xml
612 deleted file mode 100644
613 index cc9b205..0000000
614 --- a/app-misc/lirc/metadata.xml
615 +++ /dev/null
616 @@ -1,15 +0,0 @@
617 -<?xml version="1.0" encoding="UTF-8"?>
618 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
619 -<pkgmetadata>
620 - <herd>media-tv</herd>
621 - <maintainer restrict=">=app-misc/lirc-9999">
622 - <email>mgorny@g.o</email>
623 - <name>Michał Górny</name>
624 - </maintainer>
625 - <use>
626 - <flag name='hardware-carrier'>The transmitter device generates its clock
627 - signal in hardware</flag>
628 - <flag name='transmitter'>Add transmitter support to some lirc-drivers
629 - (e.g. serial)</flag>
630 - </use>
631 -</pkgmetadata>