| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/polish/napi/files/ |
Upload File : |
--- libs/libnapi_fs.sh.orig 2022-01-17 05:41:41 UTC
+++ libs/libnapi_fs.sh
@@ -54,7 +54,7 @@ _fs_configureStat_GV() {
# verify stat tool
___g_fsWrappers[$___g_fsStat]="stat -c%s "
- if wrappers_isSystemDarwin; then
+ if wrappers_isSystemDarwin || wrappers_isSystemFreeBSD; then
# stat may be installed through macports, check if
# there's a need to reconfigure it to BSD flavour
${___g_fsWrappers[$___g_fsStat]} "$0" >/dev/null 2>&1 ||
@@ -72,6 +72,8 @@ _fs_configureBase64_GV() {
# verify base64
wrappers_isSystemDarwin &&
___g_fsWrappers[$___g_fsBase64]="base64 -D"
+ wrappers_isSystemFreeBSD &&
+ ___g_fsWrappers[$___g_fsBase64]="base64 -d"
}
#
@@ -84,6 +86,8 @@ _fs_configureMd5_GV() {
___g_fsWrappers[$___g_fsMd5]="md5sum"
wrappers_isSystemDarwin &&
___g_fsWrappers[$___g_fsMd5]="md5"
+ wrappers_isSystemFreeBSD &&
+ ___g_fsWrappers[$___g_fsMd5]="md5"
}
#
@@ -105,7 +109,7 @@ _fs_configure7z_GV() {
local k=''
# use 7z or 7za only, 7zr doesn't support passwords
- declare -a t7zs=( '7za' '7z' )
+ declare -a t7zs=( '7za' '7z' '7zz' )
for k in "${t7zs[@]}"; do
tools_isDetected "$k" &&