pkgsrc/print/hplip/patches/patch-ae
khorben 11bf9a8c68 hplip: Update to 3.19.12
Tested on NetBSD/amd64 (9.0_BETA) with a HP LaserJet 200 color MFP M276.

A manual copy/paste of the intermediate release notes follows (see
https://developers.hp.com/hp-linux-imaging-and-printing/release_notes
for the original content).

HPLIP 3.19.12:

 * Added support for the following new Printers:
   - HP Color LaserJet Pro M256dn
   - HP Color LaserJet Pro M255dn
   - HP Color LaserJet Pro M256nw
   - HP Color LaserJet Pro M255nw
   - HP Color LaserJet Pro M256dw
   - HP Color LaserJet Pro M255dw
   - HP Color LaserJet Pro M155a
   - HP Color LaserJet Pro M156a
   - HP Color LaserJet Pro M155nw
   - HP Color LaserJet Pro M156nw
   - HP Color LaserJet Pro MFP M282nw
   - HP Color LaserJet Pro MFP M284nw
   - HP Color LaserJet Pro MFP M283fdn
   - HP Color LaserJet Pro MFP M285fdn
   - HP Color LaserJet Pro MFP M283fdw
   - HP Color LaserJet Pro MFP M285fdw
   - HP Color LaserJet Pro MFP M283cdw
   - HP Color LaserJet Pro MFP M285cdw
   - HP Color LaserJet Pro MFP M182n
   - HP Color LaserJet Pro MFP M184n
   - HP Color LaserJet Pro MFP M182nw
   - HP Color LaserJet Pro MFP M184nw
   - HP Color LaserJet Pro MFP M183fw
   - HP Color LaserJet Pro MFP M185fw
 * Added support for following new Distro's:
   - Debian 10.1
   - Debian 10.2
   - Manjaro 18.1.2
 * Features:
   - Rendering print jobs with cupsfilter command

HPLIP 3.19.11:

 * Added support for the following new Printers:
   - HP Color LaserJet MFP M776dn
   - HP Color LaserJet Flow MFP M776z
   - HP Color LaserJet Flow MFP M776zs
   - HP Color LaserJet M856dn
   - HP Color LaserJet M856x
   - HP Color LaserJet E85055dn
 * Added support for following new Distro's:
   - Manjaro 18.1.0(64-bit)
   - Ubuntu 19.10(64-bit)
   - Fedora 31(64-bit)

HPLIP 3.19.8:

 * Added support for the following new Printers:
   - HP DesignJet T1530 Postscript
   - HP DesignJet T2530 Postscript
   - HP DesignJet T930 Postscript
   - HP DesignJet T1600 Postscript Printer
   - HP DesignJet T1600dr Postscript Printer
   - HP DesignJet T2600 Postscript MFP
   - HP LaserJet Pro MFP M329dn
   - HP LaserJet Pro MFP M329dw
   - HP LaserJet Pro M305d
   - HP LaserJet Pro M304a
   - HP LaserJet Pro M305dn
   - HP LaserJet Pro M305dw
 * Added support for following new Distro's:
   - OpenSuse 15.1
   - Debian 9.9
   - Debian 10
   - Manjaro 18.0.4
   - Linux Mint 19.2
   - RHEL 8.0

HPLIP 3.19.6:

 * Added support for the following new Printers:
   - HP Smart Tank 500 series
   - HP Smart Tank 530 series
   - HP Smart Tank Plus 570 series
   - HP Smart Tank Plus 650
   - HP Smart Tank 610
   - HP Smart Tank Plus 550
   - HP Smart Tank 510
   - HP Neverstop Laser MFP 1200a
   - HP Neverstop Laser MFP 1200w
   - HP Laser NS MFP 1005
   - HP Laser NS MFP 1005w
   - HP Neverstop Laser 1000a
   - HP Neverstop Laser 1000w
   - HP Laser NS 1020
   - HP Laser NS 1020w
   - HP DesignJet T2600dr Postscript MFP
   - HP DesignJet XL 3600 PS MFP
   - HP Color LaserJet Pro M453cdn
   - HP Color LaserJet Pro M454dn
   - HP Color LaserJet Pro M454cdn
   - HP Color LaserJet Pro M453cdw
   - HP Color LaserJet Pro M454nw
   - HP Color LaserJet Pro M454dw
   - HP Color LaserJet Pro M454cdw
   - HP Color LaserJet Pro MFP M479dw
   - HP Color LaserJet Pro MFP M478fcdn
   - HP Color LaserJet Pro MFP M479fdn
   - HP Color LaserJet Pro MFP M479fcdn
   - HP Color LaserJet Pro MFP M478fcdw
   - HP Color LaserJet Pro MFP M479fdw
   - HP Color LaserJet Pro MFP M479fnw
   - HP Color LaserJet Pro MFP M479fcdw
   - HP LaserJet Pro MFP M428dw
   - HP LaserJet Pro MFP M429dw
   - HP LaserJet Pro MFP M428fdn
   - HP LaserJet Pro MFP M428c1
   - HP LaserJet Pro MFP M428c3
   - HP LaserJet Pro MFP M428m
   - HP LaserJet Pro MFP M429fdn
   - HP LaserJet Pro MFP M428fdw
   - HP LaserJet Pro MFP M428c2
   - HP LaserJet Pro MFP M428c4
   - HP LaserJet Pro MFP M429fdw
   - HP LaserJet Pro M404d
   - HP LaserJet Pro M405d
   - HP LaserJet Pro M404n
   - HP LaserJet Pro M405n
   - HP LaserJet Pro M404dn
   - HP LaserJet Pro M404c1
   - HP LaserJet Pro M404c3
   - HP LaserJet Pro M404m
   - HP LaserJet Pro M405dn
   - HP LaserJet Pro M404dw
   - HP LaserJet Pro M404c2
   - HP LaserJet Pro M404c4
   - HP LaserJet Pro M405dw

HPLIP 3.19.5:

 * Added support for the following new Printers:
   - HP LaserJet Enterprise M507n
   - HP LaserJet Enterprise M507dn
   - HP LaserJet Enterprise M507x
   - HP LaserJet Enterprise M507dng
   - HP LaserJet Managed E50145dn
   - HP LaserJet Managed E50145x
   - HP LaserJet Enterprise MFP M528dn
   - HP LaserJet Enterprise MFP M528f
   - HP LaserJet Enterprise Flow MFP M528c
   - HP LaserJet Enterprise Flow MFP M528z
   - HP LaserJet Managed MFP E52645dn
   - HP LaserJet Managed Flow MFP E52645c
   - HP Color LaserJet Managed E75245dn
   - HP Color LaserJet Enterprise M751n
   - HP Color LaserJet Enterprise M751dn
   - HP PageWide XL 3900PS MFP
   - HP OfficeJet Pro 8030 All-in-One Printer series
   - HP OfficeJet Pro 8020 All-in-One Printer series
   - HP OfficeJet 8020 All-in-One Printer Series
   - HP OfficeJet 8010 All-in-One Printer series
 * Added support for following new Distro's:
   - Debian 9.8(64-bit)
   - Ubuntu 19.04(64-bit)
   - Fedora 30(64-bit)

HPLIP 3.19.3:

 * Added support for the following new Printers:
   - HP OfficeJet Pro All-in-One 9010
   - HP OfficeJet Pro All-in-One 9020
   - HP OfficeJet All-in-One 9010
   - HP PageWide XL 4100 Printer
   - HP PageWide XL 4100 MFP
   - HP PageWide XL 4600 Printer
   - HP PageWide XL 4600PS MFP
   - HP Color LaserJet Managed MFP E77422a
   - HP Color LaserJet Managed MFP E77422dv
   - HP Color LaserJet Managed MFP E77422dn
   - HP Color LaserJet Managed MFP E77428dn
   - HP LaserJet MFP E72425a
   - HP LaserJet MFP E72425dv
   - HP LaserJet MFP E72425dn
   - HP LaserJet MFP E72430dn
   - HP LaserJet Managed MFP E62655dn
   - HP LaserJet Managed MFP E62665hs
   - HP LaserJet Managed Flow MFP E62665h
   - HP LaserJet Managed Flow MFP E62675z
   - HP LaserJet Managed Flow MFP E62665z
   - HP LaserJet Managed E60155dn
   - HP LaserJet Managed E60165dn
   - HP LaserJet Managed E60175dn
   - HP Color LaserJet Managed E65150dn
   - HP Color LaserJet Managed E65160dn
   - HP Color LaserJet Managed MFP E67650dh
   - HP Color LaserJet Managed Flow MFP E67660z
 * Added support for following new Distro's:
   - Debian 9.7(64-bit)
   - RHEL-7.6(64-bit)
   - LinuxMint 19.1(64-bit)

HPLIP 3.19.1:

 * Added support for the following new Printers:
   - HP LaserJet Managed MFP E82540du
   - HP LaserJet Managed MFP E82550du
   - HP LaserJet Managed MFP E82560du
   - HP Color LaserJet Managed MFP E87640 du
   - HP Color LaserJet Managed MFP E87650du
   - HP Color LaserJet Managed MFP E87660du
 * Added support for the following new ScanJet Device:
   - HP Scanjet Pro 2500 f1
 * Added support for following new Distro's:
   - Fedora 29(64-bit)
   - Open Suse 15(64-bit)
   - Manjaro 18.0(64-bit)
   - RHEL 7.2(64-bit)

HPLIP 3.18.12:

 * Added support for the following new Printers:
   - HP Tango
   - HP Tango X
 * Added support for the following new ScanJet Device:
   - HP Scanjet Pro 2000 S1
 * Added support for following new Distro's:
   - Debian 9.6(64-bit)
   - Ubuntu 18.10(64-bit)

HPLIP 3.18.10:

 * Added support for the following new Printers:
   - HP DesignJet T1708 PostScript
   - HP DesignJet T1708dr PostScript

HPLIP 3.18.9:

 * Added support for the following new Printers:
   - HP PageWide 755dn
   - HP PageWide MFP 774dns
   - HP PageWide MFP 774dn
   - HP PageWide MFP 779dns
   - HP PageWide MFP 779dn
   - HP LaserJet Pro MFP M148dw
   - HP LaserJet Pro MFP M149dw
   - HP LaserJet Pro MFP M148fdw
   - HP LaserJet Pro MFP M149fdw
   - HP LaserJet Pro M118dw
   - HP LaserJet Pro M119dw
   - HP Scanjet Enterprise 7500 Flatbed Scanner
 * Added support for the following new Distros:
   - Linux Mint 19
   - Debian 9.5

HPLIP 3.18.7:

 * Added support for the following new Printers:
   - HP Smart Tank 350
   - HP Smart Tank Wireless 450
   - HP Ink Tank 310
   - HP Ink Tank Wireless 410
   - HP Ink Tank 115
   - HP DesignJet Z6 24in
   - HP DesignJet Z6 44in
   - HP DesignJet Z6dr 44in
   - HP DesignJet Z9 24in
   - HP DesignJet Z9 44in
   - HP DesignJet Z9dr 44in
 * Added support for the following new Distros:
   - Fedora 28 (64 bit)
 * Issues fixed:
   - CR 59273 - Supplies and status information are not displayed in the
     hp-toolbox for Ruby
   - CR 58929 - HPLIP Google Reported Issues related to models.dat file
     on PPD mapping
   - CD 58930 - HPLIP Google Reported Syntactical Issues related to
     models.dat file

HPLIP 3.18.6:

 * Added support for the following new Printers:
   - HP DesignJet Z6810ps 60in
   - HP DesignJet Z6610ps 60in
   - HP DesignJet Z6810ps 42in
2020-01-04 04:24:12 +00:00

130 lines
4.7 KiB
Text

$NetBSD: patch-ae,v 1.11 2020/01/04 04:24:12 khorben Exp $
# Conform to autoconf's standard variable usage, making it easier
# to install on pkgsrc platforms
# reported upstream as https://bugs.launchpad.net/hplip/+bug/726218
# still needs to handle the buildlink path for libusb-1.0 :(
# schnoebe -- Fri May 24 14:55:57 CDT 2013
--- Makefile.am.orig 2019-12-10 05:00:36.000000000 +0000
+++ Makefile.am
@@ -8,7 +8,7 @@ CFLAGS+= -DCONFDIR=\"$(hplip_confdir)\"
CXXFLAGS+= -DCONFDIR=\"$(hplip_confdir)\"
hplipdir = $(datadir)/hplip
-apparmordir = /etc/apparmor.d
+apparmordir = $(sysconfdir)/apparmor.d
docdir = $(hpdocdir)
htmldir = $(hphtmldir)
doc_DATA = COPYING copyright prnt/hpijs/README_LIBJPG
@@ -110,6 +110,7 @@ libhpmud_la_LDFLAGS += -lusb
else
libhpmud_la_SOURCES += io/hpmud/musb.c
libhpmud_la_CFLAGS += -I/usr/include/libusb-1.0
+libhpmud_la_CFLAGS += -I$(prefix)/include/libusb-1.0
libhpmud_la_LDFLAGS += -lusb-1.0
endif
@@ -131,12 +132,12 @@ libhpip_la_SOURCES = ip/xconvolve.c ip/x
ip/hpip.h ip/ipdefs.h ip/xform.h ip/xjpg_dct.h ip/xjpg_huf.h ip/xjpg_mrk.h
#hpmud rules data dir
-rulessystemdir=/usr/lib/systemd/system
+rulessystemdir=$(sysconfdir)/systemd/system
dist_rulessystem_DATA =data/rules/hplip-printer@.service
# hpmud.rules
if !HPLIP_CLASS_DRIVER
-rulesdir = /etc/udev/rules.d
+rulesdir = $(sysconfdir)/udev/rules.d
if UDEV_SYSFS_RULES
dist_rules_DATA = data/rules/56-hpmud_sysfs.rules
else
@@ -144,11 +145,11 @@ dist_rules_DATA = data/rules/56-hpmud.ru
endif
endif #HPLIP_CLASS_DRIVER
-halpredir = /usr/share/hal/fdi/preprobe/10osvendor
+halpredir = $(datadir)/hal/fdi/preprobe/10osvendor
dist_halpre_DATA = data/rules/20-hplip-devices.fdi
# hplip.conf
-hplip_confdir = /etc/hp
+hplip_confdir = $(sysconfdir)/hp
hplip_conf_DATA = hplip.conf
if !HPLIP_CLASS_DRIVER
@@ -158,7 +159,7 @@ pstotiff_SCRIPTS = fax/filters/pstotiff
endif #HPLIP_CLASS_DRIVER
# hplip.state
-hplip_statedir = /var/lib/hp
+hplip_statedir = $(localstatedir)/lib/hp
dist_hplip_state_DATA =
if FULL_BUILD
@@ -233,11 +234,11 @@ endif # FAX_BUILD
if !HPLIP_CLASS_DRIVER
# AppArmor Changes
if APPARMOR_BUILD
-apparmor_profiledir = /etc/apparmor.d
+apparmor_profiledir = $(sysconfdir)/apparmor.d
apparmor_profile_DATA = apparmor/usr.share.hplip
dist_apparmor_profile_DATA = apparmor/usr.share.hplip
-apparmor_abstractiondir = /etc/apparmor.d/abstractions
+apparmor_abstractiondir = $(sysconfdir)/apparmor.d/abstractions
apparmor_abstraction_DATA = apparmor/abstractions/hplip
dist_apparmor_abstraction_DATA = apparmor/abstractions/hplip
@@ -363,6 +364,7 @@ endif
if !LIBUSB01_BUILD
hpmudext_la_CFLAGS +=-I/usr/include/libusb-1.0
+hpmudext_la_CFLAGS +=-I$(prefix)/include/libusb-1.0
endif
endif #!HPLIP_CLASS_DRIVER
# ui (qt3)
@@ -448,9 +450,9 @@ endif
endif #HPLIP_CLASS_DRIVER
# PolicyKit
if POLICYKIT_INSTALL
-policykit_dbus_etcdir = /etc/dbus-1/system.d
+policykit_dbus_etcdir = $(sysconfdir)/dbus-1/system.d
dist_policykit_dbus_etc_DATA = data/policykit/com.hp.hplip.conf
-policykit_dbus_sharedir = /usr/share/dbus-1/system-services
+policykit_dbus_sharedir = $(datadir)/dbus-1/system-services
dist_policykit_dbus_share_DATA = data/policykit/com.hp.hplip.service
policykit_policydir = $(policykit_dir)
dist_policykit_policy_DATA = data/policykit/com.hp.hplip.policy
@@ -594,7 +596,7 @@ hpcups_SOURCES = prnt/hpcups/HPCupsFilte
prnt/hpcups/ImageProcessor.h
hpcups_CXXFLAGS = $(APDK_ENDIAN_FLAG) $(DBUS_CFLAGS)
-hpcups_LDADD = -L./prnt/hpcups/ -ljpeg -ldl -lImageProcessor -lcups -lcupsimage -lz $(DBUS_LIBS)
+hpcups_LDADD = -L./prnt/hpcups/ -ljpeg -ldl -lcups -lcupsimage -lz $(DBUS_LIBS)
#else
#hpcupsdir = $(cupsfilterdir)
#hpcups_PROGRAMS = hpcups
@@ -697,13 +699,13 @@ if HPLIP_BUILD
if !HPLIP_CLASS_DRIVER
# If scanner build, add hpaio entry to sane dll.conf.
if [ "$(scan_build)" = "yes" ]; then \
- $(mkinstalldirs) $(DESTDIR)/etc/sane.d; \
- if [ ! -f $(DESTDIR)/etc/sane.d/dll.conf ]; then \
- touch $(DESTDIR)/etc/sane.d/dll.conf; \
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/sane.d; \
+ if [ ! -f $(DESTDIR)$(sysconfdir)/sane.d/dll.conf ]; then \
+ touch $(DESTDIR)$(sysconfdir)/sane.d/dll.conf; \
fi; \
- if ! grep ^hpaio $(DESTDIR)/etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
- echo "Adding hpaio entry to /etc/sane.d/dll.conf." ; \
- echo hpaio >>$(DESTDIR)/etc/sane.d/dll.conf ; \
+ if ! grep ^hpaio $(DESTDIR)$(sysconfdir)/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
+ echo "Adding hpaio entry to $(sysconfdir)/sane.d/dll.conf." ; \
+ echo hpaio >>$(DESTDIR)$(sysconfdir)/sane.d/dll.conf ; \
fi; \
if [ \( "$(UNAME)" = "x86_64" -a -d "$(libdir)/x86_64-linux-gnu/sane" \) ]; then \
ln -sf $(libdir)/sane/libsane-hpaio.so $(libdir)/x86_64-linux-gnu/sane/ ; \