forked from pool/hplip
* hplip-base now contains all utilities that are not totally useless
and can run without the Qt GUI.
- Update fix for support of new GPG key, as the key has now been
uploaded to GPG keyservers (lp#2120738)
* drop hplip-hardcode-new-signing-key-AC69536A2CF3A243.patch
* update hplip-change-pgp-server.patch
- Drop dependency on cups-ppdc. It isn't necessary, as PPD
generation on target system is done by cups-driverd.
- The old and outdated 'hpijs' driver support is finally dropped
(the 'hpcups' driver is the default driver since 2009)
so that there is no need for foomatic-filters (boo#1250481)
- Continue refactoring:
* move GUI tools to "hplip-utils" subpackage
* convert "hplip" into an empty metapackage that pulls in hplip-utils
and all drivers / PPDs (except hpijs PPDs).
- Refactor package structure:
* hplip: full set of utilities. Pulls in almost all subpackages
to deliver the "traditional" hplip experience
* hplip-base: small set of basic utilities that can be run
without GUI. Includes hp-probe and hp-plugin
* hplip-cups: minimal package for printing, without PPDs or
setup helpers
* hplip-sane: scanning support (unchanged)
* hplip-driver-hpcups: hpcups.drv for generating hpcups PPDs on
the fly (requires ppdc). The functionality of this package is
similar to the old (misnamed) "hplip-hpijs" package.
* hplip-driver-hpijs: hpijs.drv for generating PPDs for the deprecated
hpijs / foomatic_rip filter. Note that this functionality was not part of
the late hplip-hpijs package, because upstream hasn't ship foomatic PPDs
since hplip 3.17.11.
* hplip-ppds-{hpcups,hpps,postscript,hpijs,fax,plugin}: static PPD
files for different printer types.
hplip-ppds-hpcups is an alternative to hplip-driver-hpcups.
* libhplip0: shared library package, used by hplip-cups and
hplip-sane
* hplip-common: configuration files and directories used by
all hplip packages.
- Other spec file changes:
* Skip deprecated suse_update_desktop_file by default on TW
* Don't mess with sane configuration in udev rules
* Only the hpijs packages depend on foomatic-rip, which is only
provided by cups-filters-1.x. The other packages can be used
with cups-filters2.
* Remove Obsoletes: for ancient predecessor packages
* Remove outdated comments from spec file
* Shorten package descriptions
* Fix a couple of rpmlint issues
- Fix printer probing using avahi (lp#2120947)
* Add hplip-fix-driver-probing-using-avahi.patch
* Add hplip-fix-python-crash-in-avahi.py.patch
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=275
49 lines
2.9 KiB
Diff
49 lines
2.9 KiB
Diff
Index: b/data/rules/56-hpmud.rules
|
|
===================================================================
|
|
--- a/data/rules/56-hpmud.rules
|
|
+++ b/data/rules/56-hpmud.rules
|
|
@@ -1,8 +1,31 @@
|
|
# HPLIP udev rules file. Notify console user if plugin support is required for this device.
|
|
+#
|
|
+# SUSE changed:
|
|
+#
|
|
+# Exchanged the rule to GOTO hpmud_usb_rules if SUBSYSTEM is "usb"
|
|
+# with the rule if SUBSYSTEM is "ppdev" to avoid that the "ppdev" rule
|
|
+# is needlessly processed when SUBSYSTEM is "usb".
|
|
+#
|
|
+# Added GOTO hpmud_rules_end rule to skip the hpmud_usb_rules
|
|
+# if SUBSYSTEM is not "usb" or if ENV{DEVTYPE} is not "usb_device" or if SUBSYSTEM is not "ppdev"
|
|
+# to avoid that the hpmud_usb_rules are needlessly processed.
|
|
+#
|
|
+# The rule to automatically "check ... plugin status" is disabled
|
|
+# because automated installation of non-free proprietary third-party software
|
|
+# (here the plugin from HP) should not happen and it can cause whatever kind
|
|
+# of strange behaviour see for example https://bugs.launchpad.net/bugs/1197416
|
|
+# and https://bugs.launchpad.net/bugs/1221348
|
|
+# while in contrast manual printer setup via hp-setup usually "just works"
|
|
+# and it is clear for the user what goes on and in case of failure what went wrong.
|
|
+#
|
|
+# Because the rule to automatically "check ... plugin status"
|
|
+# is also used to upload firmware into printers that need it
|
|
+# see https://bugs.launchpad.net/bugs/1220628
|
|
+# a rule that only uploads firmware into printers that need it is added.
|
|
|
|
ACTION!="add", GOTO="hpmud_rules_end"
|
|
-SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0664"
|
|
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hpmud_usb_rules"
|
|
+SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0664"
|
|
GOTO="hpmud_rules_end"
|
|
|
|
LABEL="hpmud_usb_rules"
|
|
@@ -13,6 +38,9 @@ ENV{ID_USB_INTERFACES}=="", IMPORT{built
|
|
ATTR{idVendor}=="03f0", ENV{ID_USB_INTERFACES}=="*:0701??:*|*:ffcc00:", OWNER="root", GROUP="lp", MODE="0664", ENV{libsane_matched}="yes", ENV{hp_test}="yes", ENV{ID_HPLIP}="1"
|
|
|
|
# This rule will check the smart install feature, plugin status and firmware download for the required printers.
|
|
-ENV{hp_test}=="yes", PROGRAM="/bin/sh -c 'logger -p user.info loading HP Device $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c '/usr/bin/nohup /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM}'"
|
|
+#ENV{hp_test}=="yes", PROGRAM="/bin/sh -c 'logger -p user.info loading HP Device $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c '/usr/bin/nohup /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM}'"
|
|
+# This rule uploads firmware to HP USB printer devices if needed:
|
|
+ENV{hp_test}=="yes", PROGRAM="/bin/logger -p user.info udev hpmud.rules runs hp-firmware to test if HP device with USB vendor ID $attr{idVendor} and USB product ID $attr{idProduct} at USB bus ID $env{BUSNUM} and USB device ID $env{DEVNUM} needs firmware and if yes to upload it", RUN+="/usr/bin/hp-firmware -s $env{BUSNUM}:$env{DEVNUM}"
|
|
|
|
LABEL="hpmud_rules_end"
|
|
+
|