All pastes #90722 Raw Edit

Untitled

public text v1 · immutable
#90722 ·published 2006-07-17 23:53 UTC
rendered paste body
[cesar@argh madwifi]$ conary q --full-versions madwifi
madwifi=/drivers.rpath.org@rpl:devel/0.9.1-1-1

[cesar@argh madwifi-kernel]$ cvc cook madwifi-kernel.recipe
+ Building madwifi-kernel
+ Downloading http://heanet.dl.sourceforge.net/sourceforge/madwifi/madwifi-kernel-0.9.1.tar.gz...
/var/tmp/temp-madwifi-O8wd4T.recipe:14: OSError: [Errno 2] No such file or directory: 'http://heanet.dl.sourceforge.net/sourceforge/madwifi/madwifi-kernel-0.9.1.tar.gz'

[cesar@argh madwifi-kernel]$ cat madwifi-kernel.recipe
#
# Copyright (c) 2006 rPath, Inc.
# This file is distributed under the terms of the MIT License.
# A copy is available at http://www.rpath.com/permanent/mit-license.html
#

loadSuperClass('kernelmodulepackage')
loadInstalled('madwifi')
class madWiFiKernel(KernelModulePackageRecipe, madWiFi):
    name = 'madwifi-kernel'
    version = madWiFi.version

    buildRequires = []

    def unpack(r):
        r.macros.ksrcdir = '/lib/modules/%(kver)s/build'
        r.macros.modpath = '/lib/modules/%(kver)s/kernel/drivers/net/wireless'
        madWiFi.unpack(r)
        r.addPatch('madwifi-11b_assoc_fix.dif')

    def build(r):
        r.Make('KERNELPATH=%(ksrcdir)s MODULEPATH=%(modpath)s modules')

    def install(r):
        r.MakeInstall('KERNELPATH=%(ksrcdir)s MODULEPATH=%(modpath)s',
                      installtarget='install-modules')

    def policy(r):
        r.AutoDoc(exceptions='.*')