Ticket #42776: patch-hplip.list.in

File patch-hplip.list.in, 9.6 KB (added by okmacports@…, 11 years ago)
Line 
1--- ./hplip.list.in.orig        2014-03-10 14:47:05.000000000 +0100
2+++ ./hplip.list.in     2014-03-10 14:56:40.000000000 +0100
3@@ -83,7 +83,7 @@
4 f 0755 root root $cupsfilter/hpcups hpcups
5 f 0755 root root $cupsfilter/hpps prnt/filters/hpps
6 %endif
7-f 0644 root root /etc/hp/hplip.conf hplip.conf
8+f 0644 root root @PREFIX@/etc/hp/hplip.conf hplip.conf
9 f 0644 root root /etc/cups/pstotiff.convs fax/filters/pstotiff.convs
10 f 0644 root root /etc/cups/pstotiff.types fax/filters/pstotiff.types
11 f 0755 root root $cupsfilter/pstotiff fax/filters/pstotiff
12@@ -130,14 +130,14 @@
13 @epm_scan@l 0755 root root $libdir/sane/libsane-hpaio.so.1 ${hpaio-version}
14 @epm_scan@%system all
15 @epm_scan@%postinstall <<EOF
16-@epm_scan@if [ -f /etc/sane.d/dll.conf ]; then
17-@epm_scan@   grep -q ^#hpaio /etc/sane.d/dll.conf
18+@epm_scan@if [ -f @PREFIX@/etc/sane.d/dll.conf ]; then
19+@epm_scan@   grep -q ^#hpaio @PREFIX@/etc/sane.d/dll.conf
20 @epm_scan@   if [ $$? -eq 0 ]; then
21-@epm_scan@      sed -i -e s/^#hpaio/hpaio/ /etc/sane.d/dll.conf
22+@epm_scan@      sed -i -e s/^#hpaio/hpaio/ @PREFIX@/etc/sane.d/dll.conf
23 @epm_scan@   else
24-@epm_scan@      grep -q ^hpaio /etc/sane.d/dll.conf
25+@epm_scan@      grep -q ^hpaio @PREFIX@/etc/sane.d/dll.conf
26 @epm_scan@      if [ $$? -ne 0 ]; then
27-@epm_scan@      echo hpaio >>/etc/sane.d/dll.conf
28+@epm_scan@      echo hpaio >>@PREFIX@/etc/sane.d/dll.conf
29 @epm_scan@      fi
30 @epm_scan@   fi
31 @epm_scan@fi
32@@ -282,41 +282,41 @@
33 @epm_full@d 775 root root $htmldir/styles -
34 @epm_full@f 644 root root $htmldir/styles doc/styles/*
35 # python commands
36-@epm_full@l 755 root root $bindir/hp-toolbox ../share/hplip/toolbox.py
37-@epm_full@l 755 root root $bindir/hp-colorcal ../share/hplip/colorcal.py
38-@epm_full@l 755 root root $bindir/hp-sendfax ../share/hplip/sendfax.py
39-@epm_full@l 755 root root $bindir/hp-clean ../share/hplip/clean.py
40-@epm_full@l 755 root root $bindir/hp-testpage ../share/hplip/testpage.py
41-@epm_full@l 755 root root $bindir/hp-systray ../share/hplip/systray.py
42-@epm_full@l 755 root root $bindir/hp-firmware ../share/hplip/firmware.py
43-@epm_full@l 755 root root $bindir/hp-makeuri ../share/hplip/makeuri.py
44-@epm_full@l 755 root root $bindir/hp-fab ../share/hplip/fab.py
45-@epm_full@l 755 root root $bindir/hp-pkservice ../share/hplip/pkservice.py
46-@epm_full@l 755 root root $bindir/hp-align ../share/hplip/align.py
47-@epm_full@l 755 root root $bindir/hp-print ../share/hplip/print.py
48-@epm_full@l 755 root root $bindir/hp-setup ../share/hplip/setup.py
49-@epm_full@l 755 root root $bindir/hp-levels ../share/hplip/levels.py
50-@epm_full@l 755 root root $bindir/hp-unload ../share/hplip/unload.py
51-@epm_full@l 755 root root $bindir/hp-probe ../share/hplip/probe.py
52-@epm_full@l 755 root root $bindir/hp-timedate ../share/hplip/timedate.py
53-@epm_full@l 755 root root $bindir/hp-plugin ../share/hplip/plugin.py
54-@epm_full@l 755 root root $bindir/hp-diagnose_plugin ../share/hplip/diagnose_plugin.py
55-@epm_full@l 755 root root $bindir/hp-check ../share/hplip/check.py
56-@epm_full@l 755 root root $bindir/hp-doctor ../share/hplip/doctor.py
57-@epm_full@l 755 root root $bindir/hp-logcapture ../share/hplip/logcapture.py
58-@epm_full@l 755 root root $bindir/hp-info ../share/hplip/info.py
59-@epm_full@l 755 root root $bindir/hp-makecopies ../share/hplip/makecopies.py
60-@epm_full@l 755 root root $bindir/hp-scan ../share/hplip/scan.py
61-@epm_full@l 755 root root $bindir/hp-faxsetup ../share/hplip/faxsetup.py
62-@epm_full@l 755 root root $bindir/hp-linefeedcal ../share/hplip/linefeedcal.py
63-@epm_full@l 755 root root $bindir/hp-printsettings ../share/hplip/printsettings.py
64-@epm_full@l 755 root root $bindir/hp-query ../share/hplip/query.py
65-@epm_full@l 755 root root $bindir/hp-wificonfig ../share/hplip/wificonfig.py
66-@epm_full@l 755 root root $bindir/hp-devicesettings ../share/hplip/devicesettings.py
67-@epm_full@l 755 root root $bindir/hp-uninstall ../share/hplip/uninstall.py
68-@epm_full@l 755 root root $bindir/hp-upgrade ../share/hplip/upgrade.py
69-@epm_full@l 755 root root $bindir/hp-config_usb_printer ../share/hplip/config_usb_printer.py
70-@epm_full@l 755 root root $bindir/hp-diagnose_queues ../share/hplip/diagnose_queues.py
71+@epm_full@l 755 root root $bindir/hp-toolbox ${datadir}/hplip/toolbox.py
72+@epm_full@l 755 root root $bindir/hp-colorcal ${datadir}/hplip/colorcal.py
73+@epm_full@l 755 root root $bindir/hp-sendfax ${datadir}/hplip/sendfax.py
74+@epm_full@l 755 root root $bindir/hp-clean ${datadir}/hplip/clean.py
75+@epm_full@l 755 root root $bindir/hp-testpage ${datadir}/hplip/testpage.py
76+@epm_full@l 755 root root $bindir/hp-systray ${datadir}/hplip/systray.py
77+@epm_full@l 755 root root $bindir/hp-firmware ${datadir}/hplip/firmware.py
78+@epm_full@l 755 root root $bindir/hp-makeuri ${datadir}/hplip/makeuri.py
79+@epm_full@l 755 root root $bindir/hp-fab ${datadir}/hplip/fab.py
80+@epm_full@l 755 root root $bindir/hp-pkservice ${datadir}/hplip/pkservice.py
81+@epm_full@l 755 root root $bindir/hp-align ${datadir}/hplip/align.py
82+@epm_full@l 755 root root $bindir/hp-print ${datadir}/hplip/print.py
83+@epm_full@l 755 root root $bindir/hp-setup ${datadir}/hplip/setup.py
84+@epm_full@l 755 root root $bindir/hp-levels ${datadir}/hplip/levels.py
85+@epm_full@l 755 root root $bindir/hp-unload ${datadir}/hplip/unload.py
86+@epm_full@l 755 root root $bindir/hp-probe ${datadir}/hplip/probe.py
87+@epm_full@l 755 root root $bindir/hp-timedate ${datadir}/hplip/timedate.py
88+@epm_full@l 755 root root $bindir/hp-plugin ${datadir}/hplip/plugin.py
89+@epm_full@l 755 root root $bindir/hp-diagnose_plugin ${datadir}/hplip/diagnose_plugin.py
90+@epm_full@l 755 root root $bindir/hp-check ${datadir}/hplip/check.py
91+@epm_full@l 755 root root $bindir/hp-doctor ${datadir}/hplip/doctor.py
92+@epm_full@l 755 root root $bindir/hp-logcapture ${datadir}/hplip/logcapture.py
93+@epm_full@l 755 root root $bindir/hp-info ${datadir}/hplip/info.py
94+@epm_full@l 755 root root $bindir/hp-makecopies ${datadir}/hplip/makecopies.py
95+@epm_full@l 755 root root $bindir/hp-scan ${datadir}/hplip/scan.py
96+@epm_full@l 755 root root $bindir/hp-faxsetup ${datadir}/hplip/faxsetup.py
97+@epm_full@l 755 root root $bindir/hp-linefeedcal ${datadir}/hplip/linefeedcal.py
98+@epm_full@l 755 root root $bindir/hp-printsettings ${datadir}/hplip/printsettings.py
99+@epm_full@l 755 root root $bindir/hp-query ${datadir}/hplip/query.py
100+@epm_full@l 755 root root $bindir/hp-wificonfig ${datadir}/hplip/wificonfig.py
101+@epm_full@l 755 root root $bindir/hp-devicesettings ${datadir}/hplip/devicesettings.py
102+@epm_full@l 755 root root $bindir/hp-uninstall ${datadir}/hplip/uninstall.py
103+@epm_full@l 755 root root $bindir/hp-upgrade ${datadir}/hplip/upgrade.py
104+@epm_full@l 755 root root $bindir/hp-config_usb_printer ${datadir}/hplip/config_usb_printer.py
105+@epm_full@l 755 root root $bindir/hp-diagnose_queues ${datadir}/hplip/diagnose_queues.py
106 
107 # qt4
108 @epm_full@@epm_qt4@d 775 root root $home/ui4 -
109@@ -332,7 +332,7 @@
110 
111 # Use LINPUS8 for Acer Aspire One
112 %if LINPUS8 RHEL5
113-@epm_print_only_exclude@f 0644 root root /etc/udev/rules.d/56-hpmud_sysfs.rules data/rules/56-hpmud_sysfs.rules
114+@epm_print_only_exclude@f 0644 root root @PREFIX@/etc/udev/rules.d/56-hpmud_sysfs.rules data/rules/56-hpmud_sysfs.rules
115 %endif
116 
117 %if RHEL3
118@@ -350,7 +350,7 @@
119 
120 %system !darwin
121 %if !LINPUS8 !RHEL3 !UBUNTU804 !SUSE9 !RHEL5
122-@epm_print_only_exclude@f 0644 root root /etc/udev/rules.d/56-hpmud.rules data/rules/56-hpmud.rules
123+@epm_print_only_exclude@f 0644 root root @PREFIX@/etc/udev/rules.d/56-hpmud.rules data/rules/56-hpmud.rules
124 @epm_print_only_exclude@f 0644 root root /usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi data/rules/20-hplip-devices.fdi
125 %endif
126 %system all
127@@ -388,7 +388,7 @@
128 @epm_full@%replaces hplip-data
129 @epm_full@f 0644 root root /usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi data/rules/20-hplip-devices.fdi
130 @epm_full@%postinstall <<EOF
131-@epm_full@install -m 644 data/rules/56-hpmud.rules /etc/udev/rules.d
132+@epm_full@install -m 644 data/rules/56-hpmud.rules @PREFIX@/etc/udev/rules.d
133 @epm_full@EOF
134 %endif
135 
136@@ -399,7 +399,7 @@
137 @epm_lite@%replaces hplip-data
138 @epm_lite@f 0644 root root /usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi data/rules/20-hplip-devices.fdi
139 @epm_lite@%postinstall <<EOF
140-@epm_lite@install -m 644 data/rules/56-hpmud.rules /etc/udev/rules.d
141+@epm_lite@install -m 644 data/rules/56-hpmud.rules @PREFIX@/etc/udev/rules.d
142 @epm_lite@EOF
143 %endif
144 
145@@ -422,7 +422,7 @@
146 @epm_full@%replaces hplip-data
147 @epm_full@%replaces hplip-gui
148 @epm_full@%postinstall <<EOF
149-@epm_full@sed -i -e s/GROUP=\"lp\"/GROUP=\"scanner\"/ /etc/udev/rules.d/56-hpmud.rules
150+@epm_full@sed -i -e s/GROUP=\"lp\"/GROUP=\"scanner\"/ @PREFIX@/etc/udev/rules.d/56-hpmud.rules
151 @epm_full@EOF
152 %endif
153 
154@@ -442,7 +442,7 @@
155 @epm_lite@%replaces hplip
156 @epm_lite@%replaces hplip-data
157 @epm_lite@%postinstall <<EOF
158-@epm_lite@sed -i -e s/GROUP=\"lp\"/GROUP=\"scanner\"/ /etc/udev/rules.d/56-hpmud.rules
159+@epm_lite@sed -i -e s/GROUP=\"lp\"/GROUP=\"scanner\"/ @PREFIX@/etc/udev/rules.d/56-hpmud.rules
160 @epm_lite@EOF
161 %endif
162 
163@@ -450,7 +450,7 @@
164 f 0644 root root $docdir/license.txt prnt/plugins/license.txt
165 f 0644 root root $docdir/COPYING prnt/plugins/license.txt
166 f 0644 root root $docdir/copyright prnt/plugins/copyright
167-d 0755 root root /var/lib/hp/ -
168+d 0755 root root @PREFIX@/var/lib/hp/ -
169 f 0644 root root $home/data/firmware data/firmware/*.fw.gz
170 d 0775 root root $home/data/plugin -
171 
172@@ -487,10 +487,10 @@
173 %else
174 f 0644 root root $docdir/COPYING COPYING
175 f 0644 root root $docdir/copyright copyright
176-d 0755 root root /var/lib/hp/ -
177+d 0755 root root @PREFIX@/var/lib/hp/ -
178 
179 %system !darwin
180-@epm_print_only_exclude@f 0644 root root /etc/udev/rules.d/56-hpmud.rules data/rules/56-hpmud.rules
181+@epm_print_only_exclude@f 0644 root root @PREFIX@/etc/udev/rules.d/56-hpmud.rules data/rules/56-hpmud.rules
182 
183 %system all
184 %endif
185