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() ...@@ -122,6 +122,7 @@ pkgvendor()
[ "$DISTRIB_ID" = "OpenSUSE" ] && echo "suse" && return [ "$DISTRIB_ID" = "OpenSUSE" ] && echo "suse" && return
[ "$DISTRIB_ID" = "openSUSETumbleweed" ] && echo "suse" && return [ "$DISTRIB_ID" = "openSUSETumbleweed" ] && echo "suse" && return
[ "$DISTRIB_ID" = "openSUSELeap" ] && echo "suse" && return [ "$DISTRIB_ID" = "openSUSELeap" ] && echo "suse" && return
[ "$DISTRIB_ID" = "UBLinux" ] && echo "ublinux" && return
if [ -n "$VENDOR_ID" ] ; then if [ -n "$VENDOR_ID" ] ; then
echo "$VENDOR_ID" echo "$VENDOR_ID"
return return
...@@ -142,7 +143,7 @@ case $VENDOR_ID in ...@@ -142,7 +143,7 @@ case $VENDOR_ID in
alt) alt)
echo "apt-rpm" && return echo "apt-rpm" && return
;; ;;
arch|manjaro) arch|manjaro|ublinux)
echo "pacman" && return echo "pacman" && return
;; ;;
debian) debian)
...@@ -186,7 +187,7 @@ case $DISTRIB_ID in ...@@ -186,7 +187,7 @@ case $DISTRIB_ID in
Redox) Redox)
CMD="redox-pkg" CMD="redox-pkg"
;; ;;
ArchLinux|ManjaroLinux) ArchLinux|ManjaroLinux|UBLinux)
CMD="pacman" CMD="pacman"
;; ;;
Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|RELS|Scientific|GosLinux|Amzn|RedOS|MSVSphere) Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|RELS|Scientific|GosLinux|Amzn|RedOS|MSVSphere)
...@@ -268,6 +269,9 @@ pkgtype() ...@@ -268,6 +269,9 @@ pkgtype()
arch|manjaro) arch|manjaro)
echo "pkg.tar.xz" && return echo "pkg.tar.xz" && return
;; ;;
ublinux)
echo "pkg.tar.zst" && return
;;
esac esac
# TODO: try use generic names # TODO: try use generic names
...@@ -276,6 +280,7 @@ pkgtype() ...@@ -276,6 +280,7 @@ pkgtype()
sunos) echo "pkg.gz" ;; sunos) echo "pkg.gz" ;;
slackware|mopslinux) echo "tgz" ;; slackware|mopslinux) echo "tgz" ;;
archlinux|manjaro) echo "pkg.tar.xz" ;; archlinux|manjaro) echo "pkg.tar.xz" ;;
ublinux) echo "pkg.tar.zst" ;;
gentoo) echo "tbz2" ;; gentoo) echo "tbz2" ;;
windows) echo "exe" ;; windows) echo "exe" ;;
android) echo "apk" ;; android) echo "apk" ;;
...@@ -288,6 +293,8 @@ pkgtype() ...@@ -288,6 +293,8 @@ pkgtype()
pisilinux) echo "pisi" ;; pisilinux) echo "pisi" ;;
*) *)
case $(pkgmanager) in case $(pkgmanager) in
pacman)
echo "pkg.tar.zst" ;;
*-dpkg) *-dpkg)
echo "deb" ;; echo "deb" ;;
*-rpm) *-rpm)
...@@ -426,7 +433,7 @@ if distro os-release ; then ...@@ -426,7 +433,7 @@ if distro os-release ; then
VENDOR_ID="$ID" VENDOR_ID="$ID"
DISTRIB_CODENAME="$VERSION_CODENAME" DISTRIB_CODENAME="$VERSION_CODENAME"
case "$VENDOR_ID" in 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 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