[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
update for amanda port
Here is an update which improves the install on client-only machines.
The patch-system script that the user is asked to run now adds
all of the needed entries to /etc/services.
The patch has been submitted to amanda-hackers@amanda.org as well.
--
Tom Schutter
t.schutter@att.net
Index: amanda/patches/patch-client-src_patch-system_sh_in
===================================================================
RCS file: patch-client-src_patch-system_sh_in
diff -N patch-client-src_patch-system_sh_in
--- /dev/null Wed May 16 06:42:46 2001
+++ patch-client-src_patch-system_sh_in Wed May 16 06:44:00 2001
@@ -0,0 +1,41 @@
+--- client-src/patch-system.sh.in.orig Mon May 14 20:20:09 2001
++++ client-src/patch-system.sh.in Wed May 16 06:38:28 2001
+@@ -39,6 +39,7 @@
+ esac
+
+ CLIENT_PORT=10080
++KCLIENT_PORT=10081
+ INDEX_PORT=10082
+ TAPE_PORT=10083
+
+@@ -70,6 +71,8 @@
+ ENABLE_TAPE=false;;
+ --client-port=?*)
+ CLIENT_PORT=`echo $1 | sed -e 's/[^=]*=//'`;;
++ --kclient-port=?*)
++ KCLIENT_PORT=`echo $1 | sed -e 's/[^=]*=//'`;;
+ --index-port=?*)
+ INDEX_PORT=`echo $1 | sed -e 's/[^=]*=//'`;;
+ --tape-port=?*)
+@@ -87,6 +90,7 @@
+ echo "--enable/disable-index: enable/disable index server [`$ENABLE_INDEX && echo enabled || echo disabled`]"
+ echo "--enable/disable-tape: enable/disable tape server [`$ENABLE_TAPE && echo enabled || echo disabled`]"
+ echo "--client-port=<num>: amandad port number [$CLIENT_PORT]"
++ echo "--kclient-port=<num>: kamandad port number [$KCLIENT_PORT]"
+ echo "--index-port=<num>: index server port number [$INDEX_PORT]"
+ echo "--tape-port=<num>: tape server port number [$TAPE_PORT]"
+ exec true;;
+@@ -102,9 +106,10 @@
+ TEMP="$SERVICES.new"
+ {
+ egrep < "$SERVICES" -v "^(amanda|amandaidx|amidxtape)${SERVICE_SUFFIX}[ ]"
+- $ENABLE_AMANDAD && echo "amanda${SERVICE_SUFFIX} ${CLIENT_PORT}/udp"
+- $ENABLE_INDEX && echo "amandaidx${SERVICE_SUFFIX} ${INDEX_PORT}/tcp"
+- $ENABLE_TAPE && echo "amidxtape${SERVICE_SUFFIX} ${TAPE_PORT}/tcp"
++ echo "amanda${SERVICE_SUFFIX} ${CLIENT_PORT}/udp"
++ echo "kamanda${SERVICE_SUFFIX} ${KCLIENT_PORT}/udp"
++ echo "amandaidx${SERVICE_SUFFIX} ${INDEX_PORT}/tcp"
++ echo "amidxtape${SERVICE_SUFFIX} ${TAPE_PORT}/tcp"
+ } > "$TEMP"
+ if diff "$SERVICES" "$TEMP" >/dev/null 2>/dev/null; then
+ echo "$SERVICES is up to date"