diff options
author | Nick Hadaway <raker@gentoo.org> | 2003-02-04 08:40:09 +0000 |
---|---|---|
committer | Nick Hadaway <raker@gentoo.org> | 2003-02-04 08:40:09 +0000 |
commit | 2fc21fd1a1c949f69fed9fd8e603ed0e8345aa45 (patch) | |
tree | eefe93404f4ea77f93d12719893dddaeb2660480 /app-misc | |
parent | Version bump. Submitted A. Hartmann (diff) | |
download | gentoo-2-2fc21fd1a1c949f69fed9fd8e603ed0e8345aa45.tar.gz gentoo-2-2fc21fd1a1c949f69fed9fd8e603ed0e8345aa45.tar.bz2 gentoo-2-2fc21fd1a1c949f69fed9fd8e603ed0e8345aa45.zip |
Version bump. Lots of fixes
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/lirc/ChangeLog | 10 | ||||
-rw-r--r-- | app-misc/lirc/files/digest-lirc-0.6.6 | 1 | ||||
-rw-r--r-- | app-misc/lirc/files/lirc-0.6.6-gentoo.diff.bz2 | bin | 0 -> 2215 bytes | |||
-rw-r--r-- | app-misc/lirc/lirc-0.6.6.ebuild | 148 |
4 files changed, 158 insertions, 1 deletions
diff --git a/app-misc/lirc/ChangeLog b/app-misc/lirc/ChangeLog index 69939b19a539..05189368fcd9 100644 --- a/app-misc/lirc/ChangeLog +++ b/app-misc/lirc/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-misc/lirc # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.1 2002/07/14 14:34:10 lostlogic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.2 2003/02/04 08:40:09 raker Exp $ + +*lirc-0.6.6 (04 Feb 2003) + + 04 Feb 2003; Nick Hadaway <raker@gentoo.org> lirc-0.6.6.ebuild, + files/digest-lirc-0.6.6, files/lirc-0.6.6-gentoo.diff.bz2 : + Migrated previous patch's mknod and depmod related fixes. Added to the + patch removing references to a seemingly missing hw_udp.c. Added + an SMP workaround started on bug #13241. Version bump. *lirc-0.6.5 (11 Jul 2002) diff --git a/app-misc/lirc/files/digest-lirc-0.6.6 b/app-misc/lirc/files/digest-lirc-0.6.6 new file mode 100644 index 000000000000..255a2ae3f158 --- /dev/null +++ b/app-misc/lirc/files/digest-lirc-0.6.6 @@ -0,0 +1 @@ +MD5 6e7b5ba2fd479961d067730e16df7c54 lirc-0.6.6.tar.bz2 387447 diff --git a/app-misc/lirc/files/lirc-0.6.6-gentoo.diff.bz2 b/app-misc/lirc/files/lirc-0.6.6-gentoo.diff.bz2 Binary files differnew file mode 100644 index 000000000000..27e69a34710d --- /dev/null +++ b/app-misc/lirc/files/lirc-0.6.6-gentoo.diff.bz2 diff --git a/app-misc/lirc/lirc-0.6.6.ebuild b/app-misc/lirc/lirc-0.6.6.ebuild new file mode 100644 index 000000000000..d2b620fe8845 --- /dev/null +++ b/app-misc/lirc/lirc-0.6.6.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.6.6.ebuild,v 1.1 2003/02/04 08:40:09 raker Exp $ + + +DESCRIPTION="LIRC is a package that allows you to decode and send infra-red \ + signals of many (but not all) commonly used remote controls." +HOMEPAGE="http://www.lirc.org" + +[ "x${LIRC_OPTS}" = x ] && LIRC_OPTS="--with-driver=any \ + --with-port=0x3f8 --with-irq=4" + +# We have a SMP enabled kernel? +if [ ! -z "`uname -v | grep SMP`" ] +then + export SMP=1 +else + export SMP=0 +fi + +# This are the defaults. With this support for all supported remotes +# will be build. +# If you want other options then set the Environment variable to your needs. + +# Note: If you don't specify the driver configure becomes interactiv. + +# You have to know, which driver you want; +# --with-driver=X + +# where X is one of: +# none, any, animax, avermedia, avermedia98, +# bestbuy, bestbuy2, caraca, chronos, comX, +# cph03x, cph06x, creative, fly98, flyvideo, +# hauppauge,hauppauge_dvb, ipaq, irdeo, +# irdeo_remote, irman, irreal, it87, knc_one, +# logitech, lptX, mediafocusI, packard_bell, +# parallel, pctv, pixelview_bt878, +# pixelview_pak, pixelview_pro, provideo, +# realmagic, remotemaster, serial, silitek, +# sir, slinke, tekram, winfast_tv2000 + +# This could be usefull too + +# --with-port=port # port number for the lirc device. +# --with-irq=irq # irq line for the lirc device. +# --with-timer=value # timer value for the parallel driver +# --with-tty=file # tty to use (Irman, RemoteMaster, etc.) +# --without-soft-carrier # if your serial hw generates carrier +# --with-transmitter # if you use a transmitter diode + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +DEPEND="virtual/linux-sources" + +SRC_URI="mirror://sourceforge/lirc/${P}.tar.bz2" + +S=${WORKDIR}/${P} + +inherit eutils + +src_unpack() { + unpack ${P}.tar.bz2 + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.diff.bz2 || die + cp configure configure.orig + sed \ + -e "s:-O2 -g:${CFLAGS}:" \ + < configure.orig > configure + cp configure.in configure.in.orig + sed \ + -e "s:-O2 -g:${CFLAGS}:" \ + < configure.in.orig > configure.in +} + + +src_compile() { + + #Let portage tell us where to put our modules + check_KV + + econf \ + --with-kerneldir="/usr/src/linux" \ + --with-moduledir="/lib/modules/${KV}/misc" \ + --disable-manage-devices \ + ${LIRC_OPTS} || die "./configure failed" + + emake || die + + case ${LIRC_OPTS} + in + *"any"*) + if [ "${SMP}" = 1 ]; then + # The parallel driver will not work with SMP kernels + # so we need to compile without it + emake -C drivers "SUBDIRS=lirc_dev lirc_serial \ + lirc_sir lirc_it87 lirc_i2c lirc_gpio" || die + else + emake -C drivers "SUBDIRS=lirc_dev lirc_serial \ + lirc_parallel lirc_sir lirc_it87 lirc_i2c \ + lirc_gpio" || die + fi + ;; + esac +} + +src_install() { + make DESTDIR=${D} install || die + + case ${LIRC_OPTS} + in + *"any"*) + insinto /lib/modules/${KV}/misc + if [ "${SMP}" = 1 ]; then + for i in lirc_dev lirc_serial \ + lirc_sir lirc_it87 lirc_i2c lirc_gpio + do + doins drivers/${i}/${i}.o + done + else + for i in lirc_dev lirc_serial \ + lirc_parallel lirc_sir lirc_it87 lirc_i2c lirc_gpio + do + doins drivers/${i}/${i}.o + done + fi + ;; + esac + + exeinto /etc/init.d + doexe ${FILESDIR}/lircd +} + +pkg_postinst () { + /usr/sbin/update-modules + + einfo + einfo "The lirc Linux Infrared Remote Control Package has been" + einfo "merged, please read the documentation, and if necessary" + einfo "add what is needed to /etc/modules.autoload or" + einfo "/etc/modules.d. If you need special compile options" + einfo "then read the comments at the begin of this" + einfo "ebuild (source) and set the LIRC_OPTS environment" + einfo "variable to your needs." + einfo +} + |