wok-current view compat-wireless/receipt @ rev 2643
Add arj
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 17 22:18:55 2009 +0200 (2009-04-17) |
parents | |
children | f306d126580e |
line source
1 # SliTaz package receipt.
3 PACKAGE="compat-wireless"
4 VERSION="2009-04-08"
5 CATEGORY="base-system"
6 SHORT_DESC="Linux wireless driver update."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://wireless.kernel.org/"
9 TARBALL="$PACKAGE-old-$VERSION.tar.bz2"
10 WGET_URL="${WEB_SITE}download/$PACKAGE-2.6/$TARBALL"
11 BUILD_DEPENDS="lzma"
12 PROVIDE="linux-wireless"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 local kver
18 local kpath
20 mv $PACKAGE-2.6-old $src 2> /dev/null
21 cd $src
22 # get kernel version
23 if [ ! -d $WOK/linux/taz ]; then
24 tazwok cook linux
25 fi
26 kpath=$WOK/linux/$(ls $WOK/linux/taz)
27 kver=$(grep "kernel version" $kpath/.config)
28 kver=${kver##* }
29 IFS='.'; set -- $kver ; unset IFS
30 if [ $1 -ne 2 -o $2 -ne 6 -o $3 -lt 22 -o $3 -gt 27 ]; then
31 cat <<EOT
32 Wrong linux version $kver
33 Supported versions are 2.6.22 - 2.6.27
34 EOT
35 return 1
36 fi
37 make KLIB=$kpath KLIB_BUILD=$kpath
38 make -C $kpath M=$PWD INSTALL_MOD_PATH=$PWD/_pkg modules_install
39 mkdir -p _pkg/usr/lib/compat-wireless/ _pkg/usr/sbin
40 $WOK/linux/stuff/gztazmod.sh _pkg/lib/modules/*-slitaz
41 cp scripts/modlib.sh _pkg/usr/lib/compat-wireless/
42 cp scripts/*load scripts/*able _pkg/usr/sbin
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cp -a $_pkg/usr $_pkg/lib $fs
49 rm -f $fs/lib/modules/*-slitaz/modules.*
50 sed -i 's|/bin/bash|/bin/ash|' $_pkg/usr/sbin/* $_pkg/usr/lib/*/*
51 }
53 # Post install/remove commands for Tazpkg.
54 post_install()
55 {
56 depmod -a -b "$1/"
57 }
59 post_remove()
60 {
61 depmod -a
62 }