wok-current annotate mISDN/receipt @ rev 2936
Add: printoxx (print plugin for fotoxx)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu May 07 09:43:12 2009 +0000 (2009-05-07) |
parents | c1610baa4cf4 |
children |
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@2926 | 11 DEPENDS="linux" |
pascal@1181 | 12 BUILD_DEPENDS="linux" |
pascal@1181 | 13 |
pascal@1181 | 14 # Rules to configure and make the package. |
pascal@1181 | 15 compile_rules() |
pascal@1181 | 16 { |
pascal@1455 | 17 if [ ! -d $WOK/linux/taz ]; then |
pascal@1181 | 18 tazwok cook linux |
pascal@1181 | 19 fi |
pascal@2062 | 20 KVERS=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config) |
pascal@1181 | 21 KVERS=${KVERS##* } |
pascal@2062 | 22 KSRC=$(cd $WOK/linux/$(ls $WOK/linux/taz) ; pwd) |
pascal@1181 | 23 cd $src |
pascal@1442 | 24 while read file; do |
pascal@1442 | 25 [ -f done.$file ] && continue |
pascal@1442 | 26 patch -p1 < ../stuff/$file || return 1 |
pascal@1442 | 27 touch done.$file |
pascal@1442 | 28 done <<EOT |
pascal@1442 | 29 Makefile.u |
pascal@1442 | 30 ${KVERS%.*}.u |
pascal@1442 | 31 EOT |
pascal@1181 | 32 cp -a include/linux drivers/isdn/hardware/mISDN/ |
pascal@1181 | 33 ln -s . drivers/isdn/hardware/mISDN/linux/linux |
pascal@1181 | 34 for i in $(cd include; ls linux/*); do |
pascal@1181 | 35 sed -i "s,.$i.,\"$i\"," drivers/isdn/hardware/mISDN/*.? \ |
pascal@1181 | 36 drivers/isdn/hardware/mISDN/linux/*.? |
pascal@1181 | 37 done |
pascal@1181 | 38 sed -i "s,MISDNVERSION,\"$(cat VERSION)\"," drivers/isdn/hardware/mISDN/*.c |
pascal@1455 | 39 sed -i 's/depmod/echo/' Makefile |
pascal@1181 | 40 make KVERS=$KVERS LINUX=$KSRC KBUILD_NOPEDANTIC=1 DESTDIR=$PWD/_pkg install |
pascal@1181 | 41 } |
pascal@1181 | 42 |
pascal@1181 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1181 | 44 genpkg_rules() |
pascal@1181 | 45 { |
pascal@2062 | 46 KVERS=$(grep "kernel version" ../linux/$(ls ../linux/taz)/.config) |
pascal@1181 | 47 EXTRAVERSION=_${KVERS##* } |
pascal@1181 | 48 mkdir -p $fs/usr $fs/etc |
pascal@1181 | 49 ( cd $_pkg ; tar cf - lib/modules/*/extra ) | ( cd $fs ; tar xf - ) |
pascal@1181 | 50 cp -a $_pkg/usr/* $fs/usr |
pascal@1181 | 51 cp -a $_pkg/etc/* $fs/etc |
pascal@1181 | 52 } |
pascal@1181 | 53 |
pascal@1181 | 54 # Post install/remove commands for Tazpkg. |
pascal@1181 | 55 post_install() |
pascal@1181 | 56 { |
pascal@2926 | 57 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@1181 | 58 } |
pascal@1181 | 59 |
pascal@1181 | 60 post_remove() |
pascal@1181 | 61 { |
pascal@1181 | 62 depmod -a |
pascal@1181 | 63 } |
pascal@1181 | 64 |