wok diff sane-backends/receipt @ rev 18237

sane-backends: add tazpanel/sane.cgi
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 25 13:48:18 2015 +0200 (2015-07-25)
parents 380ffe05937a
children 1ed620c5ee23
line diff
     1.1 --- a/sane-backends/receipt	Sat Aug 10 17:00:38 2013 +0000
     1.2 +++ b/sane-backends/receipt	Sat Jul 25 13:48:18 2015 +0200
     1.3 @@ -13,11 +13,11 @@
     1.4  DEPENDS="libusb-compat jpeg tiff zlib libgphoto2 libv4l libltdl"
     1.5  BUILD_DEPENDS="libusb-compat-dev jpeg-dev tiff-dev zlib-dev libv4l-dev \
     1.6  libgphoto2-dev libtool"
     1.7 +SUGGESTED="imagemagick gocr tesseract-ocr"
     1.8  
     1.9  # Rules to configure and make the package.
    1.10  compile_rules()
    1.11  {
    1.12 -	cd $src
    1.13  	patch -Np1 -i $stuff/libv4l-0.8.3.patch
    1.14  	# fix https://bugs.archlinux.org/task/26114
    1.15  	patch -Np1 -i $stuff/xerox_mfp_fix_usb_devices.patch
    1.16 @@ -38,7 +38,9 @@
    1.17  genpkg_rules()
    1.18  {
    1.19  	mkdir -p $fs/usr/lib $fs/usr/share \
    1.20 -	         $fs/var/lock/sane $fs/etc/sane.d
    1.21 +	         $fs/var/lock/sane $fs/etc/sane.d \
    1.22 +	         $fs/var/www/tazpanel/lib \
    1.23 +	         $fs/var/www/tazpanel/menu.d/hardware
    1.24  	
    1.25  	cp -a $install/etc/sane.d $fs/etc
    1.26  	cp -a $install/usr/bin $fs/usr
    1.27 @@ -46,6 +48,9 @@
    1.28  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.29  	cp -a $install/usr/lib/sane $fs/usr/lib
    1.30  	cp -a $install/usr/share/sane $fs/usr/share
    1.31 +	cp $stuff/tazpanel/sane.cgi $fs/var/www/tazpanel/
    1.32 +	cp $stuff/tazpanel/crop.js $fs/var/www/tazpanel/lib/
    1.33 +	ln -s ../../sane.cgi $fs/var/www/tazpanel/menu.d/hardware/sane
    1.34  	
    1.35  	# fix groups/permissions on /var/lock/sane ; add it to scanner group
    1.36  	chmod 775 "$fs/var/lock/sane"
    1.37 @@ -68,6 +73,9 @@
    1.38  	fi
    1.39  	
    1.40  	echo " ADD yourself to group scanner to use sane: addgroup tux scanner"
    1.41 +	
    1.42 +	[ -e $root/var/www/tazpanel/tmp ] ||
    1.43 +	ln -s /tmp $root/var/www/tazpanel/tmp
    1.44  }
    1.45  
    1.46  post_remove()