diff --git a/bacula-5.2.2-hostname.patch b/bacula-5.2.2-hostname.patch index 2ceae2b..f105ef9 100644 --- a/bacula-5.2.2-hostname.patch +++ b/bacula-5.2.2-hostname.patch @@ -17,3 +17,23 @@ diff -Naur bacula-5.2.2.old/configure bacula-5.2.2/configure case "$DISTNAME" in aix) DISTVER=`uname -r` +diff -Naur bacula-5.2.2.old/autoconf/configure.in bacula-5.2.2/autoconf/configure.in +--- bacula-5.2.2.old/autoconf/configure.in 2011-12-07 18:19:40.559345035 +0100 ++++ bacula-5.2.2/autoconf/configure.in 2011-12-12 10:11:02.783978422 +0100 +@@ -2853,16 +2853,6 @@ + MACOSX= + COMPRESS_MANPAGES=yes + +-hostname=`uname -n | cut -d '.' -f 1` +-if test x${hostname} = x ; then +- hostname="localhost" +-fi +-dnl Make sure hostname is resolved +-ping -c 1 $hostname 2>/dev/null 1>/dev/null +-if test ! $? = 0; then +- hostname="localhost" +-fi +- + case "$DISTNAME" in + aix) + DISTVER=`uname -r`