Files
FreeBSD-ports/polish/napi/files/patch-libs_libnapi__fs.sh
Max Brazhnikov 8528974c36 polish/napi: switch from p7zip to 7-zip
PR:		260866, 261264
Submitted by:	Dominik Lisiak (maintainer)
2022-01-17 19:45:40 +03:00

39 lines
1.2 KiB
Bash

--- 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" &&