File bareos-distname.patch of Package bareos

--- bareos-Release-19.2.8/core/cmake/distname.sh.orig	2020-08-09 14:36:04.085664804 +0200
+++ bareos-Release-19.2.8/core/cmake/distname.sh	2020-08-09 14:54:09.444131188 +0200
@@ -4,60 +4,8 @@
 
 if test "x$DISTNAME" != "x"
 then
-   echo "distname set to $DISTNAME"
+   echo "distname set to $DISTNAME" > /dev/null
 else
-   which lsb_release > /dev/null 2>&1
-   if test $? = 0
-   then
-      LSB_DISTRIBUTOR=`lsb_release -i -s`
-      case ${LSB_DISTRIBUTOR} in
-         *SUSE*)
-            DISTNAME=suse
-            ;;
-         CentOS)
-            DISTNAME=redhat
-            ;;
-         Fedora)
-            DISTNAME=redhat
-            ;;
-         RedHatEnterprise*)
-            DISTNAME=redhat
-            ;;
-         Oracle*)
-            DISTNAME=redhat
-            ;;
-         MandrivaLinux)
-            DISTNAME=mandrake
-            ;;
-         Arch|archlinux)
-            DISTNAME=archlinux
-            ;;
-         LinuxMint)
-            DISTNAME=debian
-            ;;
-         Debian)
-            DISTNAME=debian
-            ;;
-         Ubuntu)
-            DISTNAME=ubuntu
-            ;;
-         Univention)
-            DISTNAME=univention
-            ;;
-         *)
-            DISTNAME=""
-            ;;
-      esac
-
-      #
-      # If we got a valid DISTNAME get the DISTVER from lsb_release too.
-      #
-      if test "x$DISTNAME" != "x"
-      then
-         DISTVER=`lsb_release -d -s | sed -e 's/"//g'`
-      fi
-   fi
-
    #
    # If lsb_release gave us the wanted info we skip this fallback block.
    #
openSUSE Build Service is sponsored by