--- /dev/null
+# ChangeLog for media-video/qc-usb-messenger
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/qc-usb-messenger/ChangeLog,v 1.1 2006/12/07 19:30:29 zzam Exp $
+
+*qc-usb-messenger-1.5 (07 Dec 2006)
+
+ 07 Dec 2006; Matthias Schwarzott <zzam@gentoo.org>
+ +files/qc-usb-messenger-2.6.19.patch,
+ +files/qc-usb-messenger-koutput.patch, +metadata.xml,
+ +qc-usb-messenger-1.5.ebuild:
+ Initial import of ebuild, based on qc-usb, modified and maintained by Samuli
+ Suominen <sasuomin@uusikaupunki.fi>.
+
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX qc-usb-messenger-2.6.19.patch 458 RMD160 b342699e447f88d488b2ae38399a19b5113927eb SHA1 67a5b14f409da9ffe9a69fa8c00243f4185d3fa9 SHA256 f34da6c0b67f5c269cf4e67663d9ef6e9673f2e0d6f343bb258573111c6937ea
+MD5 8a7bedadb97e673125d731cafd0546c6 files/qc-usb-messenger-2.6.19.patch 458
+RMD160 b342699e447f88d488b2ae38399a19b5113927eb files/qc-usb-messenger-2.6.19.patch 458
+SHA256 f34da6c0b67f5c269cf4e67663d9ef6e9673f2e0d6f343bb258573111c6937ea files/qc-usb-messenger-2.6.19.patch 458
+AUX qc-usb-messenger-koutput.patch 2424 RMD160 8e061adb423e6a78900160c7f66fdf2fa9ced872 SHA1 a5cdd2e355bc89ae86b0f606b39bcfa00e36ec56 SHA256 ec6d308f351830f06bce785314a860424ce045e737c3bafddc9b8532f0a4e63f
+MD5 b339fbee37b71efebb7c6dc7542da7ad files/qc-usb-messenger-koutput.patch 2424
+RMD160 8e061adb423e6a78900160c7f66fdf2fa9ced872 files/qc-usb-messenger-koutput.patch 2424
+SHA256 ec6d308f351830f06bce785314a860424ce045e737c3bafddc9b8532f0a4e63f files/qc-usb-messenger-koutput.patch 2424
+DIST qc-usb-messenger-1.5.tar.gz 167203 RMD160 e885b6d3c0508964df1ca81805435ebe996fba13 SHA1 c152ad98cf1b9684bee8350860d84c0d197bc76f SHA256 b5b0d23bffdb2edb8c7a0baeed704c41e327d61279190e309701ed4a39ad4c02
+EBUILD qc-usb-messenger-1.5.ebuild 1070 RMD160 d01d6172b56417653a897c3425b6ed2bb576a745 SHA1 80c9d24d8faa5b76f71cecd90a8f7f8caf997f69 SHA256 a2d64a5fb405fb3bf0b4fe4b1856643757e3bf74751edadf2c6984dcad653e92
+MD5 0c5319247fd627815d8b6a315489773e qc-usb-messenger-1.5.ebuild 1070
+RMD160 d01d6172b56417653a897c3425b6ed2bb576a745 qc-usb-messenger-1.5.ebuild 1070
+SHA256 a2d64a5fb405fb3bf0b4fe4b1856643757e3bf74751edadf2c6984dcad653e92 qc-usb-messenger-1.5.ebuild 1070
+MISC ChangeLog 564 RMD160 bd05607e9630565947cb70508b796e074fe35f8c SHA1 97059e4cda237f93a88c973fd1e6d4b1e8d05d4e SHA256 65fc7499453217c674e81c7045ee3bbe33f7bb536a26e0d0ad863f9231009799
+MD5 3f9c9323452b3eb57fffd58406f57632 ChangeLog 564
+RMD160 bd05607e9630565947cb70508b796e074fe35f8c ChangeLog 564
+SHA256 65fc7499453217c674e81c7045ee3bbe33f7bb536a26e0d0ad863f9231009799 ChangeLog 564
+MISC metadata.xml 452 RMD160 c2512806b03a630259a60ac28a7391e8d6ae3286 SHA1 8a9168a8da35df17569522ac83836697663c75c9 SHA256 29195b0377bf3106dc41f0166f2cfcd65a4dec025093f11a518484ab27909f7e
+MD5 48d3d85699da9980ac3672ef0b14252f metadata.xml 452
+RMD160 c2512806b03a630259a60ac28a7391e8d6ae3286 metadata.xml 452
+SHA256 29195b0377bf3106dc41f0166f2cfcd65a4dec025093f11a518484ab27909f7e metadata.xml 452
+MD5 08e852c710f7e7424a2fb91dc54dc719 files/digest-qc-usb-messenger-1.5 262
+RMD160 43f53dea936f9a44f0d8078ea7cf3bbd4bf912dc files/digest-qc-usb-messenger-1.5 262
+SHA256 a20abe722692ea018623aab8a6d569ac67472c224f3703a483feb6196ab3eb21 files/digest-qc-usb-messenger-1.5 262
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFFeGvmt2vP6XvVdOcRAnTZAJ402IxgfpgBEp+y3qWM83V2DHl72ACgirhx
+S0LFKBb/fJ2k4TVZOaGpvlw=
+=Am+/
+-----END PGP SIGNATURE-----
--- /dev/null
+MD5 8153aacef6a1875371a9d9d03fea8590 qc-usb-messenger-1.5.tar.gz 167203
+RMD160 e885b6d3c0508964df1ca81805435ebe996fba13 qc-usb-messenger-1.5.tar.gz 167203
+SHA256 b5b0d23bffdb2edb8c7a0baeed704c41e327d61279190e309701ed4a39ad4c02 qc-usb-messenger-1.5.tar.gz 167203
--- /dev/null
+diff -ur qc-usb-messenger-1.5.orig/quickcam.h qc-usb-messenger-1.5/quickcam.h
+--- qc-usb-messenger-1.5.orig/quickcam.h 2006-11-05 08:36:13.000000000 +0200
++++ qc-usb-messenger-1.5/quickcam.h 2006-12-07 20:23:30.000000000 +0200
+@@ -90,9 +90,12 @@
+
+ #ifdef __KERNEL__
+
+-#include <linux/config.h>
+ #include <linux/version.h>
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
++#include <linux/config.h>
++#endif
++
+ #ifdef CONFIG_SMP
+ #define __SMP__
+ #endif
--- /dev/null
+diff -ur qc-usb-messenger-1.5.orig/Makefile qc-usb-messenger-1.5/Makefile
+--- qc-usb-messenger-1.5.orig/Makefile 2006-10-15 00:23:07.000000000 +0300
++++ qc-usb-messenger-1.5/Makefile 2006-12-06 16:39:02.000000000 +0200
+@@ -44,11 +44,7 @@
+ #RELEASE := $(shell awk -F \" '/[ ]*\#[ ]*define[ ]*UTS_RELEASE[ ]*/ { print $$2 }' $(LINUX_DIR)/include/linux/version.h|tail -n 1)
+ # This seem to work better
+ #LINUX_DIR := /usr/src/linux
+-RELEASE := $(shell if test -r $(LINUX_DIR)/include/linux/version.h && fgrep -q UTS_RELEASE $(LINUX_DIR)/include/linux/version.h; then \
+- ((echo "\#include <linux/version.h>" ; echo "kernsrcver=UTS_RELEASE") | cpp -I $(LINUX_DIR)/include | grep "^kernsrcver=" | cut -d \" -f 2); \
+- elif test -r $(LINUX_DIR)/include/linux/utsrelease.h && fgrep -q UTS_RELEASE $(LINUX_DIR)/include/linux/utsrelease.h; then \
+- ((echo "\#include <linux/utsrelease.h>"; echo "kernsrcver=UTS_RELEASE") | cpp -I $(LINUX_DIR)/include | grep "^kernsrcver=" | cut -d \" -f 2); \
+- fi)
++RELEASE := $(shell awk -F \" '/[ ]*\#[ ]*define[ ]*UTS_RELEASE[ ]*/ { print $$2 }' $(OUTPUT_DIR)/include/linux/version.h|tail -n 1)
+ MODULE_DIR := /lib/modules/$(RELEASE)
+ endif
+ endif
+@@ -58,6 +54,10 @@
+ LINUX_DIR := $(MODULE_DIR)/build
+ endif
+
++ifndef OUTPUT_DIR
++OUTPUT_DIR := $(LINUX_DIR)
++endif
++
+ HAVE_UTSRELEASE_H := $(shell if test -r $(LINUX_DIR)/include/linux/version.h && fgrep -q UTS_RELEASE $(LINUX_DIR)/include/linux/version.h; then \
+ echo 0; \
+ elif test -r $(LINUX_DIR)/include/linux/utsrelease.h && fgrep -q UTS_RELEASE $(LINUX_DIR)/include/linux/utsrelease.h; then \
+@@ -108,6 +108,7 @@
+ @echo "Current configuration:"
+ @echo "Driver source directory (PWD): $(PWD)"
+ @echo "Kernel source directory (LINUX_DIR): $(LINUX_DIR)"
++ @echo "Kernel output directory (OUTPUT_DIR): $(OUTPUT_DIR)"
+ @echo "Module install directory (MODULE_DIR): $(MODULE_DIR)"
+ @echo "Utility install directory (PREFIX): $(PREFIX)"
+ @echo "User options (USER_OPT): $(USER_OPT)"
+@@ -131,7 +132,7 @@
+ else
+ # No, 2.4.x or older
+
+-MODULE_INC := -I$(LINUX_DIR)/include -nostdinc -iwithprefix include
++MODULE_INC := -I$(LINUX_DIR)/include -I$(OUTPUT_DIR)/include -nostdinc -iwithprefix include
+ MODULE_DEF := -DMODULE -D__KERNEL__ -DNOKERNEL
+ MODULE_OPT := -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
+ MODULE_WARN := -Wall -Wstrict-prototypes -Wno-trigraphs
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>video</herd>
+
+<maintainer>
+ <email>sasuomin@uusikaupunki.fi</email>
+ <name>Samuli Suominen</name>
+ <description>Proxied maintainer</description>
+</maintainer>
+
+<maintainer>
+ <email>zzam@gentoo.org</email>
+ <name>Matthias Schwarzott</name>
+ <description>Proxying maintainer</description>
+</maintainer>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/qc-usb-messenger/qc-usb-messenger-1.5.ebuild,v 1.1 2006/12/07 19:30:29 zzam Exp $
+
+inherit eutils linux-mod
+
+DESCRIPTION="Logitech USB Quickcam Express Messenger & Communicate Linux Driver Modules"
+HOMEPAGE="http://home.mag.cx/messenger/"
+SRC_URI="http://home.mag.cx/messenger/source/${P}.tar.gz"
+
+IUSE=""
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+CONFIG_CHECK="USB VIDEO_DEV VIDEO_V4L1_COMPAT"
+MODULE_NAMES="quickcam(usb:)"
+BUILD_TARGETS="all"
+
+pkg_setup() {
+ ABI=${KERNEL_ABI}
+ linux-mod_pkg_setup
+ BUILD_PARAMS="LINUX_DIR=${KV_DIR} OUTPUT_DIR=${KV_OUT_DIR}"
+}
+
+src_unpack() {
+ unpack ${A}
+ convert_to_m ${S}/Makefile
+ epatch ${FILESDIR}/${PN}-koutput.patch
+ epatch ${FILESDIR}/${PN}-2.6.19.patch
+}
+
+src_install() {
+ linux-mod_src_install
+
+ dobin qcset
+ dodoc README* APPLICATIONS CREDITS TODO FAQ _CHANGES_MESSENGER _README_MESSENGER
+
+ insinto /usr/share/doc/${PF}
+ doins quickcam.sh debug.sh freeshm.sh
+}