wok-stable view rt2860sta/receipt @ rev 2330
Add linld
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 28 14:24:55 2009 +0000 (2009-02-28) |
parents | |
children | 6a237ab847f8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="rt2860sta"
4 VERSION="1.8.0.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Kernel module rt2860sta (Wireless driver used on EeePC)."
7 DEPENDS="linux wireless_tools"
8 BUILD_DEPENDS="linux-source"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 MAINTAINER="pankso@slitaz.org"
11 WEB_SITE="http://www.ralinktech.com/ralink/Home/Support/Linux.html"
12 WGET_URL="http://mirror.slitaz.org/sources/packages/r/$TARBALL"
13 KVER=`grep ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
14 EXTRAVERSION=_${KVER}
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -p0 < ../stuff/RT2860-Makefile.patch || exit 1
21 make
22 find $src/os/linux -name "*.ko" -exec lzma e '{}' '{}'.gz \;
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860
29 cp $src/os/linux/rt2860sta.ko.gz \
30 $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860
31 }
33 post_install()
34 {
35 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
36 }