From d0bf50f69321527a9646fb93a3c63082499e82cb Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Mon, 19 Jul 2010 16:33:30 +0200 Subject: - Turn on the insertion of PostScript code for CUPS' page accounting by default (LP: #119403). --- debian/changelog | 3 +++ debian/foomatic-filters.postinst | 12 ++++++++++++ debian/foomatic-filters.templates | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 07e8ac4..031c2b7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,9 @@ foomatic-filters (4.0.4-1) UNRELEASED; urgency=low × - Install the apport hook on Ubuntu - Merge the changelog entries. - Merge most package relationships. + - Merge package descriptions (Closes: #467380) + - Turn on the insertion of PostScript code for CUPS' page accounting by default + (LP: #119403). * s/cupsys/cups/ everywhere (Closes: #511748) diff --git a/debian/foomatic-filters.postinst b/debian/foomatic-filters.postinst index bc30bff..bebb8ca 100644 --- a/debian/foomatic-filters.postinst +++ b/debian/foomatic-filters.postinst @@ -45,6 +45,18 @@ else ps_accounting="ps_accounting: 0" fi +# Since foomatic-filters 3.0.2-20070719-0ubuntu1 in Ubuntu and +# since foomatic-filters 4.0.4-1 in Debian, the default for inserting +# PostScript code for CUPS' page accounting changed. This functionality +# is now activated by default as for problematic drivers it can be +# deactivated individually +if dpkg --compare-versions "$2" lt-nl "4.0.4-1" || (dpkg --compare-versions "$2" lt-nl "3.0.2-20070719-0ubuntu1" && dpkg-vendor --derives-from Ubuntu); then + ps_accounting="ps_accounting: 1" + RET=true + db_set foomatic-filters/ps_accounting true +fi + + db_get foomatic-filters/spooler echo "$RET" >| /etc/foomatic/defaultspooler diff --git a/debian/foomatic-filters.templates b/debian/foomatic-filters.templates index f841076..2408533 100644 --- a/debian/foomatic-filters.templates +++ b/debian/foomatic-filters.templates @@ -45,7 +45,7 @@ _Description: Command to convert standard input to PostScript: Template: foomatic-filters/ps_accounting Type: boolean -Default: false +Default: true _Description: Enable PostScript accounting for CUPS? You should choose this option if you want to insert PostScript code for accounting into each print job. This is currently only useful -- cgit v1.2.3