wok annotate mISDN/receipt @ rev 1316

cpulimit: fix short description
author Paul Issott <paul@slitaz.org>
date Wed Aug 27 21:10:57 2008 +0000 (2008-08-27)
parents 86727cae3a5d
children e64f8e87ea6d
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@1181 16 if [ ! -d ../linux/taz ]; then
pascal@1181 17 tazwok cook linux
pascal@1181 18 fi
pascal@1181 19 KVERS=$(grep "kernel version" ../linux/linux-*/.config)
pascal@1181 20 KVERS=${KVERS##* }
pascal@1181 21 KSRC=$(cd ../linux/linux-* ; pwd)
pascal@1181 22 cd $src
pascal@1181 23 patch -p1 < ../stuff/Makefile.u || return 1
pascal@1181 24 patch -p1 < ../stuff/${KVERS%.*}.u || return 1
pascal@1181 25 cp -a include/linux drivers/isdn/hardware/mISDN/
pascal@1181 26 ln -s . drivers/isdn/hardware/mISDN/linux/linux
pascal@1181 27 for i in $(cd include; ls linux/*); do
pascal@1181 28 sed -i "s,.$i.,\"$i\"," drivers/isdn/hardware/mISDN/*.? \
pascal@1181 29 drivers/isdn/hardware/mISDN/linux/*.?
pascal@1181 30 done
pascal@1181 31 sed -i "s,MISDNVERSION,\"$(cat VERSION)\"," drivers/isdn/hardware/mISDN/*.c
pascal@1181 32 make KVERS=$KVERS LINUX=$KSRC KBUILD_NOPEDANTIC=1 DESTDIR=$PWD/_pkg install
pascal@1181 33 }
pascal@1181 34
pascal@1181 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1181 36 genpkg_rules()
pascal@1181 37 {
pascal@1181 38 KVERS=$(grep "kernel version" ../linux/linux-*/.config)
pascal@1181 39 EXTRAVERSION=_${KVERS##* }
pascal@1181 40 mkdir -p $fs/usr $fs/etc
pascal@1181 41 ( cd $_pkg ; tar cf - lib/modules/*/extra ) | ( cd $fs ; tar xf - )
pascal@1181 42 cp -a $_pkg/usr/* $fs/usr
pascal@1181 43 cp -a $_pkg/etc/* $fs/etc
pascal@1181 44 }
pascal@1181 45
pascal@1181 46 # Post install/remove commands for Tazpkg.
pascal@1181 47 post_install()
pascal@1181 48 {
pascal@1286 49 depmod -a -b "$1/" $EXTRAVERSION-slitaz
pascal@1181 50 }
pascal@1181 51
pascal@1181 52 post_remove()
pascal@1181 53 {
pascal@1181 54 depmod -a
pascal@1181 55 }
pascal@1181 56