wok-4.x rev 789

Add udev-dev and compile/install vol_id
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 15 20:39:28 2008 +0200 (2008-05-15)
parents 0f77a679d5cb
children b5d96006ea44
files udev-dev/receipt udev/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/udev-dev/receipt	Thu May 15 20:39:28 2008 +0200
     1.3 @@ -0,0 +1,23 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="udev-dev"
     1.7 +VERSION="121"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Udev devel file (volume_id)."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +WANTED="udev"
    1.12 +WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/lib $fs/usr/lib/pkgconfig $fs/usr/include
    1.18 +
    1.19 +	# Extra
    1.20 +	cp -a $src/extras/volume_id/lib/libvolume_id.a \
    1.21 +		$fs/lib
    1.22 +	cp -a $src/extras/volume_id/lib/libvolume_id.pc \
    1.23 +		$fs/usr/lib/pkgconfig
    1.24 +	cp -a $src/extras/volume_id/lib/libvolume_id.h \
    1.25 +		$fs/usr/include
    1.26 +}
     2.1 --- a/udev/receipt	Tue May 13 15:07:17 2008 +0000
     2.2 +++ b/udev/receipt	Thu May 15 20:39:28 2008 +0200
     2.3 @@ -13,28 +13,37 @@
     2.4  compile_rules()
     2.5  {
     2.6  	cd $src
     2.7 -	make
     2.8 +	make EXTRAS="extras/firmware extras/scsi_id extras/volume_id \
     2.9 +		extras/ata_id extras/usb_id extras/cdrom_id"
    2.10  }
    2.11  
    2.12  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.13  genpkg_rules()
    2.14  {
    2.15  	mkdir -p $fs/sbin $fs/etc/udev $fs/lib/udev $fs/lib/firmware
    2.16 -	
    2.17 +
    2.18  	# /sbin
    2.19  	cp -a $src/udevd $fs/sbin
    2.20  	cp -a $src/udevadm $fs/sbin
    2.21 -	
    2.22 +
    2.23  	# Config files.
    2.24  	cp stuff/udev.conf $fs/etc/udev
    2.25  	cp -a $src/etc/udev/rules.d $fs/etc/udev
    2.26 -	cp -a $src/extras/firmware/firmware.sh $fs/lib/udev
    2.27  	cp stuff/90-permissions.rules $fs/etc/udev/rules.d
    2.28  	cp -a $src/etc/udev/packages/40-alsa.rules $fs/etc/udev/rules.d
    2.29 +
    2.30 +	# Extra
    2.31 +	cp -a $src/extras/firmware/firmware.sh $fs/lib/udev
    2.32 +	cp -a $src/extras/volume_id/vol_id $fs/lib/udev
    2.33 +	cp -a $src/extras/volume_id/lib/*.so* $fs/lib
    2.34 +	#cp -a $src/extras/cdrom_id/cdrom_id $fs/lib/udev
    2.35 +	#cp -a $src/extras/ata_id/ata_id $fs/lib/udev
    2.36 +	#cp -a $src/extras/scsi_id/scsi_id $fs/lib/udev
    2.37 +	#cp -a $src/extras/usb_id/usb_id $fs/lib/udev
    2.38  }
    2.39  
    2.40  clean_wok()
    2.41  {
    2.42 -	rm device_*
    2.43 -	rm whitespace_*
    2.44 +	rm -f device_*
    2.45 +	rm -f whitespace_*
    2.46  }