wok-6.x diff linmodem-agrsm/receipt @ rev 12810
readline: ARM want it :-) so we can cross compile bash
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 20 03:01:49 2012 +0200 (2012-05-20) |
parents | 58ded5428ea5 |
children | b9368eac086f |
line diff
1.1 --- a/linmodem-agrsm/receipt Fri May 27 07:05:15 2011 +0200 1.2 +++ b/linmodem-agrsm/receipt Sun May 20 03:01:49 2012 +0200 1.3 @@ -15,28 +15,24 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - KVERS=$(grep ^VERSION= $INSTALLED/linux/receipt | cut -d '"' -f 2) 1.8 sed -i \ 1.9 -e 's/\([^_]\)usb_buffer_free/\1usb_free_coherent/' \ 1.10 -e 's/\([^_]\)usb_buffer_alloc/\1usb_alloc_coherent/' \ 1.11 agrsoftmodem.c 1.12 - make KERNEL_DIR=/usr/src/linux-$KVERS-slitaz KRELEASE=$KVERS 1.13 + make KERNEL_DIR=/usr/src/linux-$kvers-slitaz KRELEASE=$kvers 1.14 } 1.15 1.16 # Rules to gen a SliTaz package suitable for Tazpkg. 1.17 genpkg_rules() 1.18 -{ 1.19 - KVERS=$(grep ^VERSION= $INSTALLED/linux/receipt | cut -d '"' -f 2) 1.20 - EXTRAVERSION=_$KVERS 1.21 - echo "EXTRAVERSION: $EXTRAVERSION" 1.22 - 1.23 - mkdir -p $fs/lib/modules/$KVERS-slitaz/kernel/drivers/net 1.24 +{ 1.25 + EXTRAVERSION=_${kvers} 1.26 + mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net 1.27 1.28 # Compress and install module 1.29 - lzma e $src/agrmodem.ko $fs/lib/modules/$KVERS-slitaz/kernel/drivers/net/agrmodem.ko.gz 1.30 - lzma e $src/agrserial.ko $fs/lib/modules/$KVERS-slitaz/kernel/drivers/net/agrserial.ko.gz 1.31 - chown root $fs/lib/modules/$KVERS-slitaz/kernel/drivers/net/*.ko.gz 1.32 - chmod 0644 $fs/lib/modules/$KVERS-slitaz/kernel/drivers/net/*.ko.gz 1.33 + lzma e $src/agrmodem.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrmodem.ko.gz 1.34 + lzma e $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrserial.ko.gz 1.35 + chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz 1.36 + chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz 1.37 } 1.38 1.39 post_install()