wok view ndiswrapper/receipt @ rev 1557
add perl-tk
author | Pierre-Jean Fichet <sygne@ombres.eu> |
---|---|
date | Sun Oct 12 23:16:22 2008 +0200 (2008-10-12) |
parents | 0d30d3d18dcb |
children | 45d974386ace |
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper"
4 VERSION="1.53"
5 CATEGORY="system-tools"
6 SHORT_DESC="Add Windows network drivers support to Linux kernel."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="perl"
9 BUILD_DEPENDS="perl"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
12 WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL
13 http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
19 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
20 if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
21 tazwok cook linux
22 fi
23 cd $src
24 make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
31 EXTRAVERSION=_$KERNEL_VERSION
33 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
35 # Install utilities
36 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
37 install -o root -m 755 $src/utils/ndiswrapper $fs/usr/sbin/
38 install -o root -m 755 $src/utils/ndiswrapper-buginfo $fs/usr/sbin/
39 strip -s $fs/sbin/load*
41 # Compress and install module
42 #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
43 install -o root -m O644 $src/driver/ndiswrapper.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
44 }
46 post_install()
47 {
48 echo "Processing post-install commands..."
49 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
50 }
52 post_remove()
53 {
54 echo "Processing post-remove commands..."
55 depmod -a
56 }