You are not logged in.

#1 2006-09-02 03:01:25

nutnoob
Member
Registered: 2005-03-31
Posts: 14

orinoco_usb (orinoco-svn) PKGBUILD for w200 on evo n1015v

I have compaq evo n1015v laptop.
http://h18000.www1.hp.com/products/quic … 56_na.HTML

it has w200 which uses orinoco_usb.

so, I wrote a PKGBUILD that installs orinoco_usb.

# Contributor: glen_quagmire
# for w200 on evo n1015v
pkgname=orinoco-svn
pkgver=1239
pkgrel=
pkgdesc="$pkgname is kernel26 driver for wifi/wireless cards. includes orinoco_usb"
url="http://www.nongnu.org/orinoco/"
license=
depends=('kernel26')
provides=('orinoco')
conflicts=('orinoco')
makedepends=('subversion' 'unzip')
install=$pkgname.install
source=()
md5sums=()

_svntrunk=https://svn.sourceforge.net/svnroot/orinoco/branches
_svnmod=orinoco

build() {
    cd $startdir/src

    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod

    # will prompt user for ssh key stuff..
    # now, there will be auth and orinoco

    cd $_svnmod/usb

    msg "SVN checkout done or server timeout"
    msg "Starting make..."

    
    mkdir $startdir/src/$_svnmod-build
    cp -r $startdir/src/$_svnmod/usb $startdir/src/$_svnmod-build
    cd $startdir/src/$_svnmod-build/usb
    
    # by default, orinoco_usb isn't built.
    sed -i 's/SRCS = airport.c/SRCS = airport.c orinoco_usb.c/' Makefile

    # kernel26ck already has orinoco drivers enabled...
    sed -i 's/$(error This driver is already/#&/' Kbuild

    

    make || return 1
    #make DESTDIR=$startdir/pkg/ install
    
    # maybe i should do these below in orinoco-svn.install
    cd firmware
    make ezusb
    mkdir /usr/local/lib/firmware
    cp orinoco_ezusb_fw /usr/local/lib/firmware

    # this is bad..it'll fail probably under fakeroot.
    # if you use sudo, or run makepkg as root, probably it'll go through.
    # but the below line DIRECTLY INSTALLS TO /lib/kernel...
    make install

    #rm -rf $startdir/src/$_svnmod-build
}

problem: i can't make it so that it'll install modules to pkg/...
right now, it just calls make install and installs directly to /lib/kernel...

so, if someone knows about Kbuild and Makefile well enough,
please fix the file so that it can be submitted to aur.

thanks.

Offline

Board footer

Powered by FluxBB