1
0
forked from pool/sane-backends
OBS User unknown 2008-04-12 19:21:14 +00:00 committed by Git OBS Bridge
parent c1b2eec249
commit 90506e7aa4
6 changed files with 28785 additions and 448 deletions

View File

@ -0,0 +1,95 @@
#! /bin/bash
#
# Johannes Meixner <jsmeix@suse.de>, 2008
#set -x
export PATH="/sbin:/usr/sbin:/usr/bin:/bin"
export LC_ALL="POSIX"
export LANG="POSIX"
umask 022
MY_NAME=${0##*/}
# Input:
# Create a temporary file:
TMP_DATA=$(mktemp -u /tmp/$MY_NAME.XXXXXX) || { echo "Error: Failed to make a temporary file /tmp/$MY_NAME.XXXXXX" 1>&2 ; exit 1 ; }
# Get the raw data:
egrep '^\[|^model[1-9]*|^scan-type|^usb-pid' | sed -e 's/^\[\(.*\)\]$/class=\1/' -e 's/ /_/g' -e 's/=/ /' >$TMP_DATA
# Output:
# Output header:
echo ':backend "hpaio"'
echo ':version "2.8.4"'
echo ':url "http://hplip.sourceforge.net/"'
echo ':comment "This backend is not included in SANE because it is included in the HPLIP software."'
echo ':devicetype :scanner'
echo ':mfg "Hewlett-Packard"'
echo ':url "http://www.hp.com/united-states/consumer/gateway/printing_multifunction.html"'
echo
# Add a generic entry (the "Any" with capital 'A' lets it appear at the top of YaST's sorted list):
# This USB ID ("0x03f0" "0x0000") is used as fallback by the YaST scanner autodetection
# via /usr/lib/YaST2/bin/autodetect_scanners which calls "hp-probe -busb -escan"
# because hp-probe does not show the USB ID. With this USB ID the generic entry matches
# to any autodetected HPLIP USB all-in-one device (the "-escan" excludes plain printers)
# so that the usually right driver (hpaio) can be preselected by YaST.
# Nevertheless, to be on the safe side, the support status is set to "untested".
echo ':model "Any all-in-one device"'
echo ':usbid "0x03f0" "0x0000"'
echo ':status :untested'
echo ':comment "fallback entry for HP all-in-one devices"'
echo
# Function to unify a model name:
Unify()
{ MODEL=$( echo $MODEL | sed -e 's/hp_//i' -e 's/Aii-in-One/all-in-one/i' )
for w in LaserJet Mopier DeskJet Business Inkjet Officejet Photosmart PSC Printer Scanner Copier DJ CP CM MFP Apollo series Color all-in-one
do MODEL=$( echo $MODEL | sed -e "s/$w/$w/i" )
done
}
# Function to output one model entry:
Output()
{ if [ -n "$CLASS" -a ! "0" = "$TYPE" ]
then UNIFIEDMODELS=""
for MODEL in $( echo $MODELS )
do Unify
UNIFIEDMODELS=$( echo $UNIFIEDMODELS $MODEL )
done
UNIFIEDMODELS=$( echo $UNIFIEDMODELS | tr ' ' '\n' | sort -u | tr '\n' ' ' )
for MODEL in $( echo $UNIFIEDMODELS )
do MODEL=$( echo $MODEL | sed -e "s/_/ /g" )
echo ":model \"$MODEL\""
if echo "$ID" | grep '[1-9a-f]' | grep -q '[0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
then echo ":usbid \"0x03f0\" \"0x$ID\""
fi
echo ':status :good'
echo
done
fi
}
# Output model entries:
CLASS=""
exec <$TMP_DATA
while read KEY VALUE
do case "$KEY" in
class) Output
ID=""
TYPE="0"
CLASS="$VALUE"
MODELS="$CLASS" ;;
model*) MODELS=$( echo $MODELS $VALUE ) ;;
scan-type) TYPE="$VALUE" ;;
usb-pid) ID=$( echo "$VALUE" | tr '[:upper:]' '[:lower:]' ) ;;
*) echo "Ignoring key $KEY" 1>&2 ;;
esac
done
# Remove the temporary file
rm $TMP_DATA
exit 0

View File

@ -22,9 +22,9 @@
;;; This list of devices was compiled from the following sources:
;;;
;;; * iscan-2.6.0/NEWS
;;; * iscan-2.6.0/doc/sane-epkowa.man
;;; * iscan-2.6.0/backend/epkowa_usb.c
;;; * iscan-2.10.0/NEWS
;;; * iscan-2.10.0/doc/sane-epkowa.man
;;; * iscan-2.10.0/backend/epkowa_usb.c
;;; * sane-backends/backend/epson_usb.c (CVS 1.18)
;;; * sane-backends/doc/descriptions/epson.desc (CVS 1.26)
;;; * http://www.freecolormanagement.com/sane/supported.html
@ -39,7 +39,7 @@
;; Backend data.
;;
:backend "epkowa"
:version "2.6.0"
:version "2.10.0"
:url "http://www.avasys.jp/english/linux_e/index.html"
;:comment "Based on the epson backend of sane-backends-1.0.15."
@ -48,7 +48,7 @@
;; Device and manufacturer information.
;;
:devicetype :scanner
:mfg "Epson"
:mfg "EPSON"
:url "http://www.epson.com/"
:comment ""
@ -664,6 +664,11 @@
:status :good
:comment "all-in-one"
:model "PM-A840"
:interface "USB"
:usbid "0x04b8" "0x083c"
:status :good
:comment "all-in-one"
:model "PM-A850" ; product spec (JP)
:interface "USB"
@ -695,6 +700,12 @@
:status :good
:comment "all-in-one"
:model "PM-A940"
:interface "USB"
:usbid "0x04b8" "0x0837"
:status :good
:comment "all-in-one"
:model "PM-A950"
:interface "USB"
:usbid "0x04b8" "0x081d"
@ -707,6 +718,12 @@
:status :good
:comment "all-in-one"
:model "PM-T960"
:interface "USB"
:usbid "0x04b8" "0x0836"
:status :good
:comment "all-in-one"
:model "PM-T990"
:interface "USB"
:usbid "0x04b8" "0x0829"
@ -737,6 +754,12 @@
:status :good
:comment "all-in-one"
:model "PX-A740"
:interface "USB"
:usbid "0x04b8" "0x0839"
:status :good
:comment "all-in-one"
:model "Perfection 600"
:interface "SCSI"
:status :unsupported
@ -1081,6 +1104,20 @@
:status :good
:comment "all-in-one"
:model "Stylus CX4300"
:interface "USB"
:usbid "0x04b8" "0x083f"
:status :good
:comment "all-in-one<br>requires DFSG non-free iscan-plugin-cx4400"
:url "http://www.avasys.jp/english/linux_e/dl_scan.html"
:model "Stylus CX4400"
:interface "USB"
:usbid "0x04b8" "0x083f"
:status :good
:comment "all-in-one<br>requires DFSG non-free iscan-plugin-cx4400"
:url "http://www.avasys.jp/english/linux_e/dl_scan.html"
:model "Stylus CX4500"
:interface "USB"
:usbid "0x04b8" "0x080d"
@ -1141,6 +1178,20 @@
:status :good
:comment "all-in-one"
:model "Stylus CX5500"
:interface "USB"
:usbid "0x04b8" "0x083f"
:status :good
:comment "all-in-one<br>requires DFSG non-free iscan-plugin-cx4400"
:url "http://www.avasys.jp/english/linux_e/dl_scan.html"
:model "Stylus CX5600"
:interface "USB"
:usbid "0x04b8" "0x083f"
:status :good
:comment "all-in-one<br>requires DFSG non-free iscan-plugin-cx4400"
:url "http://www.avasys.jp/english/linux_e/dl_scan.html"
:model "Stylus CX5700F"
:interface "USB"
:usbid "0x04b8" "0x0821"
@ -1201,6 +1252,18 @@
:status :unsupported
:comment "may work with the snapscan backend<br>all-in-one with FAX"
:model "Stylus CX7300"
:interface "USB"
:usbid "0x04b8" "0x0838"
:status :good
:comment "all-in-one"
:model "Stylus CX7400"
:interface "USB"
:usbid "0x04b8" "0x0838"
:status :good
:comment "all-in-one"
:model "Stylus CX7700"
:interface "USB"
:usbid "0x04b8" "0x081f"
@ -1213,6 +1276,30 @@
:status :good
:comment "all-in-one"
:model "Stylus CX8300"
:interface "USB"
:usbid "0x04b8" "0x0839"
:status :good
:comment "all-in-one<br>overseas version of the PX-A740"
:model "Stylus CX8400"
:interface "USB"
:usbid "0x04b8" "0x0839"
:status :good
:comment "all-in-one<br>overseas version of the PX-A740"
:model "Stylus CX9300F"
:interface "USB"
:usbid "0x04b8" "0x083a"
:status :good
:comment "all-in-one"
:model "Stylus CX9400Fax"
:interface "USB"
:usbid "0x04b8" "0x083a"
:status :good
:comment "all-in-one"
:model "Stylus DX3800"
:interface "USB"
:usbid "0x04b8" "0x0818"
@ -1237,6 +1324,13 @@
:status :good
:comment "all-in-one"
:model "Stylus DX4400"
:interface "USB"
:usbid "0x04b8" "0x083f"
:status :good
:comment "all-in-one<br>requires DFSG non-free iscan-plugin-cx4400"
:url "http://www.avasys.jp/english/linux_e/dl_scan.html"
:model "Stylus DX4800"
:interface "USB"
:usbid "0x04b8" "0x0819"
@ -1267,6 +1361,24 @@
:status :unsupported
:comment "may work with the snapscan backend<br>all-in-one with FAX"
:model "Stylus DX7400"
:interface "USB"
:usbid "0x04b8" "0x0838"
:status :good
:comment "all-in-one"
:model "Stylus DX8400"
:interface "USB"
:usbid "0x04b8" "0x0839"
:status :good
:comment "all-in-one<br>overseas version of the PX-A740"
:model "Stylus DX9400F"
:interface "USB"
:usbid "0x04b8" "0x083a"
:status :good
:comment "all-in-one"
:model "Stylus Photo RX420"
:interface "USB"
:usbid "0x04b8" "0x080f"
@ -1315,12 +1427,24 @@
:status :good
:comment "all-in-one<br>overseas version of the PM-A820"
:model "Stylus Photo RX585"
:interface "USB"
:usbid "0x04b8" "0x083c"
:status :good
:comment "all-in-one<br>overseas version of the PM-A840"
:model "Stylus Photo RX580"
:interface "USB"
:usbid "0x04b8" "0x0827"
:status :good
:comment "all-in-one<br>overseas version of the PM-A820"
:model "Stylus Photo RX595"
:interface "USB"
:usbid "0x04b8" "0x083c"
:status :good
:comment "all-in-one<br>overseas version of the PM-A840"
:model "Stylus Photo RX590"
:interface "USB"
:usbid "0x04b8" "0x0827"
@ -1335,9 +1459,9 @@
:model "Stylus Photo RX610"
:interface "USB"
:usbid "0x04b8" "0x0806"
:usbid "0x04b8" "0x083c"
:status :good
:comment "all-in-one<br>overseas version of the PM-A850"
:comment "all-in-one<br>overseas version of the PM-A840"
:model "Stylus Photo RX620"
:interface "USB"
@ -1363,6 +1487,24 @@
:status :good
:comment "all-in-one<br>overseas version of the PM-A890"
:model "Stylus Photo RX680"
:interface "USB"
:usbid "0x04b8" "0x0837"
:status :good
:comment "all-in-one<br>overseas version of the PM-A940"
:model "Stylus Photo RX685"
:interface "USB"
:usbid "0x04b8" "0x0837"
:status :good
:comment "all-in-one<br>overseas version of the PM-A940"
:model "Stylus Photo RX690"
:interface "USB"
:usbid "0x04b8" "0x0837"
:status :good
:comment "all-in-one<br>overseas version of the PM-A940"
:model "Stylus Photo RX700"
:interface "USB"
:usbid "0x04b8" "0x0810"

View File

@ -1,415 +0,0 @@
;
; SANE Backend specification file
;
:backend "hpaio" ; name of backend
:version "2.7.7" ; version of backend
:url "http://hpinkjet.sourceforge.net/" ; backend's web page
:comment "This backend isn't included in SANE because it is included in the HPLIP software."
:devicetype :scanner ; start of a list of devices....
:mfg "Hewlett-Packard" ; name a manufacturer
:url "http://www.hp.com/united-states/consumer/gateway/printing_multifunction.html"
:model "any HP all-in-one device"
:status :untested
:model "915"
:status :good
:model "Color LaserJet 2800"
:status :good
:model "Color LaserJet 2820"
:status :good
:model "Color LaserJet 2830"
:status :good
:model "Color LaserJet 2840"
:status :good
:model "DeskJet F2100 series"
:status :good
:model "DeskJet F300 series"
:status :good
:model "DeskJet F4100 series"
:status :good
:model "LaserJet 1100"
:status :good
:model "LaserJet 1100a"
:status :good
:model "LaserJet 1100xi"
:status :good
:model "LaserJet 1220"
:status :good
:model "LaserJet 1220se"
:status :good
:model "LaserJet 3015"
:status :good
:model "LaserJet 3020"
:status :good
:model "LaserJet 3030"
:status :good
:model "LaserJet 3050"
:status :good
:model "LaserJet 3052"
:status :good
:model "LaserJet 3055"
:status :good
:model "LaserJet 3200"
:status :good
:model "LaserJet 3200m"
:status :good
:model "LaserJet 3200se"
:status :good
:model "LaserJet 3300"
:status :good
:model "LaserJet 3310"
:status :good
:model "LaserJet 3320"
:status :good
:model "LaserJet 3330"
:status :good
:model "LaserJet 3380"
:status :good
:model "LaserJet 3390"
:status :good
:model "LaserJet 3392"
:status :good
:model "LaserJet 4100 mfp"
:status :good
:model "OfficeJet 4100 series"
:status :good
:model "OfficeJet 4105 series"
:status :good
:model "OfficeJet 4110 series"
:status :good
:model "OfficeJet 4115 series"
:status :good
:model "OfficeJet 4200 series"
:status :good
:model "OfficeJet 4255"
:status :good
:model "OfficeJet 4300 series"
:status :good
:model "OfficeJet 5100 series"
:status :good
:model "OfficeJet 5105"
:status :good
:model "OfficeJet 5110"
:status :good
:model "OfficeJet 5110v"
:status :good
:model "OfficeJet 5500 series"
:status :good
:model "OfficeJet 5600 series"
:status :good
:model "OfficeJet 6100 series"
:status :good
:model "OfficeJet 6150 series"
:status :good
:model "OfficeJet 6200 series"
:status :good
:model "OfficeJet 6300 series"
:status :good
:model "OfficeJet 7100 series"
:status :good
:model "OfficeJet 7200 series"
:status :good
:model "OfficeJet 7300 series"
:status :good
:model "OfficeJet 7400 series"
:status :good
:model "OfficeJet 9100 series"
:status :good
:model "OfficeJet Pro 1150c"
:status :good
:model "OfficeJet Pro 1170c series"
:status :good
:model "OfficeJet Pro l7300"
:status :good
:model "OfficeJet Pro l7500"
:status :good
:model "OfficeJet Pro l7600"
:status :good
:model "OfficeJet Pro l7700"
:status :good
:model "OfficeJet D series"
:status :good
:model "OfficeJet G55"
:status :good
:model "OfficeJet G55xi"
:status :good
:model "OfficeJet G85"
:status :good
:model "OfficeJet G85xi"
:status :good
:model "OfficeJet G95"
:status :good
:model "OfficeJet J5700 series"
:status :good
:model "OfficeJet K60"
:status :good
:model "OfficeJet K60xi"
:status :good
:model "OfficeJet K80"
:status :good
:model "OfficeJet K80xi"
:status :good
:model "OfficeJet R40"
:status :good
:model "OfficeJet R40xi"
:status :good
:model "OfficeJet R45"
:status :good
:model "OfficeJet R60"
:status :good
:model "OfficeJet R65"
:status :good
:model "OfficeJet R80"
:status :good
:model "OfficeJet R80xi"
:status :good
:model "OfficeJet 500 series"
:status :good
:model "OfficeJet 520 series"
:status :good
:model "OfficeJet 570 series"
:status :good
:model "OfficeJet 580 series"
:status :good
:model "OfficeJet 590 series"
:status :good
:model "OfficeJet 600 series"
:status :good
:model "OfficeJet 610 series"
:status :good
:model "OfficeJet 630 series"
:status :good
:model "OfficeJet 700 series"
:status :good
:model "OfficeJet 710 series"
:status :good
:model "OfficeJet 720 series"
:status :good
:model "OfficeJet 725 series"
:status :good
:model "OfficeJet T series"
:status :good
:model "OfficeJet V30"
:status :good
:model "OfficeJet V40"
:status :good
:model "OfficeJet V40xi"
:status :good
:model "OfficeJet V45"
:status :good
:model "PSC 1100 series"
:status :good
:model "PSC 1200 series"
:status :good
:model "PSC 1300 series"
:status :good
:model "PSC 1310 series"
:status :good
:model "PSC 1400 series"
:status :good
:model "PSC 1500 series"
:status :good
:model "PSC 1510 series"
:status :good
:model "PSC 1600 series"
:status :good
:model "PSC 2100 series"
:status :good
:model "PSC 2150 series"
:status :good
:model "PSC 2170 series"
:status :good
:model "PSC 2200 series"
:status :good
:model "PSC 2210 series"
:status :good
:model "PSC 2300 series"
:status :good
:model "PSC 2350 series"
:status :good
:model "PSC 2400 series"
:status :good
:model "PSC 2500 series"
:status :good
:model "PSC 500"
:status :good
:model "PSC 720"
:status :good
:model "PSC 750"
:status :good
:model "PSC 750xi"
:status :good
:model "PSC 760"
:status :good
:model "PSC 900 series"
:status :good
:model "PSC 950"
:status :good
:model "PSC 950vr"
:status :good
:model "PSC 950xi"
:status :good
:model "Photosmart 2570 series"
:status :good
:model "Photosmart 2600 series"
:status :good
:model "Photosmart 2700 series"
:status :good
:model "Photosmart 3100 series"
:status :good
:model "Photosmart 3200 series"
:status :good
:model "Photosmart 3300 series"
:status :good
:model "Photosmart C3100 series"
:status :good
:model "Photosmart C4100 series"
:status :good
:model "Photosmart C4200 series"
:status :good
:model "Photosmart C5100 series"
:status :good
:model "Photosmart C5200 series"
:status :good
:model "Photosmart C6100 series"
:status :good
:model "Photosmart C7100 series"
:status :good
:model "PSC 300"
:status :good

28508
models.dat Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Apr 11 14:40:50 CEST 2008 - jsmeix@suse.de
- Updated epkowa.desc from the current Iscan version 2.10.0.1.
- Replaced hpaio.desc which is currently messed up in HPLIP
by create_hpaio.desc_from_models.dat which creates hpaio.desc
directly from the models.dat file from HPLIP version 2.8.4.
-------------------------------------------------------------------
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de

View File

@ -18,7 +18,7 @@ Group: Hardware/Scanner
AutoReqProv: on
Summary: SANE (Scanner Access Now Easy) Scanner Drivers
Version: 1.0.19
Release: 25
Release: 26
Url: http://www.sane-project.org/
# URL for Source0: http://alioth.debian.org/frs/download.php/2318/sane-backends-1.0.19.tar.gz
Source0: sane-backends-%{version}.tar.bz2
@ -30,28 +30,11 @@ Source101: sane-port
# Source102 is the OpenSLP registration file for the saned:
Source102: sane.reg
# Since openSUSE 10.3 "Source103: hpoj.desc" is dropped because the package hp-officeJet is dropped.
# The descriptions-external file for the hpaio backend is provided by the package hplip:
# Get scan/sane/hpaio.desc from the hplip sources which matches to this sane package
# version (i.e. get it from the same distribution).
# Set the version which matches to the HPLIP version (e.g. :version "2.7.7").
# Beautify the model names:
# sed -e 's/"[Hh][Pp] /"/' \
# -e 's/_/ /' \
# -e 's/[Pp][Ss][Cc]/PSC/' \
# -e 's/[Pp]rinter [Ss]canner [Cc]opier/PSC/' \
# -e 's/[Dd][Ee][Ss][Kk][Jj][Ee][Tt]/DeskJet/' \
# -e 's/[Ll][Aa][Ss][Ee][Rr][Jj][Ee][Tt]/LaserJet/' \
# -e 's/[Oo][Ff][Ff][Ii][Cc][Ee][Jj][Ee][Tt]/OfficeJet/' \
# -e 's/[Ss][Ee][Rr][Ii][Ee][Ss]/series/' \
# Make seperate model entries e.g. for "LaserJet 3300 3310 3320".
# Change entries like "FooBar series 123" to "FooBar 123 series".
# Add a generic model entry (the "any" lets it appear near the top in YaST's sorted list):
# :model "any HP all-in-one device"
# :status :untested
Source104: hpaio.desc
# Source104 was our hpaio.desc file which was derived from scan/sane/hpaio.desc from the hplip sources
# but as scan/sane/hpaio.desc was completely messed up Source104 is now dropped and we
# create our hpaio.desc file directly from the models.dat file of HPLIP via Source109 and Source110.
# Original iscan descriptions-external file for the epkowa backend (provided by the package iscan).
# This file is a copy of doc/epkowa.desc in the sources of the iscan package
# but for compliance with the rest the manufacturer name is changed from "EPSON" to "Epson":
# This file is a copy of doc/epkowa.desc in the sources of the iscan package:
Source105: epkowa.desc
# Since openSUSE 10.3 "Source106: create_hal_global_fdi_for_scanners" is dropped because
# it is replaced by "Source108: create_hal_global_fdi_from_libsane.rules".
@ -59,6 +42,9 @@ Source105: epkowa.desc
# Source107 is obsolete since sane-backends-1.0.19 because it has udev and HAL support.
# Source108 is a script which outputs a HAL fdi file.
# Source108 is obsolete since sane-backends-1.0.19 because it has udev and HAL support.
# We create our hpaio.desc file directly from the models.dat file of HPLIP:
Source109: create_hpaio.desc_from_models.dat
Source110: models.dat
# Source200... is scanner autoconfiguration stuff:
# Source200 and Source201 generate the 56-sane-backends-autoconfig.rules file
# for automated scanner driver activation via udev ("scanner autoconfiguration").
@ -291,10 +277,18 @@ Authors:
# Remove hpoj.desc completely to avoid confusion with its successor hpaio.desc
# because since openSUSE 10.3 the package hp-officeJet (for hpoj.desc) is dropped.
rm doc/descriptions-external/hpoj.desc
# Add our hpaio.desc descriptions-external file:
cp %{SOURCE104} doc/descriptions-external/hpaio.desc
# Replace epkowa.desc descriptions-external file by the version from the iscan package:
cp %{SOURCE105} doc/descriptions-external/epkowa.desc
# Replace epkowa.desc descriptions-external file by the version from the iscan package.
# For compliance with the other description files in the sane-backends sources
# (epson2.desc, epson.desc, plustek.desc, snapscan.desc, umax.desc, unsupported.desc)
# the manufacturer name is changed from "EPSON" to "Epson":
sed -e '/^:mfg/s/EPSON/Epson/' %{SOURCE105} >doc/descriptions-external/epkowa.desc
# For compliance with the other description files in the sane-backends sources
# change the manufacturer name from "Hewlett Packard" to "Hewlett-Packard":
for d in doc/descriptions-external/hp3770.desc doc/descriptions-external/hp8200.desc
do sed -i -e '/^:mfg/s/Hewlett Packard/Hewlett-Packard/' $d
done
# Create our hpaio.desc descriptions-external file:
bash %{SOURCE109} <%{SOURCE110} >doc/descriptions-external/hpaio.desc
%build
%{?suse_update_config:%{suse_update_config -f}}
@ -540,6 +534,11 @@ exit 0
%{_sysconfdir}/udev/rules.d/56-sane-backends-autoconfig.rules
%changelog
* Fri Apr 11 2008 jsmeix@suse.de
- Updated epkowa.desc from the current Iscan version 2.10.0.1.
- Replaced hpaio.desc which is currently messed up in HPLIP
by create_hpaio.desc_from_models.dat which creates hpaio.desc
directly from the models.dat file from HPLIP version 2.8.4.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support