summarylogtreecommitdiffstats
path: root/0008-hplj10xx.rules-substitute-PREFIX.patch
diff options
context:
space:
mode:
authorIvan Shapovalov2018-10-09 00:59:54 +0300
committerIvan Shapovalov2018-10-09 01:00:16 +0300
commita1131d945793ae779e0c60ffe1368f3407d59fd3 (patch)
tree3d2ae2528b3e95c4a4f5cbedc6d7ba31b5322a37 /0008-hplj10xx.rules-substitute-PREFIX.patch
parent01c4943dbc4899ea001500798d75ae26e515882f (diff)
downloadaur-a1131d945793ae779e0c60ffe1368f3407d59fd3.tar.gz
Work around broken SYSTEMD_WANTS; run firmware loader directly
Diffstat (limited to '0008-hplj10xx.rules-substitute-PREFIX.patch')
-rw-r--r--0008-hplj10xx.rules-substitute-PREFIX.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/0008-hplj10xx.rules-substitute-PREFIX.patch b/0008-hplj10xx.rules-substitute-PREFIX.patch
new file mode 100644
index 000000000000..3d9e6031abd3
--- /dev/null
+++ b/0008-hplj10xx.rules-substitute-PREFIX.patch
@@ -0,0 +1,53 @@
+From 95c0e0e37893fe3d3ab4feafb91cf91da9e916ba Mon Sep 17 00:00:00 2001
+From: Ivan Shapovalov <intelfx@intelfx.name>
+Date: Tue, 9 Oct 2018 00:53:44 +0300
+Subject: [PATCH 8/9] hplj10xx.rules: substitute @PREFIX@
+
+---
+ Makefile | 10 ++++++++--
+ hplj10xx.rules => hplj10xx.rules.in | 0
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+ rename hplj10xx.rules => hplj10xx.rules.in (100%)
+
+diff --git a/Makefile b/Makefile
+index f4a806b..b7c6d34 100644
+--- a/Makefile
++++ b/Makefile
+@@ -221,7 +221,7 @@ FILES = \
+ usb_printerid.c \
+ usb_printerid.1in \
+ hplj1000 \
+- hplj10xx.rules* \
++ hplj10xx.rules \
+ msexpand \
+ oak.h \
+ foo2oak.c \
+@@ -299,7 +299,7 @@ MANPAGES+= foo2zjs-pstops.1 arm2hpdl.1 usb_printerid.1
+ MANPAGES+= printer-profile.1
+ LIBJBG = jbig.o jbig_ar.o
+ BINPROGS=
+-MISC= foo2zjs-loadfw foo2zjs-loadfw@.service
++MISC= foo2zjs-loadfw foo2zjs-loadfw@.service hplj10xx.rules
+
+ # Compiler flags
+ #CFLAGS += -O2 -Wall -Wno-unused-but-set-variable
+@@ -491,6 +491,12 @@ foo2zjs-loadfw@.service: foo2zjs-loadfw@.service.in Makefile
+ -e 's:@PREFIX@:$(PREFIX):' || (rm -f $@ && exit 1)
+ chmod 444 $@
+
++hplj10xx.rules: hplj10xx.rules.in Makefile
++ [ ! -f $@ ] || chmod +w $@
++ sed < $@.in > $@ \
++ -e 's:@PREFIX@:$(PREFIX):' || (rm -f $@ && exit 1)
++ chmod 444 $@
++
+ foo2ddst-wrapper: foo2ddst-wrapper.in Makefile
+ [ ! -f $@ ] || chmod +w $@
+ sed < $@.in > $@ \
+diff --git a/hplj10xx.rules b/hplj10xx.rules.in
+similarity index 100%
+rename from hplj10xx.rules
+rename to hplj10xx.rules.in
+--
+2.19.0
+