2010-11-05 16:21:02 +00:00
|
|
|
#
|
2011-09-05 14:26:36 +00:00
|
|
|
# spec file for package dd_rescue
|
2010-11-05 16:21:02 +00:00
|
|
|
#
|
2018-04-18 18:10:36 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-11-05 16:21:02 +00:00
|
|
|
#
|
2010-11-05 16:21:08 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-02-04 08:27:12 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
Name: dd_rescue
|
2017-12-04 08:13:50 +00:00
|
|
|
Version: 1.99.8
|
2012-03-13 12:08:00 +00:00
|
|
|
Release: 0
|
2017-06-07 10:35:11 +00:00
|
|
|
Summary: Data copying in the presence of I/O Errors
|
2012-03-13 12:08:00 +00:00
|
|
|
License: GPL-2.0 or GPL-3.0
|
2011-09-05 14:26:36 +00:00
|
|
|
Group: System/Base
|
2013-02-04 08:27:12 +00:00
|
|
|
Url: http://www.garloff.de/kurt/linux/ddrescue/
|
2014-08-09 21:44:09 +00:00
|
|
|
Source0: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2
|
2015-05-22 16:58:33 +00:00
|
|
|
Source1: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2.asc
|
|
|
|
Source2: %{name}.keyring
|
2015-02-05 11:01:04 +00:00
|
|
|
Source99: %{name}.changes
|
2018-04-18 18:10:36 +00:00
|
|
|
Patch1: ddr_1998-alg-caseindep.diff
|
|
|
|
Patch2: ddr_1998-check-nofail-noxattr.diff
|
2013-08-08 12:28:11 +00:00
|
|
|
BuildRequires: autoconf
|
2013-08-20 06:42:02 +00:00
|
|
|
BuildRequires: libattr-devel
|
2017-11-11 07:46:32 +00:00
|
|
|
%if 0%{?is_opensuse}
|
2017-06-07 10:35:11 +00:00
|
|
|
BuildRequires: libfallocate-devel
|
2017-11-11 07:46:32 +00:00
|
|
|
%endif
|
2014-05-21 12:46:26 +00:00
|
|
|
BuildRequires: lzo-devel
|
2017-12-04 08:13:50 +00:00
|
|
|
%if 0%{?suse_version} >= 1200
|
2017-06-07 10:35:11 +00:00
|
|
|
BuildRequires: lzop
|
2017-12-04 08:13:50 +00:00
|
|
|
%endif
|
2017-06-07 10:35:11 +00:00
|
|
|
BuildRequires: pkgconfig
|
2014-08-09 21:44:09 +00:00
|
|
|
BuildRequires: python
|
2011-09-05 14:26:36 +00:00
|
|
|
Requires: bc
|
Accepting request 311003 from home:garloff:branches:Base:System
- Add three missing doc files.
- Update to dd_rescue-1.98:
* Fix AESNI detection (x86)
* Avoid test failures due to insufficient entropy
- Update to dd_rescue-1.98pre:
* crypt plugin: Encrypt and decrypt the data stream using various
AES variants. There are -CBC, -ECB, -CTR stream ciphers, and
128, 192, 256 bit variants, also with enhanced number of rounds,
and with twice the rounds. Keys can generated, saved, or derived
from password with salt. On x86, the hardware AES support is
used if featured by the CPU.
* Speed up PRNG generation.
* Fault injection framework for testing.
* Some minor improvements of the plugin interface and fixes all
over the place.
OBS-URL: https://build.opensuse.org/request/show/311003
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=28
2015-06-08 07:51:37 +00:00
|
|
|
Recommends: dd_rescue-crypt
|
2017-06-07 10:35:11 +00:00
|
|
|
Recommends: dd_rescue-lzo
|
2015-05-22 16:58:33 +00:00
|
|
|
Recommends: dd_rhelp
|
|
|
|
Recommends: libfallocate0
|
2012-03-13 12:08:00 +00:00
|
|
|
# ddrescue was last used in openSUSE 11.4 (version 1.14_0.0.6)
|
|
|
|
Provides: ddrescue = %{version}
|
|
|
|
Obsoletes: ddrescue < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-12-04 08:13:50 +00:00
|
|
|
#BuildRequires: pkgconfig(libcrypto)
|
2018-04-18 18:10:36 +00:00
|
|
|
BuildRequires: libopenssl-devel
|
2011-09-05 14:26:36 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
%description
|
|
|
|
dd_rescue helps when nothing else can: your disk has crashed and you
|
|
|
|
try to copy it over to another one. While standard Unix tools like cp,
|
2013-02-04 08:27:12 +00:00
|
|
|
cat, and dd will "abort" on every I/O error, dd_rescue does not.
|
|
|
|
|
|
|
|
dd_rescue has many other goodies; optimization by using large blocks
|
|
|
|
as long as no errors are in sight and falling back to small ones; reverse
|
|
|
|
direction copy; splice in-kernel zerocopy; O_DIRECT support; preallocation
|
2014-05-21 12:46:26 +00:00
|
|
|
with fallocate().
|
|
|
|
|
|
|
|
dd_rescue also provides data protection features by overwriting files
|
|
|
|
or disks with fast random numbers, optionally multiple times.
|
|
|
|
|
2017-06-07 10:35:11 +00:00
|
|
|
dd_rescue supports plugins; currently a hash, an lzo and a crypt plugin
|
Accepting request 311003 from home:garloff:branches:Base:System
- Add three missing doc files.
- Update to dd_rescue-1.98:
* Fix AESNI detection (x86)
* Avoid test failures due to insufficient entropy
- Update to dd_rescue-1.98pre:
* crypt plugin: Encrypt and decrypt the data stream using various
AES variants. There are -CBC, -ECB, -CTR stream ciphers, and
128, 192, 256 bit variants, also with enhanced number of rounds,
and with twice the rounds. Keys can generated, saved, or derived
from password with salt. On x86, the hardware AES support is
used if featured by the CPU.
* Speed up PRNG generation.
* Fault injection framework for testing.
* Some minor improvements of the plugin interface and fixes all
over the place.
OBS-URL: https://build.opensuse.org/request/show/311003
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=28
2015-06-08 07:51:37 +00:00
|
|
|
exist, supporting on the fly hash/HMAC calculation/validation, lzo
|
2017-06-07 10:35:11 +00:00
|
|
|
de/compression and de/encryption. The lzo plugin is packaged in the
|
Accepting request 311003 from home:garloff:branches:Base:System
- Add three missing doc files.
- Update to dd_rescue-1.98:
* Fix AESNI detection (x86)
* Avoid test failures due to insufficient entropy
- Update to dd_rescue-1.98pre:
* crypt plugin: Encrypt and decrypt the data stream using various
AES variants. There are -CBC, -ECB, -CTR stream ciphers, and
128, 192, 256 bit variants, also with enhanced number of rounds,
and with twice the rounds. Keys can generated, saved, or derived
from password with salt. On x86, the hardware AES support is
used if featured by the CPU.
* Speed up PRNG generation.
* Fault injection framework for testing.
* Some minor improvements of the plugin interface and fixes all
over the place.
OBS-URL: https://build.opensuse.org/request/show/311003
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=28
2015-06-08 07:51:37 +00:00
|
|
|
dd_rescue-lzo, the crypt plugin in the dd_rescue-crypt subpackage.
|
|
|
|
|
2017-06-07 10:35:11 +00:00
|
|
|
%package crypt
|
|
|
|
Summary: Crypt plugin for dd_rescue
|
Accepting request 311003 from home:garloff:branches:Base:System
- Add three missing doc files.
- Update to dd_rescue-1.98:
* Fix AESNI detection (x86)
* Avoid test failures due to insufficient entropy
- Update to dd_rescue-1.98pre:
* crypt plugin: Encrypt and decrypt the data stream using various
AES variants. There are -CBC, -ECB, -CTR stream ciphers, and
128, 192, 256 bit variants, also with enhanced number of rounds,
and with twice the rounds. Keys can generated, saved, or derived
from password with salt. On x86, the hardware AES support is
used if featured by the CPU.
* Speed up PRNG generation.
* Fault injection framework for testing.
* Some minor improvements of the plugin interface and fixes all
over the place.
OBS-URL: https://build.opensuse.org/request/show/311003
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=28
2015-06-08 07:51:37 +00:00
|
|
|
Group: System/Base
|
|
|
|
Requires: dd_rescue = %{version}
|
|
|
|
|
|
|
|
%description crypt
|
|
|
|
This plugin allows you do de/encrypt files during recovery copying
|
|
|
|
with dd_rescue using the AES family of algorithms. The plugin
|
|
|
|
supports various numbers of bits and rounds and uses the x86 AESNI
|
|
|
|
CPU support if available.
|
|
|
|
|
|
|
|
The plugin does offer a variety of options to handle the keys
|
2017-06-07 10:35:11 +00:00
|
|
|
and IVs including the generating keys from password and salt.
|
Accepting request 311003 from home:garloff:branches:Base:System
- Add three missing doc files.
- Update to dd_rescue-1.98:
* Fix AESNI detection (x86)
* Avoid test failures due to insufficient entropy
- Update to dd_rescue-1.98pre:
* crypt plugin: Encrypt and decrypt the data stream using various
AES variants. There are -CBC, -ECB, -CTR stream ciphers, and
128, 192, 256 bit variants, also with enhanced number of rounds,
and with twice the rounds. Keys can generated, saved, or derived
from password with salt. On x86, the hardware AES support is
used if featured by the CPU.
* Speed up PRNG generation.
* Fault injection framework for testing.
* Some minor improvements of the plugin interface and fixes all
over the place.
OBS-URL: https://build.opensuse.org/request/show/311003
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=28
2015-06-08 07:51:37 +00:00
|
|
|
|
|
|
|
The plugin is new as of 1.98 and it despite diligent testing it
|
|
|
|
might be careful to expect some bugs and future changes.
|
|
|
|
|
2014-05-21 12:46:26 +00:00
|
|
|
%package lzo
|
|
|
|
Summary: LZO plugin for dd_rescue
|
|
|
|
Group: System/Base
|
|
|
|
Requires: dd_rescue = %{version}
|
|
|
|
|
|
|
|
%description lzo
|
|
|
|
This plugin allows you do de/compress files during recovery copying
|
|
|
|
with dd_rescue using the lzo family of algorithms. lzo algorithms
|
|
|
|
are very fast to decompress and most algorithms are very fast to
|
|
|
|
compress as well -- at the expense of somewhat worse compression than
|
|
|
|
zlib's deflate.
|
|
|
|
|
|
|
|
The plugin does offer a variety of options to handle corrupted .lzo
|
|
|
|
files with some grace; it does skip over bad blocks (if the block
|
|
|
|
headers are still intact) by default, but does offer an option (nodiscard)
|
2015-05-22 16:58:33 +00:00
|
|
|
to allow to attempt decompression on faulty input, hoping to produce
|
2014-05-21 12:46:26 +00:00
|
|
|
some usable bytes. It can also search for valid block headers after
|
|
|
|
synchronization has been lost due to a corrupt one.
|
|
|
|
|
|
|
|
The plugin also handles sparse files (files with holes) and supports
|
|
|
|
appending to .lzo files, so it fits neatly into dd_rescue.
|
|
|
|
|
|
|
|
Some fuzz testing has been applied to the plugin's decompression routines,
|
|
|
|
though more will have to be done to feel confident about feeding untrusted
|
|
|
|
data to the decompressor; the plugin is still young and might expose bugs.
|
2010-11-05 16:21:02 +00:00
|
|
|
|
|
|
|
%prep
|
2017-06-07 10:35:11 +00:00
|
|
|
%setup -q
|
2018-04-18 18:10:36 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2011-09-05 14:26:36 +00:00
|
|
|
# Remove build time references so build-compare can do its work
|
2015-05-22 16:58:33 +00:00
|
|
|
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M')
|
|
|
|
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{SOURCE99} '+%%b %%e %%Y')
|
2011-09-05 14:26:36 +00:00
|
|
|
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/g" dd_rescue.c
|
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" dd_rescue.c
|
2010-11-05 16:21:08 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
%build
|
2017-06-07 10:35:11 +00:00
|
|
|
autoheader
|
|
|
|
autoconf
|
|
|
|
%configure
|
|
|
|
make RPM_OPT_FLAGS="%{optflags}" LIBDIR=%{_libdir} LIB=%{_lib} %{?_smp_mflags}
|
2010-11-05 16:21:02 +00:00
|
|
|
|
|
|
|
%install
|
2017-06-07 10:35:11 +00:00
|
|
|
%make_install RPM_OPT_FLAGS="%{optflags}" INSTALLDIR=%{buildroot}/%{_bindir} LIB=%{_lib} LIBDIR=%{_libdir} \
|
2012-02-08 16:35:06 +00:00
|
|
|
INSTASROOT= INSTALLFLAGS=
|
2012-03-13 12:08:00 +00:00
|
|
|
|
2012-02-08 16:35:06 +00:00
|
|
|
mkdir %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/dd_rescue %{buildroot}/bin
|
2011-10-05 12:36:13 +00:00
|
|
|
|
2013-08-02 21:12:38 +00:00
|
|
|
%check
|
2015-05-22 16:58:33 +00:00
|
|
|
make %{?_smp_mflags} check
|
2013-08-02 21:12:38 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
%files
|
2011-09-05 14:26:36 +00:00
|
|
|
%defattr(-,root,root,-)
|
Accepting request 311003 from home:garloff:branches:Base:System
- Add three missing doc files.
- Update to dd_rescue-1.98:
* Fix AESNI detection (x86)
* Avoid test failures due to insufficient entropy
- Update to dd_rescue-1.98pre:
* crypt plugin: Encrypt and decrypt the data stream using various
AES variants. There are -CBC, -ECB, -CTR stream ciphers, and
128, 192, 256 bit variants, also with enhanced number of rounds,
and with twice the rounds. Keys can generated, saved, or derived
from password with salt. On x86, the hardware AES support is
used if featured by the CPU.
* Speed up PRNG generation.
* Fault injection framework for testing.
* Some minor improvements of the plugin interface and fixes all
over the place.
OBS-URL: https://build.opensuse.org/request/show/311003
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=28
2015-06-08 07:51:37 +00:00
|
|
|
%doc COPYING README.dd_rescue TODO
|
2012-02-08 16:35:06 +00:00
|
|
|
%{_bindir}/dd_rescue
|
2010-11-05 16:21:02 +00:00
|
|
|
/bin/dd_rescue
|
2014-05-23 17:26:34 +00:00
|
|
|
%{_libdir}/libddr_hash.so
|
2014-03-11 05:41:47 +00:00
|
|
|
%{_libdir}/libddr_MD5.so
|
2014-05-27 13:08:03 +00:00
|
|
|
%{_libdir}/libddr_null.so
|
2015-05-22 16:58:33 +00:00
|
|
|
%{_mandir}/man1/dd_rescue.1%{ext_man}
|
2010-11-05 16:21:02 +00:00
|
|
|
|
Accepting request 311003 from home:garloff:branches:Base:System
- Add three missing doc files.
- Update to dd_rescue-1.98:
* Fix AESNI detection (x86)
* Avoid test failures due to insufficient entropy
- Update to dd_rescue-1.98pre:
* crypt plugin: Encrypt and decrypt the data stream using various
AES variants. There are -CBC, -ECB, -CTR stream ciphers, and
128, 192, 256 bit variants, also with enhanced number of rounds,
and with twice the rounds. Keys can generated, saved, or derived
from password with salt. On x86, the hardware AES support is
used if featured by the CPU.
* Speed up PRNG generation.
* Fault injection framework for testing.
* Some minor improvements of the plugin interface and fixes all
over the place.
OBS-URL: https://build.opensuse.org/request/show/311003
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=28
2015-06-08 07:51:37 +00:00
|
|
|
%files crypt
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mandir}/man1/ddr_crypt.1%{ext_man}
|
|
|
|
%{_libdir}/libddr_crypt.so
|
|
|
|
|
2014-05-21 12:46:26 +00:00
|
|
|
%files lzo
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libddr_lzo.so
|
2015-05-22 16:58:33 +00:00
|
|
|
%{_mandir}/man1/ddr_lzo.1%{ext_man}
|
Accepting request 311003 from home:garloff:branches:Base:System
- Add three missing doc files.
- Update to dd_rescue-1.98:
* Fix AESNI detection (x86)
* Avoid test failures due to insufficient entropy
- Update to dd_rescue-1.98pre:
* crypt plugin: Encrypt and decrypt the data stream using various
AES variants. There are -CBC, -ECB, -CTR stream ciphers, and
128, 192, 256 bit variants, also with enhanced number of rounds,
and with twice the rounds. Keys can generated, saved, or derived
from password with salt. On x86, the hardware AES support is
used if featured by the CPU.
* Speed up PRNG generation.
* Fault injection framework for testing.
* Some minor improvements of the plugin interface and fixes all
over the place.
OBS-URL: https://build.opensuse.org/request/show/311003
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=28
2015-06-08 07:51:37 +00:00
|
|
|
%doc CRYPT_TODO PADDING
|
2014-05-21 12:46:26 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
%changelog
|