wok-current annotate madwifi/receipt @ rev 1427

smbwebclient: update apache conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 28 18:49:06 2008 +0000 (2008-09-28)
parents c343c644ab92
children 0d30d3d18dcb
rev   line source
erjo@1150 1 # SliTaz package receipt.
erjo@1150 2
erjo@1150 3 PACKAGE="madwifi"
erjo@1150 4 VERSION="r3366"
pascal@1423 5 CATEGORY="system-tools"
erjo@1150 6 SHORT_DESC="Driver for Atheros-based WLAN cards"
erjo@1150 7 MAINTAINER="erjo@slitaz.org"
erjo@1150 8 DEPENDS=""
erjo@1150 9 SOURCE="madwifi-nr-r3366+ar5007"
erjo@1150 10 TARBALL="$SOURCE.tar.gz"
erjo@1150 11 WEB_SITE="http://madwifi.org"
erjo@1150 12 WGET_URL="http://snapshots.madwifi.org/special/$TARBALL"
erjo@1150 13
erjo@1150 14 # Rules to configure and make the package.
erjo@1150 15 compile_rules()
erjo@1150 16 {
erjo@1150 17 src="madwifi-ng-r3366+ar5007"
erjo@1150 18 cd "$src"
erjo@1150 19 make clean
erjo@1150 20 make && \
erjo@1150 21 make DESTDIR=$PWD/_pkg install
erjo@1150 22 }
erjo@1150 23
erjo@1150 24 genpkg_rules()
erjo@1150 25 {
erjo@1150 26 _pkg="madwifi-ng-r3366+ar5007/_pkg"
erjo@1150 27 KVER=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g`
erjo@1150 28 EXTRAVERSION=_$KVER
erjo@1150 29
erjo@1150 30 mkdir -p $fs/lib/modules/${KVER}-slitaz/net \
erjo@1150 31 $fs/usr
erjo@1150 32 # Find all modules (gztazmod.sh code).
erjo@1150 33 echo -n "Searching all modules to compress them... "
erjo@1150 34 find $_pkg -name "*.ko" -exec lzma e '{}' '{}'.gz \; > /dev/null 2>&1
erjo@1150 35 status
erjo@1150 36
erjo@1150 37 # copy module
erjo@1150 38 cp -a $_pkg/lib/modules/${KVER}-slitaz/net/*.gz $fs/lib/modules/${KVER}-slitaz/net
erjo@1150 39 cp -a $_pkg/usr/local/bin $fs/usr
erjo@1150 40 }
erjo@1150 41
erjo@1150 42
erjo@1150 43 post_install()
erjo@1150 44 {
erjo@1150 45 echo "Processing post-install commands..."
pascal@1286 46 depmod -a -b "$1/" $EXTRAVERSION-slitaz
erjo@1150 47 }
erjo@1150 48
erjo@1150 49 post_remove()
erjo@1150 50 {
erjo@1150 51 echo "Processing post-remove commands..."
erjo@1150 52 depmod -a
erjo@1150 53 }
erjo@1150 54
erjo@1150 55 clean_wok()
erjo@1150 56 {
erjo@1150 57 rm -rf "madwifi-ng-r3366+ar5007"
erjo@1150 58 }