diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-06-13 21:43:35 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-06-13 21:43:35 +0000 |
commit | aafa88ec1e52775e7a1dc273570ff01bc79b2a70 (patch) | |
tree | 258574c643fcff3464d77095643c35ef58c44890 /app-misc | |
parent | Credit goes to Kjell Claesson, see bug #136659. (diff) | |
download | gentoo-2-aafa88ec1e52775e7a1dc273570ff01bc79b2a70.tar.gz gentoo-2-aafa88ec1e52775e7a1dc273570ff01bc79b2a70.tar.bz2 gentoo-2-aafa88ec1e52775e7a1dc273570ff01bc79b2a70.zip |
Initial import of ebuild, suggested by DEMAINE Benoît-Pierre <dhp_gentoo@doublehp.org>, Bug #136642
(Portage version: 2.1)
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/usbirboy/ChangeLog | 12 | ||||
-rw-r--r-- | app-misc/usbirboy/Manifest | 20 | ||||
-rw-r--r-- | app-misc/usbirboy/files/digest-usbirboy-0.2.1 | 3 | ||||
-rw-r--r-- | app-misc/usbirboy/files/usbirboy-0.2.1-kernel-2.6.16.diff | 43 | ||||
-rw-r--r-- | app-misc/usbirboy/metadata.xml | 12 | ||||
-rw-r--r-- | app-misc/usbirboy/usbirboy-0.2.1.ebuild | 51 |
6 files changed, 141 insertions, 0 deletions
diff --git a/app-misc/usbirboy/ChangeLog b/app-misc/usbirboy/ChangeLog new file mode 100644 index 000000000000..3c51974ccb75 --- /dev/null +++ b/app-misc/usbirboy/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-misc/usbirboy +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/usbirboy/ChangeLog,v 1.1 2006/06/13 21:43:35 zzam Exp $ + +*usbirboy-0.2.1 (13 Jun 2006) + + 13 Jun 2006; Matthias Schwarzott <zzam@gentoo.org> + +files/usbirboy-0.2.1-kernel-2.6.16.diff, +metadata.xml, + +usbirboy-0.2.1.ebuild: + Initial import of ebuild, suggested by DEMAINE Benoît-Pierre + <dhp_gentoo@doublehp.org>, Bug #136642 + diff --git a/app-misc/usbirboy/Manifest b/app-misc/usbirboy/Manifest new file mode 100644 index 000000000000..7359b34e7572 --- /dev/null +++ b/app-misc/usbirboy/Manifest @@ -0,0 +1,20 @@ +AUX usbirboy-0.2.1-kernel-2.6.16.diff 1488 RMD160 c41d2b11777c096946e96d2bb5a466796ab3e13b SHA1 89982dead3f01dc3a19be86df4c11ec411ff9408 SHA256 58466c199af78c246ecf281dcd05828b88d42ee4847acfa9e87f527339cbe730 +MD5 83eb0eda79a99bb7e4e74281d2cbd900 files/usbirboy-0.2.1-kernel-2.6.16.diff 1488 +RMD160 c41d2b11777c096946e96d2bb5a466796ab3e13b files/usbirboy-0.2.1-kernel-2.6.16.diff 1488 +SHA256 58466c199af78c246ecf281dcd05828b88d42ee4847acfa9e87f527339cbe730 files/usbirboy-0.2.1-kernel-2.6.16.diff 1488 +DIST usbirboy-0.2.1.tar.gz 38664 RMD160 e443ddfc6f7275ced335849c52d7375d4afa7670 SHA1 2df6bef28a21a048fb6502f5e1d0479315cdd3ce SHA256 144e6e29dcce004f4999e2f90551529346516c478ae0773f753fda3abaed3ffd +EBUILD usbirboy-0.2.1.ebuild 866 RMD160 4e4233dd92ad87987e4d97cf6a33548f109135b0 SHA1 940e717b540cd453aa1cfbd8dd907321235abe4d SHA256 63f98c860444a66f5707828649027bfd64c566c163bfc1358996bb378a065dae +MD5 f6cddebaeb6df17e2bd2d6edec1f011b usbirboy-0.2.1.ebuild 866 +RMD160 4e4233dd92ad87987e4d97cf6a33548f109135b0 usbirboy-0.2.1.ebuild 866 +SHA256 63f98c860444a66f5707828649027bfd64c566c163bfc1358996bb378a065dae usbirboy-0.2.1.ebuild 866 +MISC ChangeLog 393 RMD160 c6d29dd2bdbc023a109d9caf6ba80dff7b3fb1b7 SHA1 9454d441e2131dd86a860762b4786368c6da6e94 SHA256 86420b806e6159d0f5768dda52cbacc4ac2ab29eaee34d6d0d77b2609e8b0804 +MD5 775f453a6509a4678f1d8739036ff9ce ChangeLog 393 +RMD160 c6d29dd2bdbc023a109d9caf6ba80dff7b3fb1b7 ChangeLog 393 +SHA256 86420b806e6159d0f5768dda52cbacc4ac2ab29eaee34d6d0d77b2609e8b0804 ChangeLog 393 +MISC metadata.xml 299 RMD160 707aad4075ec4bf229379b99eb3dc32c9c48c317 SHA1 923159f185f3f7e258d1b6c658ab5e840d695a94 SHA256 2c97fe6032a94ea9ba56c8ce7417669afc1d2600b45c64489a2ff364de5057d3 +MD5 508178af527abb0fbdf4425cad1798d4 metadata.xml 299 +RMD160 707aad4075ec4bf229379b99eb3dc32c9c48c317 metadata.xml 299 +SHA256 2c97fe6032a94ea9ba56c8ce7417669afc1d2600b45c64489a2ff364de5057d3 metadata.xml 299 +MD5 ef3eb69f88756557ae4a8216b504d6a2 files/digest-usbirboy-0.2.1 241 +RMD160 7dd0c373f0544709fb8efa16198eccd921048e3d files/digest-usbirboy-0.2.1 241 +SHA256 afda63fc489f07855c09d20f36845a43a6fb5d53199cd8b648b5914fc5cb3e91 files/digest-usbirboy-0.2.1 241 diff --git a/app-misc/usbirboy/files/digest-usbirboy-0.2.1 b/app-misc/usbirboy/files/digest-usbirboy-0.2.1 new file mode 100644 index 000000000000..8b2038d1af28 --- /dev/null +++ b/app-misc/usbirboy/files/digest-usbirboy-0.2.1 @@ -0,0 +1,3 @@ +MD5 841dbf29a78987f104bcd062fd1ff3bd usbirboy-0.2.1.tar.gz 38664 +RMD160 e443ddfc6f7275ced335849c52d7375d4afa7670 usbirboy-0.2.1.tar.gz 38664 +SHA256 144e6e29dcce004f4999e2f90551529346516c478ae0773f753fda3abaed3ffd usbirboy-0.2.1.tar.gz 38664 diff --git a/app-misc/usbirboy/files/usbirboy-0.2.1-kernel-2.6.16.diff b/app-misc/usbirboy/files/usbirboy-0.2.1-kernel-2.6.16.diff new file mode 100644 index 000000000000..bc2a2f0b3194 --- /dev/null +++ b/app-misc/usbirboy/files/usbirboy-0.2.1-kernel-2.6.16.diff @@ -0,0 +1,43 @@ +diff -ru usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c usbirboy-0.2.1/usbirboykmod/usbirboy.c +--- usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c 2006-06-08 07:52:54.211338228 +0200 ++++ usbirboy-0.2.1/usbirboykmod/usbirboy.c 2006-06-08 07:57:26.989743855 +0200 +@@ -76,6 +76,14 @@ + #define LIRC_SET_REC_MODE _IOW('i', 0x00000012, __u32) + + ++#include <linux/version.h> ++ ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16) ++#define USBIRBOY_THIS_MODULE(x) x, ++#else /* >= 2.6.16 */ ++#define USBIRBOY_THIS_MODULE(x) ++#endif ++ + + /* prevent races between open() and disconnect() */ + static DECLARE_MUTEX (disconnect_sem); +@@ -778,7 +784,7 @@ + + /*defines user space function bodies*/ + static struct file_operations usbirboy_fops = { +- .owner = THIS_MODULE, ++ USBIRBOY_THIS_MODULE(.owner = THIS_MODULE) + .read = usbirboy_user_read, + .ioctl = usbirboy_user_ioctl, + .open = usbirboy_user_open, +@@ -790,13 +796,13 @@ + static struct usb_class_driver usbirboy_class = { + .name = DRIVER_NAME, + .fops = &usbirboy_fops, +- .mode = S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, ++ USBIRBOY_THIS_MODULE(.mode = S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH) + .minor_base = USBIRBOY_MINOR_BASE, + }; + + /*driver info for kernel*/ + static struct usb_driver usbirboy_driver = { +- .owner = THIS_MODULE, ++ USBIRBOY_THIS_MODULE(.owner = THIS_MODULE) + .name = DRIVER_NAME, + .id_table = usbirboy_device_table, + .probe = usbirboy_usb_probe, diff --git a/app-misc/usbirboy/metadata.xml b/app-misc/usbirboy/metadata.xml new file mode 100644 index 000000000000..1ac2aece4bca --- /dev/null +++ b/app-misc/usbirboy/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>zzam@gentoo.org</email> +<name>Matthias Schwarzott</name> +</maintainer> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + diff --git a/app-misc/usbirboy/usbirboy-0.2.1.ebuild b/app-misc/usbirboy/usbirboy-0.2.1.ebuild new file mode 100644 index 000000000000..a29e245840ef --- /dev/null +++ b/app-misc/usbirboy/usbirboy-0.2.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/usbirboy/usbirboy-0.2.1.ebuild,v 1.1 2006/06/13 21:43:35 zzam Exp $ + +inherit linux-mod + +DESCRIPTION="Use home made infrared receiver connected via USB" +HOMEPAGE="http://usbirboy.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +S=${WORKDIR}/${P}/usbirboykmod + +pkg_setup() { + linux-mod_pkg_setup + + MODULE_NAMES="usbirboy(misc:${S})" + BUILD_PARAMS="INCLUDE=${KV_DIR}" + BUILD_TARGETS="default" +} + +src_unpack() { + unpack ${A} + + epatch ${FILESDIR}/${P}-kernel-2.6.16.diff +} + +src_install() { + linux-mod_src_install + + dodoc README + + cd ${WORKDIR}/${P}/mcubin + insinto /usr/share/${PN} + doins usbirboy.s19 +} + +pkg_postinst() { + linux-mod_pkg_postinstall + einfo + einfo "Firmware file has been installed to /usr/share/${PN}" + einfo +} + |