# HG changeset patch # User Christopher Rogers # Date 1290806024 0 # Node ID bab55f4929c24685804f891490dae0667eae19f5 # Parent 9ce59d5bc5b74f6e1e1ebc6a201e4b2a5ce454a1 Fixed linmodem-hsfmodem to use linux-module-headers and to not make/remove /usr/src/linux folder since its in linux-module-headers. diff -r 9ce59d5bc5b7 -r bab55f4929c2 linmodem-hsfmodem/receipt --- a/linmodem-hsfmodem/receipt Fri Nov 26 20:59:24 2010 +0100 +++ b/linmodem-hsfmodem/receipt Fri Nov 26 21:13:44 2010 +0000 @@ -7,7 +7,7 @@ SHORT_DESC="Driver for the Conexant (formerly Rockwell) HSF Softmodem family." MAINTAINER="orphaned@sliatz.org" DEPENDS="module-init-tools perl usbutils" -BUILD_DEPENDS="cpio linux lzma" +BUILD_DEPENDS="cpio linux lzma linux-module-headers" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://www.linuxant.com/drivers" WGET_URL="http://www.linuxant.com/drivers/hsf/full/archive/$SOURCE-$VERSION/$TARBALL" @@ -16,14 +16,9 @@ compile_rules() { KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` - [ -d $WOK/linux/taz ] || tazwok cook linux cd $src echo "Apply $file..." patch -p1 < ../stuff/$SOURCE-$VERSION.diff || exit 1 - # set /usr/src/linux - echo "Set fake /usr/src/linux dir..." - [ -e /usr/src ] && SRCDIR=yes || mkdir -p /usr/src - ln -s $WOK/linux/linux-$KERNEL_VERSION /usr/src/linux grep -rl 'uname -r' . | xargs sed -i "s/uname -r/echo $KERNEL_VERSION/g" # build driver echo "Build driver" @@ -31,10 +26,6 @@ # build kernel modules echo "Running $PWD/_pkg/usr/sbin/hsfconfig -ka" $PWD/_pkg/usr/sbin/hsfconfig -ka - # reset /usr/src/linux - echo "Clean files" - rm /usr/src/linux - [ "$SRCDIR" = "yes" ] && rmdir /usr/src echo "done." [ -d /lib/modules/$KERNEL_VERSION/extra ] }