wok-6.x diff mISDN/receipt @ rev 1181

Add mISDN (isdn drivers)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 03 06:28:08 2008 +0000 (2008-08-03)
parents
children c343c644ab92
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mISDN/receipt	Sun Aug 03 06:28:08 2008 +0000
     1.3 @@ -0,0 +1,56 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mISDN"
     1.7 +VERSION="1_1_7_2"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="beronet isdn drivers."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://www.misdn.org/"
    1.13 +WGET_URL="${WEB_SITE}downloads/releases/$TARBALL"
    1.14 +BUILD_DEPENDS="linux"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	if [ ! -d ../linux/taz ]; then
    1.20 +		tazwok cook linux
    1.21 +	fi
    1.22 +	KVERS=$(grep "kernel version" ../linux/linux-*/.config)
    1.23 +	KVERS=${KVERS##* }
    1.24 +	KSRC=$(cd ../linux/linux-* ; pwd)
    1.25 +	cd $src
    1.26 +	patch -p1 < ../stuff/Makefile.u || return 1
    1.27 +	patch -p1 < ../stuff/${KVERS%.*}.u || return 1
    1.28 +	cp -a include/linux drivers/isdn/hardware/mISDN/
    1.29 +	ln -s . drivers/isdn/hardware/mISDN/linux/linux
    1.30 +	for i in $(cd include; ls linux/*); do
    1.31 +		sed -i "s,.$i.,\"$i\"," drivers/isdn/hardware/mISDN/*.? \
    1.32 +		drivers/isdn/hardware/mISDN/linux/*.?
    1.33 +	done
    1.34 +	sed -i "s,MISDNVERSION,\"$(cat VERSION)\"," drivers/isdn/hardware/mISDN/*.c
    1.35 +	make KVERS=$KVERS LINUX=$KSRC KBUILD_NOPEDANTIC=1 DESTDIR=$PWD/_pkg install
    1.36 +}
    1.37 +
    1.38 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 +genpkg_rules()
    1.40 +{
    1.41 +	KVERS=$(grep "kernel version" ../linux/linux-*/.config)
    1.42 +	EXTRAVERSION=_${KVERS##* }
    1.43 +	mkdir -p $fs/usr $fs/etc
    1.44 +	( cd $_pkg ; tar cf - lib/modules/*/extra ) | ( cd $fs ; tar xf - )
    1.45 +	cp -a $_pkg/usr/* $fs/usr
    1.46 +	cp -a $_pkg/etc/* $fs/etc
    1.47 +}
    1.48 +
    1.49 +# Post install/remove commands for Tazpkg.
    1.50 +post_install()
    1.51 +{
    1.52 +	depmod -a -b "$1/"
    1.53 +}
    1.54 +
    1.55 +post_remove()
    1.56 +{
    1.57 +	depmod -a
    1.58 +}
    1.59 +