46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
inherit autotools
|
|
|
|
DESCRIPTION="A patch to the GNU dd program, this version has several features intended for forensic acquisition of data"
|
|
HOMEPAGE="https://sourceforge.net/projects/dc3dd/"
|
|
SRC_URI="https://sourceforge.net/projects/${PN}/files/dc3dd/${PV}/dc3dd-${PV}.zip"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~ppc ~riscv x86"
|
|
|
|
DEPEND="virtual/pkgconfig"
|
|
|
|
DOCS=(
|
|
AUTHORS
|
|
CONTRIBUTING.md
|
|
ChangeLog
|
|
NEWS
|
|
README.md
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf --with-bash-completion
|
|
}
|
|
|
|
#src_test() {
|
|
# # Just in case upstream add tests in future
|
|
# default
|
|
#
|
|
# # Smoke test for Gentoo bug #930996
|
|
# # Inspired by https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114698#c0
|
|
# expected_sha256sum="$(sha256sum <<<TestInput | awk '{print $1}')"
|
|
# actual_sha256sum="$(src/dcfldd hash=sha256 2>&1 <<<TestInput \
|
|
# | grep -F sha256 | awk '{print $3}')"
|
|
# [[ ${actual_sha256sum} = ${expected_sha256sum} ]] \
|
|
# || die "dcfldd produced \"${actual_sha256sum}\" instead of expected \"${expected_sha256sum}\"."
|
|
#}
|