wok rev 4587
Add linmodem-agrsm
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu Dec 10 13:27:11 2009 +0000 (2009-12-10) |
parents | c2796e3d4f81 |
children | e640f3ab5830 |
files | linmodem-agrsm/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linmodem-agrsm/receipt Thu Dec 10 13:27:11 2009 +0000 1.3 @@ -0,0 +1,54 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linmodem-agrsm" 1.7 +SOURCE="agrsm" 1.8 +VERSION="2.1.80-7mdv2009.0" 1.9 +CATEGORY="network" 1.10 +MAINTAINER="jozee@slitaz.org" 1.11 +SHORT_DESC="Agere Modem Drivers for 11c11040 chipsets" 1.12 +BUILD_DEPENDS="linux lzma" 1.13 +WEB_SITE="http://linmodems.technion.ac.il/packages/ltmodem/11c11040" 1.14 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.15 +WGET_URL="$WEB_SITE/$TARBALL" 1.16 +TAGS="" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 + 1.20 +compile_rules() { 1.21 + 1.22 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.23 + [ -d $WOK/linux/taz ] || tazwok cook linux 1.24 + cd $src 1.25 + make KERNEL_DIR=$WOK/linux/linux-$KERNEL_VERSION KRELEASE=$KERNEL_VERSION 1.26 + 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.33 + EXTRAVERSION=_$KERNEL_VERSION 1.34 + 1.35 + mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net 1.36 + 1.37 + # Compress and install module 1.38 + lzma e $src/agrmodem.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz 1.39 + lzma e $src/agrserial.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz 1.40 + chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz 1.41 + chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz 1.42 + chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz 1.43 + chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz 1.44 +} 1.45 + 1.46 +post_install() 1.47 +{ 1.48 + echo "Processing post-install commands..." 1.49 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.50 +} 1.51 + 1.52 +post_remove() 1.53 +{ 1.54 + echo "Processing post-remove commands..." 1.55 + depmod -a 1.56 +} 1.57 +