wok diff usbutils/receipt @ rev 13048

Up: cups, cups-dev, cups-pam (1.5.1)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Jun 18 21:47:07 2012 +0200 (2012-06-18)
parents 827a051b2b98
children 380ffe05937a
line diff
     1.1 --- a/usbutils/receipt	Sun Oct 16 22:41:07 2011 +0000
     1.2 +++ b/usbutils/receipt	Mon Jun 18 21:47:07 2012 +0200
     1.3 @@ -31,9 +31,26 @@
     1.4  genpkg_rules()
     1.5  {
     1.6  	mkdir -p $fs/usr
     1.7 -	# We have lsusb in Busybox
     1.8  	cp -a $_pkg/usr/bin $fs/usr
     1.9 -	rm $fs/usr/bin/lsusb*
    1.10  	cp -a $_pkg/usr/sbin $fs/usr
    1.11  	sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
    1.12  }
    1.13 +
    1.14 +# Pre and post install commands for Tazpkg.
    1.15 +# Busybox lsusb does not display human-readable usb.ids hardware info.
    1.16 +# We must remove busybox lsusb symlink before installing.
    1.17 +#
    1.18 +pre_install()
    1.19 +{
    1.20 +	local root
    1.21 +	root=$1
    1.22 +	echo "Processing pre-install commands..."
    1.23 +	echo -n "Removing Busybox lsusb... "
    1.24 +	rm -f $root/usr/bin/lsusb
    1.25 +	status
    1.26 +}
    1.27 +
    1.28 +post_remove()
    1.29 +{
    1.30 +	ln -s /bin/busybox $1/usr/bin/lsusb
    1.31 +}