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
4cdbf78f
Commit
4cdbf78f
authored
Apr 05, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.64.23
parent
1a756416
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
13 deletions
+39
-13
epm.sh
packed/epm.sh
+38
-12
serv.sh
packed/serv.sh
+1
-1
No files found.
packed/epm.sh
View file @
4cdbf78f
...
@@ -34,7 +34,7 @@ SHAREDIR="$PROGDIR"
...
@@ -34,7 +34,7 @@ SHAREDIR="$PROGDIR"
# will replaced with /etc/eepm during install
# will replaced with /etc/eepm during install
CONFIGDIR
=
"
$PROGDIR
/../etc"
CONFIGDIR
=
"
$PROGDIR
/../etc"
export
EPMVERSION
=
"3.64.2
1
"
export
EPMVERSION
=
"3.64.2
3
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
EPMMODE
=
"package"
...
@@ -1306,6 +1306,7 @@ epm repo add - add branch repo. Use follow params:
...
@@ -1306,6 +1306,7 @@ epm repo add - add branch repo. Use follow params:
deferred.org - for Etersoft Sisyphus Deferred repo (at mirror.eterfund.org)
deferred.org - for Etersoft Sisyphus Deferred repo (at mirror.eterfund.org)
etersoft - for LINUX@Etersoft repo
etersoft - for LINUX@Etersoft repo
korinf - for Korinf repo
korinf - for Korinf repo
ximper - for Ximper Linux repo
<task number> - add task repo
<task number> - add task repo
archive 2018/02/09 - add archive of the repo from that date
archive 2018/02/09 - add archive of the repo from that date
/dir/to/repo [component] - add repo dir generated with epm repo index --init
/dir/to/repo [component] - add repo dir generated with epm repo index --init
...
@@ -1430,6 +1431,11 @@ __epm_addrepo_altlinux()
...
@@ -1430,6 +1431,11 @@ __epm_addrepo_altlinux()
epm repo add
"rpm
$http
://download.etersoft.ru/pub Korinf/
$DISTRARCH
/
$DISTRNAME
/
$DISTRVERSION
main"
epm repo add
"rpm
$http
://download.etersoft.ru/pub Korinf/
$DISTRARCH
/
$DISTRNAME
/
$DISTRVERSION
main"
return
0
return
0
;;
;;
ximper|ximperlinux
)
[
"
$DISTRVERSION
"
=
"Sisyphus"
]
||
fatal
"Ximper Linux repo is applicable to Sisyphus only"
epm
install
--scripts
"https://download.etersoft.ru/pub/Etersoft/XimperLinux/Current/Additives/
$DISTRARCH
/RPMS.addon/ximper-repos-[0-9]*.
$DISTRARCH
.rpm"
return
0
;;
deferred
)
deferred
)
[
"
$DISTRVERSION
"
=
"Sisyphus"
]
||
fatal
"Etersoft Sisyphus Deferred supported only for ALT Sisyphus based systems."
[
"
$DISTRVERSION
"
=
"Sisyphus"
]
||
fatal
"Etersoft Sisyphus Deferred supported only for ALT Sisyphus based systems."
__epm_addrepo_add_alt_repo
"
$branch
"
"https://download.etersoft.ru/pub Etersoft/Sisyphus/Deferred"
"classic"
__epm_addrepo_add_alt_repo
"
$branch
"
"https://download.etersoft.ru/pub Etersoft/Sisyphus/Deferred"
"classic"
...
@@ -1486,7 +1492,9 @@ __epm_addrepo_altlinux()
...
@@ -1486,7 +1492,9 @@ __epm_addrepo_altlinux()
return
return
fi
fi
fatal
"Can't recognize how to add
$repo
, please report it"
# TODO: rewrite this fallback
assure_exists apt-repo
sudocmd apt-repo
$dryrun
add
"
$repo
"
}
}
...
@@ -6606,7 +6614,7 @@ __epm_pack()
...
@@ -6606,7 +6614,7 @@ __epm_pack()
__epm_pack_run_handler
"
$@
"
||
fatal
'Can'
\'
't find pack script for packname $packname'
__epm_pack_run_handler
"
$@
"
||
fatal
'Can'
\'
't find pack script for packname $packname'
if
[
-n
"
$download_only
"
]
;
then
if
[
-n
"
$download_only
"
]
;
then
mv
$returntarname
$EPMCURDIR
mv
$returntarname
"
$EPMCURDIR
"
return
return
fi
fi
...
@@ -6646,11 +6654,11 @@ __epm_pack()
...
@@ -6646,11 +6654,11 @@ __epm_pack()
fi
fi
# we need put result in the cur dir
# we need put result in the cur dir
mv
-v
$pkgnames
$EPMCURDIR
||
fatal
mv
-v
$pkgnames
"
$EPMCURDIR
"
||
fatal
local
i
local
i
for
i
in
"
$returntarname
"
;
do
for
i
in
"
$returntarname
"
;
do
[
-r
"
$i
.eepm.yaml"
]
&&
mv
-v
"
$i
.eepm.yaml"
$EPMCURDIR
[
-r
"
$i
.eepm.yaml"
]
&&
mv
-v
"
$i
.eepm.yaml"
"
$EPMCURDIR
"
done
done
return
0
return
0
...
@@ -10896,7 +10904,7 @@ __epm_repack_to_rpm()
...
@@ -10896,7 +10904,7 @@ __epm_repack_to_rpm()
else
else
warning
'Can'
\'
't find converted rpm for source binary package $pkg (got $repacked_rpm)'
warning
'Can'
\'
't find converted rpm for source binary package $pkg (got $repacked_rpm)'
fi
fi
cd
$EPMCURDIR
>
/dev/null
cd
"
$EPMCURDIR
"
>
/dev/null
true
true
}
}
...
@@ -16544,6 +16552,7 @@ is_strange_url()
...
@@ -16544,6 +16552,7 @@ is_strange_url()
{
{
local
URL
=
"
$1
"
local
URL
=
"
$1
"
is_url
"
$URL
"
||
return
is_url
"
$URL
"
||
return
#echo "$URL" | grep -q -E "\.(deb|rpm|zip)\?" && return 1
echo
"
$URL
"
|
grep
-q
"[?&]"
echo
"
$URL
"
|
grep
-q
"[?&]"
}
}
...
@@ -17509,7 +17518,7 @@ url_get_header()
...
@@ -17509,7 +17518,7 @@ url_get_header()
url_get_headers
"
$URL
"
|
grep
-i
"^ *
$HEADER
: "
|
sed
-e
"s|^ *
$HEADER
: ||i"
url_get_headers
"
$URL
"
|
grep
-i
"^ *
$HEADER
: "
|
sed
-e
"s|^ *
$HEADER
: ||i"
}
}
url_get_real_url
()
url_get_r
aw_r
eal_url
()
{
{
local
URL
=
"
$1
"
local
URL
=
"
$1
"
...
@@ -17524,15 +17533,28 @@ url_get_real_url()
...
@@ -17524,15 +17533,28 @@ url_get_real_url()
if
is_abs_path
"
$loc
"
;
then
if
is_abs_path
"
$loc
"
;
then
loc
=
"
$(
concatenate_url_and_filename
"
$(
get_host_only
"
$URL
"
)
"
"
$loc
"
)
"
#"
loc
=
"
$(
concatenate_url_and_filename
"
$(
get_host_only
"
$URL
"
)
"
"
$loc
"
)
"
#"
fi
fi
if
!
is_strange_url
"
$loc
"
;
then
echo
"
$loc
"
echo
"
$loc
"
return
return
fi
done
done
echo
"
$URL
"
echo
"
$URL
"
}
}
url_get_real_url
()
{
local
URL
=
"
$1
"
local
loc
loc
=
"
$(
url_get_raw_real_url
"
$URL
"
)
"
# we need stay with original url due redirect tags
if
!
is_strange_url
"
$loc
"
;
then
echo
"
$loc
"
return
fi
echo
"
$URL
"
}
url_get_filename
()
url_get_filename
()
{
{
local
URL
=
"
$1
"
local
URL
=
"
$1
"
...
@@ -17554,7 +17576,11 @@ url_get_filename()
...
@@ -17554,7 +17576,11 @@ url_get_filename()
return
return
fi
fi
basename
"
$(
url_get_real_url
"
$URL
"
)
"
local
loc
=
"
$(
url_get_raw_real_url
"
$URL
"
)
"
if
is_strange_url
"
$loc
"
;
then
loc
=
"
$(
echo
"
$loc
"
|
sed
-e
"s|
\?
.*||"
)
"
fi
basename
"
$loc
"
}
}
fi
fi
...
...
packed/serv.sh
View file @
4cdbf78f
...
@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
...
@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.64.2
1
"
EPMVERSION
=
"3.64.2
3
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
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