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
f79d2ad3
Commit
f79d2ad3
authored
Mar 30, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.64.20
parent
0cb0c496
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
17 deletions
+34
-17
epm.sh
packed/epm.sh
+30
-13
serv.sh
packed/serv.sh
+4
-4
No files found.
packed/epm.sh
View file @
f79d2ad3
...
@@ -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.
19
"
export
EPMVERSION
=
"3.64.
20
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
EPMMODE
=
"package"
...
@@ -503,10 +503,10 @@ set_sudo()
...
@@ -503,10 +503,10 @@ set_sudo()
return
"
$SUDO_TESTED
"
return
"
$SUDO_TESTED
"
fi
fi
# if input is a console
# if input is a console
and stderr is a console
if
inputisatty
&&
isatty
&&
isatty
2
;
then
if
inputisatty
&&
isatty2
;
then
if
!
$SUDO_CMD
-n
true
;
then
if
!
$SUDO_CMD
-n
true
;
then
info
"Please enter sudo user password to use sudo
in the current session."
info
"Please enter sudo user password to use sudo
for all privileged operations in the current session."
>
&2
if
!
$SUDO_CMD
-l
>
/dev/null
;
then
if
!
$SUDO_CMD
-l
>
/dev/null
;
then
[
"
$nofail
"
=
"nofail"
]
||
SUDO
=
"fatal 'For this operation run epm under root, or install and tune sudo (http://altlinux.org/sudo)'"
[
"
$nofail
"
=
"nofail"
]
||
SUDO
=
"fatal 'For this operation run epm under root, or install and tune sudo (http://altlinux.org/sudo)'"
SUDO_TESTED
=
"3"
SUDO_TESTED
=
"3"
...
@@ -14158,7 +14158,7 @@ epm_status_installable()
...
@@ -14158,7 +14158,7 @@ epm_status_installable()
if
[
-n
"
$verbose
"
]
;
then
if
[
-n
"
$verbose
"
]
;
then
docmd epm
install
--simulate
"
$pkg
"
docmd epm
install
--simulate
"
$pkg
"
else
else
epm
install
--simulate
"
$pkg
"
2>/dev/null
>
/dev/null
epm
install
--simulate
"
$pkg
"
>
/dev/null
fi
fi
}
}
...
@@ -16621,7 +16621,8 @@ AXELQ='' #-q
...
@@ -16621,7 +16621,8 @@ AXELQ='' #-q
# TODO: aria2c
# TODO: aria2c
# TODO:
# TODO:
WGETNAMEOPTIONS
=
'--content-disposition'
WGETNAMEOPTIONS
=
'--content-disposition'
CURLNAMEOPTIONS
=
'--remote-name --remote-time --remote-header-name'
CURLFILENAMEOPTIONS
=
'--remote-name --remote-time --remote-header-name'
CURLNAMEOPTIONS
=
'--remote-time --remote-header-name'
AXELNAMEOPTIONS
=
''
AXELNAMEOPTIONS
=
''
WGETRUSTSERVERNAMES
=
''
WGETRUSTSERVERNAMES
=
''
CURLTRUSTSERVERNAMES
=
''
CURLTRUSTSERVERNAMES
=
''
...
@@ -16675,6 +16676,7 @@ Options:
...
@@ -16675,6 +16676,7 @@ Options:
-q|--quiet - quiet mode
-q|--quiet - quiet mode
--verbose - verbose mode
--verbose - verbose mode
-k|--no-check-certificate - skip SSL certificate chain support
-k|--no-check-certificate - skip SSL certificate chain support
--no-content-disposition - skip Content-Disposition header
-H|--header - use <header> (X-Cache:1 for example)
-H|--header - use <header> (X-Cache:1 for example)
-U|-A|--user-agent - send browser like UserAgent
-U|-A|--user-agent - send browser like UserAgent
--compressed - request a compressed response and automatically decompress the content
--compressed - request a compressed response and automatically decompress the content
...
@@ -16710,6 +16712,8 @@ Supported URLs:
...
@@ -16710,6 +16712,8 @@ Supported URLs:
Supported backends (set like EGET_BACKEND=curl)
Supported backends (set like EGET_BACKEND=curl)
wget curl (todo: aria2c)
wget curl (todo: aria2c)
Also you can set EGET_OPTIONS variable with needed options
Examples:
Examples:
$
eget http://ftp.somesite.ru/package-*.x64.tar
$
eget http://ftp.somesite.ru/package-*.x64.tar
$
eget http://ftp.somesite.ru/package *.tar
$
eget http://ftp.somesite.ru/package *.tar
...
@@ -16729,7 +16733,9 @@ if [ -z "$1" ] ; then
...
@@ -16729,7 +16733,9 @@ if [ -z "$1" ] ; then
exit
1
exit
1
fi
fi
__eget_parse_options
()
{
local
skipopt
=
0
while
[
-n
"
$1
"
]
;
do
while
[
-n
"
$1
"
]
;
do
argument
=
"
$(
echo
$1
|
cut
-d
=
-f1
)
"
argument
=
"
$(
echo
$1
|
cut
-d
=
-f1
)
"
...
@@ -16750,6 +16756,12 @@ while [ -n "$1" ] ; do
...
@@ -16750,6 +16756,12 @@ while [ -n "$1" ] ; do
CURLNOSSLCHECK
=
'-k'
CURLNOSSLCHECK
=
'-k'
AXELNOSSLCHECK
=
'--insecure'
AXELNOSSLCHECK
=
'--insecure'
;;
;;
--no-content-disposition
)
WGETNAMEOPTIONS
=
''
CURLFILENAMEOPTIONS
=
''
CURLNAMEOPTIONS
=
''
AXELNAMEOPTIONS
=
''
;;
-H
|
--header
)
-H
|
--header
)
# TODO: error if header value contains spaces
# TODO: error if header value contains spaces
if
[
-z
"
$argvalue
"
]
;
then
if
[
-z
"
$argvalue
"
]
;
then
...
@@ -16766,7 +16778,7 @@ while [ -n "$1" ] ; do
...
@@ -16766,7 +16778,7 @@ while [ -n "$1" ] ; do
WGETOUTPUTDIR
=
"-P
$1
"
WGETOUTPUTDIR
=
"-P
$1
"
;;
;;
-U
|
-A
|
--user-agent
)
-U
|
-A
|
--user-agent
)
user_agent
=
"Mozilla/5.0 (X11; Linux
$arch
) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/1
03
.0.0.0 Safari/537.36"
user_agent
=
"Mozilla/5.0 (X11; Linux
$arch
) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/1
32
.0.0.0 Safari/537.36"
WGETUSERAGENT
=
"-U '
$user_agent
'"
WGETUSERAGENT
=
"-U '
$user_agent
'"
CURLUSERAGENT
=
"-A '
$user_agent
'"
CURLUSERAGENT
=
"-A '
$user_agent
'"
AXELUSERAGENT
=
"--user-agent='
$user_agent
'"
AXELUSERAGENT
=
"--user-agent='
$user_agent
'"
...
@@ -16881,12 +16893,17 @@ while [ -n "$1" ] ; do
...
@@ -16881,12 +16893,17 @@ while [ -n "$1" ] ; do
fatal
"Unknown option '
$1
', check eget --help."
fatal
"Unknown option '
$1
', check eget --help."
;;
;;
*
)
*
)
break
return
$skipopt
;;
;;
esac
esac
shift
shift
skipopt
=
$((
$skipopt
+
1
))
done
done
}
__eget_parse_options
"
$@
"
shift
$?
__eget_parse_options
$EGET_OPTIONS
#############################3
#############################3
# defaults
# defaults
...
@@ -17362,7 +17379,7 @@ elif [ "$EGET_BACKEND" = "wget" ] ; then
...
@@ -17362,7 +17379,7 @@ elif [ "$EGET_BACKEND" = "wget" ] ; then
__wget
()
__wget
()
{
{
if
[
-n
"
$WGETUSERAGENT
"
]
;
then
if
[
-n
"
$WGETUSERAGENT
"
]
;
then
docmd
$WGET
$FORCEIPV
$WGETQ
$WGETCOMPRESSED
$WGETHEADER
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
"
$
WGETUSERAGENT
"
"
$@
"
docmd
$WGET
$FORCEIPV
$WGETQ
$WGETCOMPRESSED
$WGETHEADER
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
"
$
(
eval echo
"
$WGETUSERAGENT
"
)
"
"
$@
"
else
else
docmd
$WGET
$FORCEIPV
$WGETQ
$WGETCOMPRESSED
$WGETHEADER
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
"
$@
"
docmd
$WGET
$FORCEIPV
$WGETQ
$WGETCOMPRESSED
$WGETHEADER
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
"
$@
"
fi
fi
...
@@ -17412,7 +17429,7 @@ elif [ "$EGET_BACKEND" = "curl" ] ; then
...
@@ -17412,7 +17429,7 @@ elif [ "$EGET_BACKEND" = "curl" ] ; then
__curl
()
__curl
()
{
{
if
[
-n
"
$CURLUSERAGENT
"
]
;
then
if
[
-n
"
$CURLUSERAGENT
"
]
;
then
docmd
$CURL
$FORCEIPV
--fail
-L
$CURLQ
$CURLCOMPRESSED
$CURLHEADER
$CURLOUTPUTDIR
$CURLNOSSLCHECK
$CURLCONTINUE
$CURLMAXTIME
$CURLRETRYCONNREFUSED
$CURLRETRY
$CURLCOOKIE
$CURLTRUSTSERVERNAMES
"
$
CURLUSERAGENT
"
"
$@
"
docmd
$CURL
$FORCEIPV
--fail
-L
$CURLQ
$CURLCOMPRESSED
$CURLHEADER
$CURLOUTPUTDIR
$CURLNOSSLCHECK
$CURLCONTINUE
$CURLMAXTIME
$CURLRETRYCONNREFUSED
$CURLRETRY
$CURLCOOKIE
$CURLTRUSTSERVERNAMES
"
$
(
eval echo
"
$CURLUSERAGENT
"
)
"
"
$@
"
else
else
docmd
$CURL
$FORCEIPV
--fail
-L
$CURLQ
$CURLCOMPRESSED
$CURLHEADER
$CURLNOSSLCHECK
$CURLCONTINUE
$CURLMAXTIME
$CURLRETRYCONNREFUSED
$CURLRETRY
$CURLCOOKIE
$CURLTRUSTSERVERNAMES
"
$@
"
docmd
$CURL
$FORCEIPV
--fail
-L
$CURLQ
$CURLCOMPRESSED
$CURLHEADER
$CURLNOSSLCHECK
$CURLCONTINUE
$CURLMAXTIME
$CURLRETRYCONNREFUSED
$CURLRETRY
$CURLCOOKIE
$CURLTRUSTSERVERNAMES
"
$@
"
fi
fi
...
@@ -17438,11 +17455,11 @@ url_sget()
...
@@ -17438,11 +17455,11 @@ url_sget()
local
FILENAME
=
$(
url_get_filename
"
$URL
"
)
local
FILENAME
=
$(
url_get_filename
"
$URL
"
)
if
[
-n
"
$FILENAME
"
]
;
then
if
[
-n
"
$FILENAME
"
]
;
then
download_with_mirroring __curl
"
$URL
"
--remote-time
--remote-header-name
--output
"
$FILENAME
"
download_with_mirroring __curl
"
$URL
"
$CURLNAMEOPTIONS
--output
"
$FILENAME
"
return
return
fi
fi
download_with_mirroring __curl
"
$URL
"
$CURLNAMEOPTIONS
download_with_mirroring __curl
"
$URL
"
$CURL
FILE
NAMEOPTIONS
}
}
url_get_response
()
url_get_response
()
...
...
packed/serv.sh
View file @
f79d2ad3
...
@@ -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.
19
"
EPMVERSION
=
"3.64.
20
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
EPMMODE
=
"package"
...
@@ -500,10 +500,10 @@ set_sudo()
...
@@ -500,10 +500,10 @@ set_sudo()
return
"
$SUDO_TESTED
"
return
"
$SUDO_TESTED
"
fi
fi
# if input is a console
# if input is a console
and stderr is a console
if
inputisatty
&&
isatty
&&
isatty
2
;
then
if
inputisatty
&&
isatty2
;
then
if
!
$SUDO_CMD
-n
true
;
then
if
!
$SUDO_CMD
-n
true
;
then
info
"Please enter sudo user password to use sudo
in the current session."
info
"Please enter sudo user password to use sudo
for all privileged operations in the current session."
>
&2
if
!
$SUDO_CMD
-l
>
/dev/null
;
then
if
!
$SUDO_CMD
-l
>
/dev/null
;
then
[
"
$nofail
"
=
"nofail"
]
||
SUDO
=
"fatal 'For this operation run epm under root, or install and tune sudo (http://altlinux.org/sudo)'"
[
"
$nofail
"
=
"nofail"
]
||
SUDO
=
"fatal 'For this operation run epm under root, or install and tune sudo (http://altlinux.org/sudo)'"
SUDO_TESTED
=
"3"
SUDO_TESTED
=
"3"
...
...
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