platforms/darwin/Makefile"
;;
debian)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
if `grep -q ubuntu /etc/apt/sources.list`; then
DISTNAME="ubuntu"
fi
fi
;;
freebsd)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`uname -a |awk '{print $3}'`
VER=`echo $DISTVER | cut -c 1`
if test x$VER = x4 ; then
platforms/openbsd/bacula-dir"
;;
redhat)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
if test -f /etc/whitebox-release ; then
f=/etc/whitebox-release
else
"
;;
mandrake)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`cat /etc/mandrake-release | grep release |\
cut -f 5 -d ' '`
TAPEDRIVE="/dev/nst0"
"
;;
gentoo)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
TAPEDRIVE="/dev/nst0"
PSCMD="ps -e -o pid,command"
platforms/gentoo/bacula-dir"
;;
slackware)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`cat /etc/slackware-version`
TAPEDRIVE="/dev/nst0"
PSCMD="ps -e -o pid,command"
LIBS="$LIBS -lresolv"
;;
suse)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`cat /etc/SuSE-release |grep VERSION|\
cut -f 3 -d ' '`
TAPEDRIVE="/dev/nst0"
platforms/suse/bacula.spec"
;;
suse5)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTNAME=suse
DISTVER=5.x
TAPEDRIVE="/dev/nst0"
platforms/darwin/Makefile"
;;
debian)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
if `grep -q ubuntu /etc/apt/sources.list`; then
DISTNAME="ubuntu"
fi
fi
;;
freebsd)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`uname -a |awk '{print $3}'`
VER=`echo $DISTVER | cut -c 1`
if test x$VER = x4 ; then
platforms/openbsd/bacula-dir"
;;
redhat)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
if test -f /etc/whitebox-release ; then
f=/etc/whitebox-release
else
"
;;
mandrake)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`cat /etc/mandrake-release | grep release |\
cut -f 5 -d ' '`
TAPEDRIVE="/dev/nst0"
"
;;
gentoo)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
TAPEDRIVE="/dev/nst0"
PSCMD="ps -e -o pid,command"
platforms/gentoo/bacula-dir"
;;
slackware)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`cat /etc/slackware-version`
TAPEDRIVE="/dev/nst0"
PSCMD="ps -e -o pid,command"
LIBS="$LIBS -lresolv"
;;
suse)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTVER=`cat /etc/SuSE-release |grep VERSION|\
cut -f 3 -d ' '`
TAPEDRIVE="/dev/nst0"
platforms/suse/bacula.spec"
;;
suse5)
+# Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ }
+ if `grep -q ubuntu /etc/apt/sources.list`; then
+ DISTNAME="ubuntu"
+ fi
DISTNAME=suse
DISTVER=5.x
TAPEDRIVE="/dev/nst0"
General:
05Oct08
+kes Do dirty check on hostname (Linux only) and if not resolvable
+ use localhost as default.
kes Increase vtape max block to 20GB.
04Oct08
kes Refactor restore code to create a close_previous_stream(). This