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
7e396bf4
Commit
7e396bf4
authored
Jul 10, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.62.11
parent
9816d5e8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
8 deletions
+37
-8
epm.sh
packed/epm.sh
+26
-7
serv.sh
packed/serv.sh
+11
-1
No files found.
packed/epm.sh
View file @
7e396bf4
...
@@ -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.62.1
0
"
export
EPMVERSION
=
"3.62.1
1
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
EPMMODE
=
"package"
...
@@ -3590,6 +3590,9 @@ __epm_filelist_name()
...
@@ -3590,6 +3590,9 @@ __epm_filelist_name()
pkgng
)
pkgng
)
CMD
=
"pkg info -l"
CMD
=
"pkg info -l"
;;
;;
redox-pkg
)
CMD
=
"pkg list"
;;
opkg
)
opkg
)
CMD
=
"opkg files"
CMD
=
"opkg files"
;;
;;
...
@@ -4160,6 +4163,9 @@ epm_install_names()
...
@@ -4160,6 +4163,9 @@ epm_install_names()
pkgng
)
pkgng
)
sudocmd pkg
install
$@
sudocmd pkg
install
$@
return
;;
return
;;
redox-pkg
)
sudocmd pkg
install
$@
return
;;
emerge
)
emerge
)
sudocmd emerge
-uD
$@
sudocmd emerge
-uD
$@
return
;;
return
;;
...
@@ -13526,6 +13532,9 @@ epm_upgrade()
...
@@ -13526,6 +13532,9 @@ epm_upgrade()
pkgng
)
pkgng
)
CMD
=
"pkg upgrade"
CMD
=
"pkg upgrade"
;;
;;
redox-pkg
)
CMD
=
"pkg upgrade"
;;
apk
)
apk
)
CMD
=
"apk upgrade"
CMD
=
"apk upgrade"
;;
;;
...
@@ -13894,6 +13903,9 @@ case $DISTRIB_ID in
...
@@ -13894,6 +13903,9 @@ case $DISTRIB_ID in
Gentoo
)
Gentoo
)
CMD
=
"emerge"
CMD
=
"emerge"
;;
;;
Redox
)
CMD
=
"redox-pkg"
;;
ArchLinux|ManjaroLinux
)
ArchLinux|ManjaroLinux
)
CMD
=
"pacman"
CMD
=
"pacman"
;;
;;
...
@@ -14331,6 +14343,10 @@ elif distro SuSe-release || distro SuSE-release ; then
...
@@ -14331,6 +14343,10 @@ elif distro SuSe-release || distro SuSE-release ; then
DISTRIB_ID
=
"SLES"
DISTRIB_ID
=
"SLES"
fi
fi
elif
distro redox-release
;
then
DISTRIB_ID
=
"Redox"
DISTRIB_RELEASE
=
$(
cat
$DISTROFILE
)
# fixme: can we detect by some file?
# fixme: can we detect by some file?
elif
[
"
$(
uname
)
"
=
"FreeBSD"
]
;
then
elif
[
"
$(
uname
)
"
=
"FreeBSD"
]
;
then
DISTRIB_ID
=
"FreeBSD"
DISTRIB_ID
=
"FreeBSD"
...
@@ -14398,6 +14414,9 @@ case "$DIST_OS" in
...
@@ -14398,6 +14414,9 @@ case "$DIST_OS" in
'freebsd'
|
'openbsd'
|
'netbsd'
)
'freebsd'
|
'openbsd'
|
'netbsd'
)
DIST_OS
=
"freebsd"
DIST_OS
=
"freebsd"
;;
;;
'Redox'
)
DIST_OS
=
"redox"
;;
esac
esac
echo
"
$DIST_OS
"
echo
"
$DIST_OS
"
}
}
...
@@ -15204,7 +15223,7 @@ CURLMAXTIME=''
...
@@ -15204,7 +15223,7 @@ CURLMAXTIME=''
WGETREADTIMEOUT
=
''
WGETREADTIMEOUT
=
''
WGETRETRYCONNREFUSED
=
''
WGETRETRYCONNREFUSED
=
''
CURLRETRYCONNREFUSED
=
''
CURLRETRYCONNREFUSED
=
''
WGETTRIES
=
''
WGETTRIES
=
'
--tries 1
'
CURLRETRY
=
''
CURLRETRY
=
''
WGETLOADCOOKIES
=
''
WGETLOADCOOKIES
=
''
CURLCOOKIE
=
''
CURLCOOKIE
=
''
...
@@ -15449,7 +15468,7 @@ done
...
@@ -15449,7 +15468,7 @@ done
# defaults
# defaults
# https://github.com/ipfs/kubo/issues/5541
# https://github.com/ipfs/kubo/issues/5541
ipfs_diag_timeout
=
'--timeout
60s
'
ipfs_diag_timeout
=
'--timeout
20s --tries 1
'
ipfs_api_local
=
"/ip4/127.0.0.1/tcp/5001"
ipfs_api_local
=
"/ip4/127.0.0.1/tcp/5001"
[
-n
"
$EGET_IPFS_API
"
]
&&
ipfs_api_local
=
"
$EGET_IPFS_API
"
[
-n
"
$EGET_IPFS_API
"
]
&&
ipfs_api_local
=
"
$EGET_IPFS_API
"
...
@@ -15457,7 +15476,7 @@ ipfs_api_local="/ip4/127.0.0.1/tcp/5001"
...
@@ -15457,7 +15476,7 @@ ipfs_api_local="/ip4/127.0.0.1/tcp/5001"
ipfs_api_brave
=
"/ip4/127.0.0.1/tcp/45005"
ipfs_api_brave
=
"/ip4/127.0.0.1/tcp/45005"
# Public IPFS http gateways
# Public IPFS http gateways
ipfs_gateways
=
"https://
cloudflare-ipfs.com/ipfs https://gateway.pinata.cloud/ipfs https://dweb.link/ipfs https://dhash.ru
/ipfs"
ipfs_gateways
=
"https://
dhash.ru/ipfs https://ipfs.io/ipfs https://gateway.pinata.cloud/ipfs https://dweb.link
/ipfs"
# Test data: https://etersoft.ru/templates/etersoft/images/logo.png
# Test data: https://etersoft.ru/templates/etersoft/images/logo.png
ipfs_checkQm
=
"QmYwf2GAMvHxfFiUFL2Mr6KUG6QrDiupqGc8ms785ktaYw"
ipfs_checkQm
=
"QmYwf2GAMvHxfFiUFL2Mr6KUG6QrDiupqGc8ms785ktaYw"
...
@@ -15942,7 +15961,7 @@ url_get_response()
...
@@ -15942,7 +15961,7 @@ url_get_response()
{
{
local
URL
=
"
$1
"
local
URL
=
"
$1
"
local
answer
local
answer
answer
=
"
$(
quiet
=
1 __wget
--spider
-S
"
$URL
"
2>&1
)
"
answer
=
"
$(
quiet
=
1 __wget
--
timeout
20
--tries
1
--
spider
-S
"
$URL
"
2>&1
)
"
# HTTP/1.1 405 Method Not Allowed
# HTTP/1.1 405 Method Not Allowed
# HTTP/1.1 404 Not Found
# HTTP/1.1 404 Not Found
if
echo
"
$answer
"
|
grep
-q
"^ *HTTP/[12.]* 40[45]"
;
then
if
echo
"
$answer
"
|
grep
-q
"^ *HTTP/[12.]* 40[45]"
;
then
...
@@ -15989,11 +16008,11 @@ url_get_response()
...
@@ -15989,11 +16008,11 @@ url_get_response()
{
{
local
URL
=
"
$1
"
local
URL
=
"
$1
"
local
answer
local
answer
answer
=
"
$(
quiet
=
1 __curl
-LI
"
$URL
"
2>&1
)
"
answer
=
"
$(
quiet
=
1 __curl
-
-max-time
20
--retry
0
-
LI
"
$URL
"
2>&1
)
"
# HTTP/1.1 405 Method Not Allowed
# HTTP/1.1 405 Method Not Allowed
# HTTP/1.1 404 Not Found
# HTTP/1.1 404 Not Found
if
echo
"
$answer
"
|
grep
-q
"^ *HTTP/[12.]* 40[45]"
;
then
if
echo
"
$answer
"
|
grep
-q
"^ *HTTP/[12.]* 40[45]"
;
then
(
quiet
=
1 __curl
-L
-i
-r0-0
"
$URL
"
2>&1
)
(
quiet
=
1 __curl
-
-max-time
20
--retry
0
-
L
-i
-r0-0
"
$URL
"
2>&1
)
return
return
fi
fi
echo
"
$answer
"
echo
"
$answer
"
...
...
packed/serv.sh
View file @
7e396bf4
...
@@ -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.62.1
0
"
EPMVERSION
=
"3.62.1
1
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
EPMMODE
=
"package"
...
@@ -1942,6 +1942,9 @@ case $DISTRIB_ID in
...
@@ -1942,6 +1942,9 @@ case $DISTRIB_ID in
Gentoo
)
Gentoo
)
CMD
=
"emerge"
CMD
=
"emerge"
;;
;;
Redox
)
CMD
=
"redox-pkg"
;;
ArchLinux|ManjaroLinux
)
ArchLinux|ManjaroLinux
)
CMD
=
"pacman"
CMD
=
"pacman"
;;
;;
...
@@ -2379,6 +2382,10 @@ elif distro SuSe-release || distro SuSE-release ; then
...
@@ -2379,6 +2382,10 @@ elif distro SuSe-release || distro SuSE-release ; then
DISTRIB_ID
=
"SLES"
DISTRIB_ID
=
"SLES"
fi
fi
elif
distro redox-release
;
then
DISTRIB_ID
=
"Redox"
DISTRIB_RELEASE
=
$(
cat
$DISTROFILE
)
# fixme: can we detect by some file?
# fixme: can we detect by some file?
elif
[
"
$(
uname
)
"
=
"FreeBSD"
]
;
then
elif
[
"
$(
uname
)
"
=
"FreeBSD"
]
;
then
DISTRIB_ID
=
"FreeBSD"
DISTRIB_ID
=
"FreeBSD"
...
@@ -2446,6 +2453,9 @@ case "$DIST_OS" in
...
@@ -2446,6 +2453,9 @@ case "$DIST_OS" in
'freebsd'
|
'openbsd'
|
'netbsd'
)
'freebsd'
|
'openbsd'
|
'netbsd'
)
DIST_OS
=
"freebsd"
DIST_OS
=
"freebsd"
;;
;;
'Redox'
)
DIST_OS
=
"redox"
;;
esac
esac
echo
"
$DIST_OS
"
echo
"
$DIST_OS
"
}
}
...
...
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