wok view mISDN/receipt @ rev 1255
Add netatalk
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 13 09:43:42 2008 +0000 (2008-08-13) |
parents | |
children | c343c644ab92 |
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/"
50 }
52 post_remove()
53 {
54 depmod -a
55 }