summaryrefslogtreecommitdiff
path: root/polish/napi/files/patch-libs_libnapi__fs.sh
diff options
context:
space:
mode:
authorDominik Lisiak <dominik.lisiak@bemsoft.pl>2021-11-01 00:44:19 +0900
committerYasuhiro Kimura <yasu@FreeBSD.org>2021-11-01 01:08:14 +0900
commit670f7113501b81f3ea7ae1aca7c44fa335048b20 (patch)
tree9e07fca6e65587b0d19c7c80a965ab53c24f32d5 /polish/napi/files/patch-libs_libnapi__fs.sh
parent2d15853d0620271ce3dd67dcc400e4901c8db009 (diff)
downloadfreebsd-ports-670f7113501b81f3ea7ae1aca7c44fa335048b20.zip
polish/napi: Add new port
"napi.sh" is a napiprojekt.pl client written in Bash. The purpose of the project was to create simple tool for systems with very limited resources (NAS QNAP drives, Synology, OpenWRT routers, Popcorn streamers, etc). It was inspired by "pynapi.py" script. "napi.sh" is distributed together with automatic subtitle format converter "subotage.sh" created specially for "napi.sh". "subotage.sh" is written in Bash and uses awk for text processing. PR: 245996
Diffstat (limited to 'polish/napi/files/patch-libs_libnapi__fs.sh')
-rw-r--r--polish/napi/files/patch-libs_libnapi__fs.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/polish/napi/files/patch-libs_libnapi__fs.sh b/polish/napi/files/patch-libs_libnapi__fs.sh
new file mode 100644
index 000000000000..755e942821a3
--- /dev/null
+++ b/polish/napi/files/patch-libs_libnapi__fs.sh
@@ -0,0 +1,29 @@
+--- libs/libnapi_fs.sh.orig 2020-04-24 07:22: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"
+ }
+
+ #
+@@ -83,6 +85,8 @@ _fs_configureMd5_GV() {
+ # verify md5 tool
+ ___g_fsWrappers[$___g_fsMd5]="md5sum"
+ wrappers_isSystemDarwin &&
++ ___g_fsWrappers[$___g_fsMd5]="md5"
++ wrappers_isSystemFreeBSD &&
+ ___g_fsWrappers[$___g_fsMd5]="md5"
+ }
+