wok-stable view udev/receipt @ rev 2297
Up: udev (138)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Feb 22 22:45:38 2009 +0100 (2009-02-22) |
parents | 9229b32500c7 |
children | 5cd5eb008923 |
line source
1 # SliTaz package receipt.
3 PACKAGE="udev"
4 VERSION="138"
5 BUILD_WARNING="Install new udev package and rebuild hal"
6 CATEGORY="base-system"
7 SHORT_DESC="Udev creat automaticly right devices in /dev."
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
11 WGET_URL="http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure \
18 --prefix=/usr \
19 --exec-prefix="" \
20 --sysconfdir=/etc \
21 --enable-static \
22 $CONFIGURE_ARGS &&
23 make EXTRAS="extras/firmware extras/scsi_id extras/volume_id \
24 extras/ata_id extras/usb_id extras/cdrom_id" &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/lib/firmware $fs/etc/udev
33 cp -a $_pkg/sbin $fs
34 cp -a $_pkg/etc $fs
35 cp -a $_pkg/lib $fs
36 for i in libudev.so libvolume_id.so; do
37 [ -f $fs/lib/$i ] || ( cd $fs/lib ; ln -s $i.*.* $i)
38 done
40 # Copy rules files to udev conf dir
41 mv $fs/lib/udev/rules.d $fs/etc/udev
42 cp stuff/udev.conf $fs/etc/udev
43 cp stuff/90-permissions.rules $fs/etc/udev/rules.d
44 cp -a $src/rules/packages/40-alsa.rules $fs/etc/udev/rules.d
46 # Fix pcmciautils path
47 sed -i s'|/lib/udev/pcmcia-check-broken-cis|/sbin/pcmcia-check-broken-cis' \
48 $fs/etc/udev/rules.d/60-pcmcia.rules
49 sed -i s'|/lib/udev/pcmcia-socket-startup|/sbin/pcmcia-socket-startup|' \
50 $fs/etc/udev/rules.d/60-pcmcia.rules
51 # Fix permissions
52 chmod +x $fs/lib/udev/write*
53 }
55 post_install()
56 {
57 local root
58 root=$1
59 # Remove old rules
60 rm -rf $1/lib/udev/rules.d 2>/dev/null
61 }