wok-4.x annotate mISDN/receipt @ rev 2487
e*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 15 21:45:47 2009 +0000 (2009-03-15) |
parents | 0d30d3d18dcb |
children | f306d126580e |
rev | line source |
---|---|
pascal@1181 | 1 # SliTaz package receipt. |
pascal@1181 | 2 |
pascal@1181 | 3 PACKAGE="mISDN" |
pascal@1181 | 4 VERSION="1_1_7_2" |
pascal@1181 | 5 CATEGORY="system-tools" |
pascal@1181 | 6 SHORT_DESC="beronet isdn drivers." |
pascal@1181 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1181 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1181 | 9 WEB_SITE="http://www.misdn.org/" |
pascal@1181 | 10 WGET_URL="${WEB_SITE}downloads/releases/$TARBALL" |
pascal@1181 | 11 BUILD_DEPENDS="linux" |
pascal@1181 | 12 |
pascal@1181 | 13 # Rules to configure and make the package. |
pascal@1181 | 14 compile_rules() |
pascal@1181 | 15 { |
pascal@1455 | 16 if [ ! -d $WOK/linux/taz ]; then |
pascal@1181 | 17 tazwok cook linux |
pascal@1181 | 18 fi |
pascal@2062 | 19 KVERS=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config) |
pascal@1181 | 20 KVERS=${KVERS##* } |
pascal@2062 | 21 KSRC=$(cd $WOK/linux/$(ls $WOK/linux/taz) ; pwd) |
pascal@1181 | 22 cd $src |
pascal@1442 | 23 while read file; do |
pascal@1442 | 24 [ -f done.$file ] && continue |
pascal@1442 | 25 patch -p1 < ../stuff/$file || return 1 |
pascal@1442 | 26 touch done.$file |
pascal@1442 | 27 done <<EOT |
pascal@1442 | 28 Makefile.u |
pascal@1442 | 29 ${KVERS%.*}.u |
pascal@1442 | 30 EOT |
pascal@1181 | 31 cp -a include/linux drivers/isdn/hardware/mISDN/ |
pascal@1181 | 32 ln -s . drivers/isdn/hardware/mISDN/linux/linux |
pascal@1181 | 33 for i in $(cd include; ls linux/*); do |
pascal@1181 | 34 sed -i "s,.$i.,\"$i\"," drivers/isdn/hardware/mISDN/*.? \ |
pascal@1181 | 35 drivers/isdn/hardware/mISDN/linux/*.? |
pascal@1181 | 36 done |
pascal@1181 | 37 sed -i "s,MISDNVERSION,\"$(cat VERSION)\"," drivers/isdn/hardware/mISDN/*.c |
pascal@1455 | 38 sed -i 's/depmod/echo/' Makefile |
pascal@1181 | 39 make KVERS=$KVERS LINUX=$KSRC KBUILD_NOPEDANTIC=1 DESTDIR=$PWD/_pkg install |
pascal@1181 | 40 } |
pascal@1181 | 41 |
pascal@1181 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1181 | 43 genpkg_rules() |
pascal@1181 | 44 { |
pascal@2062 | 45 KVERS=$(grep "kernel version" ../linux/$(ls ../linux/taz)/.config) |
pascal@1181 | 46 EXTRAVERSION=_${KVERS##* } |
pascal@1181 | 47 mkdir -p $fs/usr $fs/etc |
pascal@1181 | 48 ( cd $_pkg ; tar cf - lib/modules/*/extra ) | ( cd $fs ; tar xf - ) |
pascal@1181 | 49 cp -a $_pkg/usr/* $fs/usr |
pascal@1181 | 50 cp -a $_pkg/etc/* $fs/etc |
pascal@1181 | 51 } |
pascal@1181 | 52 |
pascal@1181 | 53 # Post install/remove commands for Tazpkg. |
pascal@1181 | 54 post_install() |
pascal@1181 | 55 { |
pascal@1455 | 56 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz |
pascal@1181 | 57 } |
pascal@1181 | 58 |
pascal@1181 | 59 post_remove() |
pascal@1181 | 60 { |
pascal@1181 | 61 depmod -a |
pascal@1181 | 62 } |
pascal@1181 | 63 |