Files
haikuports/app-admin/testdisk/testdisk-7.1_git.recipe
2016-07-27 02:27:03 +02:00

116 lines
3.3 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="1"
SOURCE_URI="git+http://git.cgsecurity.org/testdisk.git#d0c0bf21ddadd60c7bb2188a66d39039d5cd2f9c"
#CHECKSUM_SHA256=""
ARCHITECTURES="x86 !x86_gcc2 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
#TODO: add SVG icon to qphotorec
#TODO: require libntfs3g, ext2fs, reiserfs
PROVIDES="
testdisk$secondaryArchSuffix = $portVersion
cmd:testdisk = $portVersion compat >= 7.1
cmd:photorec = $portVersion compat >= 7.1
cmd:fidentify = $portVersion compat >= 7.1
"
PROVIDES_qt="
testdisk${secondaryArchSuffix}_qt = $portVersion
cmd:qphotorec = $portVersion compat >= 7.1
"
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:libuuid$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libqt5$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libqt5$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()
{
#mkdir config
#automake --add-missing -f -c
autoreconf -vfi
runConfigure --omit-dirs "binDir" ./configure \
--bindir=$prefix/bin \
--disable-stack-protector
make
}
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
}