Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
0460b4d8
Commit
0460b4d8
authored
Mar 28, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for ALTServer distro
parent
a5beb245
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
72 additions
and
64 deletions
+72
-64
distr_info
bin/distr_info
+4
-1
epm-addrepo
bin/epm-addrepo
+2
-2
epm-autoremove
bin/epm-autoremove
+1
-1
epm-checksystem
bin/epm-checksystem
+1
-1
epm-dedup
bin/epm-dedup
+1
-1
epm-download
bin/epm-download
+1
-1
epm-install
bin/epm-install
+3
-3
epm-kernel_update
bin/epm-kernel_update
+1
-1
epm-release_downgrade
bin/epm-release_downgrade
+1
-1
epm-release_upgrade
bin/epm-release_upgrade
+2
-2
epm-remove
bin/epm-remove
+1
-2
epm-remove_old_kernels
bin/epm-remove_old_kernels
+1
-1
epm-removerepo
bin/epm-removerepo
+1
-1
epm-repack
bin/epm-repack
+7
-1
epm-repofix
bin/epm-repofix
+1
-1
epm-sh-install
bin/epm-sh-install
+1
-1
epm-site
bin/epm-site
+1
-1
epm-upgrade
bin/epm-upgrade
+1
-1
serv
bin/serv
+1
-1
serv-cat
bin/serv-cat
+1
-1
serv-exists
bin/serv-exists
+1
-1
serv-log
bin/serv-log
+1
-1
epm.sh
packed/epm.sh
+12
-12
serv.sh
packed/serv.sh
+5
-5
anydesk.sh
play.d/anydesk.sh
+1
-1
geogebra.sh
play.d/geogebra.sh
+1
-1
mssql-server.sh
play.d/mssql-server.sh
+1
-1
mssql-tools.sh
play.d/mssql-tools.sh
+1
-1
sferum.sh
play.d/sferum.sh
+1
-1
sputnik-browser.sh
play.d/sputnik-browser.sh
+1
-1
zoom.sh
play.d/zoom.sh
+1
-1
glibc-restore.sh
prescription.d/glibc-restore.sh
+1
-1
glusterfs7.sh
prescription.d/glusterfs7.sh
+1
-1
glusterfs8.sh
prescription.d/glusterfs8.sh
+1
-1
glusterfs9.sh
prescription.d/glusterfs9.sh
+1
-1
i586-fix.sh
prescription.d/i586-fix.sh
+1
-1
i586-remove.sh
prescription.d/i586-remove.sh
+1
-1
i586-wine-etersoft.sh
prescription.d/i586-wine-etersoft.sh
+1
-1
i586-wine-vanilla.sh
prescription.d/i586-wine-vanilla.sh
+1
-1
i586-wine.sh
prescription.d/i586-wine.sh
+1
-1
php7.sh
prescription.d/php7.sh
+1
-1
php8.sh
prescription.d/php8.sh
+1
-1
python2-remove.sh
prescription.d/python2-remove.sh
+1
-1
wine.sh
prescription.d/wine.sh
+1
-1
No files found.
bin/distr_info
View file @
0460b4d8
...
@@ -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
)
"
...
...
bin/epm-addrepo
View file @
0460b4d8
...
@@ -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
...
...
bin/epm-autoremove
View file @
0460b4d8
...
@@ -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
...
...
bin/epm-checksystem
View file @
0460b4d8
...
@@ -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
;;
;;
*
)
*
)
...
...
bin/epm-dedup
View file @
0460b4d8
...
@@ -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)"
...
...
bin/epm-download
View file @
0460b4d8
...
@@ -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
;;
;;
...
...
bin/epm-install
View file @
0460b4d8
...
@@ -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
...
...
bin/epm-kernel_update
View file @
0460b4d8
...
@@ -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"
...
...
bin/epm-release_downgrade
View file @
0460b4d8
...
@@ -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
...
...
bin/epm-release_upgrade
View file @
0460b4d8
...
@@ -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)
...
...
bin/epm-remove
View file @
0460b4d8
...
@@ -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
}
}
bin/epm-remove_old_kernels
View file @
0460b4d8
...
@@ -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"
...
...
bin/epm-removerepo
View file @
0460b4d8
...
@@ -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
;;
;;
...
...
bin/epm-repack
View file @
0460b4d8
...
@@ -179,7 +179,13 @@ EOF
...
@@ -179,7 +179,13 @@ EOF
__epm_repack_to_rpm
()
__epm_repack_to_rpm
()
{
{
local
pkgs
=
"
$*
"
local
pkgs
=
"
$*
"
assure_distr ALTLinux
"install --repack"
case
$DISTRNAME
in
ALTLinux|ALTServer
)
;;
*
)
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
...
...
bin/epm-repofix
View file @
0460b4d8
...
@@ -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
...
...
bin/epm-sh-install
View file @
0460b4d8
...
@@ -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
...
...
bin/epm-site
View file @
0460b4d8
...
@@ -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
...
...
bin/epm-upgrade
View file @
0460b4d8
...
@@ -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
...
...
bin/serv
View file @
0460b4d8
...
@@ -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
)
...
...
bin/serv-cat
View file @
0460b4d8
...
@@ -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
...
...
bin/serv-exists
View file @
0460b4d8
...
@@ -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
;;
...
...
bin/serv-log
View file @
0460b4d8
...
@@ -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
;;
...
...
packed/epm.sh
View file @
0460b4d8
...
@@ -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"
...
...
packed/serv.sh
View file @
0460b4d8
...
@@ -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
)
...
...
play.d/anydesk.sh
View file @
0460b4d8
...
@@ -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"
...
...
play.d/geogebra.sh
View file @
0460b4d8
...
@@ -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
)
...
...
play.d/mssql-server.sh
View file @
0460b4d8
...
@@ -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
;;
;;
*
)
*
)
...
...
play.d/mssql-tools.sh
View file @
0460b4d8
...
@@ -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
...
...
play.d/sferum.sh
View file @
0460b4d8
...
@@ -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
...
...
play.d/sputnik-browser.sh
View file @
0460b4d8
...
@@ -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/
*
)
...
...
play.d/zoom.sh
View file @
0460b4d8
...
@@ -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
...
...
prescription.d/glibc-restore.sh
View file @
0460b4d8
...
@@ -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
...
...
prescription.d/glusterfs7.sh
View file @
0460b4d8
...
@@ -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
...
...
prescription.d/glusterfs8.sh
View file @
0460b4d8
...
@@ -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
...
...
prescription.d/glusterfs9.sh
View file @
0460b4d8
...
@@ -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
...
...
prescription.d/i586-fix.sh
View file @
0460b4d8
...
@@ -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
=
''
...
...
prescription.d/i586-remove.sh
View file @
0460b4d8
...
@@ -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"
)
...
...
prescription.d/i586-wine-etersoft.sh
View file @
0460b4d8
...
@@ -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"
...
...
prescription.d/i586-wine-vanilla.sh
View file @
0460b4d8
...
@@ -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"
...
...
prescription.d/i586-wine.sh
View file @
0460b4d8
...
@@ -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"
...
...
prescription.d/php7.sh
View file @
0460b4d8
...
@@ -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
...
...
prescription.d/php8.sh
View file @
0460b4d8
...
@@ -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
...
...
prescription.d/python2-remove.sh
View file @
0460b4d8
...
@@ -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
)
"
...
...
prescription.d/wine.sh
View file @
0460b4d8
...
@@ -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
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment