wok-stable rev 1780

zaptel: add udev rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 29 08:56:18 2008 +0000 (2008-11-29)
parents 82beb3f42c4b
children dc930a3898b9
files zaptel/receipt
line diff
     1.1 --- a/zaptel/receipt	Fri Nov 28 22:07:35 2008 +0000
     1.2 +++ b/zaptel/receipt	Sat Nov 29 08:56:18 2008 +0000
     1.3 @@ -19,6 +19,7 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 +	mkdir -p $fs/etc/udev/rules.d
     1.8  	get_version
     1.9  	[ -d taz/$PACKAGE-$WANTED/fs ] && \
    1.10  		mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
    1.11 @@ -32,6 +33,12 @@
    1.12  		eval cp -a "$_pkg$file" $fs$dir
    1.13  	done < $_pkg/../$PACKAGE.files-list
    1.14  	rm -f $fs/lib/modules/*/modules.*
    1.15 +	src=$(dirname $_pkg)
    1.16 +	cp $src/zaptel/build_tools/genudevrules $fs
    1.17 +	sed -i 's/^ver/ver=99 # ver/' $fs/genudevrules
    1.18 +	$fs/genudevrules | sed 's/asterisk/root/g' > $fs/etc/udev/rules.d/zaptel.rules
    1.19 +	rm -f $fs/genudevrules
    1.20 +	
    1.21  }
    1.22  
    1.23  # Post install/remove commands for Tazpkg.