wok-next view linmodem-agrsm/receipt @ rev 5262
Up: lxtask (0.1.3)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 13 23:47:13 2010 +0200 (2010-04-13) |
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 }