wok-6.x view linmodem-agrsm/receipt @ rev 5077

bluez:remove unwanted dir
author Rohit Joshi <jozee@slitaz.org>
date Fri Mar 12 12:27:32 2010 +0000 (2010-03-12)
parents
children fb7eaa6ddef7
line source
1 # SliTaz package receipt.
3 PACKAGE="linmodem-agrsm"
4 SOURCE="agrsm"
5 VERSION="2.1.80-7mdv2009.0"
6 CATEGORY="network"
7 MAINTAINER="jozee@slitaz.org"
8 SHORT_DESC="Agere Modem Drivers for 11c11040 chipsets"
9 BUILD_DEPENDS="linux lzma"
10 WEB_SITE="http://linmodems.technion.ac.il/packages/ltmodem/11c11040"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/$TARBALL"
13 TAGS=""
15 # Rules to configure and make the package.
17 compile_rules() {
19 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
20 [ -d $WOK/linux/taz ] || tazwok cook linux
21 cd $src
22 make KERNEL_DIR=$WOK/linux/linux-$KERNEL_VERSION KRELEASE=$KERNEL_VERSION
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
30 EXTRAVERSION=_$KERNEL_VERSION
32 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net
34 # Compress and install module
35 lzma e $src/agrmodem.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz
36 lzma e $src/agrserial.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz
37 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz
38 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz
39 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz
40 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz
41 }
43 post_install()
44 {
45 echo "Processing post-install commands..."
46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
47 }
49 post_remove()
50 {
51 echo "Processing post-remove commands..."
52 depmod -a
53 }