PR:		ports/74312
Submitted by:	Gustavo De Nardin
Approved by:	maintainer
This commit is contained in:
Volker Stolz 2004-12-17 14:27:38 +00:00
parent 9b6d6cf6ca
commit bc713acfba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124312
3 changed files with 20 additions and 1 deletions

View 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...
*/

View File

@ -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
;;

View File

@ -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