wok-6.x view rt2860sta/receipt @ rev 2890
locale-de: Include installer messages
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 05 00:43:41 2009 +0200 (2009-05-05) |
parents | 2f08b20301f0 |
children | f306d126580e |
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"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -p0 < ../stuff/RT2860-Makefile.patch || exit 1
19 patch -p0 < ../stuff/RT2860-config.mk.patch || exit 1
20 make
21 find $src/os/linux -name "*.ko" -exec lzma e '{}' '{}'.gz \;
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 KVER=`grep ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
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 }