wok-current diff rt2860sta/receipt @ rev 2366
Add gobby (Realtime collaborative text editor)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 05 11:50:28 2009 +0100 (2009-03-05) |
parents | |
children | 6a237ab847f8 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/rt2860sta/receipt Thu Mar 05 11:50:28 2009 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="rt2860sta" 1.7 +VERSION="1.8.0.0" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Kernel module rt2860sta (Wireless driver used on EeePC)." 1.10 +DEPENDS="linux wireless_tools" 1.11 +BUILD_DEPENDS="linux-source" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 +MAINTAINER="pankso@slitaz.org" 1.14 +WEB_SITE="http://www.ralinktech.com/ralink/Home/Support/Linux.html" 1.15 +WGET_URL="http://mirror.slitaz.org/sources/packages/r/$TARBALL" 1.16 +KVER=`grep ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.17 +EXTRAVERSION=_${KVER} 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + cd $src 1.23 + patch -p0 < ../stuff/RT2860-Makefile.patch || exit 1 1.24 + make 1.25 + find $src/os/linux -name "*.ko" -exec lzma e '{}' '{}'.gz \; 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860 1.32 + cp $src/os/linux/rt2860sta.ko.gz \ 1.33 + $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860 1.34 +} 1.35 + 1.36 +post_install() 1.37 +{ 1.38 + depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz 1.39 +}