new package: rdiff-backup
Requested in https://github.com/termux/termux-packages/issues/4091.
This commit is contained in:
parent
9008082d95
commit
37d80cc2ce
17
packages/rdiff-backup/build.sh
Normal file
17
packages/rdiff-backup/build.sh
Normal file
@ -0,0 +1,17 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://www.nongnu.org/rdiff-backup/
|
||||
TERMUX_PKG_DESCRIPTION="A utility for local/remote mirroring and incremental backups"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_VERSION=1.2.8
|
||||
TERMUX_PKG_SRCURL=https://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=0d91a85b40949116fa8aaf15da165c34a2d15449b3cbe01c8026391310ac95db
|
||||
TERMUX_PKG_DEPENDS="librsync, python2"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_make_install() {
|
||||
local _PYTHON_VERSION=2.7
|
||||
export PYTHONPATH=$TERMUX_PREFIX/lib/python${_PYTHON_VERSION}/site-packages
|
||||
export CPPFLAGS+=" -I${TERMUX_PREFIX}/include/python${_PYTHON_VERSION}"
|
||||
export LDFLAGS+=" -lpython${_PYTHON_VERSION}"
|
||||
export LDSHARED="$CC -shared"
|
||||
python${_PYTHON_VERSION} setup.py install --prefix=$TERMUX_PREFIX --force
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
Patch by Roman Tereshonkov and Kari Hautio for rdiff-backup <= 1.2.8 to avoid a build failure with
|
||||
librsync >= 1.0.0 (which is a security bugfix release). The discussion and solution finding can be
|
||||
found at https://bugs.launchpad.net/duplicity/+bug/1416344 (for duplicity).
|
||||
|
||||
--- rdiff-backup-1.2.8/_librsyncmodule.c 2009-03-16 15:36:21.000000000 +0100
|
||||
+++ rdiff-backup-1.2.8/_librsyncmodule.c.librsync-1.0.0 2015-03-02 00:54:24.000000000 +0100
|
||||
@@ -59,8 +59,13 @@
|
||||
if (sm == NULL) return NULL;
|
||||
sm->x_attr = NULL;
|
||||
|
||||
+#ifdef RS_DEFAULT_STRONG_LEN
|
||||
sm->sig_job = rs_sig_begin((size_t)blocklen,
|
||||
(size_t)RS_DEFAULT_STRONG_LEN);
|
||||
+#else
|
||||
+ sm->sig_job = rs_sig_begin((size_t)blocklen,
|
||||
+ (size_t)8, RS_MD4_SIG_MAGIC);
|
||||
+#endif
|
||||
return (PyObject*)sm;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user