wok-next annotate udev/receipt @ rev 983
busybox: do not wipe out nameserver during install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 01 21:15:12 2008 +0000 (2008-07-01) |
parents | 7852a7209fe4 |
children | c261333596f2 |
rev | line source |
---|---|
pankso@5 | 1 # SliTaz package receipt. |
pankso@5 | 2 |
pankso@5 | 3 PACKAGE="udev" |
pankso@902 | 4 VERSION="124" |
pankso@210 | 5 CATEGORY="base-system" |
pankso@5 | 6 SHORT_DESC="Udev creat automaticly right devices in /dev." |
pankso@5 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@5 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@5 | 9 WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" |
pankso@5 | 10 WGET_URL="http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/$TARBALL" |
pankso@5 | 11 |
pankso@5 | 12 # Rules to configure and make the package. |
pankso@5 | 13 compile_rules() |
pankso@5 | 14 { |
pankso@5 | 15 cd $src |
pankso@789 | 16 make EXTRAS="extras/firmware extras/scsi_id extras/volume_id \ |
pankso@789 | 17 extras/ata_id extras/usb_id extras/cdrom_id" |
pankso@5 | 18 } |
pankso@5 | 19 |
pankso@5 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 21 genpkg_rules() |
pankso@5 | 22 { |
erjo@758 | 23 mkdir -p $fs/sbin $fs/etc/udev $fs/lib/udev $fs/lib/firmware |
pankso@789 | 24 |
pankso@5 | 25 # /sbin |
pankso@5 | 26 cp -a $src/udevd $fs/sbin |
pankso@608 | 27 cp -a $src/udevadm $fs/sbin |
pankso@789 | 28 |
pankso@5 | 29 # Config files. |
pankso@5 | 30 cp stuff/udev.conf $fs/etc/udev |
pankso@5 | 31 cp -a $src/etc/udev/rules.d $fs/etc/udev |
pankso@5 | 32 cp stuff/90-permissions.rules $fs/etc/udev/rules.d |
pankso@5 | 33 cp -a $src/etc/udev/packages/40-alsa.rules $fs/etc/udev/rules.d |
pankso@789 | 34 |
pankso@789 | 35 # Extra |
pankso@789 | 36 cp -a $src/extras/firmware/firmware.sh $fs/lib/udev |
pankso@789 | 37 cp -a $src/extras/volume_id/vol_id $fs/lib/udev |
pankso@789 | 38 cp -a $src/extras/volume_id/lib/*.so* $fs/lib |
pankso@789 | 39 #cp -a $src/extras/cdrom_id/cdrom_id $fs/lib/udev |
pankso@789 | 40 #cp -a $src/extras/ata_id/ata_id $fs/lib/udev |
pankso@789 | 41 #cp -a $src/extras/scsi_id/scsi_id $fs/lib/udev |
pankso@789 | 42 #cp -a $src/extras/usb_id/usb_id $fs/lib/udev |
pankso@5 | 43 } |
pankso@5 | 44 |
pankso@608 | 45 clean_wok() |
pankso@608 | 46 { |
pankso@789 | 47 rm -f device_* |
pankso@789 | 48 rm -f whitespace_* |
pankso@608 | 49 } |