From c6d21f1119dd7eb5a1395a8d4640f837223f1ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Thu, 9 May 2024 20:50:37 +0200 Subject: RPM: initial support for OpenMandriva MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- redhat/build/rpmdist.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'redhat/build/rpmdist.sh') diff --git a/redhat/build/rpmdist.sh b/redhat/build/rpmdist.sh index 7f06af83e..d7be81993 100755 --- a/redhat/build/rpmdist.sh +++ b/redhat/build/rpmdist.sh @@ -5,7 +5,9 @@ RHEL=0 MGA=0 DIST="" -if [ -r /etc/redhat-release ]; then +if [ -r /etc/openmandriva-release ]; then + a="openmandriva" +elif [ -r /etc/redhat-release ]; then read a b c d e f g < /etc/redhat-release elif [ -r /etc/SuSE-release ] || [ -r /etc/SUSE-brand ] || grep -q "opensuse" "/etc/os-release"; then a="opensuse" @@ -14,13 +16,13 @@ fi case $a in # Mageia release 1 (Official) for x86_64 Mageia*) - DIST=".mga${c}" -# MDKVERSION="201002" + DIST=".mga${c}" + #MDKVERSION="201002" ;; # Mandriva Linux release 2011.0 (Official) for x86_64 Mandriva*) - DIST=".mdv${d}" - MDKVERSION="201100" + DIST=".mdv${d}" + MDKVERSION="201100" ;; # CentOS release 5.7 (Final) # CentOS Linux release 6.0 (Final) @@ -49,6 +51,15 @@ case $a in DIST=".oss" fi ;; + # openmandriva + openmandriva) + . /etc/os-release + if [ "${VERSION_ID}" = "5.0" ]; then + DIST=".omv5000" # 5.0 (Rock) + else + DIST=".omv2490" # Cooker + fi + ;; # PCLinuxOS PCLinuxOS) PCLINUXOS="${c}"; DIST=".pclos${c}";; #PCLinuxOS) PCLINUXOS="${c}"; DIST=".pclos";; -- cgit v1.2.1