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
etersoft
eepm
Commits
aa9506af
Commit
aa9506af
authored
Mar 18, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.34.1
parent
5becad60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
10 deletions
+57
-10
epm.sh
packed/epm.sh
+56
-9
serv.sh
packed/serv.sh
+1
-1
No files found.
packed/epm.sh
View file @
aa9506af
...
...
@@ -31,7 +31,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.34.
0
"
EPMVERSION
=
"3.34.
1
"
load_helper
()
{
...
...
@@ -3777,15 +3777,34 @@ epm_print_install_names_command()
esac
}
apt_repo_prepare
()
{
assure_exists apt-repo
[
-n
"
$non_interactive
"
]
||
return
set_sudo
trap
"
$SUDO
rm /etc/apt/apt.conf.d/eepm-apt-noninteractive.conf 2>/dev/null"
EXIT
echo
'APT::Get::Assume-Yes "true";'
|
$SUDO
tee
/etc/apt/apt.conf.d/eepm-apt-noninteractive.conf
>
/dev/null
}
apt_repo_after
()
{
[
-n
"
$non_interactive
"
]
||
return
$SUDO
rm
/etc/apt/apt.conf.d/eepm-apt-noninteractive.conf 2>/dev/null
}
epm_install
()
{
if
[
"
$BASEDISTRNAME
"
=
"alt"
]
;
then
if
tasknumber
"
$pkg_names
"
>
/dev/null
;
then
assure_exists apt-repo
# TODO: add --auto support
local
res
# TODO: don't use apt-repo
apt_repo_prepare
sudocmd_foreach
"apt-repo test"
$(
tasknumber
$pkg_names
)
return
res
=
$?
apt_repo_after
return
$res
fi
fi
...
...
@@ -4319,6 +4338,22 @@ esac
}
# File bin/epm-moo:
epm_moo
()
{
local
figlet cowsay docmd
epm assure figlet
&&
figlet
=
"figlet"
epm assure cowsay cowsay-soft
&&
cowsay
=
"cowsay"
[
-n
"
$verbose
"
]
&&
docmd
=
"docmd"
[
-n
"
$figlet
"
]
&&
$docmd
$figlet
"EPM"
[
-n
"
$cowsay
"
]
&&
$docmd
$cowsay
"EPM from Etersoft"
[
-n
"
$figlet
"
]
&&
$docmd
$figlet
"Etersoft"
}
# File bin/epm-optimize:
__repack_rpm_base
()
...
...
@@ -7467,8 +7502,13 @@ EOF
__set_version_pkgname
()
{
local
alpkg
=
"
$1
"
VERSION
=
"
$(
echo
"
$alpkg
"
|
grep
-o
-P
"[-_.]([0-9])([0-9])*(
\.
[0-9])*"
|
head
-n1
|
sed
-e
's|^[-_.]||'
)
"
#"
VERSION
=
"
$(
echo
"
$alpkg
"
|
grep
-o
-P
'[-_.][0-9][0-9]*([.]*[0-9])*'
|
head
-n1
|
sed
-e
's|^[-_.]||'
)
"
#"
[
-n
"
$VERSION
"
]
&&
PKGNAME
=
"
$(
echo
"
$alpkg
"
|
sed
-e
"s|[-_.]
$VERSION
.*||"
)
"
# set version as all between name and extension
#local woext="$(echo "alpkg" | sed -e 's|\.tar.*||')"
#if [ "$woext" != "$alpkg" ] ; then
# VERSION="$(echo "$woext" " | sed -e "s|^$PKGNAME[-_.]||")"
#fi
}
...
...
@@ -7523,9 +7563,12 @@ __prepare_source_package()
newalpkg
=
$PKGNAME
-
$VERSION
.
$pkgtype
#[ -n "$PKGNAME" ] || PKGNAME=$(basename $alpkg .$pkgtype)
if
[
"
$pkgtype
"
=
"tar"
]
||
[
"
$pkgtype
"
=
"tar.gz"
]
||
[
"
$pkgtype
"
=
"tgz"
]
;
then
mv
$alpkg
$newalpkg
:
# just rename supported formats
if
[
"
$alpkg
"
!=
"
$newalpkg
"
]
;
then
mv
$alpkg
$newalpkg
fi
else
# converts directly unsupported formats
newalpkg
=
$PKGNAME
-
$VERSION
.tar
#newalpkg=$(basename $alpkg .$pkgtype).tar
assure_exists erc
||
epm ei erc
||
fatal
...
...
@@ -11414,13 +11457,13 @@ sget()
if
[
"
$2
"
=
"/dev/stdout"
]
||
[
"
$2
"
=
"-"
]
;
then
scat
"
$1
"
elif
[
-n
"
$2
"
]
;
then
docmd
__wget
-O
"
$2
"
"
$1
"
__wget
-O
"
$2
"
"
$1
"
else
# TODO: поддержка rsync для известных хостов?
# Не качать, если одинаковый размер и дата
# -nc
# TODO: overwrite always
docmd
__wget
$WGETNAMEOPTIONS
"
$1
"
__wget
$WGETNAMEOPTIONS
"
$1
"
fi
}
...
...
@@ -12560,6 +12603,10 @@ check_command()
repack
)
# HELPCMD: repack rpm to local compatibility
epm_cmd
=
repack
;;
moo
)
epm_cmd
=
moo
direct_args
=
1
;;
prescription|recipe
)
# HELPCMD: run prescription (a script to achieving the goal), run without args to get list
epm_cmd
=
prescription
direct_args
=
1
...
...
packed/serv.sh
View file @
aa9506af
...
...
@@ -2376,7 +2376,7 @@ 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.34.
0
https://wiki.etersoft.ru/Epm"
echo
"Service manager version 3.34.
1
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
$on_text
with
$SERVICETYPE
"
echo
"Copyright (c) Etersoft 2012-2021"
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