1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/bareos/detect-alpine.patch
2019-04-06 18:25:49 +00:00

26 lines
625 B
Diff

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