wok annotate ndiswrapper-driver/receipt @ rev 15586

Up ndiswrapper (1.59)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 30 19:25:54 2013 +0000 (2013-11-30)
parents 3765f181a6d5
children db5b03f42dd9
rev   line source
erjo@1851 1 # SliTaz package receipt.
erjo@1851 2
erjo@1851 3 PACKAGE="ndiswrapper-driver"
pascal@15586 4 VERSION="1.59"
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@15584 8 LICENSE="GPL"
erjo@1851 9 SOURCE="ndiswrapper"
erjo@1851 10 TARBALL="$SOURCE-$VERSION.tar.gz"
erjo@1851 11 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
pascal@15586 12 WGET_URL="$SF_MIRROR/$SOURCE/stable/$TARBALL"
jozee@4969 13 TAGS="windows wireless network"
erjo@1851 14
pascal@15584 15 DEPENDS="linux"
pascal@15584 16 BUILD_DEPENDS="linux-module-headers xz"
pascal@15584 17
erjo@1851 18 # Rules to configure and make the package.
erjo@1851 19 compile_rules()
erjo@1851 20 {
erjo@1851 21
erjo@1851 22 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
erjo@1851 23 cd $src
slaxemulator@6743 24 make KBUILD=/usr/src/linux KVER=linux-$KERNEL_VERSION-slitaz
pascal@15586 25 xz driver/ndiswrapper.ko
erjo@1851 26 }
erjo@1851 27
erjo@1851 28 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1851 29 genpkg_rules()
erjo@1851 30 {
erjo@1851 31 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
pascal@12859 32 EXTRAVERSION=_${KERNEL_VERSION%.*}
erjo@1851 33
erjo@1851 34 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
erjo@1851 35
erjo@1851 36 # Install utilities
erjo@1851 37 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
erjo@1851 38
pascal@15586 39 cp $src/driver/ndiswrapper.ko.xz \
pascal@13278 40 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/
pascal@13278 41 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
pascal@13278 42 chmod 644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
erjo@1851 43 }
erjo@1851 44
erjo@1851 45 post_install()
erjo@1851 46 {
erjo@1851 47 echo "Processing post-install commands..."
pascal@2926 48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
erjo@1851 49 }
erjo@1851 50
erjo@1851 51 post_remove()
erjo@1851 52 {
erjo@1851 53 echo "Processing post-remove commands..."
slaxemulator@8308 54 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
erjo@1851 55 }