wok view 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 |
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 ../linux/taz ]; then
17 tazwok cook linux
18 fi
19 KVERS=$(grep "kernel version" ../linux/linux-*/.config)
20 KVERS=${KVERS##* }
21 KSRC=$(cd ../linux/linux-* ; pwd)
22 cd $src
23 patch -p1 < ../stuff/Makefile.u || return 1
24 patch -p1 < ../stuff/${KVERS%.*}.u || return 1
25 cp -a include/linux drivers/isdn/hardware/mISDN/
26 ln -s . drivers/isdn/hardware/mISDN/linux/linux
27 for i in $(cd include; ls linux/*); do
28 sed -i "s,.$i.,\"$i\"," drivers/isdn/hardware/mISDN/*.? \
29 drivers/isdn/hardware/mISDN/linux/*.?
30 done
31 sed -i "s,MISDNVERSION,\"$(cat VERSION)\"," drivers/isdn/hardware/mISDN/*.c
32 make KVERS=$KVERS LINUX=$KSRC KBUILD_NOPEDANTIC=1 DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 KVERS=$(grep "kernel version" ../linux/linux-*/.config)
39 EXTRAVERSION=_${KVERS##* }
40 mkdir -p $fs/usr $fs/etc
41 ( cd $_pkg ; tar cf - lib/modules/*/extra ) | ( cd $fs ; tar xf - )
42 cp -a $_pkg/usr/* $fs/usr
43 cp -a $_pkg/etc/* $fs/etc
44 }
46 # Post install/remove commands for Tazpkg.
47 post_install()
48 {
49 depmod -a -b "$1/" $EXTRAVERSION-slitaz
50 }
52 post_remove()
53 {
54 depmod -a
55 }