Files
haikuports/app-admin/testdisk/testdisk-7.1~git.recipe
Jerome Duval c204858158 testdisk: use a snapshot archive.
* build with c++11 for Qt 5.7+.
* explicit REQUIRES/BUILD_REQUIRES for Qt5.
2017-05-15 00:00:18 +02:00

121 lines
3.5 KiB
Bash

SUMMARY="Checks and undeletes partitions and a signature based recovery tool"
DESCRIPTION="TestDisk is powerful free data recovery software\! \
It was primarily designed to help recover lost partitions and/or \
make non-booting disks bootable again when these symptoms are caused \
by faulty software: certain types of viruses or human error \
(such as accidentally deleting a Partition Table). \
Partition table recovery using TestDisk is really easy. \
TestDisk features:
- Fix partition table, recover deleted partition
- Recover FAT32 boot sector from its backup
- Rebuild FAT12/FAT16/FAT32 boot sector
- Fix FAT tables
- Rebuild NTFS boot sector
- Recover NTFS boot sector from its backup
- Fix MFT using MFT mirror
- Locate ext2/ext3/ext4 Backup SuperBlock
- Undelete files from FAT, exFAT, NTFS and ext2 filesystem
- Copy files from deleted FAT, exFAT, NTFS and ext2/ext3/ext4 partitions.
TestDisk has features for both novices and experts.
For those who know little or nothing about data recovery techniques, \
TestDisk can be used to collect detailed information about a \
non-booting drive which can then be sent to a tech for further analysis. \
Those more familiar with such procedures should find TestDisk a handy \
tool in performing onsite recovery."
HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk"
COPYRIGHT="1998-2008 Christophe GRENIER"
LICENSE="GNU GPL v2"
REVISION="2"
gitCommit="d0c0bf21ddadd60c7bb2188a66d39039d5cd2f9c"
SOURCE_URI=" https://git.cgsecurity.org/cgit/testdisk/snapshot/testdisk-$gitCommit.tar.gz"
CHECKSUM_SHA256="d2e0d02ca5df40db3d46e705721d36ee875928e57387d7a6919c219757a9dea3"
SOURCE_DIR="testdisk-$gitCommit"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
#TODO: add SVG icon to qphotorec
#TODO: require libntfs3g, ext2fs, reiserfs
PROVIDES="
testdisk$secondaryArchSuffix = $portVersion
cmd:testdisk = $portVersion
cmd:photorec = $portVersion
cmd:fidentify = $portVersion
"
PROVIDES_qt="
testdisk${secondaryArchSuffix}_qt = $portVersion
cmd:qphotorec = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libuuid$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
REQUIRES_qt="
testdisk${secondaryArchSuffix} == $portVersion base
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libuuid$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libuuid$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export CXXFLAGS="-std=c++11"
autoreconf -fi
runConfigure --omit-dirs "binDir" ./configure \
--bindir=$prefix/bin \
--disable-stack-protector
make $jobArgs
}
INSTALL()
{
make install
addAppDeskbarSymlink $prefix/bin/qphotorec "QPhotoRec"
# cleanup XDG stuff we do not need
rm -R $dataDir/applications
rm -R $dataDir/icons
packageEntries qt \
$prefix/bin/qphotorec \
$manDir/*/qphotorec.* \
$manDir/*/*/qphotorec.* \
$dataDir/deskbar/menu/Applications/QPhotoRec
}