Sisyphus repository
Last update: 20 may 2019 | SRPMs: 17692 | Visits: 13570049
en ru br
ALT Linux repos
S:20180519-alt1
D:20080605-alt2
5.0: 20081207-alt1
4.1: 20080923-alt1
4.0: 20080806-alt1.M40.1
+backports:20060523-alt0.9
3.0: 1.59-alt1
+backports:20060523-alt0.1.M30.1

Group :: System/Configuration/Printing
RPM: foo2zjs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: foo2zjs.make_20140611.patch
Download


--- foo2zjs.orig/Makefile	2014-06-01 15:07:42.000000000 +0400
+++ foo2zjs/Makefile	2014-06-11 19:11:11.000000000 +0400
@@ -1,6 +1,6 @@
 LANG=C
 UNAME := $(shell uname)
-MACH := $(shell uname -m | sed 's/i.86/x86_32/')
+MACH := $(shell uname -m | sed 's/i.86/x86_32/' | sed 's/athlon/x86_32/')
 
 ifeq ($(UNAME),SunOS)
     EUID := $(shell /usr/xpg4/bin/id -u)
@@ -16,23 +16,25 @@
 # No version number yet...
 VERSION=0.0
 
+# (fake) Installation root...
+DESTDIR=
+
 # Installation prefix...
-PREFIX=/usr/local
-PREFIX=/usr
 PREFIX=$(DESTDIR)/usr
+SHAREPREFIX=$(DESTDIR)/var/lib
 
 # Pathnames for this package...
 BIN=$(PREFIX)/bin
-SHAREZJS=$(PREFIX)/share/foo2zjs
-SHAREOAK=$(PREFIX)/share/foo2oak
-SHAREHP=$(PREFIX)/share/foo2hp
-SHAREXQX=$(PREFIX)/share/foo2xqx
-SHARELAVA=$(PREFIX)/share/foo2lava
-SHAREQPDL=$(PREFIX)/share/foo2qpdl
-SHARESLX=$(PREFIX)/share/foo2slx
-SHAREHC=$(PREFIX)/share/foo2hiperc
-SHAREHBPL=$(PREFIX)/share/foo2hbpl
-SHAREDDST=$(PREFIX)/share/foo2ddst
+SHAREZJS=$(SHAREPREFIX)/foo2zjs
+SHAREOAK=$(SHAREPREFIX)/foo2oak
+SHAREHP=$(SHAREPREFIX)/foo2hp
+SHAREXQX=$(SHAREPREFIX)/foo2xqx
+SHARELAVA=$(SHAREPREFIX)/foo2lava
+SHAREQPDL=$(SHAREPREFIX)/foo2qpdl
+SHARESLX=$(SHAREPREFIX)/foo2slx
+SHAREHC=$(SHAREPREFIX)/foo2hiperc
+SHAREHBPL=$(SHAREPREFIX)/foo2hbpl
+SHAREDDST=$(SHAREPREFIX)/foo2ddst
 MANDIR=$(PREFIX)/share/man
 DOCDIR=$(PREFIX)/share/doc/foo2zjs/
 INSTALL=install
@@ -704,12 +706,12 @@
 	#
 	# Clear foomatic cache and rebuild database if needed
 	#
-	rm -rf /var/cache/foomatic/*/*
-	rm -f /var/cache/foomatic/printconf.pickle
-	if [ -d /var/cache/foomatic/compiled ]; then \
-	    cd /var/cache/foomatic/compiled; \
-	    foomatic-combo-xml -O >overview.xml; \
-	fi
+#	rm -rf /var/cache/foomatic/*/*
+#	rm -f /var/cache/foomatic/printconf.pickle
+#	if [ -d /var/cache/foomatic/compiled ]; then \
+#	    cd /var/cache/foomatic/compiled; \
+#	    foomatic-combo-xml -O >overview.xml; \
+#	fi
 
 install-icc2ps:
 	#
@@ -923,9 +925,9 @@
 	$(INSTALL) -c -m 755 hplj10xx_gui.tcl $(SHAREZJS)
 	
 
-USBDIR=/etc/hotplug/usb
-UDEVDIR=/etc/udev/rules.d
-LIBUDEVDIR=/lib/udev/rules.d
+USBDIR=$(DESTDIR)/usr/sbin
+UDEVDIR=$(DESTDIR)/etc/udev/rules.d
+LIBUDEVDIR=$(DESTDIR)/lib/udev/rules.d
 RULES=hplj10xx.rules
 #UDEVD=/sbin/udevd
 # For FreeBSD 8.0
@@ -1008,14 +1010,14 @@
 	fi
 	[ -d $(USBDIR) ] || $(INSTALL) -d -m 755 $(USBDIR)/
 	$(INSTALL) -c -m 755 hplj1000 $(USBDIR)/
-	ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1005
-	ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1018
-	ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1020
-	ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1005
-	ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1006
-	ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1007
-	ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1008
-	ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1505
+	ln -sf hplj1000 $(USBDIR)/hplj1005
+	ln -sf hplj1000 $(USBDIR)/hplj1018
+	ln -sf hplj1000 $(USBDIR)/hplj1020
+	ln -sf hplj1000 $(USBDIR)/hpljP1005
+	ln -sf hplj1000 $(USBDIR)/hpljP1006
+	ln -sf hplj1000 $(USBDIR)/hpljP1007
+	ln -sf hplj1000 $(USBDIR)/hpljP1008
+	ln -sf hplj1000 $(USBDIR)/hpljP1505
 	$(USBDIR)/hplj1000 install-usermap
 	$(USBDIR)/hplj1005 install-usermap
 	$(USBDIR)/hplj1018 install-usermap
@@ -1104,7 +1107,7 @@
 	-rm -f /etc/hotplug/usb/hplj.usermap #
 	-rm -f /etc/udev/rules.d/58-foo2zjs.rules #
 	-rm -f /sbin/foo2zjs-loadfw #
-	-rm -rf /usr/share/doc/foo2zjs/
+	-rm -rf /usr/share/doc/foo2zjs
 	-rm -f $(MANDIR)/man1/foo2zjs*.1 $(MANDIR)/man1/zjsdecode.1
 	-rm -f $(MANDIR)/man1/foo2hp*.1
 	-rm -f $(MANDIR)/man1/foo2oak*.1 $(MANDIR)/man1/oakdecode.1
@@ -1118,16 +1121,16 @@
 	-rm -f $(MANDIR)/man1/gipddecode.1
 	-rm -f $(MANDIR)/man1/arm2hpdl.1 $(MANDIR)/man1/usb_printerid.1
 	-rm -f $(MANDIR)/man1/foo2zjs-icc2ps.1
-	-rm -rf /usr/share/foo2zjs/
-	-rm -rf /usr/share/foo2hp/
-	-rm -rf /usr/share/foo2oak/
-	-rm -rf /usr/share/foo2xqx/
-	-rm -rf /usr/share/foo2lava/
-	-rm -rf /usr/share/foo2qpdl/
-	-rm -rf /usr/share/foo2slx/
-	-rm -rf /usr/share/foo2hiperc/
-	-rm -rf /usr/share/foo2hbpl/
-	-rm -rf /usr/share/foo2ddst/
+	-rm -rf $(SHAREZJS)/foo2zjs
+	-rm -rf $(SHAREHP)/foo2hp
+	-rm -rf $(SHAREOAK)/foo2oak
+	-rm -rf $(SHAREXQX)/foo2xqx
+	-rm -rf $(SHARELAVA)/foo2lava
+	-rm -rf $(SHAREQPDL)/foo2qpdl
+	-rm -rf $(SHARESLX)/foo2slx
+	-rm -rf $(SHAREHC)/foo2hiperc
+	-rm -rf $(SHAREHC)/foo2hbpl
+	-rm -rf $(SHAREHC)/foo2ddst
 	-rm -f /usr/bin/arm2hpdl
 	-rm -f /usr/bin/foo2zjs-wrapper /usr/bin/foo2zjs /usr/bin/zjsdecode
 	-rm -f /usr/bin/foo2oak-wrapper /usr/bin/foo2oak /usr/bin/oakdecode
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin