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 | 5c11928b5d188090fba714de173254f8255df360 (patch) | |
tree | de422ddf82343cfd264d28730ebbb5dc90debd06 /app-misc/usbirboy | |
parent | Credit goes to Kjell Claesson, see bug #136659. (diff) | |
download | historical-5c11928b5d188090fba714de173254f8255df360.tar.gz historical-5c11928b5d188090fba714de173254f8255df360.tar.bz2 historical-5c11928b5d188090fba714de173254f8255df360.zip |
Initial import of ebuild, suggested by DEMAINE Benoît-Pierre <dhp_gentoo@doublehp.org>, Bug #136642
Package-Manager: portage-2.1
Diffstat (limited to 'app-misc/usbirboy')
-rw-r--r-- | app-misc/usbirboy/ChangeLog | 12 | ||||
-rw-r--r-- | app-misc/usbirboy/Manifest | 30 | ||||
-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, 151 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..a98390469f7c --- /dev/null +++ b/app-misc/usbirboy/Manifest @@ -0,0 +1,30 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +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 965 RMD160 add2abbd99d02d8745f191369398c5f341728fa7 SHA1 a0d96a27ea7cb1d766e6ce0d68b777db9202cb87 SHA256 a3439b09838bb1a0aa4500041b8cb688ec4681bd1452724979c995b522cf257c +MD5 919d0455682404524bc4a1657bab9ec8 usbirboy-0.2.1.ebuild 965 +RMD160 add2abbd99d02d8745f191369398c5f341728fa7 usbirboy-0.2.1.ebuild 965 +SHA256 a3439b09838bb1a0aa4500041b8cb688ec4681bd1452724979c995b522cf257c usbirboy-0.2.1.ebuild 965 +MISC ChangeLog 480 RMD160 0d0498a74a23476313ab759342ff492083c773fb SHA1 5a830ac9d6cc835c40b11896252211ae8d8ae73e SHA256 53a22e317be11b1aba04de3e10c41c109b5963160aba04004cb4d2e0ea9356e6 +MD5 3c4f900d121f8f165e70597b1dec0728 ChangeLog 480 +RMD160 0d0498a74a23476313ab759342ff492083c773fb ChangeLog 480 +SHA256 53a22e317be11b1aba04de3e10c41c109b5963160aba04004cb4d2e0ea9356e6 ChangeLog 480 +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 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.3 (GNU/Linux) + +iD8DBQFEjzIFZfSl1Kp5KmoRAtS5AJsHqm6RkuweLaZ+1jNL7Xmzv5y35ACfYRBY +A8+cdjXw+0n+0N3+ZHy+efQ= +=X2fA +-----END PGP SIGNATURE----- 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 +} + |