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