Index: misc/xdg-utils/distinfo =================================================================== RCS file: /e/cvsync/cvsync/pkgsrc/misc/xdg-utils/distinfo,v retrieving revision 1.3 diff -u -r1.3 distinfo --- misc/xdg-utils/distinfo 5 Apr 2011 12:05:01 -0000 1.3 +++ misc/xdg-utils/distinfo 6 Apr 2011 02:55:36 -0000 @@ -3,3 +3,5 @@ SHA1 (xdg-utils-1.0.2.tgz) = e41a04cbf9ff8d743397a2bc23c6ca82e8b59d2c RMD160 (xdg-utils-1.0.2.tgz) = 344482917e8c780613ec20b103f8e51322540c04 Size (xdg-utils-1.0.2.tgz) = 282262 bytes +SHA1 (patch-scripts_xdg-email) = 5d9d87b0e71c797a2bf9189f03d6eaa2b2455b64 +SHA1 (patch-scripts_xdg-open) = c1cde5e4d3d1df61633ae767d71bbdadc473bc8b Index: misc/xdg-utils/patches/patch-scripts_xdg-email =================================================================== RCS file: misc/xdg-utils/patches/patch-scripts_xdg-email diff -N misc/xdg-utils/patches/patch-scripts_xdg-email --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ misc/xdg-utils/patches/patch-scripts_xdg-email 6 Apr 2011 02:55:07 -0000 @@ -0,0 +1,42 @@ +$NetBSD$ + +--- scripts/xdg-email.orig 2007-06-24 19:58:04.000000000 +0000 ++++ scripts/xdg-email +@@ -435,7 +435,9 @@ open_generic() + for browser in $BROWSER; do + if [ x"$browser" != x"" ]; then + +- browser_with_arg=`echo "$browser" | sed s#%s#"$1"#` ++ browser_with_arg=`printf "$browser" "$1" 2>/dev/null` ++ if [ $? -ne 0 ]; then browser_with_arg=$browser; ++ fi + + if [ x"$browser_with_arg" = x"$browser" ]; then "$browser" "$1"; + else $browser_with_arg; +@@ -495,7 +497,7 @@ while [ $# -gt 0 ] ; do + exit_failure_syntax "email address argument missing for --to" + fi + url_encode "$1" +- options="${options}to=${result}&" ++ options="${options}to=${result}&" + shift + ;; + +@@ -531,7 +533,7 @@ while [ $# -gt 0 ] ; do + exit_failure_syntax "text argument missing for --body option" + fi + url_encode "$1" +- options="${options}body=${result}&" ++ options="${options}body=${result}&" + shift + ;; + +@@ -575,7 +577,7 @@ done + + if [ -z "${mailto}" ] ; then + # TO address is optional +- mailto="mailto:?" ++ mailto="mailto:?" + fi + + case $mailto in Index: misc/xdg-utils/patches/patch-scripts_xdg-open =================================================================== RCS file: misc/xdg-utils/patches/patch-scripts_xdg-open diff -N misc/xdg-utils/patches/patch-scripts_xdg-open --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ misc/xdg-utils/patches/patch-scripts_xdg-open 6 Apr 2011 02:55:07 -0000 @@ -0,0 +1,15 @@ +$NetBSD$ + +--- scripts/xdg-open.orig 2007-06-24 19:58:01.000000000 +0000 ++++ scripts/xdg-open +@@ -364,7 +364,9 @@ open_generic() + for browser in $BROWSER; do + if [ x"$browser" != x"" ]; then + +- browser_with_arg=`echo "$browser" | sed s#%s#"$1"#` ++ browser_with_arg=`printf "$browser" "$1" 2>/dev/null` ++ if [ $? -ne 0 ]; then browser_with_arg=$browser; ++ fi + + if [ x"$browser_with_arg" = x"$browser" ]; then "$browser" "$1"; + else $browser_with_arg;