Commit 83a1b780 authored by asmeron's avatar asmeron Committed by Vitaly Lipatov

add UBLinux support (#479)

* add UBLinux support --------- Co-authored-by: 's avatarasmeron <asmeron@ublinux.com>
parent bf821be4
......@@ -122,6 +122,7 @@ pkgvendor()
[ "$DISTRIB_ID" = "OpenSUSE" ] && echo "suse" && return
[ "$DISTRIB_ID" = "openSUSETumbleweed" ] && echo "suse" && return
[ "$DISTRIB_ID" = "openSUSELeap" ] && echo "suse" && return
[ "$DISTRIB_ID" = "UBLinux" ] && echo "ublinux" && return
if [ -n "$VENDOR_ID" ] ; then
echo "$VENDOR_ID"
return
......@@ -142,7 +143,7 @@ case $VENDOR_ID in
alt)
echo "apt-rpm" && return
;;
arch|manjaro)
arch|manjaro|ublinux)
echo "pacman" && return
;;
debian)
......@@ -186,7 +187,7 @@ case $DISTRIB_ID in
Redox)
CMD="redox-pkg"
;;
ArchLinux|ManjaroLinux)
ArchLinux|ManjaroLinux|UBLinux)
CMD="pacman"
;;
Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|RELS|Scientific|GosLinux|Amzn|RedOS|MSVSphere)
......@@ -268,6 +269,9 @@ pkgtype()
arch|manjaro)
echo "pkg.tar.xz" && return
;;
ublinux)
echo "pkg.tar.zst" && return
;;
esac
# TODO: try use generic names
......@@ -276,6 +280,7 @@ pkgtype()
sunos) echo "pkg.gz" ;;
slackware|mopslinux) echo "tgz" ;;
archlinux|manjaro) echo "pkg.tar.xz" ;;
ublinux) echo "pkg.tar.zst" ;;
gentoo) echo "tbz2" ;;
windows) echo "exe" ;;
android) echo "apk" ;;
......@@ -288,6 +293,8 @@ pkgtype()
pisilinux) echo "pisi" ;;
*)
case $(pkgmanager) in
pacman)
echo "pkg.tar.zst" ;;
*-dpkg)
echo "deb" ;;
*-rpm)
......@@ -426,7 +433,7 @@ if distro os-release ; then
VENDOR_ID="$ID"
DISTRIB_CODENAME="$VERSION_CODENAME"
case "$VENDOR_ID" in
ubuntu|reld|rhel|astra|manjaro|redos|msvsphere|alteros|rockylinux|almalinux)
ubuntu|reld|rhel|astra|manjaro|ublinux|redos|msvsphere|alteros|rockylinux|almalinux)
;;
*)
if [ -n "$ID_LIKE" ] ; then
......
NAME="UBLinux"
VERSION="2405 Desktop Enterprise"
VERSION_ID=2405
VERSION_CODENAME=ublinux_de
PRETTY_NAME="UBLinux 2405 Desktop Enterprise (x86_64)"
ID=ublinux
ID_LIKE=archlinux
ANSI_COLOR="0;36"
CPE_NAME="cpe:/o:ublinux:ublinux:2405"
HOME_URL="https://www.ublinux.ru/"
DOCUMENTATION_URL="https://wiki.ublinux.ru/"
SUPPORT_URL="https://bbs.ublinux.ru/"
BUG_REPORT_URL="https://bugs.ublinux.ru/"
VARIANT="Desktop Enterprise"
VARIANT_ID="desktop"
LOGO=ublinux
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment