[arch-commits] Commit in sane/trunk (5 files)

Tobias Powalowski tpowa at archlinux.org
Sat May 9 09:23:54 EDT 2009


    Date: Saturday, May 9, 2009 @ 09:23:53
  Author: tpowa
Revision: 38589

'removed unneeded files'

Modified:
  sane/trunk/PKGBUILD
Deleted:
  sane/trunk/convert-usermap-sane.sh
  sane/trunk/libusbscanner.udev.sh
  sane/trunk/patch-sane.sh.patch
  sane/trunk/post-1.0.18.patch.bz2

-------------------------+
 PKGBUILD                |    2 ++
 convert-usermap-sane.sh |   44 --------------------------------------------
 libusbscanner.udev.sh   |   35 -----------------------------------
 patch-sane.sh.patch     |   14 --------------
 4 files changed, 2 insertions(+), 93 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-05-09 13:21:28 UTC (rev 38588)
+++ PKGBUILD	2009-05-09 13:23:53 UTC (rev 38589)
@@ -38,3 +38,5 @@
   # install xinetd file
   install -D -m644 $startdir/src/sane.xinetd $startdir/pkg/etc/xinetd.d/sane
 }
+md5sums=('a0cfdfdebca2feb4f2ba5d3418b15a42'
+         'da946cc36fb83612162cf9505986d4b2')

Deleted: convert-usermap-sane.sh
===================================================================
--- convert-usermap-sane.sh	2009-05-09 13:21:28 UTC (rev 38588)
+++ convert-usermap-sane.sh	2009-05-09 13:23:53 UTC (rev 38589)
@@ -1,44 +0,0 @@
-#!/bin/bash
-#
-# Converts libsane.usermap to an udev rules file
-#
-
-if [ ! -e sane.rules ]; then
-    cat > sane.rules <<EOF
-# This file is part of the SANE distribution
-#
-# udev rules file for supported scanners
-#
-#
-# For now, only USB scanners are listed/supported by this set of rules;
-# feel free to add support for other busses.
-#
-# To add an USB scanner, add a rule to the list below between the SUBSYSTEM...
-# and LABEL... lines.
-#
-# To run a script when your scanner is plugged in, add RUN="/path/to/script"
-# to the appropriate rule.
-#
-
-SUBSYSTEM!="usb_device", ACTION!="add", GOTO="libsane_rules_end"
-
-EOF
-fi
-
-cat "$1" | { while read map; do
-    if $(echo "$map" | grep -q ^# > /dev/null); then
-	echo $map >> sane.rules
-    else
-	set $map
-
-	vid=$(echo $3 | cut -b3-)
-	pid=$(echo $4 | cut -b3-)
-
-	echo -e "SYSFS{idVendor}==\"$vid\", SYSFS{idProduct}==\"$pid\", GROUP=\"scanner\"" >> sane.rules
-    fi
-done }
-
-echo >> sane.rules
-echo "LABEL=\"libsane_rules_end\"" >> sane.rules
-
-exit 0

Deleted: libusbscanner.udev.sh
===================================================================
--- libusbscanner.udev.sh	2009-05-09 13:21:28 UTC (rev 38588)
+++ libusbscanner.udev.sh	2009-05-09 13:23:53 UTC (rev 38589)
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# This file is part of sane-backends.
-#
-# This script changes the permissions and ownership of a USB device under
-# /proc/bus/usb to grant access to this device to users in the scanner group.
-#
-# Ownership is set to root:scanner, permissions are set to 0660.
-#
-# Arguments :
-# -----------
-# ACTION=[add|remove]
-# DEVICE=/proc/bus/usb/BBB/DDD
-# TYPE=usb
-
-# latest hotplug doesn't set DEVICE on 2.6.x kernels
-if [ -z "$DEVICE" ] ; then
-  IF=`echo $DEVPATH | sed 's/\(bus\/usb\/devices\/\)\(.*\)-\(.*\)/\2/'`
-  DEV=$(cat /sys/${DEVPATH}/devnum)
-  DEVICE=`printf '/proc/bus/usb/%.03d/%.03d' $IF $DEV`
-fi
-
-#if [ "$ACTION" = "add" -a "$SUBSYSTEM" = "usb" ]; then
-  chown root:scanner "$DEVICE"
-  chmod 0660 "$DEVICE"
-#fi
-
-
-# That's an insecure but simple alternative
-# Everyone has access to the scanner
-
-# if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
-#  chmod 0666 "$DEVICE"
-# fi
-

Deleted: patch-sane.sh.patch
===================================================================
--- patch-sane.sh.patch	2009-05-09 13:21:28 UTC (rev 38588)
+++ patch-sane.sh.patch	2009-05-09 13:23:53 UTC (rev 38589)
@@ -1,14 +0,0 @@
---- patch-sane.sh~	2004-11-21 14:28:11.000000000 +0100
-+++ patch-sane.sh	2007-04-15 17:23:40.000000000 +0200
-@@ -94,9 +94,9 @@
- 
- # Adds a line with 'hp_rts88xx' to dll.conf
- echo -n "Modifying backend/dll.conf..."
--if [ -z $(grep hp_rts88xx $sane/backend/dll.conf) ]
-+if [ -z $(grep hp_rts88xx $sane/backend/dll.conf.in) ]
-     then
--    echo "hp_rts88xx" >> $sane/backend/dll.conf
-+    echo "hp_rts88xx" >> $sane/backend/dll.conf.in
- fi
- evaluate_retval
- 

Deleted: post-1.0.18.patch.bz2
===================================================================
(Binary files differ)



More information about the arch-commits mailing list