foomatic-db-engine 4.0.8-0ubuntu1
Till Kamppeter
12 years ago
0 | 2011-07-25 Till Kamppeter <till.kamppeter@gmail.com> | |
1 | ||
2 | * Tagged branch for release 4.0.8. | |
3 | ||
4 | * README, USAGE, configure.ac: Updated for release 4.0.8. | |
5 | ||
6 | 2011-06-30 Till Kamppeter <till.kamppeter@gmail.com> | |
7 | ||
8 | * lib/Foomatic/PPD.pm: Improved printer entry searh algorithm | |
9 | (find_printer() method) in two points: | |
10 | 1. Score match of only make and model in printer ID of the entry | |
11 | higher than match of make and model fields of the entry but | |
12 | lower than match of full printer ID. This raises the relevance | |
13 | of printer ID matches if the search term contains only a partial | |
14 | device ID consisting of only the make and model fields. | |
15 | 2. Score a printer entry with an actual printer XML file 1 point | |
16 | higher than an implicit printer entry only coming from a | |
17 | printer name in a driver's printer list. This raises the | |
18 | relevance of actual printer XML entries. | |
19 | ||
20 | 2011-03-04 Till Kamppeter <till.kamppeter@gmail.com> | |
21 | ||
22 | * lib/Foomatic/PPD.pm: Handle non-UTF-8 encodings in imported PPD | |
23 | files. Thanks to Richard Hughes (hughsient at gmail dot com) for | |
24 | supplying me this patch from Red Hat. | |
25 | ||
26 | * configure.ac: Added libdir support for the ./configure | |
27 | script. Thanks to Richard Hughes (hughsient at gmail dot com) for | |
28 | supplying me this patch from Red Hat. | |
29 | ||
0 | 30 | 2011-02-18 Till Kamppeter <till.kamppeter@gmail.com> |
1 | 31 | |
2 | 32 | * Tagged branch for release 4.0.7. |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.61 for foomatic-db-engine 4.0.7. | |
2 | # Generated by GNU Autoconf 2.61 for foomatic-db-engine 4.0.8. | |
3 | 3 | # |
4 | 4 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5 | 5 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
571 | 571 | # Identity of this package. |
572 | 572 | PACKAGE_NAME='foomatic-db-engine' |
573 | 573 | PACKAGE_TARNAME='foomatic-db-engine' |
574 | PACKAGE_VERSION='4.0.7' | |
575 | PACKAGE_STRING='foomatic-db-engine 4.0.7' | |
574 | PACKAGE_VERSION='4.0.8' | |
575 | PACKAGE_STRING='foomatic-db-engine 4.0.8' | |
576 | 576 | PACKAGE_BUGREPORT='' |
577 | 577 | |
578 | 578 | ac_unique_file="foomatic-perl-data.c" |
1214 | 1214 | # Omit some internal or obsolete options to make the list less imposing. |
1215 | 1215 | # This message is too long to be a string in the A/UX 3.1 sh. |
1216 | 1216 | cat <<_ACEOF |
1217 | \`configure' configures foomatic-db-engine 4.0.7 to adapt to many kinds of systems. | |
1217 | \`configure' configures foomatic-db-engine 4.0.8 to adapt to many kinds of systems. | |
1218 | 1218 | |
1219 | 1219 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1220 | 1220 | |
1275 | 1275 | |
1276 | 1276 | if test -n "$ac_init_help"; then |
1277 | 1277 | case $ac_init_help in |
1278 | short | recursive ) echo "Configuration of foomatic-db-engine 4.0.7:";; | |
1278 | short | recursive ) echo "Configuration of foomatic-db-engine 4.0.8:";; | |
1279 | 1279 | esac |
1280 | 1280 | cat <<\_ACEOF |
1281 | 1281 | |
1360 | 1360 | test -n "$ac_init_help" && exit $ac_status |
1361 | 1361 | if $ac_init_version; then |
1362 | 1362 | cat <<\_ACEOF |
1363 | foomatic-db-engine configure 4.0.7 | |
1363 | foomatic-db-engine configure 4.0.8 | |
1364 | 1364 | generated by GNU Autoconf 2.61 |
1365 | 1365 | |
1366 | 1366 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1374 | 1374 | This file contains any messages produced by compilers while |
1375 | 1375 | running configure, to aid debugging if configure makes a mistake. |
1376 | 1376 | |
1377 | It was created by foomatic-db-engine $as_me 4.0.7, which was | |
1377 | It was created by foomatic-db-engine $as_me 4.0.8, which was | |
1378 | 1378 | generated by GNU Autoconf 2.61. Invocation command line was |
1379 | 1379 | |
1380 | 1380 | $ $0 $@ |
4042 | 4042 | SYSCONFSEARCHPATH=/etc:/usr/etc:/usr/local/etc:/var/etc |
4043 | 4043 | SBINSEARCHPATH=/usr/sbin:/sbin:/usr/local/sbin:/etc/sbin |
4044 | 4044 | BINSEARCHPATH=/usr/bin:/bin:/usr/local/bin |
4045 | DATASEARCHPATH=/usr/share:/usr/local/share:/usr/lib:/usr/local/lib:/opt | |
4046 | LIBSEARCHPATH=/usr/lib:/lib:/usr/local/lib:/usr/local/libexec:/opt | |
4045 | DATASEARCHPATH=/usr/share:/usr/local/share:$libdir:/usr/local/lib:/opt | |
4046 | LIBSEARCHPATH=$libdir:/lib:/usr/local/lib:/usr/local/libexec:/opt | |
4047 | 4047 | PTALPIPESSEARCHPATH=/var/run:/var:/var/ptal:/usr/var/run:/usr/var:/usr/var/ptal:/usr/local/var/run:/usr/local/var:/usr/local/var/ptal:/dev:/dev/ptal |
4048 | 4048 | MTINKPIPESSEARCHPATH=/var:/var/run:/usr/var/:/usr/var/run:/usr/local/var:/usr/local/var/run:/dev |
4049 | 4049 | |
6035 | 6035 | |
6036 | 6036 | test -n "$PDQ_CONF" && break |
6037 | 6037 | done |
6038 | test -n "$PDQ_CONF" || PDQ_CONF="/usr/lib/pdq" | |
6038 | test -n "$PDQ_CONF" || PDQ_CONF="$libdir/pdq" | |
6039 | 6039 | |
6040 | 6040 | for ac_prog in pdq/printrc |
6041 | 6041 | do |
6175 | 6175 | |
6176 | 6176 | test -n "$PPR_PPRD" && break |
6177 | 6177 | done |
6178 | test -n "$PPR_PPRD" || PPR_PPRD="/usr/lib/ppr/bin/pprd" | |
6178 | test -n "$PPR_PPRD" || PPR_PPRD="$libdir/ppr/bin/pprd" | |
6179 | 6179 | |
6180 | 6180 | for ac_dir in ppr/interfaces |
6181 | 6181 | do |
6218 | 6218 | |
6219 | 6219 | test -n "$PPR_INTERFACES" && break |
6220 | 6220 | done |
6221 | test -n "$PPR_INTERFACES" || PPR_INTERFACES="/usr/lib/ppr/interfaces" | |
6221 | test -n "$PPR_INTERFACES" || PPR_INTERFACES="$libdir/ppr/interfaces" | |
6222 | 6222 | |
6223 | 6223 | for ac_dir in ppr/PPDFiles |
6224 | 6224 | do |
7423 | 7423 | # report actual input values of CONFIG_FILES etc. instead of their |
7424 | 7424 | # values after options handling. |
7425 | 7425 | ac_log=" |
7426 | This file was extended by foomatic-db-engine $as_me 4.0.7, which was | |
7426 | This file was extended by foomatic-db-engine $as_me 4.0.8, which was | |
7427 | 7427 | generated by GNU Autoconf 2.61. Invocation command line was |
7428 | 7428 | |
7429 | 7429 | CONFIG_FILES = $CONFIG_FILES |
7466 | 7466 | _ACEOF |
7467 | 7467 | cat >>$CONFIG_STATUS <<_ACEOF |
7468 | 7468 | ac_cs_version="\\ |
7469 | foomatic-db-engine config.status 4.0.7 | |
7469 | foomatic-db-engine config.status 4.0.8 | |
7470 | 7470 | configured by $0, generated by GNU Autoconf 2.61, |
7471 | 7471 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
7472 | 7472 |
0 | 0 | dnl Process this file with autoconf to produce a configure script. |
1 | 1 | AC_PREREQ([2.52]) |
2 | AC_INIT([foomatic-db-engine], 4.0.7) | |
2 | AC_INIT([foomatic-db-engine], 4.0.8) | |
3 | 3 | AC_CONFIG_SRCDIR(foomatic-perl-data.c) |
4 | 4 | |
5 | 5 | # If the user didn't specify the $sysconfdir on the command line, let it |
68 | 68 | SYSCONFSEARCHPATH=/etc:/usr/etc:/usr/local/etc:/var/etc |
69 | 69 | SBINSEARCHPATH=/usr/sbin:/sbin:/usr/local/sbin:/etc/sbin |
70 | 70 | BINSEARCHPATH=/usr/bin:/bin:/usr/local/bin |
71 | DATASEARCHPATH=/usr/share:/usr/local/share:/usr/lib:/usr/local/lib:/opt | |
72 | LIBSEARCHPATH=/usr/lib:/lib:/usr/local/lib:/usr/local/libexec:/opt | |
71 | DATASEARCHPATH=/usr/share:/usr/local/share:$libdir:/usr/local/lib:/opt | |
72 | LIBSEARCHPATH=$libdir:/lib:/usr/local/lib:/usr/local/libexec:/opt | |
73 | 73 | PTALPIPESSEARCHPATH=/var/run:/var:/var/ptal:/usr/var/run:/usr/var:/usr/var/ptal:/usr/local/var/run:/usr/local/var:/usr/local/var/ptal:/dev:/dev/ptal |
74 | 74 | MTINKPIPESSEARCHPATH=/var:/var/run:/usr/var/:/usr/var/run:/usr/local/var:/usr/local/var/run:/dev |
75 | 75 | |
256 | 256 | AC_PATH_PROGS(CUPS_LPINFO,lpinfo,/usr/sbin/lpinfo,$SBINSEARCHPATH) |
257 | 257 | |
258 | 258 | # Paths for PDQ |
259 | FM_PATH_DIRS(PDQ_CONF,pdq,/usr/lib/pdq,$SYS_LIB_PATH) | |
259 | FM_PATH_DIRS(PDQ_CONF,pdq,$libdir/pdq,$SYS_LIB_PATH) | |
260 | 260 | AC_PATH_PROGS(PDQ_PRINTRC,pdq/printrc,$PDQ_CONF/printrc,$SYS_LIB_PATH) |
261 | 261 | dnl PDQ_FOOMATIC=$PDQ_CONF/drivers/foomatic |
262 | 262 | AC_PATH_PROGS(PDQ_PRINT,pdq lpr-pdq,/usr/bin/pdq,$BINSEARCHPATH) |
263 | 263 | dnl PDQ_JOBDIR=~/.printjobs |
264 | 264 | |
265 | 265 | # Paths for PPR |
266 | AC_PATH_PROGS(PPR_PPRD,ppr/bin/pprd,/usr/lib/ppr/bin/pprd,$LIBSEARCHPATH) | |
267 | FM_PATH_DIRS(PPR_INTERFACES,ppr/interfaces,/usr/lib/ppr/interfaces,$LIBSEARCHPATH) | |
266 | AC_PATH_PROGS(PPR_PPRD,ppr/bin/pprd,$libdir/ppr/bin/pprd,$LIBSEARCHPATH) | |
267 | FM_PATH_DIRS(PPR_INTERFACES,ppr/interfaces,$libdir/ppr/interfaces,$LIBSEARCHPATH) | |
268 | 268 | FM_PATH_DIRS(PPR_PPDFILES,ppr/PPDFiles,/usr/share/ppr/PPDFiles,$DATASEARCHPATH) |
269 | 269 | FM_PATH_DIRS(PPR_ETC,ppr,/etc/ppr,$SYSCONFSEARCHPATH) |
270 | 270 | AC_PATH_PROGS(PPR_PPR,ppr lpr-ppr,/usr/bin/ppr,$BINSEARCHPATH) |
0 | foomatic-db-engine (4.0.8-0ubuntu1) oneiric; urgency=low | |
1 | ||
2 | * New upstream release | |
3 | - Improved printer entry searh algorithm letting the value of matching | |
4 | only manufacturer and model in the device ID bein higher than matching | |
5 | the make and model fields of the Foomatic entry but lower than a full | |
6 | device ID match and also scoring a printer with actual Foomatic entry | |
7 | higher than a printer only known by a driver entry. | |
8 | - Handle non-UTF-8 encodings in imported PPD files. | |
9 | ||
10 | -- Till Kamppeter <till.kamppeter@gmail.com> Mon, 25 Jul 2010 12:45:40 +0200 | |
11 | ||
0 | 12 | foomatic-db-engine (4.0.7-2) unstable; urgency=low |
1 | 13 | |
2 | 14 | * Drop the dummy foomatic-filters-ppds package, which was only useful |
564 | 564 | # "Real" manufacturer, check manufacturer, model, and/or |
565 | 565 | # description |
566 | 566 | my $matched = 1; |
567 | my $mfgmdlmatched = 1; | |
567 | 568 | my ($mfg, $mdl, $des, $sku); |
568 | 569 | my $ieee1284 = deviceIDfromDBEntry($p); |
569 | 570 | if ($ieee1284 =~ /(MFG|MANUFACTURER):\s*([^:;]+);?/i) { |
584 | 585 | if ($mfg) { |
585 | 586 | if ($mfg ne $automake) { |
586 | 587 | $matched = 0; |
588 | $mfgmdlmatched = 0; | |
587 | 589 | } |
588 | 590 | } |
589 | 591 | if ($mdl) { |
590 | 592 | if ($mdl ne $automodel) { |
591 | 593 | $matched = 0; |
594 | $mfgmdlmatched = 0; | |
592 | 595 | } |
593 | 596 | } |
594 | 597 | if ($des) { |
604 | 607 | if ($matched && |
605 | 608 | ($des || ($mfg && ($mdl || ($sku && $autosku))))) { |
606 | 609 | # Full match to known auto-detection data |
607 | $matchlength = 1000; | |
610 | $matchlength = 1200; | |
611 | if (!$p->{noxmlentry}) { | |
612 | $matchlength += 1; | |
613 | } | |
608 | 614 | $bestmatchlength = $matchlength if |
609 | 615 | $bestmatchlength < $matchlength; |
610 | 616 | $results{$p->{id}} = $matchlength if |
611 | 617 | (!defined($results{$p->{id}}) || |
612 | ($results{$p->{id}} < $matchlength)); | |
618 | ($results{$p->{id}} < $matchlength)); | |
619 | next; | |
620 | } | |
621 | if ($mfgmdlmatched && | |
622 | ($mfg && $mdl)) { | |
623 | # Match to known auto-detection make/model data | |
624 | $matchlength = 1000; | |
625 | if (!$p->{noxmlentry}) { | |
626 | $matchlength += 1; | |
627 | } | |
628 | $bestmatchlength = $matchlength if | |
629 | $bestmatchlength < $matchlength; | |
630 | $results{$p->{id}} = $matchlength if | |
631 | (!defined($results{$p->{id}}) || | |
632 | ($results{$p->{id}} < $matchlength)); | |
613 | 633 | next; |
614 | 634 | } |
615 | 635 | } |
638 | 658 | # models |
639 | 659 | if (normalize($task->[1]) eq normalize($task->[0])) { |
640 | 660 | $matchlength = 100; |
661 | if (!$p->{noxmlentry}) { | |
662 | $bestmatchlength += 1; | |
663 | } | |
641 | 664 | $bestmatchlength = $matchlength + $task->[2] if |
642 | 665 | $bestmatchlength < $matchlength + $task->[2]; |
643 | 666 | $results{$p->{id}} = $matchlength + $task->[2] if |
299 | 299 | sub xml_esc { |
300 | 300 | my ($in) = (@_); |
301 | 301 | |
302 | $in =~ s!&!&!g; | |
303 | $in =~ s!<!<!g; | |
304 | $in =~ s!>!>!g; | |
305 | ||
306 | return $in; | |
302 | @chars = split(//,$in); | |
303 | $ascii = ""; | |
304 | foreach (@chars) { | |
305 | if (ord ($_) > 127) { $_="?"; } | |
306 | $ascii .= $_; | |
307 | } | |
308 | $ascii =~ s!&!&!g; | |
309 | $ascii =~ s!<!<!g; | |
310 | $ascii =~ s!>!>!g; | |
311 | ||
312 | return $ascii; | |
307 | 313 | } |
308 | 314 | |
309 | 315 | sub pdq_filter { |