mlocate: Index home/ in addition to usr/

This commit is contained in:
Fredrik Fornwall 2016-02-29 12:33:44 -05:00
parent 0ad3a6da2e
commit 08a9993c66
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://fedorahosted.org/mlocate/
TERMUX_PKG_DESCRIPTION="Tool to find files anywhere in the filesystem based on their name"
TERMUX_PKG_VERSION=0.26
TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_SRCURL=https://fedorahosted.org/releases/m/l/mlocate/mlocate-${TERMUX_PKG_VERSION}.tar.xz
CPPFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX"

View File

@ -6,7 +6,7 @@ diff -u -r ../mlocate-0.26/src/conf.c ./src/conf.c
if (conf_scan_root == NULL)
{
- static char root[] = "/";
+ static char root[] = "@TERMUX_PREFIX@";
+ static char root[] = "/data/data/com.termux/files/";
conf_scan_root = root;
}