mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 19:50:31 -04:00
- Switch to dynamic plist [1] - lpr-wrapper-cups needs same patch as lpr-wrapper - Fix bash invocation in all installed scripts PR: ports/158935 [1] Submitted by: Jin-Sih Lin <linpct@gmail.com> [1] Approved by: maintainer
39 lines
1 KiB
Text
39 lines
1 KiB
Text
--- lpr-wrapper-cups.in.orig 2011-12-28 22:04:02.000000000 +0100
|
|
+++ lpr-wrapper-cups.in 2011-12-28 22:05:03.000000000 +0100
|
|
@@ -88,7 +88,7 @@
|
|
prefix=@prefix@
|
|
|
|
# global options file
|
|
-SYST_CONFIG=/etc/lprrc
|
|
+SYST_CONFIG=@prefix@/etc/lprrc
|
|
|
|
# user's options file
|
|
USER_CONFIG=.lprrc
|
|
@@ -464,17 +464,17 @@
|
|
OPTSTRING=o:P:#:K:C:J:T:U:i:1:2:3:4:w:cdfghlnmprstv
|
|
LONGOPTS=help,version,verbose,test,ppd:,tmpdir:
|
|
|
|
-if [ "$HAVE_getopt" ]; then
|
|
- OPTIONS=`getopt -n $NAME -s bash -l $LONGOPTS -o $OPTSTRING -- $XOPTS "$@"`
|
|
- if [ $? != 0 ]; then
|
|
- echo "Try --help for more information" > /dev/stderr
|
|
- exit 1
|
|
- fi
|
|
- eval set -- "$OPTIONS"
|
|
- dopts "$@"
|
|
-else
|
|
+#if [ "$HAVE_getopt" ]; then
|
|
+# OPTIONS=`getopt -n $NAME -s bash -l $LONGOPTS -o $OPTSTRING -- $XOPTS "$@"`
|
|
+# if [ $? != 0 ]; then
|
|
+# echo "Try --help for more information" > /dev/stderr
|
|
+# exit 1
|
|
+# fi
|
|
+# eval set -- "$OPTIONS"
|
|
+# dopts "$@"
|
|
+#else
|
|
dopts $XOPTS "$@"
|
|
-fi
|
|
+#fi
|
|
|
|
#if no printer given (as option or through environment), use default
|
|
if [ -z "$PRINTER" ]; then
|