wok-6.x view linmodem-agrsm/receipt @ rev 6435
Up: irssi-scripts to 2.0
author | Julien Rabier <taziden@slitaz.org> |
---|---|
date | Mon Sep 27 18:01:01 2010 +0000 (2010-09-27) |
parents | fb7eaa6ddef7 |
children | 817ef09fb63f |
line source
1 # SliTaz package receipt.
3 PACKAGE="linmodem-agrsm"
4 SOURCE="agrsm-11c11040"
5 VERSION="2.1.80~20091225"
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.bz2"
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 }