wok-6.x 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 09218a1de3de
children aa0dad286215
files udev-dev/receipt udev/receipt
line diff
     1.1 --- a/udev-dev/receipt	Tue Jan 27 10:30:17 2009 +0000
     1.2 +++ b/udev-dev/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-dev"
     1.7 -VERSION="135"
     1.8 +VERSION="137"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Udev devel file (volume_id)."
    1.11  MAINTAINER="pankso@slitaz.org"
     2.1 --- a/udev/receipt	Tue Jan 27 10:30:17 2009 +0000
     2.2 +++ b/udev/receipt	Tue Jan 27 14:28:03 2009 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="udev"
     2.7 -VERSION="135"
     2.8 +VERSION="137"
     2.9  BUILD_WARNING="Install new udev package and rebuild hal"
    2.10  CATEGORY="base-system"
    2.11  SHORT_DESC="Udev creat automaticly right devices in /dev."
    2.12 @@ -28,7 +28,7 @@
    2.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.14  genpkg_rules()
    2.15  {
    2.16 -	mkdir -p $fs/lib/firmware $fs/etc/udev/rules.d
    2.17 +	mkdir -p $fs/lib/firmware $fs/etc/udev
    2.18  
    2.19  	cp -a $_pkg/sbin $fs
    2.20  	cp -a $_pkg/etc $fs
    2.21 @@ -38,11 +38,16 @@
    2.22  	done
    2.23  
    2.24  	# Copy rules files to udev conf dir
    2.25 -	cp -a $src/rules/rules.d/* $fs/etc/udev/rules.d
    2.26 -
    2.27 -	# Default config files in /lib/udev/rules.d and custom on in
    2.28 -	# /etc/udev/rules.d.
    2.29 +	mv $fs/lib/udev/rules.d $fs/etc/udev
    2.30  	cp stuff/udev.conf $fs/etc/udev
    2.31  	cp stuff/90-permissions.rules $fs/etc/udev/rules.d
    2.32  	cp -a $src/rules/packages/40-alsa.rules $fs/etc/udev/rules.d
    2.33  }
    2.34 +
    2.35 +post_install()
    2.36 +{
    2.37 +	local root
    2.38 +	root=$1
    2.39 +	# Remove old rules
    2.40 +	rm -rf $1/lib/udev/rules.d 2>/dev/null
    2.41 +}