wok-next rev 20163

hal: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 01 17:42:43 2017 +0100 (2017-11-01)
parents cbcc3c622705
children 9dc05d12ebef
files hal-dev/receipt hal-extra/receipt hal-scripts/receipt hal/receipt
line diff
     1.1 --- a/hal-dev/receipt	Wed Nov 01 17:34:03 2017 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,21 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="hal-dev"
     1.7 -VERSION="0.5.14"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="Hal devel files."
    1.10 -WANTED="hal"
    1.11 -MAINTAINER="pankso@slitaz.org"
    1.12 -LICENSE="GPL2"
    1.13 -WEB_SITE="http://www.freedesktop.org/wiki/Software/hal"
    1.14 -
    1.15 -DEPENDS="hal dbus-dev pkg-config"
    1.16 -
    1.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 -genpkg_rules()
    1.19 -{
    1.20 -	mkdir -p $fs/usr/lib
    1.21 -	cp -a $install/usr/include $fs/usr
    1.22 -	cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.23 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.24 -}
     2.1 --- a/hal-extra/receipt	Wed Nov 01 17:34:03 2017 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,39 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="hal-extra"
     2.7 -VERSION="0.5.14"
     2.8 -CATEGORY="x-window"
     2.9 -SHORT_DESC="Hal extra lib and fdi files."
    2.10 -WANTED="hal"
    2.11 -MAINTAINER="pankso@slitaz.org"
    2.12 -LICENSE="GPL2"
    2.13 -WEB_SITE="http://www.freedesktop.org/wiki/Software/hal"
    2.14 -EXTRA="
    2.15 -hald-addon-cpufreq
    2.16 -hald-addon-hid-ups
    2.17 -hald-addon-imac-backlight
    2.18 -hald-addon-ipw-killswitch
    2.19 -hald-probe-video4linux
    2.20 -hald-probe-net-bluetooth
    2.21 -hald-probe-ieee1394-unit
    2.22 -hald-probe-pc-floppy
    2.23 -hald-probe-printer"
    2.24 -
    2.25 -DEPENDS="dbus dbus-glib glib hal"
    2.26 -
    2.27 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.28 -genpkg_rules()
    2.29 -{
    2.30 -	mkdir -p $fs/usr/lib/hal $fs/usr/share/hal/fdi/policy/10osvendor
    2.31 -	for lib in $EXTRA
    2.32 -	do
    2.33 -		cp $install/usr/lib/hal/$lib $fs/usr/lib/hal
    2.34 -	done
    2.35 -	
    2.36 -	# copy some excluded files from hal
    2.37 -	cp -a $install/usr/share/hal/fdi/policy/10osvendor/10-cpufreq.fdi $fs/usr/share/hal/fdi/policy/10osvendor
    2.38 -	cp -a $install/usr/share/hal/fdi/policy/10osvendor/10-dockstation.fdi $fs/usr/share/hal/fdi/policy/10osvendor
    2.39 -	cp -a $install/usr/share/hal/fdi/policy/10osvendor/10-imac-backlight.fdi $fs/usr/share/hal/fdi/policy/10osvendor
    2.40 -	cp -a $install/usr/share/hal/fdi/policy/10osvendor/15-storage-luks.fdi $fs/usr/share/hal/fdi/policy/10osvendor
    2.41 -	cp -a $install/usr/share/hal/fdi/policy/10osvendor/30-wol.fdi $fs/usr/share/hal/fdi/policy/10osvendor
    2.42 -}
     3.1 --- a/hal-scripts/receipt	Wed Nov 01 17:34:03 2017 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,19 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="hal-scripts"
     3.7 -VERSION="0.5.14"
     3.8 -CATEGORY="x-window"
     3.9 -SHORT_DESC="Hal scripts files."
    3.10 -WANTED="hal"
    3.11 -MAINTAINER="pankso@slitaz.org"
    3.12 -LICENSE="GPL2"
    3.13 -WEB_SITE="http://www.freedesktop.org/wiki/Software/hal"
    3.14 -
    3.15 -DEPENDS="dbus dbus-glib glib hal"
    3.16 -
    3.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.18 -genpkg_rules()
    3.19 -{
    3.20 -	mkdir -p $fs/usr/lib/hal
    3.21 -	cp -a $install/usr/lib/hal/scripts $fs/usr/lib/hal
    3.22 -}
     4.1 --- a/hal/receipt	Wed Nov 01 17:34:03 2017 +0100
     4.2 +++ b/hal/receipt	Wed Nov 01 17:42:43 2017 +0100
     4.3 @@ -1,4 +1,4 @@
     4.4 -# SliTaz package receipt.
     4.5 +# SliTaz package receipt v2.
     4.6  
     4.7  PACKAGE="hal"
     4.8  VERSION="0.5.14"
     4.9 @@ -11,10 +11,10 @@
    4.10  WGET_URL="http://hal.freedesktop.org/releases/$TARBALL"
    4.11  CROSS="error: cannot check for file existence when cross compiling"
    4.12  
    4.13 -DEPENDS="dbus dbus-glib slitaz-base-files udev util-linux-blkid libusb-compat"
    4.14  BUILD_DEPENDS="dbus-dev dbus-glib dbus-glib-dev udev-dev pciutils \
    4.15  util-linux-blkid-dev expat-dev util-linux-uuid-dev glib-dev pkg-config \
    4.16  libv4l-dev"
    4.17 +SPLIT="hal hal-dev hal-extra hal-scripts"
    4.18  
    4.19  EXTRA="
    4.20  hald-addon-cpufreq
    4.21 @@ -57,44 +57,80 @@
    4.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.23  genpkg_rules()
    4.24  {
    4.25 -	mkdir -p $fs/usr/lib $fs/usr/share
    4.26 -	cp -a $install/etc $fs
    4.27 -	cp -a $install/var $fs
    4.28 -	cp -a $install/usr/bin $fs/usr
    4.29 -	cp -a $install/usr/sbin $fs/usr
    4.30 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    4.31 -	cp -a $install/usr/lib/hal $fs/usr/lib
    4.32 -	cp -a $install/usr/share/hal $fs/usr/share
    4.33 -	chmod -R +x $fs/usr/lib/hal/scripts/*
    4.34 -	# Remove a few run time lib and strip.
    4.35 -	for lib in $EXTRA
    4.36 -	do
    4.37 -		rm $fs/usr/lib/hal/$lib
    4.38 -	done
    4.39 -	strip -s $fs/usr/lib/hal/* 2>/dev/null
    4.40 -	# Init script
    4.41 -	cp -a stuff/etc $fs
    4.42 +	case $PACKAGE in
    4.43 +	hal)
    4.44 +		DEPENDS="dbus dbus-glib slitaz-base-files udev \
    4.45 +			util-linux-blkid libusb-compat"
    4.46 +		mkdir -p $fs/usr/lib $fs/usr/share
    4.47 +		cp -a $install/etc $fs
    4.48 +		cp -a $install/var $fs
    4.49 +		cp -a $install/usr/bin $fs/usr
    4.50 +		cp -a $install/usr/sbin $fs/usr
    4.51 +		cp -a $install/usr/lib/*.so* $fs/usr/lib
    4.52 +		cp -a $install/usr/lib/hal $fs/usr/lib
    4.53 +		cp -a $install/usr/share/hal $fs/usr/share
    4.54 +		chmod -R +x $fs/usr/lib/hal/scripts/*
    4.55 +		# Remove a few run time lib and strip.
    4.56 +		for lib in $EXTRA
    4.57 +		do
    4.58 +			rm $fs/usr/lib/hal/$lib
    4.59 +		done
    4.60 +		strip -s $fs/usr/lib/hal/* 2>/dev/null
    4.61 +		# Init script
    4.62 +		cp -a stuff/etc $fs
    4.63  
    4.64 -	# Policy for ntfs-3g
    4.65 -	cp -a stuff/policy $fs/usr/share/hal/fdi/
    4.66 -	chown -R root.root $fs
    4.67 +		# Policy for ntfs-3g
    4.68 +		cp -a stuff/policy $fs/usr/share/hal/fdi/
    4.69 +		chown -R root.root $fs
    4.70  
    4.71 -	# exclude unwanted fdi files
    4.72 -	rm $fs/usr/share/hal/fdi/policy/10osvendor/10-cpufreq.fdi
    4.73 -	rm $fs/usr/share/hal/fdi/policy/10osvendor/10-dockstation.fdi
    4.74 -	rm $fs/usr/share/hal/fdi/policy/10osvendor/10-imac-backlight.fdi
    4.75 -	rm $fs/usr/share/hal/fdi/policy/10osvendor/15-storage-luks.fdi
    4.76 -	rm $fs/usr/share/hal/fdi/policy/10osvendor/30-wol.fdi
    4.77 +		# exclude unwanted fdi files
    4.78 +		rm $fs/usr/share/hal/fdi/policy/10osvendor/10-cpufreq.fdi
    4.79 +		rm $fs/usr/share/hal/fdi/policy/10osvendor/10-dockstation.fdi
    4.80 +		rm $fs/usr/share/hal/fdi/policy/10osvendor/10-imac-backlight.fdi
    4.81 +		rm $fs/usr/share/hal/fdi/policy/10osvendor/15-storage-luks.fdi
    4.82 +		rm $fs/usr/share/hal/fdi/policy/10osvendor/30-wol.fdi
    4.83  	
    4.84 -	# change bash to sh in hal scripts
    4.85 -	sed -i 's:/bin/bash:/bin/sh:' $fs/usr/lib/hal/scripts/hal* 
    4.86 -	sed -i 's:/bin/bash:/bin/sh:' $fs/usr/lib/hal/scripts/linux/hal* 
    4.87 -	# use full-path
    4.88 -	sed -i 's:hal-functions:/usr/lib/hal/scripts/hal-functions:' $fs/usr/lib/hal/scripts/hal* 
    4.89 -	sed -i 's:hal-functions:/usr/lib/hal/scripts/hal-functions:' $fs/usr/lib/hal/scripts/linux/hal* 
    4.90 +		# change bash to sh in hal scripts
    4.91 +		sed -i 's:/bin/bash:/bin/sh:' $fs/usr/lib/hal/scripts/hal* 
    4.92 +		sed -i 's:/bin/bash:/bin/sh:' $fs/usr/lib/hal/scripts/linux/hal* 
    4.93 +		# use full-path
    4.94 +		sed -i 's:hal-functions:/usr/lib/hal/scripts/hal-functions:' $fs/usr/lib/hal/scripts/hal* 
    4.95 +		sed -i 's:hal-functions:/usr/lib/hal/scripts/hal-functions:' $fs/usr/lib/hal/scripts/linux/hal* 
    4.96 +		;;
    4.97 +	hal-dev)
    4.98 +		CAT="development|Hal devel files."
    4.99 +		DEPENDS="hal dbus-dev pkg-config"
   4.100 +		mkdir -p $fs/usr/lib
   4.101 +		cp -a $install/usr/include $fs/usr
   4.102 +		cp -a $install/usr/lib/*.*a $fs/usr/lib
   4.103 +		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   4.104 +		;;
   4.105 +	hal-extra)
   4.106 +		CAT="x-window|Hal extra lib and fdi files."
   4.107 +		DEPENDS="dbus dbus-glib glib hal"
   4.108 +		mkdir -p $fs/usr/lib/hal $fs/usr/share/hal/fdi/policy/10osvendor
   4.109 +		for lib in $EXTRA
   4.110 +		do
   4.111 +			cp $install/usr/lib/hal/$lib $fs/usr/lib/hal
   4.112 +		done
   4.113 +	
   4.114 +		# copy some excluded files from hal
   4.115 +		cp -a $install/usr/share/hal/fdi/policy/10osvendor/10-cpufreq.fdi $fs/usr/share/hal/fdi/policy/10osvendor
   4.116 +		cp -a $install/usr/share/hal/fdi/policy/10osvendor/10-dockstation.fdi $fs/usr/share/hal/fdi/policy/10osvendor
   4.117 +		cp -a $install/usr/share/hal/fdi/policy/10osvendor/10-imac-backlight.fdi $fs/usr/share/hal/fdi/policy/10osvendor
   4.118 +		cp -a $install/usr/share/hal/fdi/policy/10osvendor/15-storage-luks.fdi $fs/usr/share/hal/fdi/policy/10osvendor
   4.119 +		cp -a $install/usr/share/hal/fdi/policy/10osvendor/30-wol.fdi $fs/usr/share/hal/fdi/policy/10osvendor
   4.120 +		;;
   4.121 +	hal-scripts)
   4.122 +		CAT="x-window|Hal scripts files."
   4.123 +		DEPENDS="dbus dbus-glib glib hal"
   4.124 +		mkdir -p $fs/usr/lib/hal
   4.125 +		cp -a $install/usr/lib/hal/scripts $fs/usr/lib/hal
   4.126 +		;;
   4.127 +	esac
   4.128  }
   4.129  
   4.130 -pre_install()
   4.131 +pre_install_hal()
   4.132  {
   4.133  	# Go for echoing on configuration files if any haldaemon user
   4.134  	# was found.
   4.135 @@ -117,7 +153,7 @@
   4.136  	fi
   4.137  }
   4.138  
   4.139 -pre_remove()
   4.140 +pre_remove_hal()
   4.141  {
   4.142  	/etc/init.d/hald stop
   4.143  	deluser haldaemon