diff options
author | 2006-06-13 21:43:35 +0000 | |
---|---|---|
committer | 2006-06-13 21:43:35 +0000 | |
commit | aafa88ec1e52775e7a1dc273570ff01bc79b2a70 (patch) | |
tree | 258574c643fcff3464d77095643c35ef58c44890 /app-misc/usbirboy/files | |
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/usbirboy/files')
-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 |
2 files changed, 46 insertions, 0 deletions
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, |