wok-current annotate ndiswrapper-driver/receipt @ rev 13925
cssed: fix build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 26 03:04:33 2013 +0000 (2013-01-26) |
parents | b9368eac086f |
children | 3765f181a6d5 |
rev | line source |
---|---|
erjo@1851 | 1 # SliTaz package receipt. |
erjo@1851 | 2 |
erjo@1851 | 3 PACKAGE="ndiswrapper-driver" |
pascal@12303 | 4 VERSION="1.57" |
erjo@1851 | 5 CATEGORY="system-tools" |
erjo@1851 | 6 SHORT_DESC="Add Windows network drivers support to Linux kernel." |
erjo@1851 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@13278 | 8 DEPENDS="linux" |
pascal@13278 | 9 BUILD_DEPENDS="linux-module-headers xz" |
erjo@1851 | 10 SOURCE="ndiswrapper" |
erjo@1851 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
erjo@1851 | 12 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/" |
slaxemulator@5434 | 13 WGET_URL="$SF_MIRROR/$SOURCE/stable/$VERSION/$TARBALL" |
jozee@4969 | 14 TAGS="windows wireless network" |
erjo@1851 | 15 |
erjo@1851 | 16 # Rules to configure and make the package. |
erjo@1851 | 17 compile_rules() |
erjo@1851 | 18 { |
erjo@1851 | 19 |
erjo@1851 | 20 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
erjo@1851 | 21 cd $src |
slaxemulator@9700 | 22 patch -Np1 -i $stuff/kernel-2.6.35.patch |
slaxemulator@9700 | 23 patch -Np1 -i $stuff/kernel-2.6.36.patch |
slaxemulator@6743 | 24 make KBUILD=/usr/src/linux KVER=linux-$KERNEL_VERSION-slitaz |
erjo@1851 | 25 } |
erjo@1851 | 26 |
erjo@1851 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1851 | 28 genpkg_rules() |
erjo@1851 | 29 { |
erjo@1851 | 30 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@12859 | 31 EXTRAVERSION=_${KERNEL_VERSION%.*} |
erjo@1851 | 32 |
erjo@1851 | 33 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc |
erjo@1851 | 34 |
erjo@1851 | 35 # Install utilities |
erjo@1851 | 36 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/ |
erjo@1851 | 37 |
erjo@1851 | 38 # Compress and install module |
slaxemulator@9701 | 39 # $stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz |
pascal@13278 | 40 cp $src/driver/ndiswrapper.ko \ |
pascal@13278 | 41 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ |
pascal@13278 | 42 xz $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko |
pascal@13278 | 43 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz |
pascal@13278 | 44 chmod 644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz |
erjo@1851 | 45 } |
erjo@1851 | 46 |
erjo@1851 | 47 post_install() |
erjo@1851 | 48 { |
erjo@1851 | 49 echo "Processing post-install commands..." |
pascal@2926 | 50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
erjo@1851 | 51 } |
erjo@1851 | 52 |
erjo@1851 | 53 post_remove() |
erjo@1851 | 54 { |
erjo@1851 | 55 echo "Processing post-remove commands..." |
slaxemulator@8308 | 56 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
erjo@1851 | 57 } |