wok-stable diff udev/receipt @ rev 2085

Up + fix udev (137) put all rules in /etc/udev according to udev.conf
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jan 27 14:28:03 2009 +0100 (2009-01-27)
parents 8535947fa8a6
children f5075e7ed779
line diff
     1.1 --- a/udev/receipt	Tue Jan 06 13:01:01 2009 +0100
     1.2 +++ b/udev/receipt	Tue Jan 27 14:28:03 2009 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="udev"
     1.7 -VERSION="135"
     1.8 +VERSION="137"
     1.9  BUILD_WARNING="Install new udev package and rebuild hal"
    1.10  CATEGORY="base-system"
    1.11  SHORT_DESC="Udev creat automaticly right devices in /dev."
    1.12 @@ -28,7 +28,7 @@
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
    1.16 -	mkdir -p $fs/lib/firmware $fs/etc/udev/rules.d
    1.17 +	mkdir -p $fs/lib/firmware $fs/etc/udev
    1.18  
    1.19  	cp -a $_pkg/sbin $fs
    1.20  	cp -a $_pkg/etc $fs
    1.21 @@ -38,11 +38,16 @@
    1.22  	done
    1.23  
    1.24  	# Copy rules files to udev conf dir
    1.25 -	cp -a $src/rules/rules.d/* $fs/etc/udev/rules.d
    1.26 -
    1.27 -	# Default config files in /lib/udev/rules.d and custom on in
    1.28 -	# /etc/udev/rules.d.
    1.29 +	mv $fs/lib/udev/rules.d $fs/etc/udev
    1.30  	cp stuff/udev.conf $fs/etc/udev
    1.31  	cp stuff/90-permissions.rules $fs/etc/udev/rules.d
    1.32  	cp -a $src/rules/packages/40-alsa.rules $fs/etc/udev/rules.d
    1.33  }
    1.34 +
    1.35 +post_install()
    1.36 +{
    1.37 +	local root
    1.38 +	root=$1
    1.39 +	# Remove old rules
    1.40 +	rm -rf $1/lib/udev/rules.d 2>/dev/null
    1.41 +}