X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=amanda-bashizm.patch;h=c2bbbf35e4c97ca0525a911abda6f4b883aeeaa2;hb=5f9ce2ecf164d8fa000a396e4a7f16d550bb2afc;hp=0d5ba5291562bd42a0f7d1242879e74d6b50345b;hpb=d6291de7e177447b31d375f1cfba3057d5b560cb;p=packages%2Famanda.git diff --git a/amanda-bashizm.patch b/amanda-bashizm.patch index 0d5ba52..c2bbbf3 100644 --- a/amanda-bashizm.patch +++ b/amanda-bashizm.patch @@ -1,37 +1,42 @@ ---- amanda-2.5.2p1/configure.in~ 2007-06-22 15:02:56.000000000 +0200 -+++ amanda-2.5.2p1/configure.in 2007-06-22 15:12:17.000000000 +0200 -@@ -958,7 +958,7 @@ - # now convert that to a comma-separated list of C strings - eval "set dummy ${SSH_OPTIONS}"; shift - SSH_OPTIONS='' -- for i in "${@}"; do SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }\"${i/\"/\\\"}\""; done -+ for i in "${@}"; do SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }\"`echo $i | awk '/"/ {gsub(/"/,"\\"");} {print;}'`\""; done - AC_MSG_RESULT($SSH_OPTIONS) +--- amanda-2.6.0/config/amanda/dumpers.m4~ 2008-03-03 14:50:51.000000000 +0100 ++++ amanda-2.6.0/config/amanda/dumpers.m4 2008-05-07 11:13:49.000000000 +0200 +@@ -41,7 +41,7 @@ + for gnutar_name in gtar gnutar tar; do + AC_PATH_PROGS(GNUTAR, $gnutar_name, , $LOCSYSPATH) + if test -n "$GNUTAR"; then +- case "`\"$GNUTAR\" --version 2>&1`" in ++ case "`$GNUTAR --version 2>&1`" in + *GNU*tar* | *Free*paxutils* ) + # OK, it is GNU tar + break +@@ -103,7 +103,7 @@ + AC_PATH_PROG(SAMBA_CLIENT,smbclient,,$LOCSYSPATH) + smbversion=0 + if test ! -z "$SAMBA_CLIENT"; then +- case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in ++ case "`$SAMBA_CLIENT '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in + *"Unknown host"*) + smbversion=1 + ;; +--- amanda-2.6.0/changer-src/chg-zd-mtx.sh~ 2008-05-14 17:36:20.000000000 +0200 ++++ amanda-2.6.0/changer-src/chg-zd-mtx.sh 2008-05-15 15:03:59.000000000 +0200 +@@ -797,7 +797,7 @@ + max_drive_wait=${max_drive_wait:-'120'} # default: two minutes - AC_DEFINE_UNQUOTED(SSH_OPTIONS, $SSH_OPTIONS, [Arguments to ssh]) -@@ -1181,7 +1181,6 @@ - fi - AC_CHECK_LIB(krb5support,main) - KRB5LDFLAGS=-L$k5libdir -- break - fi + # check MT and MTX for sanity +-if test "${MTX:0:1}" = "/"; then ++if test "${MTX#/}" != "$MTX"; then + if ! test -f "${MTX}"; then + Exit 2 \ + `_ ''` \ +--- amanda-2.6.0/server-src/amcleanup.sh~ 2008-01-18 01:31:25.000000000 +0100 ++++ amanda-2.6.0/server-src/amcleanup.sh 2008-05-21 13:45:10.000000000 +0200 +@@ -75,7 +75,7 @@ + # after receiving SIGTERM, if yes send SIGKILL + # - if test "x$KRB5LDFLAGS" = "x" ; then -@@ -1620,7 +1620,7 @@ +-function killpid() { ++killpid() { - AC_PATH_PROGS(GNUTAR,gtar gnutar tar,,$LOCSYSPATH) - if test ! -z "$GNUTAR"; then -- case "`\"$GNUTAR\" --version 2>&1`" in -+ case "`$GNUTAR --version 2>&1`" in - *GNU*tar* | *Free*paxutils* ) - AC_DEFINE_UNQUOTED(GNUTAR,"$GNUTAR",[Define to the location of Gnu tar. ]) - ;; -@@ -1633,7 +1633,7 @@ - - AC_PATH_PROGS(SAMBA_CLIENT,smbclient,,$LOCSYSPATH) - if test ! -z "$SAMBA_CLIENT"; then -- case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in -+ case "`$SAMBA_CLIENT '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in - *"Unknown host"*) - smbversion=1 - ;; + killPID=$1 + SIGTERM=15