wok-next annotate linmodem-hsfmodem/receipt @ rev 10721
postfix: Fixed uid for postdrop group and postfix user. We should use uid 75 for postfix user and uid 73 for postdrop. Postdrop group was seting itself to 1000 uid before.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 28 18:20:04 2011 +0000 (2011-05-28) |
parents | 61b2df5c8f90 |
children |
rev | line source |
---|---|
slitaz@5309 | 1 # SliTaz package receipt. |
slitaz@5309 | 2 |
slitaz@5309 | 3 PACKAGE="linmodem-hsfmodem" |
slitaz@5309 | 4 SOURCE="hsfmodem" |
pascal@7394 | 5 VERSION="7.80.02.06full" |
slitaz@5309 | 6 CATEGORY="non-free" |
slitaz@5309 | 7 SHORT_DESC="Driver for the Conexant (formerly Rockwell) HSF Softmodem family." |
slitaz@5309 | 8 MAINTAINER="orphaned@sliatz.org" |
slitaz@5309 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
slitaz@5309 | 10 WEB_SITE="http://www.linuxant.com/drivers" |
slitaz@5309 | 11 WGET_URL="http://www.linuxant.com/drivers/hsf/full/archive/$SOURCE-$VERSION/$TARBALL" |
slitaz@5309 | 12 |
pankso@10668 | 13 DEPENDS="module-init-tools perl usbutils" |
pankso@10668 | 14 BUILD_DEPENDS="cpio linux lzma linux-module-headers util-linux-ng-getopt \ |
pankso@10668 | 15 usbutils-dev" |
pankso@10668 | 16 |
slitaz@5309 | 17 # Rules to configure and make the package. |
slitaz@5309 | 18 compile_rules() |
slitaz@5309 | 19 { |
slitaz@5309 | 20 cd $src |
slitaz@5309 | 21 echo "Apply $file..." |
pascal@9019 | 22 patch -p1 < $(ls $stuff/$SOURCE-*.diff) || return 1 |
pankso@10668 | 23 grep -rl 'uname -r' . | xargs sed -i "s/uname -r/echo $kvers/g" |
slitaz@5309 | 24 # build driver |
slitaz@5309 | 25 echo "Build driver" |
pankso@10668 | 26 make ROOT=$DESTDIR install |
slitaz@5309 | 27 # build kernel modules |
pankso@10668 | 28 echo "Running $DESTDIR/usr/sbin/hsfconfig -ka..." |
pankso@10668 | 29 $DESTDIR/usr/sbin/hsfconfig -ka |
pankso@10668 | 30 echo " OK" |
slitaz@5309 | 31 } |
slitaz@5309 | 32 |
slitaz@5309 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
slitaz@5309 | 34 genpkg_rules() |
slitaz@5309 | 35 { |
slitaz@5309 | 36 # kernel modules |
pankso@10668 | 37 mkdir -p $fs/lib/modules/$kvers |
pankso@10668 | 38 cp -a /lib/modules/$kvers/extra $fs/lib/modules/$kvers |
slitaz@5309 | 39 # cleaning up |
pankso@10668 | 40 rm -r /lib/modules/$kvers/extra |
slitaz@5309 | 41 # command files |
slitaz@5309 | 42 mkdir -p $fs/usr |
slitaz@5309 | 43 cp -a $_pkg/usr/sbin $fs/usr |
slitaz@5309 | 44 cp -a $_pkg/usr/lib $fs/usr |
slitaz@5309 | 45 # config files |
slitaz@5309 | 46 mkdir -p $fs/etc |
slitaz@5309 | 47 cp -a $_pkg/etc/hsfmodem $fs/etc |
pascal@8973 | 48 cp -a $stuff/zone.tab $fs/etc/hsfmodem |
slitaz@5309 | 49 } |
slitaz@5309 | 50 |
slitaz@5309 | 51 post_install() |
slitaz@5309 | 52 { |
slitaz@5309 | 53 depmod -a |
slitaz@5309 | 54 echo -n "Install serial port devices" |
slitaz@5309 | 55 hsfconfig -s > /dev/null |
slitaz@5309 | 56 status |
slitaz@5309 | 57 echo -n "Install kernel modules" |
slitaz@5309 | 58 modprobe -v /dev/ttySHSF > /dev/null |
slitaz@5309 | 59 status |
slitaz@5309 | 60 echo -n "Set region" |
slitaz@5309 | 61 hsfconfig -c AUTO |
slitaz@5309 | 62 echo "-----------------------------------------------------------------------------" |
slitaz@5309 | 63 echo "To enable your modem's full functionality (high-speed 56k data and FAX)," |
slitaz@5309 | 64 echo "a license registration key must be obtained from Linuxant and entered with" |
slitaz@5309 | 65 echo "hsfconfig --license." |
slitaz@5309 | 66 echo "" |
slitaz@5309 | 67 echo "Without a proper license key, the modem can only operate in FREE mode," |
slitaz@5309 | 68 echo "limited to a maximum speed of 14.4Kbps (V.32bis) and the FAX" |
slitaz@5309 | 69 echo "functionality will not be available." |
slitaz@5309 | 70 } |
slitaz@5309 | 71 |
slitaz@5309 | 72 pre_remove() |
slitaz@5309 | 73 { |
slitaz@5309 | 74 hsfstop |
slitaz@5309 | 75 } |
slitaz@5309 | 76 |
slitaz@5309 | 77 post_remove() |
slitaz@5309 | 78 { |
slitaz@5309 | 79 depmod -a |
slitaz@5309 | 80 rm -r /etc/hsfmodem |
slitaz@5309 | 81 } |