wok view mISDN/receipt @ rev 1992

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