[bacula] Update hostname patch

Simone Caronni slaanesh at fedoraproject.org
Mon Dec 12 09:15:49 UTC 2011


commit e0615f70916fc7a5844cf0cf63660914b081be6d
Author: Simone Caronni <negativo17 at gmail.com>
Date:   Mon Dec 12 10:15:31 2011 +0100

    Update hostname patch

 bacula-5.2.2-hostname.patch |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
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`


More information about the scm-commits mailing list