wok-6.x diff udev/receipt @ rev 3155
Up: pcre (7.9)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 24 16:34:14 2009 +0200 (2009-05-24) |
parents | 50fc996bff5f |
children | 4d3d49a8f050 |
line diff
1.1 --- a/udev/receipt Wed Apr 22 18:28:29 2009 +0200 1.2 +++ b/udev/receipt Sun May 24 16:34:14 2009 +0200 1.3 @@ -1,10 +1,12 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="udev" 1.7 -VERSION="141" 1.8 +VERSION="142" 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 +DEPENDS="util-linux-ng-blkid" 1.13 +BUILD_DEPENDS="$DEPENDS util-linux-ng-blkid-dev" 1.14 MAINTAINER="pankso@slitaz.org" 1.15 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" 1.17 @@ -20,37 +22,36 @@ 1.18 --sysconfdir=/etc \ 1.19 --enable-static \ 1.20 $CONFIGURE_ARGS && 1.21 - make EXTRAS="extras/firmware extras/scsi_id extras/volume_id \ 1.22 - extras/ata_id extras/usb_id extras/cdrom_id" && 1.23 make DESTDIR=$PWD/_pkg install 1.24 } 1.25 1.26 # Rules to gen a SliTaz package suitable for Tazpkg. 1.27 genpkg_rules() 1.28 { 1.29 - mkdir -p $fs/lib/firmware $fs/etc/udev 1.30 - 1.31 - cp -a $_pkg/sbin $fs 1.32 - cp -a $_pkg/etc $fs 1.33 - cp -a $_pkg/lib $fs 1.34 - for i in libudev.so libvolume_id.so; do 1.35 - [ -f $fs/lib/$i ] || ( cd $fs/lib ; ln -s $i.*.* $i) 1.36 + mkdir -p $fs/lib/firmware $fs/etc/udev $fs/usr/lib 1.37 + for dir in sbin etc lib 1.38 + do 1.39 + cp -a $_pkg/$dir $fs 1.40 done 1.41 + cp -a $_pkg/usr/lib/*.so $fs/usr/lib 1.42 1.43 # Copy rules files to udev conf dir 1.44 mv $fs/lib/udev/rules.d $fs/etc/udev 1.45 cp stuff/udev.conf $fs/etc/udev 1.46 cp stuff/90-permissions.rules $fs/etc/udev/rules.d 1.47 - cp -a $src/rules/packages/40-alsa.rules $fs/etc/udev/rules.d 1.48 - 1.49 + cp $src/rules/packages/40-alsa.rules $fs/etc/udev/rules.d 1.50 + cp $src/rules/packages/40-zaptel.rules $fs/etc/udev/rules.d 1.51 # Fix permissions 1.52 - chmod +x $fs/lib/udev/write* 1.53 + chmod +x $fs/lib/udev/* 1.54 + chown -R root.root $fs 1.55 } 1.56 1.57 -post_install() 1.58 +pre_install() 1.59 { 1.60 - local root 1.61 - root=$1 1.62 - # Remove old rules 1.63 - rm -rf $1/lib/udev/rules.d 2>/dev/null 1.64 + # Remove old rules and libs 1.65 + rm -rf $1/lib/udev/rules.d 1.66 + rm -rf $1/lib/udev/vol_id 1.67 + rm -f $1/lib/libvolume_id* 1.68 + rm -f $1/lib/libudev.so.1.0 1.69 + rm -f $1/lib/libudev.so.2.0 1.70 }