wok-stable diff sane-backends/receipt @ rev 3815

Fix: slim cook with gcc 4.4 serie
author Christophe Lincoln <pankso@slitaz.org>
date Thu Aug 06 14:18:28 2009 +0200 (2009-08-06)
parents 0d71947173a7
children 6c1482c59ac9
line diff
     1.1 --- a/sane-backends/receipt	Fri Mar 13 09:43:13 2009 +0000
     1.2 +++ b/sane-backends/receipt	Thu Aug 06 14:18:28 2009 +0200
     1.3 @@ -1,15 +1,15 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="sane-backends"
     1.7 -VERSION="1.0.19"
     1.8 +VERSION="1.0.20"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Scanner Access Now Easy."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 -DEPENDS="libusb jpeg tiff zlib"
    1.13 -BUILD_DEPENDS="libusb-dev libusb"
    1.14 +DEPENDS="libusb jpeg tiff zlib libgphoto2"
    1.15 +BUILD_DEPENDS="libusb-dev libusb libgphoto2-dev"
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WEB_SITE="http://www.sane-project.org/"
    1.18 -WGET_URL="ftp://ftp2.sane-project.org/pub/sane/$PACKAGE-$VERSION/$TARBALL"
    1.19 +WGET_URL="ftp://ftp.sane-project.org/pub/sane/$PACKAGE-$VERSION/$TARBALL"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23 @@ -27,7 +27,8 @@
    1.24  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.25  genpkg_rules()
    1.26  {
    1.27 -	mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
    1.28 +	mkdir -p $fs/etc/udev/rules.d  $fs/usr/lib $fs/usr/share \
    1.29 +	         $fs/var/lock/sane
    1.30  	
    1.31  	cp -a $_pkg/etc/sane.d $fs/etc
    1.32  	cp -a $_pkg/usr/bin $fs/usr
    1.33 @@ -35,4 +36,28 @@
    1.34  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.35  	cp -a $_pkg/usr/lib/sane $fs/usr/lib
    1.36  	cp -a $_pkg/usr/share/sane $fs/usr/share
    1.37 +	
    1.38 +	# copy the missing udev rule
    1.39 +	cp -a $src/tools/udev/libsane.rules $fs/etc/udev/rules.d/55-sane.rules
    1.40 +	
    1.41 +	# fix groups/permissions on /var/lock/sane ; add it to scanner group
    1.42 +   chmod 775 "$fs/var/lock/sane"
    1.43 +   chgrp 96 "$fs/var/lock/sane"
    1.44 +
    1.45  }
    1.46 +
    1.47 +post_install()
    1.48 +{
    1.49 +	local root
    1.50 +	root=$1
    1.51 +	
    1.52 +	# add group scanner
    1.53 +	getent group scanner >/dev/null || addgroup -g 96 scanner
    1.54 +	
    1.55 +	echo " ADD yourself to group scanner to use sane: addgroup tux scanner"
    1.56 +}
    1.57 +
    1.58 +post_remove()
    1.59 +{
    1.60 +	delgroup scanner & >/dev/null
    1.61 +}