mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Fix printing with JDK14 (cf. http://www.cups.org/str.php?L1004)
PR: ports/74312 Submitted by: Gustavo De Nardin Approved by: maintainer
This commit is contained in:
parent
9b6d6cf6ca
commit
bc713acfba
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124312
18
print/cups-lpr/files/patch-berkeley::lpc.c__status_all
Normal file
18
print/cups-lpr/files/patch-berkeley::lpc.c__status_all
Normal file
@ -0,0 +1,18 @@
|
||||
--- berkeley/lpc.c.orig Wed Feb 25 17:14:50 2004
|
||||
+++ berkeley/lpc.c Mon Nov 15 17:54:38 2004
|
||||
@@ -339,6 +339,15 @@
|
||||
}
|
||||
|
||||
/*
|
||||
+ * A single 'all' printer name is special, meaning all printers.
|
||||
+ */
|
||||
+
|
||||
+ if (dests != NULL && compare_strings(dests, "all", 3) == 0)
|
||||
+ {
|
||||
+ dests = NULL;
|
||||
+ }
|
||||
+
|
||||
+ /*
|
||||
* See if this is a printer we're interested in...
|
||||
*/
|
||||
|
@ -10,6 +10,7 @@ REPLACES_BINARIES="/usr/bin/lpr
|
||||
case $2 in
|
||||
POST-DEINSTALL)
|
||||
for FILE in ${REPLACES_BINARIES}; do
|
||||
[ -L "${FILE}" ] && rm "${FILE}"
|
||||
[ -e "${FILE}.bak" ] && mv "${FILE}.bak" "${FILE}"
|
||||
done
|
||||
;;
|
||||
|
@ -10,7 +10,7 @@ REPLACES_BINARIES="/usr/bin/lpr
|
||||
case $2 in
|
||||
POST-INSTALL)
|
||||
for FILE in ${REPLACES_BINARIES}; do
|
||||
[ -e "${FILE}" ] && chmod 000 "${FILE}"
|
||||
[ -e "${FILE}" ] && mv "${FILE}" "${FILE}.bak" && ln -s "/usr/local/${FILE#/usr/}" "${FILE}"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user