wok diff linmodem-hsfmodem/receipt @ rev 7125
javascript games: use GtkLauncher
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 05 01:38:58 2010 +0100 (2010-11-05) |
parents | |
children | 559c48f2524f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linmodem-hsfmodem/receipt Fri Nov 05 01:38:58 2010 +0100 1.3 @@ -0,0 +1,88 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linmodem-hsfmodem" 1.7 +SOURCE="hsfmodem" 1.8 +VERSION="7.80.02.05full" 1.9 +CATEGORY="non-free" 1.10 +SHORT_DESC="Driver for the Conexant (formerly Rockwell) HSF Softmodem family." 1.11 +MAINTAINER="orphaned@sliatz.org" 1.12 +DEPENDS="module-init-tools perl usbutils" 1.13 +BUILD_DEPENDS="cpio linux lzma" 1.14 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.15 +WEB_SITE="http://www.linuxant.com/drivers" 1.16 +WGET_URL="http://www.linuxant.com/drivers/hsf/full/archive/$SOURCE-$VERSION/$TARBALL" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.22 + [ -d $WOK/linux/taz ] || tazwok cook linux 1.23 + cd $src 1.24 + echo "Apply $file..." 1.25 + patch -p1 < ../stuff/$SOURCE-$VERSION.diff || exit 1 1.26 + # set /usr/src/linux 1.27 + echo "Set fake /usr/src/linux dir..Ã" 1.28 + [ -e /usr/src ] && SRCDIR=yes || mkdir -p /usr/src 1.29 + ln -s $WOK/linux/linux-$(uname -r | sed s/-slitaz//) /usr/src/linux 1.30 + # build driver 1.31 + echo "Build driver" 1.32 + make ROOT=$PWD/_pkg install 1.33 + # build kernel modules 1.34 + echo "Running $PWD/_pkg/usr/sbin/hsfconfig -ka" 1.35 + $PWD/_pkg/usr/sbin/hsfconfig -ka 1.36 + # reset /usr/src/linux 1.37 + echo "Clean files" 1.38 + rm /usr/src/linux 1.39 + [ "$SRCDIR" = "yes" ] && rmdir /usr/src 1.40 + echo "done." 1.41 +} 1.42 + 1.43 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.44 +genpkg_rules() 1.45 +{ 1.46 + # kernel modules 1.47 + mkdir -p $fs/lib/modules/$(uname -r) 1.48 + cp -a /lib/modules/$(uname -r)/extra $fs/lib/modules/$(uname -r) 1.49 + # cleaning up 1.50 + rm -r /lib/modules/$(uname -r)/extra 1.51 + # command files 1.52 + mkdir -p $fs/usr 1.53 + cp -a $_pkg/usr/sbin $fs/usr 1.54 + cp -a $_pkg/usr/lib $fs/usr 1.55 + # config files 1.56 + mkdir -p $fs/etc 1.57 + cp -a $_pkg/etc/hsfmodem $fs/etc 1.58 + cp -a stuff/zone.tab $fs/etc/hsfmodem 1.59 +} 1.60 + 1.61 +post_install() 1.62 +{ 1.63 + depmod -a 1.64 + echo -n "Install serial port devices" 1.65 + hsfconfig -s > /dev/null 1.66 + status 1.67 + echo -n "Install kernel modules" 1.68 + modprobe -v /dev/ttySHSF > /dev/null 1.69 + status 1.70 + echo -n "Set region" 1.71 + hsfconfig -c AUTO 1.72 + echo "-----------------------------------------------------------------------------" 1.73 + echo "To enable your modem's full functionality (high-speed 56k data and FAX)," 1.74 + echo "a license registration key must be obtained from Linuxant and entered with" 1.75 + echo "hsfconfig --license." 1.76 + echo "" 1.77 + echo "Without a proper license key, the modem can only operate in FREE mode," 1.78 + echo "limited to a maximum speed of 14.4Kbps (V.32bis) and the FAX" 1.79 + echo "functionality will not be available." 1.80 +} 1.81 + 1.82 +pre_remove() 1.83 +{ 1.84 + hsfstop 1.85 +} 1.86 + 1.87 +post_remove() 1.88 +{ 1.89 + depmod -a 1.90 + rm -r /etc/hsfmodem 1.91 +}