Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 23710 Details for
Bug 38021
Linux device driver for SPCA50X based USB cameras (Intel PC Camera Pro)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
the ebuild for the package
spca50x-0.30.ebuild (text/plain), 2.29 KB, created by
Marcelo Goes (RETIRED)
on 2004-01-12 17:51:07 UTC
(
hide
)
Description:
the ebuild for the package
Filename:
MIME Type:
Creator:
Marcelo Goes (RETIRED)
Created:
2004-01-12 17:51:07 UTC
Size:
2.29 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >DESCRIPTION="Linux device driver for SPCA50X based USB cameras (Intel PC Camera Pro)" >HOMEPAGE="http://sourceforge.net/projects/spca50x/" >SRC_URI="mirror://sourceforge/spca50x/${PN}-src-${PV}.tar.gz" > >LICENSE="GPL-1" >SLOT="0" >KEYWORDS="~x86 -ppc -sparc -alpha" >IUSE="" >DEPEND="virtual/glibc >virtual/linux-sources" > >check_version_h() { > if [ ! -f "${ROOT}/usr/src/linux/include/linux/version.h" ] > then > eerror "Please verify that your /usr/src/linux symlink is pointing" > eerror "to your current kernel sources, and that you did run:" > eerror > eerror " # make dep" > die "/usr/src/linux symlink not setup!" > fi >} > >get_KV_info() { > check_version_h > > # Get the kernel version of sources in /usr/src/linux ... > export KV_full="$(awk '/UTS_RELEASE/ { gsub("\"", "", $3); print $3 }' \ > "${ROOT}/usr/src/linux/include/linux/version.h")" > export KV_major="$(echo "${KV_full}" | cut -d. -f1)" > export KV_minor="$(echo "${KV_full}" | cut -d. -f2)" > export KV_micro="$(echo "${KV_full}" | cut -d. -f3 | sed -e 's:[^0-9].*::')" >} > >is_2_5_kernel() { > get_KV_info > > if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 5 ] > then > return 0 > else > return 1 > fi >} > >is_2_6_kernel() { > get_KV_info > > if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 6 ] > then > return 0 > else > return 1 > fi >} > >pkg_setup() { > get_KV_info > einfo "Linux kernel ${KV_major}.${KV_minor}.${KV_micro}" > if is_2_5_kernel || is_2_6_kernel > then > eerror "This package only works with 2.4 kernels" > eerror "Check /usr/src/linux if you _are_ using a 2.4 kernel" > die "No compatible kernel detected!" > > fi > >} > >src_unpack() { > unpack ${A} > epatch ${FILESDIR}/${P}-gentoo.patch >} > >src_compile(){ > cd ${WORKDIR} > emake || die >} > >src_install() { > insinto /lib/modules/${KV}/kernel/drivers/usb > doins ${WORKDIR}/spca50x.o > > dodoc ${WORKDIR}/README >} > >pkg_postinst() { > [ "${ROOT}" = "/" ] && /sbin/modules-update &> /dev/null >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 38021
:
23710
|
23711
|
25414