aboutsummaryrefslogtreecommitdiffstats
path: root/community/bareos/detect-alpine.patch
blob: f46a5570fe7ecda4ce4703ca5ec431848be36306 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Patch from fcolista

diff --git a/core/cmake/distname.sh b/core/cmake/distname.sh
index d52308c..603d249 100755
--- a/core/cmake/distname.sh
+++ b/core/cmake/distname.sh
@@ -45,7 +45,7 @@ else
             DISTNAME=univention
             ;;
          *)
-            DISTNAME=""
+            DISTNAME="alpine"
             ;;
       esac
 
@@ -165,6 +165,10 @@ else
       elif test "$CYGWIN" = yes
       then
          DISTNAME=cygwin
+      elif test -f /etc/alpine-release
+      then
+         DISTNAME=alpine
+         DISTVER=`cat /etc/alpine-release`
       else
          DISTNAME=unknown
          DISTVER=unknown