Commit 7e396bf4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.62.11

parent 9816d5e8
...@@ -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.10" export EPMVERSION="3.62.11"
# 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"
......
...@@ -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.10" EPMVERSION="3.62.11"
# 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"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment