Commit 7247b682 authored by Vitaly Lipatov's avatar Vitaly Lipatov

change AstraLinux to AstraLinuxCE/SE

parent 545809a4
...@@ -62,7 +62,8 @@ pkgvendor() ...@@ -62,7 +62,8 @@ pkgvendor()
{ {
[ "$DISTRIB_ID" = "ALTLinux" ] && echo "alt" && return [ "$DISTRIB_ID" = "ALTLinux" ] && echo "alt" && return
[ "$DISTRIB_ID" = "ALTServer" ] && echo "alt" && return [ "$DISTRIB_ID" = "ALTServer" ] && echo "alt" && return
[ "$DISTRIB_ID" = "AstraLinux" ] && echo "astra" && return [ "$DISTRIB_ID" = "AstraLinuxSE" ] && echo "astra" && return
[ "$DISTRIB_ID" = "AstraLinuxCE" ] && echo "astra" && return
[ "$DISTRIB_ID" = "LinuxXP" ] && echo "lxp" && return [ "$DISTRIB_ID" = "LinuxXP" ] && echo "lxp" && return
[ "$DISTRIB_ID" = "TinyCoreLinux" ] && echo "tcl" && return [ "$DISTRIB_ID" = "TinyCoreLinux" ] && echo "tcl" && return
[ "$DISTRIB_ID" = "VoidLinux" ] && echo "void" && return [ "$DISTRIB_ID" = "VoidLinux" ] && echo "void" && return
...@@ -97,7 +98,7 @@ case $DISTRIB_ID in ...@@ -97,7 +98,7 @@ case $DISTRIB_ID in
PCLinux) PCLinux)
CMD="apt-rpm" CMD="apt-rpm"
;; ;;
Ubuntu|Debian|Mint|AstraLinux|Elbrus) Ubuntu|Debian|Mint|AstraLinux*|Elbrus)
CMD="apt-dpkg" CMD="apt-dpkg"
#which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg #which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg
#hascommand snappy && CMD=snappy #hascommand snappy && CMD=snappy
...@@ -329,6 +330,7 @@ case "$VENDOR_ID" in ...@@ -329,6 +330,7 @@ case "$VENDOR_ID" in
;; ;;
"astra") "astra")
DISTRIB_RELEASE=$(normalize_version3 "$DISTRIB_RELEASE_ORIG" | sed -e 's|_.*||') DISTRIB_RELEASE=$(normalize_version3 "$DISTRIB_RELEASE_ORIG" | sed -e 's|_.*||')
[ "$VARIANT" = "orel" ] && DISTRIB_ID="AstraLinuxCE" || DISTRIB_ID="AstraLinuxSE"
#[ "$DISTRIB_RELEASE" = "1.17" ] && DISTRIB_RELEASE="$VERSION_ID" #[ "$DISTRIB_RELEASE" = "1.17" ] && DISTRIB_RELEASE="$VERSION_ID"
#DISTRIB_RELEASE="$VERSION_CODENAME" #DISTRIB_RELEASE="$VERSION_CODENAME"
;; ;;
......
...@@ -221,7 +221,7 @@ __epm_addrepo_deb() ...@@ -221,7 +221,7 @@ __epm_addrepo_deb()
return return
fi fi
if [ "$DISTRNAME" = "AstraLinux" ] ; then if [ "$DISTRNAME" = "AstraLinuxCE" ] || [ "$DISTRNAME" = "AstraLinuxSE" ] ; then; then
echo "Use workaround for AstraLinux" echo "Use workaround for AstraLinux"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel # aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
echo "" | sudocmd tee -a /etc/apt/sources.list echo "" | sudocmd tee -a /etc/apt/sources.list
......
...@@ -105,7 +105,7 @@ case $PMTYPE in ...@@ -105,7 +105,7 @@ case $PMTYPE in
assure_exists apt-add-repository software-properties-common assure_exists apt-add-repository software-properties-common
set_sudo set_sudo
if [ "$DISTRNAME" = "AstraLinux" ] ; then if [ "$DISTRNAME" = "AstraLinuxCE" ] || [ "$DISTRNAME" = "AstraLinuxSE" ] ; then
echo "Use workaround for AstraLinux" echo "Use workaround for AstraLinux"
[ -n "$*" ] || fatal "empty repo name" [ -n "$*" ] || fatal "empty repo name"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel # aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
......
...@@ -56,7 +56,7 @@ case $DISTRNAME in ...@@ -56,7 +56,7 @@ case $DISTRNAME in
ALTLinux|ALTServer) ALTLinux|ALTServer)
CMD="service-chkconfig" CMD="service-chkconfig"
;; ;;
Ubuntu|Debian|Mint|AstraLinux) Ubuntu|Debian|Mint|AstraLinux*)
CMD="service-update" CMD="service-update"
;; ;;
Mandriva|ROSA) Mandriva|ROSA)
......
...@@ -22,7 +22,7 @@ dname="$(epm print info -s)" ...@@ -22,7 +22,7 @@ dname="$(epm print info -s)"
dversion="$(epm print info -v)" dversion="$(epm print info -v)"
case "$($DISTRVENDOR -d)" in case "$($DISTRVENDOR -d)" in
"AstraLinux") AstraLinux*)
# we have libc++1-9, but this package requires libc++1 # we have libc++1-9, but this package requires libc++1
epm ar $DEBREPO ; epm update epm ar $DEBREPO ; epm update
epm install libc++1 epm install libc++1
......
...@@ -15,7 +15,7 @@ dname="$(epm print info -s)" ...@@ -15,7 +15,7 @@ dname="$(epm print info -s)"
dversion="$(epm print info -v)" dversion="$(epm print info -v)"
case "$($DISTRVENDOR -d)" in case "$($DISTRVENDOR -d)" in
"AstraLinux") AstraLinux*)
epm install --skip-installed unixodbc || fatal epm install --skip-installed unixodbc || fatal
epm install https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17/msodbcsql17_1*_amd64.deb epm install https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17/msodbcsql17_1*_amd64.deb
epm install https://packages.microsoft.com/debian/8/prod/pool/main/m/mssql-tools/mssql-tools_1*_amd64.deb epm install https://packages.microsoft.com/debian/8/prod/pool/main/m/mssql-tools/mssql-tools_1*_amd64.deb
......
...@@ -25,8 +25,7 @@ esac ...@@ -25,8 +25,7 @@ esac
case $(epm print info -e) in case $(epm print info -e) in
Debian/11|Ubuntu/20.04) Debian/11|Ubuntu/20.04)
;; ;;
# AstraLinuxSE/1.7*) AstraLinuxSE/1.7*)
AstraLinux/smolensk)
;; ;;
Fedora/35|ROSA/2021|RedOS/7) Fedora/35|ROSA/2021|RedOS/7)
;; ;;
...@@ -49,14 +48,13 @@ pkgsystem=$(epm print info -g) ...@@ -49,14 +48,13 @@ pkgsystem=$(epm print info -g)
case $(epm print info -e) in case $(epm print info -e) in
# TODO: # TODO:
AstraLinux/orel) AstraLinuxCE*)
pkgsystem='' pkgsystem=''
epm repo addkey "$REPOURL/lab50.gpg" epm repo addkey "$REPOURL/lab50.gpg"
epm repo add "deb $REPOURL/ce stable main" epm repo add "deb $REPOURL/ce stable main"
;; ;;
# TODO: # TODO:
# AstraLinuxSE/1.7*) AstraLinuxSE*)
AstraLinux/smolensk)
distrib=alse17 distrib=alse17
additional_packages="libkf5js5=5.78.0-0ubuntu2+alse17 libkf5jsapi5=5.78.0-0ubuntu2+alse17" additional_packages="libkf5js5=5.78.0-0ubuntu2+alse17 libkf5jsapi5=5.78.0-0ubuntu2+alse17"
;; ;;
......
...@@ -7,7 +7,7 @@ DESCRIPTION="RuDesktop for Linux from the official site" ...@@ -7,7 +7,7 @@ DESCRIPTION="RuDesktop for Linux from the official site"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
case "$($DISTRVENDOR -d)" in case "$($DISTRVENDOR -d)" in
"AstraLinux") AstraLinux*)
PKGNAME=rudesktop-astra PKGNAME=rudesktop-astra
;; ;;
esac esac
......
...@@ -36,12 +36,9 @@ case "$($DISTRVENDOR -e)" in ...@@ -36,12 +36,9 @@ case "$($DISTRVENDOR -e)" in
ALTLinux/*|ALTServer/*) ALTLinux/*|ALTServer/*)
id_content='alt9-id' id_content='alt9-id'
;; ;;
AstraLinux/smolensk) AstraLinux*)
id_content='astrase-id' id_content='astrase-id'
;; ;;
AstraLinux/*)
id_content='astrace-id'
;;
RedOS/*) RedOS/*)
id_content='redos-id' id_content='redos-id'
;; ;;
......
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