Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 25363 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]
Updated 3.2.7-r1 ebuild to fix patch for monitor mode!
pcmcia-cs-3.2.7-r1.ebuild (text/plain), 4.44 KB, created by
Peter Johanson (RETIRED)
on 2004-02-10 14:55:56 UTC
(
hide
)
Description:
Updated 3.2.7-r1 ebuild to fix patch for monitor mode!
Filename:
MIME Type:
Creator:
Peter Johanson (RETIRED)
Created:
2004-02-10 14:55:56 UTC
Size:
4.44 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/sys-apps/pcmcia-cs/pcmcia-cs-3.2.5.ebuild,v 1.4 2003/12/19 18:18:05 latexer Exp $ > >inherit eutils kernel-mod > >S=${WORKDIR}/${P} >OV="orinoco-0.13e" > >DESCRIPTION="PCMCIA tools for Linux" >SRC_URI="mirror://sourceforge/pcmcia-cs/${P}.tar.gz > http://dev.gentoo.org/~latexer/files/patches/${P}-module-init-tools.diff.gz > http://ozlabs.org/people/dgibson/dldwd/monitor-0.13e.patch > http://dev.gentoo.org/~latexer/files/patches/${PN}-koutput.diff" > >HOMEPAGE="http://pcmcia-cs.sourceforge.net" >IUSE="X trusted build apm pnp nocardbus" >DEPEND="sys-kernel/linux-headers > >=sys-apps/sed-4 > X? ( virtual/x11 )" >RDEPEND="" >SLOT="0" >LICENSE="GPL-2" >KEYWORDS="~x86" > ># Note: To use this ebuild, you should have the usr/src/linux symlink to ># the kernel directory that pcmcia-cs should use for configuration. > >KERNEL_MOD_SOURCES="${P}.tar.gz" > >src_unpack() { > kernel-mod_src_unpack > > # 3.2.5 and higher include the latest orinoco (0.13e), so just patch to add > # monitor mode > cd ${S}/wireless > epatch ${DISTDIR}/monitor-0.13e.patch > > cd ${S} > epatch ${DISTDIR}/${P}-module-init-tools.diff.gz > epatch ${DISTDIR}/${PN}-koutput.diff > > # Install man-pages into /usr/share/man > sed -i -e 's:usr/man:usr/share/man:g' Configure \ > || die "sed Configure failed" >} > >src_compile() { > local myconf myarch > > # There's now a configure option for whether to build X tools > if use X; then > myconf="${myconf} --x11" > else > myconf="${myconf} --nox11" > fi > > if use trusted; then > myconf="${myconf} --trust" > else > myconf="${myconf} --notrust" > fi > > # Note that when built with apm support, pcmcia-cs will require a > # kernel with APM support > if use apm; then > myconf="${myconf} --apm" > else > myconf="${myconf} --noapm" > fi > > # Note that when built with pnp support, pcmcia-cs will require a > # kernel with ISA PnP support > if use pnp; then > myconf="${myconf} --pnp" > else > myconf="${myconf} --nopnp" > fi > > if use nocardbus; then > myconf="${myconf} --nocardbus" > else > myconf="${myconf} --cardbus" > fi > > # x86 is not a valid arch for configure... use a case statement > # here to make it easy for other arches to add their own > # workarounds. > case "${ARCH}" in > x86) myarch="i386" ;; > *) myarch="${ARCH}" ;; > esac > > # Use $CFLAGS for user tools, but standard kernel optimizations > # for the kernel modules (for compatibility). > # > # The --srctree option tells pcmcia-cs to configure for the kernel > # in /usr/src/linux rather than the currently-running kernel. > # It's Gentoo Linux policy to configure for > # the kernel in /usr/src/linux > ./Configure -n \ > --target=${D} \ > --srctree \ > --kernel=/usr/src/linux \ > --koutput=${KV_OUTPUT} \ > --arch="${myarch}" \ > --uflags="$CFLAGS" \ > --kflags="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer" \ > $myconf || die "failed configuring" > > sed -i -e '/^HAS_FORMS/d ; s/^FLIBS=".*"/FLIBS=""/' config.out config.mk > > emake DO_ORINOCO=1 all || die "failed compiling" >} > >src_install () { > make PREFIX=${D} install || die "failed installing" > > # remove included rc scripts since we have our own > rm -rf ${D}/etc/rc*.d > > insinto /etc/conf.d > newins ${FILESDIR}/pcmcia.conf pcmcia > > exeinto /etc/pcmcia > doexe ${FILESDIR}/network > > # install our own init script > exeinto /etc/init.d > newexe ${FILESDIR}/pcmcia.rc pcmcia > > # documentation > if use build; then > rm -rf ${D}/usr/share/man > else > dodoc BUGS CHANGES COPYING LICENSE MAINTAINERS README \ > README-2.4 SUPPORTED.CARDS doc/* > fi > rm -f ${D}/etc/modules.conf > rm -rf ${D}/var/lib/pcmcia > > # if on ppc set the ppc revised config.opts > if [ "${ARCH}" = "ppc" ]; then > insinto /etc/pcmcia > newins ${FILESDIR}/ppc.config.opts config.opts > fi >} > >pkg_postinst() { > if [ "${KV_MINOR}" -lt "5" ] > then > depmod -a > > einfo "To avail yourself of the pcmcia-cs drivers, you have to disable the" > einfo "PCMCIA support in the kernel. (Otherwise, you might experience" > einfo "CardServices version mismatch errors)" > einfo "" > einfo "Proper kernel config for this package is that PCMCIA/CardBus under" > einfo "General Setup is off and Wireless LAN (non-ham radio) is on but" > einfo "no modules or drivers turned on under Network Device Support" > einfo "if you have wireless." > else > einfo "For 2.5/2.6 kernels, the PCMCIA support from the kernel should" > einfo "be used. Enable PCMCIA and any further drivers you need there," > einfo "and then use this package to install the PCMCIA tools." > fi >}
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