encfs: add package

This commit is contained in:
Henrik Grimler 2018-10-14 09:32:37 +02:00 committed by Yaksh Bariya
parent 6a795873b4
commit bb8d71c0c4
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,18 @@
TERMUX_PKG_MAINTINER="Henrik Grimler @Grimler91"
TERMUX_PKG_HOMEPAGE=https://github.com/vgough/encfs
TERMUX_PKG_DESCRIPTION="EncFS provides an encrypted filesystem in user-space"
TERMUX_PKG_VERSION=1.9.5
TERMUX_PKG_SHA256=4709f05395ccbad6c0a5b40a4619d60aafe3473b1a79bafb3aa700b1f756fd63
TERMUX_PKG_DEPENDS="libfuse, openssl"
TERMUX_PKG_SRCURL=https://github.com/vgough/encfs/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DFUSE_INCLUDE_DIR=$TERMUX_PREFIX/include
-DFUSE_LIBRARIES=$TERMUX_PREFIX/lib/libfuse.so
-DRUN_HAVE_POSIX_REGEX=0
-DRUN_HAVE_STD_REGEX=0
-DRUN_HAVE_STEADY_CLOCK=0
"
termux_step_pre_configure () {
LDFLAGS="$LDFLAGS -llog"
}

View File

@ -0,0 +1,11 @@
--- ../encfs.cpp.orig 2018-10-14 09:22:18.445712600 +0200
+++ ./encfs/encfs.cpp 2018-10-14 09:22:24.729681665 +0200
@@ -620,7 +620,7 @@
tv[1].tv_sec = ts[1].tv_sec;
tv[1].tv_usec = ts[1].tv_nsec / 1000;
- int res = lutimes(cyName.c_str(), tv);
+ int res = utimes(cyName.c_str(), tv);
#endif
return (res == -1) ? -errno : ESUCCESS;
}