Commit 1c01ed02 authored by Simon Rupf's avatar Simon Rupf Committed by Leo
Browse files

testing/dar: fix creation of encrypted archives

https://sourceforge.net/p/dar/bugs/218/
parent e3b263db
# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=dar
pkgver=2.6.11
pkgrel=0
pkgrel=1
pkgdesc="Disk ARchive"
url="http://dar.linux.free.fr/"
arch="all"
......@@ -11,7 +11,8 @@ makedepends="zlib-dev bzip2-dev lzo-dev xz-dev libgcrypt-dev gpgme-dev
e2fsprogs-dev librsync-dev curl-dev gettext-dev automake
autoconf libtool libthreadar-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-libs $pkgname-dev"
source="https://downloads.sourceforge.net/dar/dar-$pkgver.tar.gz"
source="https://downloads.sourceforge.net/dar/dar-$pkgver.tar.gz
header_version.patch"
build() {
./configure \
......@@ -26,4 +27,5 @@ build() {
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="fcf6f1a1792a7da52859439fa7d5284905391081a8a0adab3d6fa5d4811b238f75b37003022ed5558661a7545230fad2768517fbfe727a0df415ade4c230e509 dar-2.6.11.tar.gz"
sha512sums="fcf6f1a1792a7da52859439fa7d5284905391081a8a0adab3d6fa5d4811b238f75b37003022ed5558661a7545230fad2768517fbfe727a0df415ade4c230e509 dar-2.6.11.tar.gz
9c5b8e337cf13640f7c6d260547dec3d0e787f1afafd197a9d49206aebd2e7b3dcbefdffefad3ab91644c69d73cf9ee04f2e6db944cd9fcce1b34903417aa086 header_version.patch"
--- ./src/libdar/header_version.cpp
+++ ./src/libdar/header_version.cpp
@@ -618,6 +618,6 @@ namespace libdar
flag &= ~FLAG_HAS_CRYPTED_KEY;
flag &= ~FLAG_HAS_REF_SLICING;
- flag &= ~FLAG_HAS_AN_EXTENDED_SIZE;
+ flag &= ~(FLAG_HAS_AN_EXTENDED_SIZE << 8);
flag &= ~FLAG_ARCHIVE_IS_SIGNED;
flag &= ~FLAG_HAS_KDF_PARAM;
return flag == 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment