wok-current annotate ndiswrapper-driver/receipt @ rev 15584

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 30 17:02:58 2013 +0000 (2013-11-30)
parents ab6b8c6c469c
children 293a7bce6d7f
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@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/"
slaxemulator@5434 12 WGET_URL="$SF_MIRROR/$SOURCE/stable/$VERSION/$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@9700 24 patch -Np1 -i $stuff/kernel-2.6.35.patch
slaxemulator@9700 25 patch -Np1 -i $stuff/kernel-2.6.36.patch
slaxemulator@6743 26 make KBUILD=/usr/src/linux KVER=linux-$KERNEL_VERSION-slitaz
erjo@1851 27 }
erjo@1851 28
erjo@1851 29 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1851 30 genpkg_rules()
erjo@1851 31 {
erjo@1851 32 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
pascal@12859 33 EXTRAVERSION=_${KERNEL_VERSION%.*}
erjo@1851 34
erjo@1851 35 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
erjo@1851 36
erjo@1851 37 # Install utilities
erjo@1851 38 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
erjo@1851 39
erjo@1851 40 # Compress and install module
slaxemulator@9701 41 # $stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
pascal@13278 42 cp $src/driver/ndiswrapper.ko \
pascal@13278 43 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/
pascal@13278 44 xz $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko
pascal@13278 45 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
pascal@13278 46 chmod 644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
erjo@1851 47 }
erjo@1851 48
erjo@1851 49 post_install()
erjo@1851 50 {
erjo@1851 51 echo "Processing post-install commands..."
pascal@2926 52 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
erjo@1851 53 }
erjo@1851 54
erjo@1851 55 post_remove()
erjo@1851 56 {
erjo@1851 57 echo "Processing post-remove commands..."
slaxemulator@8308 58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
erjo@1851 59 }