Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 25280 Details for
Bug 32737
Compiling external kernel modules with 2.6 kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
hostap-driver-0.1.3-r1 ebuild that works with latest no matter what.
hostap-driver-0.1.3-r1.ebuild (text/plain), 3.53 KB, created by
Peter Johanson (RETIRED)
on 2004-02-09 11:33:50 UTC
(
hide
)
Description:
hostap-driver-0.1.3-r1 ebuild that works with latest no matter what.
Filename:
MIME Type:
Creator:
Peter Johanson (RETIRED)
Created:
2004-02-09 11:33:50 UTC
Size:
3.53 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/net-wireless/hostap-driver/hostap-driver-0.1.3.ebuild,v 1.1 2004/02/09 00:25:42 wschlich Exp $ > ># pcmcia eclass inherits eutils >inherit kernel-mod pcmcia > >DESCRIPTION="HostAP wireless drivers" >HOMEPAGE="http://hostap.epitest.fi/" >SRC_URI="${SRC_URI} http://hostap.epitest.fi/releases/${P}.tar.gz > http://dev.gentoo.org/~latexer/files/patches/${P}-koutput.diff.gz" >LICENSE="GPL-2" >SLOT="${KV}" >KEYWORDS="~x86" >IUSE="${IUSE} hostap-nopci hostap-noplx" >DEPEND=">=net-wireless/wireless-tools-25" >RDEPEND="!net-wireless/hostap" > >KMOD_PATH="/lib/modules/${KV}" > >KERNEL_MOD_SOURCES="${P}.tar.gz" >KERNEL_MOD_KOUTPUT_PATCH="${DISTDIR}/${P}-koutput.diff.gz" > >src_unpack() { > # Unpack and set some variables > kernel-mod_src_unpack > > ## unpack the pcmcia-cs sources if needed > pcmcia_src_unpack > > cd ${S} > epatch "${FILESDIR}/${P}.firmware.diff.bz2" > > ## set compiler options > sed -i -e "s:gcc:${CC}:" ${S}/Makefile > # sed -i -e "s:-O2:${CFLAGS}:" "${S}/Makefile" # improper CFLAGS could cause unresolved symbols in the modules > > ## fix for new coreutils (#31801) > sed -i -e "s:tail -1:tail -n 1:" ${S}/Makefile > > ## set correct pcmcia path (PCMCIA_VERSION gets set from pcmcia_src_unpack) > if [ -n "${PCMCIA_VERSION}" ]; then > sed -i -e "s:^PCMCIA_PATH=:PCMCIA_PATH=${PCMCIA_SOURCE_DIR}:" ${S}/Makefile > fi > > # If on 2.5 or 2.6, set the kernel output stuff > if [ "${KV_MINOR}" -gt "4" ] > then > if [ "${KV_OUTPUT}" = "/usr/src/linux" ]; then > sed -i -e \ > "s:^KERNEL_PATH=.*:KERNEL_PATH=${KV_BUILD}:" \ > ${S}/Makefile > else > sed -i -e \ > "s:^# KERNEL_OUTPUT_PATH=.*:KERNEL_OUTPUT_PATH=${KV_OUTPUT}:" \ > ${S}/Makefile > fi > fi > >} > >src_compile() { > ## configure pcmcia > pcmcia_configure > > cd ${S} > > einfo "Building hostap-driver for kernel version: ${KV}" > case ${KV_MINOR} in > [34]) > local mydrivers > > use pcmcia && mydrivers="${mydrivers} pccard" > use hostap-nopci || mydrivers="${mydrivers} pci" > use hostap-noplx || mydrivers="${mydrivers} plx" > > einfo "Building the following drivers: ${mydrivers}" > emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" ${mydrivers} || die "make failed" > ;; > [56]) > unset ARCH > emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" all || die "make failed" > ;; > *) > eerror "Unsupported kernel version: ${KV}" > die > ;; > esac >} > >src_install() { > ## kernel 2.6 has a different module file name suffix > case ${KV_MINOR} in > [34]) > kobj=o > ;; > [56]) > kobj=ko > esac > > dodir ${KMOD_PATH}/net > cp ${S}/driver/modules/{hostap,hostap_crypt_wep}.${kobj} \ > ${D}${KMOD_PATH}/net/ > > if use pcmcia >&/dev/null; then > dodir ${KMOD_PATH}/pcmcia > dodir /etc/pcmcia > cp ${S}/driver/modules/hostap_cs.${kobj} ${D}/${KMOD_PATH}/pcmcia/ > cp ${S}/driver/etc/hostap_cs.conf ${D}/etc/pcmcia/ > if [ -r /etc/pcmcia/prism2.conf ]; then > einfo "You may need to edit or remove /etc/pcmcia/prism2.conf" > einfo "This is usually a result of conflicts with the" > einfo "linux-wlan-ng drivers." > fi > fi > > if ! use hostap-nopci >&/dev/null; then > cp ${S}/driver/modules/hostap_pci.${kobj} \ > ${D}${KMOD_PATH}/net/ > fi > > if ! use hostap-noplx >&/dev/null; then > cp ${S}/driver/modules/hostap_plx.${kobj} \ > ${D}${KMOD_PATH}/net/ > fi > dodoc README ChangeLog >} > >pkg_postinst(){ > einfo "Checking kernel module dependancies" > # 2.6 completely re-installs modules when doing _modinst_post > case ${KV_MINOR} in > [34]) > cd /usr/src/linux && make _modinst_post ## depmod > ;; > [56]) > depmod -a > ;; > esac >}
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 32737
:
23927
|
24094
|
24095
|
24096
|
24131
|
24646
|
24647
|
24649
|
24650
|
24651
|
25235
|
25237
|
25238
|
25239
|
25279
|
25280
|
25281
|
25282
|
25283
|
25363
|
25453
|
25454
|
25497
|
26588
|
26635
|
26643
|
27538
|
30030
|
31314
|
31315
|
31317
|
31345
|
31346
|
31347
|
32935
|
33123
|
33124
|
33125
|
33356
|
36615