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
Vladislav
eepm
Commits
fc572387
Commit
fc572387
authored
Apr 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.53.1
parent
bc65f761
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
168 additions
and
135 deletions
+168
-135
epm.sh
packed/epm.sh
+136
-126
serv.sh
packed/serv.sh
+32
-9
No files found.
packed/epm.sh
View file @
fc572387
#!/bin/sh
#!/bin/
ba
sh
#
# Copyright (C) 2012-2021 Etersoft
# Copyright (C) 2012-2021 Vitaly Lipatov <lav@etersoft.ru>
...
...
@@ -20,7 +20,7 @@
PROGDIR
=
$(
dirname
"
$0
"
)
PROGNAME
=
$(
basename
"
$0
"
)
[
-n
"
$EPMCURDIR
"
]
||
export
EPMCURDIR
=
"
$(
pwd
)
"
CMDSHELL
=
"/bin/sh"
CMDSHELL
=
"/bin/
ba
sh"
# TODO: pwd for ./epm and which for epm
[
"
$PROGDIR
"
=
"."
]
&&
PROGDIR
=
"
$EPMCURDIR
"
if
[
"
$0
"
=
"/dev/stdin"
]
||
[
"
$0
"
=
"sh"
]
;
then
...
...
@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.53.
0
"
EPMVERSION
=
"3.53.
1
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
@@ -1161,7 +1161,7 @@ __epm_addrepo_astra()
# keywords
# https://wiki.astralinux.ru/pages/viewpage.action?pageId=3276859
case
"
$1
-
$reponame
"
in
astra-1.7_x86
_
64
)
astra-1.7_x86
-
64
)
# TODO epm repo change http / https
epm
install
--skip-installed
apt-transport-https ca-certificates
||
fatal
# https://wiki.astralinux.ru/pages/viewpage.action?pageId=158598882
...
...
@@ -1181,7 +1181,7 @@ __epm_addrepo_astra()
return
;;
astra-
*
)
fatal
"Unsupported distro version
$reponame
, see '# epm print info' output."
fatal
"Unsupported distro version
$
1
-
$
reponame
, see '# epm print info' output."
;;
esac
...
...
@@ -4126,126 +4126,6 @@ epm_install_files()
epm_install_names
$files
}
epm_print_install_command
()
{
# print out low level command by default (wait --low-level for control it)
#[ -z "$1" ] && return
[
-z
"
$1
"
]
&&
[
-n
"
$pkg_names
"
]
&&
return
case
$PMTYPE
in
*
-rpm
)
echo
"rpm -Uvh --force
$nodeps
$*
"
;;
*
-dpkg
)
echo
"dpkg -i
$*
"
;;
pkgsrc
)
echo
"pkg_add
$*
"
;;
pkgng
)
echo
"pkg add
$*
"
;;
emerge
)
# need be placed in /usr/portage/packages/somewhere
echo
"emerge --usepkg
$*
"
;;
pacman
)
echo
"pacman -U --noconfirm
$nodeps
$*
"
;;
slackpkg
)
echo
"/sbin/installpkg
$*
"
;;
npackd
)
echo
"npackdcl add --package=
$*
"
;;
opkg
)
echo
"opkg install
$*
"
;;
eopkg
)
echo
"eopkg install
$*
"
;;
android
)
echo
"pm install
$*
"
;;
termux-pkg
)
echo
"pkg install
$*
"
;;
aptcyg
)
echo
"apt-cyg install
$*
"
;;
tce
)
echo
"tce-load -wi
$*
"
;;
xbps
)
echo
"xbps-install -y
$*
"
;;
appget|winget
)
echo
"
$PMTYPE
install -s
$*
"
;;
homebrew
)
# FIXME: sudo and quote
echo
"brew install
$*
"
;;
*
)
fatal
"Have no suitable appropriate install command for
$PMTYPE
"
;;
esac
}
epm_print_install_names_command
()
{
# check for pkg_files to support print out command without pkg names in args
#[ -z "$1" ] && [ -n "$pkg_files" ] && return
[
-z
"
$1
"
]
&&
return
case
$PMTYPE
in
apt-rpm
)
echo
"apt-get -y --force-yes -o APT::Install::VirtualVersion=true -o APT::Install::Virtual=true
$APTOPTIONS
install
$*
"
return
;;
apt-dpkg
)
# this command not for complex use. ACCEPT_EULA=y DEBIAN_FRONTEND=noninteractive
echo
"apt-get -y --force-yes -o APT::Install::VirtualVersion=true -o APT::Install::Virtual=true
$APTOPTIONS
install
$*
"
return
;;
aptitude-dpkg
)
echo
"aptitude -y install
$*
"
return
;;
yum-rpm
)
echo
"yum -y
$YUMOPTIONS
install
$*
"
return
;;
dnf-rpm
)
echo
"dnf -y
$YUMOPTIONS
--allowerasing install
$*
"
return
;;
urpm-rpm
)
echo
"urpmi --auto
$URPMOPTIONS
$*
"
return
;;
zypper-rpm
)
echo
"zypper --non-interactive
$ZYPPEROPTIONS
install
$*
"
return
;;
packagekit
)
echo
"pkcon --noninteractive
$*
"
return
;;
pacman
)
echo
"pacman -S --noconfirm
$*
"
return
;;
choco
)
echo
"choco install
$*
"
return
;;
nix
)
echo
"nix-env --install
$*
"
return
;;
eopkg
)
echo
"eopkg install
$*
"
return
;;
termux-pkg
)
echo
"pkg install
$*
"
return
;;
appget|winget
)
echo
"
$PMTYPE
install
$*
"
return
;;
*
)
fatal
"Have no suitable appropriate install command for
$PMTYPE
"
;;
esac
}
apt_repo_prepare
()
{
...
...
@@ -4280,7 +4160,7 @@ epm_install()
if
[
-n
"
$show_command_only
"
]
;
then
# TODO: handle pkg_urls too
epm_print_install_command
$pkg_files
epm_print_install_
files_
command
$pkg_files
epm_print_install_names_command
$pkg_names
return
fi
...
...
@@ -4459,6 +4339,131 @@ epm_install_emerge()
done
}
# File bin/epm-install-print-command:
epm_print_install_files_command
()
{
# print out low level command by default (wait --low-level for control it)
#[ -z "$1" ] && return
[
-z
"
$1
"
]
&&
[
-n
"
$pkg_names
"
]
&&
return
case
$PMTYPE
in
*
-rpm
)
echo
"rpm -Uvh --force
$nodeps
$*
"
;;
*
-dpkg
)
echo
"dpkg -i
$*
"
;;
pkgsrc
)
echo
"pkg_add
$*
"
;;
pkgng
)
echo
"pkg add
$*
"
;;
emerge
)
# need be placed in /usr/portage/packages/somewhere
echo
"emerge --usepkg
$*
"
;;
pacman
)
echo
"pacman -U --noconfirm
$nodeps
$*
"
;;
slackpkg
)
echo
"/sbin/installpkg
$*
"
;;
npackd
)
echo
"npackdcl add --package=
$*
"
;;
opkg
)
echo
"opkg install
$*
"
;;
eopkg
)
echo
"eopkg install
$*
"
;;
android
)
echo
"pm install
$*
"
;;
termux-pkg
)
echo
"pkg install
$*
"
;;
aptcyg
)
echo
"apt-cyg install
$*
"
;;
tce
)
echo
"tce-load -wi
$*
"
;;
xbps
)
echo
"xbps-install -y
$*
"
;;
appget|winget
)
echo
"
$PMTYPE
install -s
$*
"
;;
homebrew
)
# FIXME: sudo and quote
echo
"brew install
$*
"
;;
*
)
fatal
"Have no suitable appropriate install command for
$PMTYPE
"
;;
esac
}
epm_print_install_names_command
()
{
# check for pkg_files to support print out command without pkg names in args
#[ -z "$1" ] && [ -n "$pkg_files" ] && return
[
-z
"
$1
"
]
&&
return
case
$PMTYPE
in
apt-rpm
)
echo
"apt-get -y --force-yes -o APT::Install::VirtualVersion=true -o APT::Install::Virtual=true
$APTOPTIONS
install
$*
"
return
;;
apt-dpkg
)
# this command not for complex use. ACCEPT_EULA=y DEBIAN_FRONTEND=noninteractive
echo
"apt-get -y --force-yes -o APT::Install::VirtualVersion=true -o APT::Install::Virtual=true
$APTOPTIONS
install
$*
"
return
;;
aptitude-dpkg
)
echo
"aptitude -y install
$*
"
return
;;
yum-rpm
)
echo
"yum -y
$YUMOPTIONS
install
$*
"
return
;;
dnf-rpm
)
echo
"dnf -y
$YUMOPTIONS
--allowerasing install
$*
"
return
;;
urpm-rpm
)
echo
"urpmi --auto
$URPMOPTIONS
$*
"
return
;;
zypper-rpm
)
echo
"zypper --non-interactive
$ZYPPEROPTIONS
install
$*
"
return
;;
packagekit
)
echo
"pkcon --noninteractive
$*
"
return
;;
pacman
)
echo
"pacman -S --noconfirm
$*
"
return
;;
choco
)
echo
"choco install
$*
"
return
;;
nix
)
echo
"nix-env --install
$*
"
return
;;
eopkg
)
echo
"eopkg install
$*
"
return
;;
termux-pkg
)
echo
"pkg install
$*
"
return
;;
appget|winget
)
echo
"
$PMTYPE
install
$*
"
return
;;
*
)
fatal
"Have no suitable appropriate install command for
$PMTYPE
"
;;
esac
}
# File bin/epm-kernel_update:
...
...
@@ -7265,6 +7270,10 @@ get_fix_release_pkg()
echo
"apt-conf-
$TO
"
# apt-conf-sisyphus and apt-conf-branch conflicts
epm installed apt-conf-branch
&&
echo
"apt-conf-branch-"
#for i in apt apt-rsync libapt libpackagekit-glib librpm7 packagekit rpm synaptic realmd libldap2 ; do
# epm installed $i && echo "$i"
#done
else
epm installed apt-conf-branch
&&
echo
"apt-conf-branch"
&&
epm installed apt-conf-sisyphus
&&
echo
"apt-conf-sisyphus-"
fi
...
...
@@ -8320,6 +8329,7 @@ __epm_have_repack_rule()
# skip repacking on non ALT systems
[
"
$BASEDISTRNAME
"
=
"alt"
]
||
return
1
# skip for packages built with repack
local
packager
=
"
$(
epm print field Packager
for
"
$1
"
2>/dev/null
)
"
[
"
$packager
"
=
"EPM <support@etersoft.ru>"
]
&&
return
1
[
"
$packager
"
=
"EPM <support@eepm.ru>"
]
&&
return
1
...
...
packed/serv.sh
View file @
fc572387
#!/bin/sh
#!/bin/
ba
sh
#
# Copyright (C) 2012-2013, 2016, 2020, 2021 Etersoft
# Copyright (C) 2012-2013, 2016, 2020, 2021 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-2013, 2016, 2020, 2021
, 2023
Etersoft
# Copyright (C) 2012-2013, 2016, 2020, 2021
, 2023
Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
...
...
@@ -17,11 +17,34 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
PROGDIR
=
$(
dirname
$0
)
[
"
$PROGDIR
"
=
"."
]
&&
PROGDIR
=
$(
pwd
)
PROGDIR
=
$(
dirname
"
$0
"
)
PROGNAME
=
$(
basename
"
$0
"
)
[
-n
"
$EPMCURDIR
"
]
||
export
EPMCURDIR
=
"
$(
pwd
)
"
CMDSHELL
=
"/bin/bash"
# TODO: pwd for ./epm and which for epm
[
"
$PROGDIR
"
=
"."
]
&&
PROGDIR
=
"
$EPMCURDIR
"
if
[
"
$0
"
=
"/dev/stdin"
]
||
[
"
$0
"
=
"sh"
]
;
then
PROGDIR
=
""
PROGNAME
=
""
fi
# will replaced with /usr/share/eepm during install
SHAREDIR
=
$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.53.1"
# package, single (file), pipe, git
EPMMODE
=
"package"
[
"
$SHAREDIR
"
=
"
$PROGDIR
"
]
&&
EPMMODE
=
"single"
[
"
$EPMVERSION
"
=
"@""VERSION""@"
]
&&
EPMMODE
=
"git"
[
"
$PROGNAME
"
=
""
]
&&
EPMMODE
=
"pipe"
if
[
"
$EPMMODE
"
=
"git"
]
;
then
EPMVERSION
=
$(
head
$PROGDIR
/../eepm.spec |
grep
"^Version: "
|
sed
-e
's|Version: ||'
)
fi
# will replaced to /usr/share/eepm during install
SHAREDIR
=
$(
dirname
$0
)
load_helper
()
{
...
...
@@ -2595,9 +2618,9 @@ print_version()
local
on_text
=
"(host system)"
local
virt
=
"
$(
$DISTRVENDOR
-i
)
"
[
"
$virt
"
=
"(unknown)"
]
||
[
"
$virt
"
=
"(host system)"
]
||
on_text
=
"(under
$virt
)"
echo
"Service manager version
3.53.0
https://wiki.etersoft.ru/Epm"
echo
"Service manager version
$EPMVERSION
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
$on_text
with
$SERVICETYPE
"
echo
"Copyright (c) Etersoft 2012-202
1
"
echo
"Copyright (c) Etersoft 2012-202
3
"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
}
...
...
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