Commit 0460b4d8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add support for ALTServer distro

parent a5beb245
...@@ -84,7 +84,7 @@ pkgmanager() ...@@ -84,7 +84,7 @@ pkgmanager()
local CMD local CMD
# FIXME: some problems with multibased distros (Server Edition on CentOS and Desktop Edition on Ubuntu) # FIXME: some problems with multibased distros (Server Edition on CentOS and Desktop Edition on Ubuntu)
case $DISTRIB_ID in case $DISTRIB_ID in
ALTLinux) ALTLinux|ALTServer)
#which ds-install 2>/dev/null >/dev/null && CMD=deepsolver-rpm #which ds-install 2>/dev/null >/dev/null && CMD=deepsolver-rpm
#which pkcon 2>/dev/null >/dev/null && CMD=packagekit-rpm #which pkcon 2>/dev/null >/dev/null && CMD=packagekit-rpm
CMD="apt-rpm" CMD="apt-rpm"
...@@ -301,6 +301,9 @@ elif distro gentoo-release ; then ...@@ -301,6 +301,9 @@ elif distro gentoo-release ; then
DISTRIB_RELEASE=$(basename $MAKEPROFILE) DISTRIB_RELEASE=$(basename $MAKEPROFILE)
echo $DISTRIB_RELEASE | grep -q "[0-9]" || DISTRIB_RELEASE=$(basename "$(dirname $MAKEPROFILE)") #" echo $DISTRIB_RELEASE | grep -q "[0-9]" || DISTRIB_RELEASE=$(basename "$(dirname $MAKEPROFILE)") #"
elif [ "$DISTRIB_ID" = "ALTServer" ] ; then
DISTRIB_RELEASE=$(echo $DISTRIB_RELEASE | sed -e "s/\..*//g")
elif distro slackware-version ; then elif distro slackware-version ; then
DISTRIB_ID="Slackware" DISTRIB_ID="Slackware"
DISTRIB_RELEASE="$(grep -Eo '[0-9]+\.[0-9]+' $DISTROFILE)" DISTRIB_RELEASE="$(grep -Eo '[0-9]+\.[0-9]+' $DISTROFILE)"
......
...@@ -88,7 +88,7 @@ __epm_addrepo_altlinux() ...@@ -88,7 +88,7 @@ __epm_addrepo_altlinux()
epm repofix etersoft epm repofix etersoft
return 0 return 0
;; ;;
basealt|altlinux) basealt|ALTLinux|ALTServer)
# TODO: setrepo? # TODO: setrepo?
assure_exists apt-repo assure_exists apt-repo
sudocmd apt-repo add $branch sudocmd apt-repo add $branch
...@@ -202,7 +202,7 @@ epm_addrepo() ...@@ -202,7 +202,7 @@ epm_addrepo()
local repo="$*" local repo="$*"
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
# Note! Don't use quotes here # Note! Don't use quotes here
__epm_addrepo_altlinux $repo __epm_addrepo_altlinux $repo
return return
......
...@@ -233,7 +233,7 @@ epm_autoremove() ...@@ -233,7 +233,7 @@ epm_autoremove()
{ {
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "help" ] ; then if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "help" ] ; then
epm_autoremove_print_help epm_autoremove_print_help
return 0 return 0
......
...@@ -48,7 +48,7 @@ case $PMTYPE in ...@@ -48,7 +48,7 @@ case $PMTYPE in
esac esac
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
epm_checksystem_$DISTRNAME epm_checksystem_$DISTRNAME
;; ;;
*) *)
......
...@@ -50,7 +50,7 @@ try_fix_apt_rpm_dupls() ...@@ -50,7 +50,7 @@ try_fix_apt_rpm_dupls()
epm_dedup() epm_dedup()
{ {
case "$DISTRNAME" in case "$DISTRNAME" in
"ALTLinux") ALTLinux|ALTServer)
assure_exists /usr/share/apt/scripts/dedup.lua apt-scripts assure_exists /usr/share/apt/scripts/dedup.lua apt-scripts
if [ -z "$direct" ] && [ -f /usr/share/apt/scripts/dedup.lua ] ; then if [ -z "$direct" ] && [ -f /usr/share/apt/scripts/dedup.lua ] ; then
info "Check for duplicates via apt-get dedup from apt-scripts (also you can use internal EPM dedup implementation with --direct option)" info "Check for duplicates via apt-get dedup from apt-scripts (also you can use internal EPM dedup implementation with --direct option)"
......
...@@ -189,7 +189,7 @@ epm_download() ...@@ -189,7 +189,7 @@ epm_download()
local CMD local CMD
case $DISTRNAME-$PMTYPE in case $DISTRNAME-$PMTYPE in
ALTLinux-apt-rpm) ALTLinux-apt-rpm|ALTServer-apt-rpm)
__epm_download_alt $* __epm_download_alt $*
return return
;; ;;
......
...@@ -266,7 +266,7 @@ __epm_check_if_rpm_already_installed() ...@@ -266,7 +266,7 @@ __epm_check_if_rpm_already_installed()
__handle_direct_install() __handle_direct_install()
{ {
case "$DISTRNAME" in case "$DISTRNAME" in
"ALTLinux") ALTLinux|ALTServer)
load_helper epm-download load_helper epm-download
local pkg url local pkg url
for pkg in $pkg_names ; do for pkg in $pkg_names ; do
...@@ -306,7 +306,7 @@ epm_install_files() ...@@ -306,7 +306,7 @@ epm_install_files()
# sudo test -r FILE # sudo test -r FILE
# do not fallback to install_names if we have no permissions # do not fallback to install_names if we have no permissions
case "$DISTRNAME" in case "$DISTRNAME" in
"ALTLinux") ALTLinux|ALTServer)
# TODO: replace with name changed function # TODO: replace with name changed function
__epm_check_if_try_install_deb $@ && return __epm_check_if_try_install_deb $@ && return
...@@ -533,7 +533,7 @@ epm_print_install_names_command() ...@@ -533,7 +533,7 @@ epm_print_install_names_command()
epm_install() epm_install()
{ {
if [ "$DISTRNAME" = "ALTLinux" ] ; then if [ "$DISTRNAME" = "ALTLinux" ] || [ "$DISTRNAME" = "ALTServer" ] ; then
if tasknumber "$pkg_names" >/dev/null ; then if tasknumber "$pkg_names" >/dev/null ; then
assure_exists apt-repo assure_exists apt-repo
# TODO: add --auto support # TODO: add --auto support
......
...@@ -27,7 +27,7 @@ epm_kernel_update() ...@@ -27,7 +27,7 @@ epm_kernel_update()
info "Updating system kernel to the latest version..." info "Updating system kernel to the latest version..."
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
load_helper epm-query_package load_helper epm-query_package
if ! __epm_query_package kernel-image >/dev/null ; then if ! __epm_query_package kernel-image >/dev/null ; then
info "No installed kernel packages, skipping update" info "No installed kernel packages, skipping update"
......
...@@ -57,7 +57,7 @@ epm_release_downgrade() ...@@ -57,7 +57,7 @@ epm_release_downgrade()
export EPMNOEATMYDATA=1 export EPMNOEATMYDATA=1
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
__epm_ru_update || fatal __epm_ru_update || fatal
# try to detect current release by repo # try to detect current release by repo
......
...@@ -393,7 +393,7 @@ __switch_alt_to_distro() ...@@ -393,7 +393,7 @@ __switch_alt_to_distro()
__check_system "$TO" __check_system "$TO"
docmd epm upgrade || fatal docmd epm upgrade || fatal
;; ;;
"p8 Sisyphus"|"p9 Sisyphus"|"p10 Sisyphus"|"Sisyphus Sisyphus") "p8 Sisyphus"|"p9 Sisyphus"|"p10 Sisyphus"|"10 Sisyphus"|"Sisyphus Sisyphus")
confirm_info "Upgrade $DISTRNAME from $FROM to $TO ..." confirm_info "Upgrade $DISTRNAME from $FROM to $TO ..."
docmd epm install rpm apt "$(get_fix_release_pkg "$FROM")" || fatal docmd epm install rpm apt "$(get_fix_release_pkg "$FROM")" || fatal
docmd epm upgrade || fatal docmd epm upgrade || fatal
...@@ -440,7 +440,7 @@ epm_release_upgrade() ...@@ -440,7 +440,7 @@ epm_release_upgrade()
export EPMNOEATMYDATA=1 export EPMNOEATMYDATA=1
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
__epm_ru_update || fatal __epm_ru_update || fatal
# TODO: remove this hack (or move it to distro_info) # TODO: remove this hack (or move it to distro_info)
......
...@@ -280,7 +280,7 @@ epm_remove() ...@@ -280,7 +280,7 @@ epm_remove()
return return
fi fi
if [ "$DISTRNAME" = "ALTLinux" ] ; then if [ "$DISTRNAME" = "ALTLinux" ] || [ "$DISTRNAME" = "ALTServer" ] ; then
load_helper epm-sh-altlinux load_helper epm-sh-altlinux
if tasknumber "$pkg_names" >/dev/null ; then if tasknumber "$pkg_names" >/dev/null ; then
assure_exists apt-repo assure_exists apt-repo
...@@ -341,4 +341,3 @@ epm_remove() ...@@ -341,4 +341,3 @@ epm_remove()
epm_remove_names $pkg_names epm_remove_names $pkg_names
} }
...@@ -25,7 +25,7 @@ epm_remove_old_kernels() ...@@ -25,7 +25,7 @@ epm_remove_old_kernels()
warmup_bases warmup_bases
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
load_helper epm-query_package load_helper epm-query_package
if ! __epm_query_package kernel-image >/dev/null ; then if ! __epm_query_package kernel-image >/dev/null ; then
info "No installed kernel packages, skipping cleaning" info "No installed kernel packages, skipping cleaning"
......
...@@ -94,7 +94,7 @@ epm_removerepo() ...@@ -94,7 +94,7 @@ epm_removerepo()
{ {
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
__epm_removerepo_alt "$@" __epm_removerepo_alt "$@"
return return
;; ;;
......
...@@ -179,7 +179,13 @@ EOF ...@@ -179,7 +179,13 @@ EOF
__epm_repack_to_rpm() __epm_repack_to_rpm()
{ {
local pkgs="$*" local pkgs="$*"
case $DISTRNAME in
ALTLinux|ALTServer)
;;
*)
assure_distr ALTLinux "install --repack" assure_distr ALTLinux "install --repack"
;;
esac
# install epm-repack for static (package based) dependencies # install epm-repack for static (package based) dependencies
assure_exists fakeroot || fatal assure_exists fakeroot || fatal
......
...@@ -221,7 +221,7 @@ epm_repofix() ...@@ -221,7 +221,7 @@ epm_repofix()
{ {
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
assure_exists apt-repo assure_exists apt-repo
[ -n "$quiet" ] || docmd apt-repo list [ -n "$quiet" ] || docmd apt-repo list
assure_root assure_root
......
...@@ -74,7 +74,7 @@ __epm_check_vendor() ...@@ -74,7 +74,7 @@ __epm_check_vendor()
[ -n "$scripts$noscripts" ] && return [ -n "$scripts$noscripts" ] && return
# only ALT # only ALT
[ "$DISTRNAME" = "ALTLinux" ] || return [ "$DISTRNAME" = "ALTLinux" ] || [ "$DISTRNAME" = "ALTServer" ] || return
local i local i
for i in $* ; do for i in $* ; do
......
...@@ -62,7 +62,7 @@ open_browser() ...@@ -62,7 +62,7 @@ open_browser()
__query_package_hl_url() __query_package_hl_url()
{ {
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
paoapi srpms/$1 | get_pao_var url paoapi srpms/$1 | get_pao_var url
;; ;;
esac esac
......
...@@ -29,7 +29,7 @@ epm_upgrade() ...@@ -29,7 +29,7 @@ epm_upgrade()
warmup_bases warmup_bases
if [ "$DISTRNAME" = "ALTLinux" ] ; then if [ "$DISTRNAME" = "ALTLinux" ] || [ "$DISTRNAME" = "ALTServer" ] ; then
load_helper epm-sh-altlinux load_helper epm-sh-altlinux
if tasknumber "$@" >/dev/null ; then if tasknumber "$@" >/dev/null ; then
load_helper epm-addrepo load_helper epm-addrepo
......
...@@ -53,7 +53,7 @@ set_service_type() ...@@ -53,7 +53,7 @@ set_service_type()
# TODO: see Running in distro_info, check is_aсtive_systemd # TODO: see Running in distro_info, check is_aсtive_systemd
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
CMD="service-chkconfig" CMD="service-chkconfig"
;; ;;
Ubuntu|Debian|Mint|AstraLinux) Ubuntu|Debian|Mint|AstraLinux)
......
...@@ -28,7 +28,7 @@ serv_cat() ...@@ -28,7 +28,7 @@ serv_cat()
;; ;;
*) *)
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
local INITFILE=/etc/init.d/$SERVICE local INITFILE=/etc/init.d/$SERVICE
[ -r "$INITFILE" ] || fatal "Can't find init file $INITFILE" [ -r "$INITFILE" ] || fatal "Can't find init file $INITFILE"
docmd cat $INITFILE docmd cat $INITFILE
......
...@@ -29,7 +29,7 @@ serv_exists() ...@@ -29,7 +29,7 @@ serv_exists()
;; ;;
*) *)
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
local INITFILE=/etc/init.d/$SERVICE local INITFILE=/etc/init.d/$SERVICE
[ -r "$INITFILE" ] || return [ -r "$INITFILE" ] || return
return ;; return ;;
......
...@@ -53,7 +53,7 @@ serv_log() ...@@ -53,7 +53,7 @@ serv_log()
;; ;;
*) *)
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
FF="" ; [ "$1" = "-f" ] && FF="-f" FF="" ; [ "$1" = "-f" ] && FF="-f"
__serv_log_altlinux "$SERVICE" $FF __serv_log_altlinux "$SERVICE" $FF
return ;; return ;;
......
...@@ -679,7 +679,7 @@ __epm_addrepo_altlinux() ...@@ -679,7 +679,7 @@ __epm_addrepo_altlinux()
epm repofix etersoft epm repofix etersoft
return 0 return 0
;; ;;
basealt|altlinux) basealt|ALTLinux|ALTServer)
# TODO: setrepo? # TODO: setrepo?
assure_exists apt-repo assure_exists apt-repo
sudocmd apt-repo add $branch sudocmd apt-repo add $branch
...@@ -792,7 +792,7 @@ epm_addrepo() ...@@ -792,7 +792,7 @@ epm_addrepo()
local repo="$*" local repo="$*"
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
# Note! Don't use quotes here # Note! Don't use quotes here
__epm_addrepo_altlinux $repo __epm_addrepo_altlinux $repo
return return
...@@ -1276,7 +1276,7 @@ epm_autoremove() ...@@ -1276,7 +1276,7 @@ epm_autoremove()
{ {
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "help" ] ; then if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "help" ] ; then
epm_autoremove_print_help epm_autoremove_print_help
return 0 return 0
...@@ -1696,7 +1696,7 @@ case $PMTYPE in ...@@ -1696,7 +1696,7 @@ case $PMTYPE in
esac esac
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
epm_checksystem_$DISTRNAME epm_checksystem_$DISTRNAME
;; ;;
*) *)
...@@ -3393,7 +3393,7 @@ epm_kernel_update() ...@@ -3393,7 +3393,7 @@ epm_kernel_update()
info "Updating system kernel to the latest version..." info "Updating system kernel to the latest version..."
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
if ! __epm_query_package kernel-image >/dev/null ; then if ! __epm_query_package kernel-image >/dev/null ; then
info "No installed kernel packages, skipping update" info "No installed kernel packages, skipping update"
return return
...@@ -4886,7 +4886,7 @@ epm_release_downgrade() ...@@ -4886,7 +4886,7 @@ epm_release_downgrade()
export EPMNOEATMYDATA=1 export EPMNOEATMYDATA=1
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
__epm_ru_update || fatal __epm_ru_update || fatal
# try to detect current release by repo # try to detect current release by repo
...@@ -5408,7 +5408,7 @@ epm_release_upgrade() ...@@ -5408,7 +5408,7 @@ epm_release_upgrade()
export EPMNOEATMYDATA=1 export EPMNOEATMYDATA=1
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
__epm_ru_update || fatal __epm_ru_update || fatal
# TODO: remove this hack (or move it to distro_info) # TODO: remove this hack (or move it to distro_info)
...@@ -5883,7 +5883,7 @@ epm_remove_old_kernels() ...@@ -5883,7 +5883,7 @@ epm_remove_old_kernels()
warmup_bases warmup_bases
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
if ! __epm_query_package kernel-image >/dev/null ; then if ! __epm_query_package kernel-image >/dev/null ; then
info "No installed kernel packages, skipping cleaning" info "No installed kernel packages, skipping cleaning"
return return
...@@ -6010,7 +6010,7 @@ epm_removerepo() ...@@ -6010,7 +6010,7 @@ epm_removerepo()
{ {
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
__epm_removerepo_alt "$@" __epm_removerepo_alt "$@"
return return
;; ;;
...@@ -6671,7 +6671,7 @@ epm_repofix() ...@@ -6671,7 +6671,7 @@ epm_repofix()
{ {
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
assure_exists apt-repo assure_exists apt-repo
[ -n "$quiet" ] || docmd apt-repo list [ -n "$quiet" ] || docmd apt-repo list
assure_root assure_root
...@@ -8305,7 +8305,7 @@ open_browser() ...@@ -8305,7 +8305,7 @@ open_browser()
__query_package_hl_url() __query_package_hl_url()
{ {
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
paoapi srpms/$1 | get_pao_var url paoapi srpms/$1 | get_pao_var url
;; ;;
esac esac
...@@ -8828,7 +8828,7 @@ pkgmanager() ...@@ -8828,7 +8828,7 @@ pkgmanager()
local CMD local CMD
# FIXME: some problems with multibased distros (Server Edition on CentOS and Desktop Edition on Ubuntu) # FIXME: some problems with multibased distros (Server Edition on CentOS and Desktop Edition on Ubuntu)
case $DISTRIB_ID in case $DISTRIB_ID in
ALTLinux) ALTLinux|ALTServer)
#which ds-install 2>/dev/null >/dev/null && CMD=deepsolver-rpm #which ds-install 2>/dev/null >/dev/null && CMD=deepsolver-rpm
#which pkcon 2>/dev/null >/dev/null && CMD=packagekit-rpm #which pkcon 2>/dev/null >/dev/null && CMD=packagekit-rpm
CMD="apt-rpm" CMD="apt-rpm"
......
...@@ -611,7 +611,7 @@ serv_cat() ...@@ -611,7 +611,7 @@ serv_cat()
;; ;;
*) *)
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
local INITFILE=/etc/init.d/$SERVICE local INITFILE=/etc/init.d/$SERVICE
[ -r "$INITFILE" ] || fatal "Can't find init file $INITFILE" [ -r "$INITFILE" ] || fatal "Can't find init file $INITFILE"
docmd cat $INITFILE docmd cat $INITFILE
...@@ -764,7 +764,7 @@ serv_exists() ...@@ -764,7 +764,7 @@ serv_exists()
;; ;;
*) *)
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
local INITFILE=/etc/init.d/$SERVICE local INITFILE=/etc/init.d/$SERVICE
[ -r "$INITFILE" ] || return [ -r "$INITFILE" ] || return
return ;; return ;;
...@@ -932,7 +932,7 @@ serv_log() ...@@ -932,7 +932,7 @@ serv_log()
;; ;;
*) *)
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
FF="" ; [ "$1" = "-f" ] && FF="-f" FF="" ; [ "$1" = "-f" ] && FF="-f"
__serv_log_altlinux "$SERVICE" $FF __serv_log_altlinux "$SERVICE" $FF
return ;; return ;;
...@@ -1369,7 +1369,7 @@ pkgmanager() ...@@ -1369,7 +1369,7 @@ pkgmanager()
local CMD local CMD
# FIXME: some problems with multibased distros (Server Edition on CentOS and Desktop Edition on Ubuntu) # FIXME: some problems with multibased distros (Server Edition on CentOS and Desktop Edition on Ubuntu)
case $DISTRIB_ID in case $DISTRIB_ID in
ALTLinux) ALTLinux|ALTServer)
#which ds-install 2>/dev/null >/dev/null && CMD=deepsolver-rpm #which ds-install 2>/dev/null >/dev/null && CMD=deepsolver-rpm
#which pkcon 2>/dev/null >/dev/null && CMD=packagekit-rpm #which pkcon 2>/dev/null >/dev/null && CMD=packagekit-rpm
CMD="apt-rpm" CMD="apt-rpm"
...@@ -2905,7 +2905,7 @@ set_service_type() ...@@ -2905,7 +2905,7 @@ set_service_type()
# TODO: see Running in distro_info, check is_aсtive_systemd # TODO: see Running in distro_info, check is_aсtive_systemd
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux|ALTServer)
CMD="service-chkconfig" CMD="service-chkconfig"
;; ;;
Ubuntu|Debian|Mint|AstraLinux) Ubuntu|Debian|Mint|AstraLinux)
......
...@@ -32,7 +32,7 @@ PKGMASK="$($DISTRVENDOR -p)/$(epm print constructname $PKGNAME "*" $arch '' '_') ...@@ -32,7 +32,7 @@ PKGMASK="$($DISTRVENDOR -p)/$(epm print constructname $PKGNAME "*" $arch '' '_')
# we miss obsoleted libpangox on ALT, so use RHEL8 build # we miss obsoleted libpangox on ALT, so use RHEL8 build
# lib.req: WARNING: /usr/bin/anydesk: library libpangox-1.0.so.0 not found # lib.req: WARNING: /usr/bin/anydesk: library libpangox-1.0.so.0 not found
[ "$($DISTRVENDOR -d)" = "ALTLinux" ] && PKGMASK="os-specific/rhel8/$(epm print constructname $PKGNAME "*" $arch)" [ "$($DISTRVENDOR -s)" = "alt" ] && PKGMASK="os-specific/rhel8/$(epm print constructname $PKGNAME "*" $arch)"
PKG="$($EGET --list --latest https://download.anydesk.com/linux $PKGMASK)" || fatal "Can't get package URL" PKG="$($EGET --list --latest https://download.anydesk.com/linux $PKGMASK)" || fatal "Can't get package URL"
......
...@@ -18,7 +18,7 @@ esac ...@@ -18,7 +18,7 @@ esac
pkgtype="$($DISTRVENDOR -p)" pkgtype="$($DISTRVENDOR -p)"
repack='' repack=''
[ "$($DISTRVENDOR -d)" = "ALTLinux" ] && repack='--repack' [ "$($DISTRVENDOR -s)" = "alt" ] && repack='--repack'
case $pkgtype in case $pkgtype in
deb) deb)
......
...@@ -27,7 +27,7 @@ case "$($DISTRVENDOR -d)" in ...@@ -27,7 +27,7 @@ case "$($DISTRVENDOR -d)" in
epm install https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019/pool/main/m/mssql-server/mssql-server_1*_amd64.deb epm install https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019/pool/main/m/mssql-server/mssql-server_1*_amd64.deb
epm rr $DEBREPO ; epm update epm rr $DEBREPO ; epm update
;; ;;
"ALTLinux") ALTLinux|ALTServer)
epm install --repack https://packages.microsoft.com/rhel/8/mssql-server-2019/mssql-server-1*.x86_64.rpm || fatal epm install --repack https://packages.microsoft.com/rhel/8/mssql-server-2019/mssql-server-1*.x86_64.rpm || fatal
;; ;;
*) *)
......
...@@ -22,7 +22,7 @@ case "$($DISTRVENDOR -d)" in ...@@ -22,7 +22,7 @@ case "$($DISTRVENDOR -d)" in
#epm install https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/m/msodbcsql17/msodbcsql17_1*_amd64.deb #epm install https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/m/msodbcsql17/msodbcsql17_1*_amd64.deb
epm install unixodbc epm install unixodbc
;; ;;
"ALTLinux") ALTLinux|ALTServer)
epm install --repack https://packages.microsoft.com/rhel/8/prod/mssql-tools-1*.x86_64.rpm epm install --repack https://packages.microsoft.com/rhel/8/prod/mssql-tools-1*.x86_64.rpm
epm install --repack https://packages.microsoft.com/rhel/8/prod/msodbcsql17-1*.x86_64.rpm epm install --repack https://packages.microsoft.com/rhel/8/prod/msodbcsql17-1*.x86_64.rpm
epm install unixODBC epm install unixODBC
......
...@@ -19,7 +19,7 @@ case $arch in ...@@ -19,7 +19,7 @@ case $arch in
esac esac
repack='' repack=''
[ "$($DISTRVENDOR -d)" = "ALTLinux" ] && repack='--repack' [ "$($DISTRVENDOR -s)" = "alt" ] && repack='--repack'
#https://st.mycdn.me/static/sferum/latest/sferum-i386.deb #https://st.mycdn.me/static/sferum/latest/sferum-i386.deb
#https://st.mycdn.me/static/sferum/latest/sferum-amd64.deb #https://st.mycdn.me/static/sferum/latest/sferum-amd64.deb
......
...@@ -22,7 +22,7 @@ case "$($DISTRVENDOR -e)" in ...@@ -22,7 +22,7 @@ case "$($DISTRVENDOR -e)" in
ALTLinux/c8) ALTLinux/c8)
epm --repack install https://upd.sputnik-lab.com/api-updates/updates/download/94d70495-75ec-4ad7-831d-8008d0525d90/sputnik-browser-stable-5.6.6322.0-1.x86_64.rpm epm --repack install https://upd.sputnik-lab.com/api-updates/updates/download/94d70495-75ec-4ad7-831d-8008d0525d90/sputnik-browser-stable-5.6.6322.0-1.x86_64.rpm
;; ;;
ALTLinux/*) ALTLinux/*|ALTServer/*)
epm --repack install https://upd.sputnik-lab.com/api-updates/updates/download/49734e35-cfe1-493c-bfae-8fa83f2a4365/sputnik-browser-stable-5.6.6324.0-1.x86_64.rpm epm --repack install https://upd.sputnik-lab.com/api-updates/updates/download/49734e35-cfe1-493c-bfae-8fa83f2a4365/sputnik-browser-stable-5.6.6324.0-1.x86_64.rpm
;; ;;
AstraLinux/*) AstraLinux/*)
......
...@@ -20,7 +20,7 @@ case $arch in ...@@ -20,7 +20,7 @@ case $arch in
fatal "Unsupported arch $arch for $($DISTRVENDOR -d)" fatal "Unsupported arch $arch for $($DISTRVENDOR -d)"
esac esac
if [ "$($DISTRVENDOR -d)" = "ALTLinux" ] ; then if [ "$($DISTRVENDOR -s)" = "alt" ] ; then
epm install $repack https://zoom.us/client/$version/zoom_$arch.rpm epm install $repack https://zoom.us/client/$version/zoom_$arch.rpm
exit exit
fi fi
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[ "$1" != "--run" ] && echo "Uninstall etersoft build of glibc" && exit [ "$1" != "--run" ] && echo "Uninstall etersoft build of glibc" && exit
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
epm downgrade glibc-core glibc-preinstall epm downgrade glibc-core glibc-preinstall
exit 0 exit 0
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[ "$1" != "--run" ] && echo "Install glusterfs7 (or upgrade from glusterfs6)" && exit [ "$1" != "--run" ] && echo "Install glusterfs7 (or upgrade from glusterfs6)" && exit
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
if epmqp --quiet glusterfs6- ; then if epmqp --quiet glusterfs6- ; then
# Upgrade if was installed # Upgrade if was installed
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[ "$1" != "--run" ] && echo "Install glusterfs8 (or upgrade from glusterfs7)" && exit [ "$1" != "--run" ] && echo "Install glusterfs8 (or upgrade from glusterfs7)" && exit
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
GFSOLD=glusterfs7 GFSOLD=glusterfs7
GFSNEW=glusterfs8 GFSNEW=glusterfs8
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[ "$1" != "--run" ] && echo "Install glusterfs9 (or upgrade from glusterfs8)" && exit [ "$1" != "--run" ] && echo "Install glusterfs9 (or upgrade from glusterfs8)" && exit
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
GFSOLD=glusterfs8 GFSOLD=glusterfs8
GFSNEW=glusterfs9 GFSNEW=glusterfs9
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[ "$1" != "--run" ] && echo "Fix missed 32 bit package modules on 64 bit system" && exit [ "$1" != "--run" ] && echo "Fix missed 32 bit package modules on 64 bit system" && exit
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1 [ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
LIST='' LIST=''
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1 [ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
case "$($DISTRVENDOR -d)" in case "$($DISTRVENDOR -d)" in
"ALTLinux") "ALTLinux"|"ALTServer")
epm --verbose --simulate remove $(epmqp "^i586-") epm --verbose --simulate remove $(epmqp "^i586-")
;; ;;
"Ubuntu"|"Debian") "Ubuntu"|"Debian")
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
MAIN=wine-etersoft MAIN=wine-etersoft
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1 [ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
PKGNAMES="lib$MAIN i586-$MAIN i586-lib$MAIN i586-lib$MAIN-gl" PKGNAMES="lib$MAIN i586-$MAIN i586-lib$MAIN i586-lib$MAIN-gl"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
MAIN=wine-vanilla MAIN=wine-vanilla
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1 [ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
PKGNAMES="lib$MAIN i586-$MAIN i586-lib$MAIN i586-lib$MAIN-gl" PKGNAMES="lib$MAIN i586-$MAIN i586-lib$MAIN i586-lib$MAIN-gl"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
MAIN=wine MAIN=wine
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1 [ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
PKGNAMES="lib$MAIN i586-$MAIN i586-lib$MAIN i586-lib$MAIN-gl" PKGNAMES="lib$MAIN i586-$MAIN i586-lib$MAIN i586-lib$MAIN-gl"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[ "$1" != "--run" ] && echo "Install php7 (or upgrade from php5)" && exit [ "$1" != "--run" ] && echo "Install php7 (or upgrade from php5)" && exit
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
if epmqp --quiet php5- ; then if epmqp --quiet php5- ; then
# Upgrade if was installed php5 # Upgrade if was installed php5
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[ "$1" != "--run" ] && echo "Install php8 (or upgrade from php7)" && exit [ "$1" != "--run" ] && echo "Install php8 (or upgrade from php7)" && exit
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
# TODO: check for apache2-mod_php7 # TODO: check for apache2-mod_php7
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[ "$1" != "--run" ] && echo "Remove all possible python2 packages" && exit [ "$1" != "--run" ] && echo "Remove all possible python2 packages" && exit
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
PACKAGES="$(epm qp python-module)" PACKAGES="$(epm qp python-module)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
MAIN=wine MAIN=wine
[ -n "$2" ] && MAIN="$2" [ -n "$2" ] && MAIN="$2"
[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1 distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
arch="$($DISTRVENDOR -a)" arch="$($DISTRVENDOR -a)"
......
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