Added new packages borgbackup and its dependency libacl (#4644)

* Added new packages borgbackup and its dependency libacl
This commit is contained in:
Rahul Amaram 2019-12-12 04:41:29 +05:30 committed by Leonid Pliushch
parent aac0b8eae3
commit ff55413b93
4 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,20 @@
TERMUX_PKG_HOMEPAGE=https://www.borgbackup.org/
TERMUX_PKG_DESCRIPTION="Deduplicating and compressing backup program"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_VERSION=1.1.10
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=efb41416d24ff1d13c7952c7f4eaf41ef6fc5e1000354217db55cd62c905e7de
TERMUX_PKG_DEPENDS="libacl,liblz4,zstd,openssl,python"
TERMUX_PKG_SRCURL=https://github.com/borgbackup/borg/releases/download/${TERMUX_PKG_VERSION}/borgbackup-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install () {
export PYTHONPATH=$TERMUX_PREFIX/lib/python3.8/site-packages
export CPPFLAGS+=" -I$TERMUX_PREFIX/include/python3.8"
export LDFLAGS+=" -lpython3.8"
export LDSHARED="$CC -shared"
export BORG_OPENSSL_PREFIX=$TERMUX_PREFIX
export BORG_LIBLZ4_PREFIX=$TERMUX_PREFIX
export BORG_LIBZSTD_PREFIX=$TERMUX_PREFIX
python3.8 setup.py install --prefix=$TERMUX_PREFIX --force
}

View File

@ -0,0 +1,20 @@
diff -uNr borgbackup-1.1.10/src/borg/repository.py borgbackup-1.1.10.mod/src/borg/repository.py
--- borgbackup-1.1.10/src/borg/repository.py 2019-05-16 05:58:15.000000000 +0300
+++ borgbackup-1.1.10.mod/src/borg/repository.py 2019-12-12 00:55:34.587690181 +0200
@@ -287,16 +287,6 @@
logger.warning("Old config file not securely erased on previous config update")
secure_erase(old_config_path)
- if os.path.isfile(config_path):
- try:
- os.link(config_path, old_config_path)
- except OSError as e:
- if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.ENOTSUP):
- logger.warning("Failed to securely erase old repository config file (hardlinks not supported>). "
- "Old repokey data, if any, might persist on physical storage.")
- else:
- raise
-
with SaveFile(config_path) as fd:
config.write(fd)

View File

@ -0,0 +1,12 @@
diff -uNr borgbackup-1.1.10/src/borg/xattr.py borgbackup-1.1.10.mod/src/borg/xattr.py
--- borgbackup-1.1.10/src/borg/xattr.py 2019-05-16 05:58:15.000000000 +0300
+++ borgbackup-1.1.10.mod/src/borg/xattr.py 2019-12-12 00:27:59.831938631 +0200
@@ -68,7 +68,7 @@
# tools used by find_library, like ldconfig, gcc/cc, objdump.
# so we can only try some "usual" names for the C library:
if sys.platform.startswith('linux'):
- libc_name = 'libc.so.6'
+ libc_name = 'libc.so'
elif sys.platform.startswith(('freebsd', 'netbsd')):
libc_name = 'libc.so'
elif sys.platform == 'darwin':

8
packages/libacl/build.sh Normal file
View File

@ -0,0 +1,8 @@
TERMUX_PKG_HOMEPAGE=http://savannah.nongnu.org/projects/acl
TERMUX_PKG_DESCRIPTION="Access control list shared library"
TERMUX_PKG_LICENSE="LGPL-2.1, GPL-2.0"
TERMUX_PKG_VERSION=2.2.53
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=06be9865c6f418d851ff4494e12406568353b891ffe1f596b34693c387af26c7
TERMUX_PKG_DEPENDS="attr"
TERMUX_PKG_SRCURL=https://download.savannah.gnu.org/releases/acl/acl-${TERMUX_PKG_VERSION}.tar.gz