fix Termux hardcoded directories in apt, rsnapshot

This commit is contained in:
Leonid Pliushch 2020-10-30 22:32:52 +02:00
parent a8892f890a
commit 9b92a45bc6
3 changed files with 6 additions and 5 deletions

View File

@ -21,7 +21,7 @@ etc/apt/trusted.gpg
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DPERL_EXECUTABLE=$(command -v perl)
-DCMAKE_INSTALL_FULL_LOCALSTATEDIR=$TERMUX_PREFIX
-DCACHE_DIR=/data/data/com.termux/cache/apt
-DCACHE_DIR=${TERMUX_CACHE_DIR}/apt
-DCOMMON_ARCH=$TERMUX_ARCH
-DDPKG_DATADIR=$TERMUX_PREFIX/share/dpkg
-DUSE_NLS=OFF

View File

@ -22,8 +22,9 @@ termux_step_pre_configure() {
termux_step_post_make_install() {
mkdir -p $TERMUX_PREFIX/etc
sed -e "s|@TERMUX_BASE_DIR@|/data/data/com.termux/files|g" \
-e "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|g" \
-e "s|@TERMUX_HOME@|$TERMUX_ANDROID_HOME|g" \
sed -e "s%\@TERMUX_BASE_DIR\@%${TERMUX_BASE_DIR}%g" \
-e "s%\@TERMUX_CACHE_DIR\@%${TERMUX_CACHE_DIR}%g" \
-e "s%\@TERMUX_HOME\@%${TERMUX_ANDROID_HOME}%g" \
-e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" \
$TERMUX_PKG_BUILDER_DIR/rsnapshot.conf > $TERMUX_PREFIX/etc/rsnapshot.conf
}

View File

@ -46,7 +46,7 @@ cmd_rsync @TERMUX_PREFIX@/bin/rsync
# If you have an older version of "du", you may also want to check the
# "du_args" parameter below.
#
#cmd_du /data/data/com.termux/files/usr/bin/du
#cmd_du @TERMUX_PREFIX@/bin/du
# Specify the path to a script (and any optional arguments) to run right
# before rsnapshot syncs files