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
ac13806d
Commit
ac13806d
authored
Aug 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.60.1
parent
51485463
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
9 deletions
+34
-9
epm.sh
packed/epm.sh
+33
-8
serv.sh
packed/serv.sh
+1
-1
No files found.
packed/epm.sh
View file @
ac13806d
...
...
@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.60.
0
"
EPMVERSION
=
"3.60.
1
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
@@ -9355,7 +9355,7 @@ __apply_fix_code()
[
"
$PROGDIR
"
=
"/usr/bin"
]
&&
SCPATH
=
"
$PATH
"
||
SCPATH
=
"
$PROGDIR
:
$PATH
"
local
bashopt
=
''
[
-n
"
$debug
"
]
&&
bashopt
=
'-x'
(
unset
EPMCURDIR
;
export
PATH
=
$SCPATH
;
docmd
$CMDSHELL
$bashopt
$repackcode
"
$1
"
"
$2
"
"
$3
"
"
$4
"
)
||
fatal
"There is an error from
$repackcode
script"
(
unset
EPMCURDIR
;
export
PATH
=
$SCPATH
;
docmd
$CMDSHELL
$bashopt
$repackcode
"
$1
"
"
$2
"
"
$3
"
"
$4
"
"
$5
"
)
||
fatal
"There is an error from
$repackcode
script"
}
__create_rpmmacros
()
...
...
@@ -9372,6 +9372,24 @@ EOF
remove_on_exit
"
$HOME
/.rpmmacros"
}
__try_install_eepm_rpmbuild
()
{
RPMBUILD
=
/usr/bin/rpmbuild
[
-x
"
$RPMBUILD
"
]
&&
return
RPMBUILD
=
/usr/bin/eepm-rpmbuild
if
[
!
-x
$RPMBUILD
]
;
then
epm
install
eepm-rpm-build
fi
if
[
-x
$RPMBUILD
]
;
then
warning
"will use eepm-rpmbuild for rpm packing"
export
EPM_RPMBUILD
=
$RPMBUILD
return
fi
RPMBUILD
=
/usr/bin/rpmbuild
}
__epm_repack_to_rpm
()
{
...
...
@@ -9380,12 +9398,10 @@ __epm_repack_to_rpm()
# Note: install epm-repack for static (package based) dependencies
assure_exists alien
||
fatal
RPMBUILD
=
/usr/bin/eepm-rpmbuild
# will set RPMBUILD
__try_install_eepm_rpmbuild
if
[
-x
$RPMBUILD
]
;
then
warning
"will use eepm-rpmbuild for rpm packing"
export
EPM_RPMBUILD
=
$RPMBUILD
else
if
[
!
-x
$RPMBUILD
]
;
then
RPMBUILD
=
/usr/bin/rpmbuild
# TODO: check for all systems
case
$PKGFORMAT
in
...
...
@@ -9464,7 +9480,7 @@ __epm_repack_to_rpm()
cd
$buildroot
||
fatal
__fix_spec
$pkgname
$buildroot
$spec
__apply_fix_code
"generic"
$buildroot
$spec
$pkgname
$abspkg
__apply_fix_code
"generic"
$buildroot
$spec
$pkgname
$abspkg
$SUBGENERIC
__apply_fix_code
"generic-
$SUBGENERIC
"
$buildroot
$spec
$pkgname
$abspkg
__apply_fix_code
$pkgname
$buildroot
$spec
$pkgname
$abspkg
if
!
has_repack_script
$pkgname
;
then
...
...
@@ -16997,6 +17013,7 @@ pkg_urls=
pkg_options
=
quoted_args
=
direct_args
=
use_context
=
eget_backend
=
$EGET_BACKEND
epm_vardir
=
/var/lib/eepm
...
...
@@ -17082,9 +17099,11 @@ check_command()
case
$1
in
-i
|
install
|
add|i|it
)
# HELPCMD: install package(s) from remote repositories or from local file
epm_cmd
=
install
use_context
=
1
;;
-e
|
-P
|
rm
|
del|remove|delete|uninstall|erase|purge|e
)
# HELPCMD: remove (delete) package(s) from the database and the system
epm_cmd
=
remove
use_context
=
1
;;
-s
|
search|s|find|sr
)
# HELPCMD: search in remote package repositories
epm_cmd
=
search
...
...
@@ -17100,9 +17119,11 @@ check_command()
# HELPCMD: PART: Useful commands:
reinstall
)
# HELPCMD: reinstall package(s) from remote repositories or from local file
epm_cmd
=
reinstall
use_context
=
1
;;
Install
)
# HELPCMD: perform update package repo info and install package(s) via install command
epm_cmd
=
Install
use_context
=
1
;;
-q
|
q|query
)
# HELPCMD: check presence of package(s) and print this name (also --short is supported)
epm_cmd
=
query
...
...
@@ -17250,13 +17271,16 @@ check_command()
;;
upgrade|up|dist-upgrade
)
# HELPCMD: performs upgrades of package software distributions
epm_cmd
=
upgrade
use_context
=
1
;;
Upgrade
)
# HELPCMD: force update package base, then run upgrade
epm_cmd
=
Upgrade
direct_args
=
1
use_context
=
1
;;
downgrade
)
# HELPCMD: downgrade [all] packages to the repo state
epm_cmd
=
downgrade
use_context
=
1
;;
download|fetch|fc
)
# HELPCMD: download package(s) file to the current dir
epm_cmd
=
download
...
...
@@ -17264,6 +17288,7 @@ check_command()
# TODO: replace with install --simulate
simulate
)
# HELPCMD: simulate install with check requires
epm_cmd
=
simulate
use_context
=
1
;;
audit
)
# HELPCMD: audits installed packages against known vulnerabilities
epm_cmd
=
audit
...
...
packed/serv.sh
View file @
ac13806d
...
...
@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.60.
0
"
EPMVERSION
=
"3.60.
1
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
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