wok-6.x rev 4103

Remove zaptel (now dahdi)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 19 17:16:53 2009 +0200 (2009-09-19)
parents f198af80a1ab
children 6d83f231517e
files zaptel-dev/receipt zaptel-perl/receipt zaptel/receipt
line diff
     1.1 --- a/zaptel-dev/receipt	Sat Sep 19 17:14:58 2009 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,30 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="zaptel-dev"
     1.7 -VERSION="bristuff"
     1.8 -CATEGORY="misc"
     1.9 -SHORT_DESC="Zapata Telephony Interface Driver devel files."
    1.10 -MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -WEB_SITE="http://www.digium.com/"
    1.12 -WANTED="bristuff"
    1.13 -
    1.14 -# Extract VERSION from WANTED package source
    1.15 -get_version()
    1.16 -{
    1.17 -        eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh)
    1.18 -	VERSION=$WANTED-$ZAP_VER
    1.19 -}
    1.20 -
    1.21 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.22 -genpkg_rules()
    1.23 -{
    1.24 -	get_version
    1.25 -	[ -d taz/$PACKAGE-$WANTED/fs ] && \
    1.26 -		mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
    1.27 -	_pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
    1.28 -	while read file; do
    1.29 -		dir=$(dirname $file)
    1.30 -		[ -d $fs$dir ] || mkdir -p $fs$dir
    1.31 -		eval cp -a "$_pkg$file" $fs$dir
    1.32 -	done < $_pkg/../$PACKAGE.files-list
    1.33 -}
     2.1 --- a/zaptel-perl/receipt	Sat Sep 19 17:14:58 2009 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,31 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="zaptel-perl"
     2.7 -VERSION="bristuff"
     2.8 -CATEGORY="misc"
     2.9 -SHORT_DESC="Zapata Telephony Interface Driver, PERL modules."
    2.10 -MAINTAINER="pascal.bellard@slitaz.org"
    2.11 -WEB_SITE="http://www.digium.com/"
    2.12 -DEPENDS="zaptel"
    2.13 -WANTED="bristuff"
    2.14 -
    2.15 -# Extract VERSION from WANTED package source
    2.16 -get_version()
    2.17 -{
    2.18 -        eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh)
    2.19 -	VERSION=$WANTED-$ZAP_VER
    2.20 -}
    2.21 -
    2.22 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.23 -genpkg_rules()
    2.24 -{
    2.25 -	get_version
    2.26 -	[ -d taz/$PACKAGE-$WANTED/fs ] && \
    2.27 -		mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
    2.28 -	_pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
    2.29 -	while read file; do
    2.30 -		dir=$(dirname $file)
    2.31 -		[ -d $fs$dir ] || mkdir -p $fs$dir
    2.32 -		eval cp -a "$_pkg$file" $fs$dir
    2.33 -	done < $_pkg/../$PACKAGE.files-list
    2.34 -}
     3.1 --- a/zaptel/receipt	Sat Sep 19 17:14:58 2009 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,55 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="zaptel"
     3.7 -VERSION="bristuff"
     3.8 -CATEGORY="misc"
     3.9 -SHORT_DESC="Zapata Telephony Interface Driver."
    3.10 -MAINTAINER="pascal.bellard@slitaz.org"
    3.11 -WEB_SITE="http://www.digium.com/"
    3.12 -DEPENDS="libusb newt linux"
    3.13 -WANTED="bristuff"
    3.14 -CONFIG_FILES="/etc/zaptel.conf"
    3.15 -
    3.16 -# Extract VERSION from WANTED package source
    3.17 -get_version()
    3.18 -{
    3.19 -        eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh)
    3.20 -	VERSION=$WANTED-$ZAP_VER
    3.21 -}
    3.22 -
    3.23 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.24 -genpkg_rules()
    3.25 -{
    3.26 -	mkdir -p $fs/etc/udev/rules.d
    3.27 -	get_version
    3.28 -	[ -d taz/$PACKAGE-$WANTED/fs ] && \
    3.29 -		mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
    3.30 -	kver=$(grep "kernel version" ../linux/$(ls ../linux/taz)/.config)
    3.31 -	kver=${kver##* }
    3.32 -	EXTRAVERSION=_$kver
    3.33 -	_pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
    3.34 -	while read file; do
    3.35 -		dir=$(dirname $file)
    3.36 -		[ -d $fs$dir ] || mkdir -p $fs$dir
    3.37 -		eval cp -a "$_pkg$file" $fs$dir
    3.38 -	done < $_pkg/../$PACKAGE.files-list
    3.39 -	rm -f $fs/lib/modules/*/modules.*
    3.40 -	src=$(dirname $_pkg)
    3.41 -	cp $src/zaptel/build_tools/genudevrules $fs
    3.42 -	sed -i 's/^ver/ver=99 # ver/' $fs/genudevrules
    3.43 -	$fs/genudevrules | sed 's/asterisk/root/g' > $fs/etc/udev/rules.d/zaptel.rules
    3.44 -	rm -f $fs/genudevrules
    3.45 -	
    3.46 -}
    3.47 -
    3.48 -# Post install/remove commands for Tazpkg.
    3.49 -post_install()
    3.50 -{
    3.51 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    3.52 -	tazpkg reconfigure udev --root=$1
    3.53 -}
    3.54 -
    3.55 -post_remove()
    3.56 -{
    3.57 -	depmod -a
    3.58 -}