From 9a0278bdb0c035e06f34d25aef4fb9ffe661bf5f Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Sun, 19 Aug 2012 15:27:40 +0400 Subject: [PATCH] remove lirc ebuild, fixes is in main tree --- app-misc/lirc/Manifest | 11 - app-misc/lirc/files/irexec-confd | 9 - app-misc/lirc/files/irexec-initd-0.8.6-r2 | 28 -- .../lirc-0.8.3_pre1-remotewonderplus.patch | 26 -- .../files/lirc-0.8.4-portaudio_check.patch | 18 - app-misc/lirc/files/lircd-0.8.6 | 41 -- app-misc/lirc/files/lircd.conf.2 | 10 - app-misc/lirc/files/lircmd | 20 - app-misc/lirc/files/modprobed.lirc | 22 - app-misc/lirc/lirc-0.9.0-r9999.ebuild | 390 ------------------ app-misc/lirc/metadata.xml | 11 - 11 files changed, 586 deletions(-) delete mode 100644 app-misc/lirc/Manifest delete mode 100644 app-misc/lirc/files/irexec-confd delete mode 100755 app-misc/lirc/files/irexec-initd-0.8.6-r2 delete mode 100644 app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch delete mode 100644 app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch delete mode 100644 app-misc/lirc/files/lircd-0.8.6 delete mode 100644 app-misc/lirc/files/lircd.conf.2 delete mode 100644 app-misc/lirc/files/lircmd delete mode 100644 app-misc/lirc/files/modprobed.lirc delete mode 100644 app-misc/lirc/lirc-0.9.0-r9999.ebuild delete mode 100644 app-misc/lirc/metadata.xml diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest deleted file mode 100644 index 623f5fe..0000000 --- a/app-misc/lirc/Manifest +++ /dev/null @@ -1,11 +0,0 @@ -AUX irexec-confd 280 RMD160 f669c7c98b9d7cac2010284ab6068d29d47ec811 SHA1 c6decc19a273d98d451de137a2ffbe16d5df28ae SHA256 c404ad3b624004cab25bd3a89593cdeb0abbc25771d6e52caf2f37cb4f7b2b79 -AUX irexec-initd-0.8.6-r2 816 RMD160 e9969072ccbdcb284781a4224c9fa2afc72fecaf SHA1 ab066d769417e13c194112ba99f309bb1cb0d2e5 SHA256 5e5a31fbd93294a6e210499a880fcab371b23706824c9d60d827b0187d7bade4 -AUX lirc-0.8.3_pre1-remotewonderplus.patch 943 RMD160 05a0696d51ff01c7d9644ad3ff4d56fef20be439 SHA1 971ad8b27d57c31439a1f7fb87dac2dc39d6c1e8 SHA256 547efbfa30f282ba9100495044e3b720c8f74c44f9a4e34db934d2ac7976fe29 -AUX lirc-0.8.4-portaudio_check.patch 769 RMD160 d83b1a167da5b0c4e09ef716a4fc80f7261f7665 SHA1 81537dc12f897756d24fcf2cf4d178dc8169e360 SHA256 01e2034aaa6a7eb039e5c0e6c3b4a6ed38860614d3d0b0005d99a4aac2b3827e -AUX lircd-0.8.6 973 RMD160 4e8a04b8d052558a91e8278589cc04d70f164a0d SHA1 e333b816a396e4005bdafce2b77501098fbcec5a SHA256 473cf04b2f6addf7c86d23103b1eff68bf3758fda2bf25401ff0631c568c7805 -AUX lircd.conf.2 317 RMD160 dbd600cb97ce10ba06e29e32fe5d3eac6cf19a7d SHA1 054bde131b965e2fea8599accbf69fc489cb66e8 SHA256 694d96ffc0c5b8d258592d89c0221aa9b10d69ce024a69a0cc935d899e0b855e -AUX lircmd 466 RMD160 32f2b2411afc60522944f5c3dff9f53aac242a9c SHA1 79939de790d20704009643bd810e3186090d0e36 SHA256 d47f22a33a83c14a4a0c333d6a445c40e550c491899fb0c6d323e23fe1eac7b7 -AUX modprobed.lirc 549 RMD160 89edfd587932959df9e521d146cef7c67cf97b18 SHA1 f59d8f031859eb6b6dccd1faf15d7ed2251288b1 SHA256 b4951252321ea326d3ec401e5ff1112716c5aaf5b2ca94d9f5e187e22ad35c44 -DIST lirc-0.9.0.tar.bz2 857286 RMD160 d8f1cf3a03573be36787e87adc71beba3e678a37 SHA1 8456bf7101d4f2d31d61c5073357a4981b458581 SHA256 6323afae6ad498d4369675f77ec3dbb680fe661bea586aa296e67f2e2daba4ff -EBUILD lirc-0.9.0-r9999.ebuild 10909 RMD160 b7ab05d570e0751cf2bcc8f1f2576c58cff43400 SHA1 f9e3e34079aa6707628164468c4427ec559a22fe SHA256 02811a9b5e8edfba9014e81dd4e341b4ca95c8a0a839932d7b0feb2bc9a05b61 -MISC metadata.xml 376 RMD160 7b854dad1999c38592eabe928aab80615ba1f1e5 SHA1 17dc9c9591c77aa4ec2d98b9bc1f34ff68da31ad SHA256 e3b4637a67a93eb4b9457fa5941e8a6a891adca11a1ebc80c21a59650eac93aa diff --git a/app-misc/lirc/files/irexec-confd b/app-misc/lirc/files/irexec-confd deleted file mode 100644 index 48eb8dd..0000000 --- a/app-misc/lirc/files/irexec-confd +++ /dev/null @@ -1,9 +0,0 @@ -# Options to pass to the irexec process -IREXEC_OPTS="/etc/lircrc" - -# User to execute irexec as. -# Warning: Running irexec as root can open security holes -#IREXEC_USER="root" - -# Use this to disable the warning printed when starting irexec as root -# IREXEC_DISABLE_ROOT_WARNING=yes diff --git a/app-misc/lirc/files/irexec-initd-0.8.6-r2 b/app-misc/lirc/files/irexec-initd-0.8.6-r2 deleted file mode 100755 index 567322a..0000000 --- a/app-misc/lirc/files/irexec-initd-0.8.6-r2 +++ /dev/null @@ -1,28 +0,0 @@ -#!/sbin/runscript -# Copyright 2003 Martin Hierling -# Distributed under the terms of the GNU General Public License v2 -# $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 $ - -: ${IREXEC_USER:=root} - -depend() { - need lirc -} - -start() { - if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then - ewarn "Warning: Running irexec as root can open security holes" - fi - - ebegin "Starting irexec" - start-stop-daemon --start --chuid ${IREXEC_USER} --user ${IREXEC_USER} --chdir / \ - --exec /usr/bin/irexec -- --daemon ${IREXEC_OPTS} - eend $? "Failed to start irexec." -} - -stop() { - ebegin "Stopping irexec" - start-stop-daemon --stop --exec /usr/bin/irexec --user ${IREXEC_USER} - eend $? "Failed to stop irexec." -} - 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 deleted file mode 100644 index 66527bc..0000000 --- a/app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c.orig 2005-10-29 08:18:53.000000000 -0600 -+++ lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c 2006-04-01 14:31:05.000000000 -0700 -@@ -147,8 +147,9 @@ - /* init strings */ - #define USB_OUTLEN 7 - --static char init1[] = {0x01, 0x00, 0x20, 0x14}; --static char init2[] = {0x01, 0x00, 0x20, 0x14, 0x20, 0x20, 0x20}; -+static char init1[] = {0x80, 0x05, 0x1b, 0x15, 0x14, 0x20, 0x24, 0x15}; -+static char init2[] = {0x83, 0x03}; -+static char init3[] = {0x84, 0xd7, 0x020}; - - struct in_endpt { - /* inner link in list of endpoints for the remote specified by ir */ -@@ -1034,8 +1034,9 @@ - usb_sndintpipe(ir->usbdev, oep->ep->bEndpointAddress), oep->buf, - USB_OUTLEN, usb_remote_send, oep, oep->ep->bInterval); - -- send_packet(oep, 0x8004, init1); -- send_packet(oep, 0x8007, init2); -+ send_packet(oep, 0x8007, init1); -+ send_packet(oep, 0x8002, init2); -+ send_packet(oep, 0x8003, init3); - } - } - 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 deleted file mode 100644 index 36f5f36..0000000 --- a/app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch +++ /dev/null @@ -1,18 +0,0 @@ -Portaudio is only needed for LIRC_DEVICES=audio, so not checking for Portaudio when the device is disabled will prevent automagic dependencies. ---- configure.ac.orig 2009-03-13 10:02:50.000000000 +0100 -+++ configure.ac 2009-03-13 10:04:00.000000000 +0100 -@@ -336,14 +336,6 @@ - AC_DEFINE(HAVE_LIBIRMAN_SW) - possible_drivers="${possible_drivers} (irman_sw)" - ) --dnl audio driver requires PortAudio library installed and some linker flags --AC_CHECK_HEADERS(portaudio.h,[ -- AC_CHECK_LIB(portaudio, Pa_Initialize,[ -- AC_DEFINE(HAVE_LIBPORTAUDIO) -- possible_drivers="${possible_drivers} (audio)" -- ],,${portaudio_lib_other} -- )] --) - dnl audio_alsa driver requires ALSA library installed and some linker flags - have_alsa=no - AC_CHECK_HEADERS(alsa/asoundlib.h,[ diff --git a/app-misc/lirc/files/lircd-0.8.6 b/app-misc/lirc/files/lircd-0.8.6 deleted file mode 100644 index dbf7a47..0000000 --- a/app-misc/lirc/files/lircd-0.8.6 +++ /dev/null @@ -1,41 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircd-0.8.6,v 1.2 2010/05/21 02:32:36 beandog Exp $ - -PIDFILE=/var/run/lirc/${SVCNAME}.pid -LIRCD_SYMLINKFILE=/dev/lircd -LIRCD_SOCKET=/var/run/lirc/lircd - -depend() { - need localmount - use modules - provide lirc -} - -start() { - local retval - ebegin "Starting lircd" - rm -f ${LIRCD_SOCKET} && ln -s ${LIRCD_SOCKET} ${LIRCD_SYMLINKFILE} - if [ $? -ne 0 ]; then - eend $? "Unable to create symbolic link ${LIRCD_SYMLINKFILE}" - return 1 - fi - - start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd -- \ - -P "${PIDFILE}" ${LIRCD_OPTS} - retval=$? - - if [ ${retval} -ne 0 ]; then - rm -f ${LIRCD_SOCKET} - fi - - eend ${retval} -} - -stop() { - ebegin "Stopping lircd" - rm -f ${LIRCD_SYMLINKFILE} - start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd - eend $? -} diff --git a/app-misc/lirc/files/lircd.conf.2 b/app-misc/lirc/files/lircd.conf.2 deleted file mode 100644 index cfda2b8..0000000 --- a/app-misc/lirc/files/lircd.conf.2 +++ /dev/null @@ -1,10 +0,0 @@ -# Options to pass to the lircd process - -# for devices with lirc-kernel-module -#LIRCD_OPTS="-d /dev/lirc0" -#LIRCD_OPTS="-d /dev/lirc" - -# for devices using the input-layer -#LIRCD_OPTS="-H devinput -d /dev/input/by-path/pci-0000:00:0a.0--event-ir" -# This should work, Bug #235107 -#LIRCD_OPTS="-H devinput -d name=*DVB*" diff --git a/app-misc/lirc/files/lircmd b/app-misc/lirc/files/lircmd deleted file mode 100644 index d383778..0000000 --- a/app-misc/lirc/files/lircmd +++ /dev/null @@ -1,20 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircmd,v 1.2 2004/09/28 00:22:15 swegener Exp $ - -depend() { - need lircd -} - -start() { - ebegin "Starting lircmd" - start-stop-daemon --start --quiet --exec /usr/sbin/lircmd - eend $? -} - -stop() { - ebegin "Stopping lircmd" - start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd - eend $? -} diff --git a/app-misc/lirc/files/modprobed.lirc b/app-misc/lirc/files/modprobed.lirc deleted file mode 100644 index 2ed9558..0000000 --- a/app-misc/lirc/files/modprobed.lirc +++ /dev/null @@ -1,22 +0,0 @@ -# -# For first serial receivers: -# -#options lirc_serial irq=4 io=0x3f8 -#options lirc_sir irq=4 io=0x3f8 - -# -# Detach first serial port from serial-driver. -# Use this when you have your serial-port-driver statically -# compiled into your kernel, or as a module but loaded before -# the lirc-module. -# -#install lirc_serial setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_serial -# -#install lirc_sir setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_sir - - -# -# For parallel receivers: -# -#options lirc_parallel irq=7 io=0x3bc - diff --git a/app-misc/lirc/lirc-0.9.0-r9999.ebuild b/app-misc/lirc/lirc-0.9.0-r9999.ebuild deleted file mode 100644 index dff0154..0000000 --- a/app-misc/lirc/lirc-0.9.0-r9999.ebuild +++ /dev/null @@ -1,390 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=1 - -inherit eutils linux-mod flag-o-matic autotools - -DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" -HOMEPAGE="http://www.lirc.org/" - -MY_P=${PN}-${PV/_/} - -if [[ "${PV/_pre/}" = "${PV}" ]]; then - SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" -else - SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2" -fi - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="debug doc X hardware-carrier transmitter" - -S="${WORKDIR}/${MY_P}" - -RDEPEND=" - X? ( - x11-libs/libX11 - x11-libs/libSM - x11-libs/libICE - ) - lirc_devices_alsa_usb? ( media-libs/alsa-lib ) - lirc_devices_audio? ( >media-libs/portaudio-18 ) - lirc_devices_irman? ( media-libs/libirman )" - -# This are drivers with names matching the -# parameter --with-driver=NAME -IUSE_LIRC_DEVICES_DIRECT=" - all userspace accent act200l act220l - adaptec alsa_usb animax asusdh atilibusb - atiusb audio audio_alsa avermedia avermedia_vdomate - avermedia98 awlibusb bestbuy bestbuy2 breakoutbox - bte bw6130 caraca chronos commandir - cph06x creative creative_infracd - devinput digimatrix dsp dvico ea65 ene0100 - exaudio flyvideo ftdi gvbctv5pci hauppauge - hauppauge_dvb hercules_smarttv_stereo i2cuser - igorplugusb iguanaIR imon imon_24g imon_knob - imon_lcd imon_pad imon_rsc irdeo irdeo_remote - irlink irman irreal it87 ite8709 - knc_one kworld leadtek_0007 leadtek_0010 - leadtek_pvr2000 livedrive_midi - livedrive_seq logitech macmini - mediafocusI mouseremote - mouseremote_ps2 mp3anywhere mplay nslu2 - packard_bell parallel pcmak pcmak_usb - pctv pixelview_bt878 pixelview_pak - pixelview_pro provideo realmagic - remotemaster sa1100 samsung sasem sb0540 serial - silitek sir slinke streamzap tekram - tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2 - uirt2_raw usb_uirt_raw usbx wpc8769l" - -# drivers that need special handling and -# must have another name specified for -# parameter --with-driver=NAME -IUSE_LIRC_DEVICES_SPECIAL=" - serial_igor_cesko - remote_wonder_plus xboxusb usbirboy inputlirc" - -IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}" - -#device-driver which use libusb -LIBUSB_USED_BY_DEV=" - all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad - imon_rsc streamzap xboxusb irlink commandir" - -for dev in ${LIBUSB_USED_BY_DEV}; do - DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )" -done - -# adding only compile-time depends -DEPEND="${RDEPEND} ${DEPEND} - virtual/linux-sources - lirc_devices_ftdi? ( dev-embedded/libftdi ) - lirc_devices_all? ( dev-embedded/libftdi )" - -# adding only run-time depends -RDEPEND="${RDEPEND} - lirc_devices_usbirboy? ( app-misc/usbirboy ) - lirc_devices_inputlirc? ( app-misc/inputlircd ) - lirc_devices_iguanaIR? ( app-misc/iguanaIR )" - -# add all devices to IUSE -for dev in ${IUSE_LIRC_DEVICES}; do - IUSE="${IUSE} lirc_devices_${dev}" -done - -add_device() { - : ${lirc_device_count:=0} - ((lirc_device_count++)) - - if [[ ${lirc_device_count} -eq 2 ]]; then - ewarn - ewarn "When selecting multiple devices for lirc to be supported," - ewarn "it can not be guaranteed that the drivers play nice together." - ewarn - ewarn "If this is not intended, then abort emerge now with Ctrl-C," - ewarn "Set LIRC_DEVICES and restart emerge." - ewarn - epause - fi - - local dev="${1}" - local desc="device ${dev}" - if [[ -n "${2}" ]]; then - desc="${2}" - fi - - elog "Compiling support for ${desc}" - MY_OPTS="${MY_OPTS} --with-driver=${dev}" -} - -pkg_setup() { - - if use lirc_devices_mceusb2 || use lirc_devices_mceusb - then - ewarn "The mceusb2 and mceusb drivers have been merged into the mainline kernel" - ewarn "Please only use the latter now and the userspace driver" - fi - - ewarn "If your LIRC device requires modules, you'll need MODULE_UNLOAD" - ewarn "support in your kernel." - - linux-mod_pkg_setup - - # set default configure options - MY_OPTS="" - LIRC_DRIVER_DEVICE="/dev/lirc0" - - if use lirc_devices_all; then - # compile in drivers for a lot of devices - add_device all "a lot of devices" - else - # compile in only requested drivers - local dev - for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do - if use lirc_devices_${dev}; then - add_device ${dev} - fi - done - - if use lirc_devices_remote_wonder_plus; then - add_device atiusb "device Remote Wonder Plus (atiusb-based)" - fi - - if use lirc_devices_serial_igor_cesko; then - add_device serial "serial with Igor Cesko design" - MY_OPTS="${MY_OPTS} --with-igor" - fi - - if use lirc_devices_imon_pad; then - ewarn "The imon_pad driver has incorporated the previous pad2keys patch" - ewarn "and removed the pad2keys_active option for the lirc_imon module" - ewarn "because it is always active." - ewarn "If you have an older imon VFD device, you may need to add the module" - ewarn "option display_type=1 to override autodetection and force VFD mode." - fi - - if use lirc_devices_xboxusb; then - add_device atiusb "device xboxusb" - fi - - if use lirc_devices_usbirboy; then - add_device userspace "device usbirboy" - LIRC_DRIVER_DEVICE="/dev/usbirboy" - fi - - if [[ "${MY_OPTS}" == "" ]]; then - if [[ "${PROFILE_ARCH}" == "xbox" ]]; then - # on xbox: use special driver - add_device atiusb "device xboxusb" - else - # no driver requested - elog - elog "Compiling only the lirc-applications, but no drivers." - elog "Enable drivers with LIRC_DEVICES if you need them." - MY_OPTS="--with-driver=none" - fi - fi - fi - - use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" - use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" - - if [[ -n "${LIRC_OPTS}" ]] ; then - ewarn - ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." - ewarn - ewarn "Please use LIRC_DEVICES from now on." - ewarn "e.g. LIRC_DEVICES=\"serial sir\"" - ewarn - ewarn "Flags are now set per use-flags." - ewarn "e.g. transmitter, hardware-carrier" - - local opt - local unsupported_opts="" - - # test for allowed options for LIRC_OPTS - for opt in ${LIRC_OPTS}; do - case ${opt} in - --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) - MY_OPTS="${MY_OPTS} ${opt}" - ;; - *) - unsupported_opts="${unsupported_opts} ${opt}" - ;; - esac - done - if [[ -n ${unsupported_opts} ]]; then - ewarn "These options are no longer allowed to be set" - ewarn "with LIRC_OPTS: ${unsupported_opts}" - die "LIRC_OPTS is no longer recommended." - fi - fi - - EXTRA_ECONF=" --localstatedir=/var - --with-syslog=LOG_DAEMON - --enable-sandboxed - --with-kerneldir=${KV_DIR} - --with-moduledir=/lib/modules/${KV_FULL}/misc - $(use_enable debug) - $(use_with X x) - ${MY_OPTS}" - - einfo - einfo "lirc-configure-opts: ${MY_OPTS}" - elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" - - filter-flags -Wl,-O1 - - # force non-parallel make, Bug 196134 - MAKEOPTS="${MAKEOPTS} -j1" -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # Rip out dos CRLF - edos2unix contrib/lirc.rules - - # Apply patches needed for some special device-types - use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch - use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch - - # remove parallel driver on SMP systems - if linux_chkconfig_present SMP ; then - sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am - fi - - # Bug #187418 - if kernel_is ge 2 6 22 ; then - ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+" - sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am - fi - - # respect CFLAGS - sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac - - # Do not build drivers from the top-level Makefile - sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am - - # setting default device-node - local f - for f in configure.ac acconfig.h; do - [[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f" - done - echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h - - eautoreconf -} - -src_compile() { - # configure needs to be run with "kernel style" ABI to configure - # the drivers, but the lirc tree uses autoconf/libtool which has - # a different interpretation to the kernel tree of some things. In - # particular LDFLAGS. - local myABI="${ABI}" - set_arch_to_kernel - ABI="${KERNEL_ABI}" - - econf || die - - set_arch_to_portage - ABI="${myABI}" - - # The drivers subdir has been disabled from the top-level Makefile - # above to separate the libtool based stage from the kernel modules. - # Build everything but drivers - emake || die - - # Now build the drivers using linux-mod.eclass - # Setup parameter for linux-mod.eclass - MODULE_NAMES="lirc(misc:${S}/drivers)" - BUILD_TARGETS="all" - - linux-mod_src_compile || die -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - # Install drivers - emake -C drivers DESTDIR="${D}" install || die "emake install drivers failed" - - newinitd "${FILESDIR}"/lircd-0.8.6 lircd - newinitd "${FILESDIR}"/lircmd lircmd - newconfd "${FILESDIR}"/lircd.conf.2 lircd - - insinto /etc/modprobe.d/ - newins "${FILESDIR}"/modprobed.lirc lirc.conf - - newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec - newconfd "${FILESDIR}"/irexec-confd irexec - - if use doc ; then - dohtml doc/html/*.html - insinto /usr/share/doc/${PF}/images - doins doc/images/* - fi - - insinto /usr/share/lirc/remotes - doins -r remotes/* - - keepdir /var/run/lirc /etc/lirc - if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then - newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example - fi -} - -pkg_preinst() { - linux-mod_pkg_preinst - - local dir="${ROOT}/etc/modprobe.d" - if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then - elog "Renaming ${dir}/lirc to lirc.conf" - mv -f "${dir}/lirc" "${dir}/lirc.conf" - fi - - # copy the first file that can be found - if [[ -f "${ROOT}"/etc/lirc/lircd.conf ]]; then - cp "${ROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf - elif [[ -f "${ROOT}"/etc/lircd.conf ]]; then - cp "${ROOT}"/etc/lircd.conf "${T}"/lircd.conf - MOVE_OLD_LIRCD_CONF=1 - elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then - cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf - fi - - # stop portage from touching the config file - if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then - rm -f "${D}"/etc/lirc/lircd.conf - fi -} - -pkg_postinst() { - linux-mod_pkg_postinst - - # copy config file to new location - # without portage knowing about it - # so it will not delete it on unmerge or ever touch it again - if [[ -e "${T}"/lircd.conf ]]; then - cp "${T}"/lircd.conf "${ROOT}"/etc/lirc/lircd.conf - if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then - elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf" - rm -f "${ROOT}"/etc/lircd.conf - fi - fi - - ewarn - ewarn "The lirc_gpio driver will not work with Kernels 2.6.22+" - ewarn "You need to switch over to /dev/input/event? if you need gpio" - ewarn "This device can than then be used via lirc's dev/input driver." - ewarn - ewarn "The new default location for lircd.conf is inside of" - ewarn "/etc/lirc/ directory" - -} diff --git a/app-misc/lirc/metadata.xml b/app-misc/lirc/metadata.xml deleted file mode 100644 index ea955a2..0000000 --- a/app-misc/lirc/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - -media-tv - - The transmitter device generates its clock - signal in hardware - Add transmitter support to some lirc-drivers - (e.g. serial) - -