wok diff sane-backends/receipt @ rev 9145

Trying to fix VINRUNTIMEDIR (Thanks kans)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Mar 06 22:02:23 2011 +0100 (2011-03-06)
parents 67b4f2547fcb
children 7ba9895e1216
line diff
     1.1 --- a/sane-backends/receipt	Mon Jan 17 17:58:28 2011 +0100
     1.2 +++ b/sane-backends/receipt	Sun Mar 06 22:02:23 2011 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="sane-backends"
     1.7 -VERSION="1.0.21"
     1.8 +VERSION="1.0.22"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Scanner Access Now Easy."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -22,13 +22,17 @@
    1.13  		$CONFIGURE_ARGS &&
    1.14  	make &&
    1.15  	make -j 1 DESTDIR=$PWD/_pkg install
    1.16 +
    1.17 +	# copy the missing udev rule
    1.18 +	[ ! -d $PWD/_pkg/etc/udev/rules.d ] && mkdir -p $PWD/_pkg/etc/udev/rules.d
    1.19 +	cp -a $src/tools/udev/libsane.rules $PWD/_pkg/etc/udev/rules.d/55-sane.rules
    1.20  }
    1.21  
    1.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.23  genpkg_rules()
    1.24  {
    1.25 -	mkdir -p $fs/etc/udev/rules.d  $fs/usr/lib $fs/usr/share \
    1.26 -	         $fs/var/lock/sane
    1.27 +	mkdir -p $fs/usr/lib $fs/usr/share \
    1.28 +	         $fs/var/lock/sane $fs/etc/sane.d
    1.29  	
    1.30  	cp -a $_pkg/etc/sane.d $fs/etc
    1.31  	cp -a $_pkg/usr/bin $fs/usr
    1.32 @@ -37,16 +41,12 @@
    1.33  	cp -a $_pkg/usr/lib/sane $fs/usr/lib
    1.34  	cp -a $_pkg/usr/share/sane $fs/usr/share
    1.35  	
    1.36 -	# copy the missing udev rule
    1.37 -	cp -a $src/tools/udev/libsane.rules $fs/etc/udev/rules.d/55-sane.rules
    1.38 -	
    1.39  	# fix groups/permissions on /var/lock/sane ; add it to scanner group
    1.40 -   chmod 775 "$fs/var/lock/sane"
    1.41 -   chgrp 96 "$fs/var/lock/sane"
    1.42 +	chmod 775 "$fs/var/lock/sane"
    1.43 +	chgrp 96 "$fs/var/lock/sane"
    1.44     
    1.45 -    # fix hp officejets
    1.46 -  echo "hpaio" >> "$fs/etc/sane.d/dll.conf"
    1.47 -
    1.48 +	# fix hp officejets
    1.49 +	echo "hpaio" >> "$fs/etc/sane.d/dll.conf"
    1.50  }
    1.51  
    1.52  post_install()