summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorbad <bad>1999-09-06 18:03:43 +0000
committerbad <bad>1999-09-06 18:03:43 +0000
commit0970b8eab26a6508e637e978941ec5c5e605dcbc (patch)
treecc6fe2075da6bf3449c9211b20a7a14f333eedcd /sysutils
parenta50c278a3858e1cb1528089e89ab82442cfbb8b2 (diff)
downloadpkgsrc-0970b8eab26a6508e637e978941ec5c5e605dcbc.tar.gz
Our dump has a "just do the dump size estimate mode" too. Make use of it.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/amanda-client/patches/patch-aa94
-rw-r--r--sysutils/amanda-client/patches/patch-af22
2 files changed, 108 insertions, 8 deletions
diff --git a/sysutils/amanda-client/patches/patch-aa b/sysutils/amanda-client/patches/patch-aa
index 60b94a9d983..54f21475c6b 100644
--- a/sysutils/amanda-client/patches/patch-aa
+++ b/sysutils/amanda-client/patches/patch-aa
@@ -1,8 +1,86 @@
-$NetBSD: patch-aa,v 1.2 1999/04/04 23:34:45 tron Exp $
+$NetBSD: patch-aa,v 1.3 1999/09/06 18:03:43 bad Exp $
---- configure.orig Sat Jul 18 10:34:33 1998
-+++ configure Sat Jul 18 10:35:03 1998
-@@ -4204,6 +4204,7 @@
+--- configure.orig Sat Nov 21 18:12:59 1998
++++ configure Fri Sep 3 19:47:23 1999
+@@ -3635,7 +3635,7 @@
+ if test -x $DUMP; then
+ echo $ac_n "checking whether $DUMP supports -E for estimates""... $ac_c" 1>&6
+ echo "configure:3638: checking whether $DUMP supports -E for estimates" >&5
+-if eval "test \"`echo '$''{'amanda_cv_dump_estimate'+set}'`\" = set"; then
++if eval "test \"`echo '$''{'amanda_cv_dump_estimate_e'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+
+@@ -3648,26 +3648,61 @@
+ | $EGREP -v "Dumping\|Date of" >conftest.d'; { (eval echo configure:3649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
+ cat conftest.d >&5
+ if { ac_try='diff conftest.d-E conftest.d 1>&2'; { (eval echo configure:3651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
+- amanda_cv_dump_estimate=yes
++ amanda_cv_dump_estimate_e=yes
+ else
+- amanda_cv_dump_estimate=no
++ amanda_cv_dump_estimate_e=no
+ fi
+ rm -f conftest.d conftest.d-E conftest.d-noE
+ ;;
+- *) amanda_cv_dump_estimate=no
++ *) amanda_cv_dump_estimate_e=no
+ ;;
+ esac
+
+ fi
+
+-echo "$ac_t""$amanda_cv_dump_estimate" 1>&6
++echo "$ac_t""$amanda_cv_dump_estimate_e" 1>&6
++ echo $ac_n "checking whether $DUMP supports -S for estimates""... $ac_c" 1>&6
++echo "configure:3638: checking whether $DUMP supports -S for estimates" >&5
++if eval "test \"`echo '$''{'amanda_cv_dump_estimate_s'+set}'`\" = set"; then
++ echo $ac_n "(cached) $ac_c" 1>&6
++else
++
++ case "$DUMP" in
++ *dump)
++ { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs
++ >conftest.d-S 2>&1'; { (eval echo configure:3646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
++ cat conftest.d-S >&5
++ { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
++ | $EGREP -v "Dumping\|Date of" >conftest.d'; { (eval echo configure:3649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
++ cat conftest.d >&5
++ if { ac_try='diff conftest.d-S conftest.d 1>&2'; { (eval echo configure:3651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
++ amanda_cv_dump_estimate_s=yes
++ else
++ amanda_cv_dump_estimate_s=no
++ fi
++ rm -f conftest.d conftest.d-S conftest.d-noS
++ ;;
++ *) amanda_cv_dump_estimate_s=no
++ ;;
++ esac
++
++fi
++
++echo "$ac_t""$amanda_cv_dump_estimate_s" 1>&6
+ else
+ echo "configure: warning: *** $DUMP is not executable, cannot run -E test" 1>&2
+- amanda_cv_dump_estimate=no
++ amanda_cv_dump_estimate_e=no
++ amanda_cv_dump_estimate_s=no
+ fi
+- if test "$amanda_cv_dump_estimate" = yes; then
++ if test "$amanda_cv_dump_estimate_e" = yes; then
+ cat >> confdefs.h <<\EOF
+-#define HAVE_DUMP_ESTIMATE 1
++#define HAVE_DUMP_ESTIMATE "E"
++EOF
++
++ fi
++ if test "$amanda_cv_dump_estimate_s" = yes; then
++ cat >> confdefs.h <<\EOF
++#define HAVE_DUMP_ESTIMATE "S"
+ EOF
+
+ fi
+@@ -4457,6 +4492,7 @@
echo "$ac_t""no" 1>&6
fi
@@ -10,11 +88,11 @@ $NetBSD: patch-aa,v 1.2 1999/04/04 23:34:45 tron Exp $
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-@@ -4249,6 +4250,7 @@
- ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
+@@ -4502,6 +4538,7 @@
+ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
+fi
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
+ # Redirect the config.log output again, so that the ltconfig log is not
+ # clobbered by the next message.
diff --git a/sysutils/amanda-client/patches/patch-af b/sysutils/amanda-client/patches/patch-af
new file mode 100644
index 00000000000..900f56ff4b7
--- /dev/null
+++ b/sysutils/amanda-client/patches/patch-af
@@ -0,0 +1,22 @@
+$NetBSD: patch-af,v 1.1 1999/09/06 18:03:43 bad Exp $
+
+--- client-src/sendsize.c.orig Wed Nov 18 02:07:20 1998
++++ client-src/sendsize.c Fri Sep 3 19:53:30 1999
+@@ -574,7 +574,7 @@
+ {"Total bytes listed: [0-9][0-9]*", 1}, /* Samba client */
+ #endif
+
+-#ifdef HAVE_DUMP_ESTIMATE
++#if defined(HAVE_DUMP_ESTIMATE) && !defined(__NetBSD__)
+ # ifdef SAMBA_CLIENT
+ /* On DU 4.0, dump -E prints a line that matches an output line of
+ smbclient. So, even if both are enabled by configure, dump
+@@ -689,7 +689,7 @@
+ # else /* } { */
+ dumpkeys = vstralloc(level_str,
+ # ifdef HAVE_DUMP_ESTIMATE /* { */
+- "E",
++ HAVE_DUMP_ESTIMATE
+ # endif /* } */
+ # ifdef HAVE_HONOR_NODUMP /* { */
+ "h",