2020-01-04 14:26:36 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.rsnapshot.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="A remote filesystem snapshot utility"
|
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-06-16 14:54:54 +02:00
|
|
|
TERMUX_PKG_VERSION=1.4.4
|
2020-01-04 14:26:36 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/rsnapshot/rsnapshot/archive/$TERMUX_PKG_VERSION.tar.gz
|
2021-06-16 14:54:54 +02:00
|
|
|
TERMUX_PKG_SHA256=77a52bb014e1e70ac8bc9265a63d79efe72fd38738c4b066229da6ebe5339cd9
|
2020-01-04 14:26:36 +01:00
|
|
|
TERMUX_PKG_DEPENDS="coreutils, openssh, perl, rsync"
|
2020-01-04 14:27:50 +01:00
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
2020-01-04 14:26:36 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--with-perl=$TERMUX_PREFIX/bin/perl
|
|
|
|
--with-rsync=$TERMUX_PREFIX/bin/rsync
|
|
|
|
--with-rm=$TERMUX_PREFIX/bin/rm
|
|
|
|
--with-ssh=$TERMUX_PREFIX/bin/ssh
|
|
|
|
--with-du=$TERMUX_PREFIX/bin/du
|
|
|
|
"
|
|
|
|
|
|
|
|
TERMUX_PKG_CONFFILES="etc/rsnapshot.conf"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
mkdir -p $TERMUX_PREFIX/etc
|
2020-10-30 21:32:52 +01:00
|
|
|
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" \
|
2020-01-04 14:26:36 +01:00
|
|
|
$TERMUX_PKG_BUILDER_DIR/rsnapshot.conf > $TERMUX_PREFIX/etc/rsnapshot.conf
|
|
|
|
}
|