Репозиторий Sisyphus
Последнее обновление: 16 октября 2019 | Пакетов: 17499 | Посещений: 15280439
en ru br
Репозитории ALT
5.1: 1.60-alt1
4.1: 1.60-alt1

Группа :: Работа с текстами
Пакет: scalpel

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: scalpel
Version: 2.0
Release: alt2

Summary: A Frugal, High Performance File Carver
License: GPLv2+
Group: Text tools

Url: https://github.com/machn1k/Scalpel-2.0
Source0: %name-%version.tar.gz
Source1: scalpel.conf.odf

# Automatically added by buildreq on Sun Apr 13 2014

# optimized out: gnu-config libcloog-isl4
BuildRequires: libtre-devel

Scalpel is a fast file carver that reads a database of header and footer
definitions and extracts matching files from a set of image files or raw
device files. Scalpel is filesystem-independent and will carve files from
FATx, NTFS, ext2/3/4, or raw partitions. It is useful for both digital
forensics investigation and file recovery.

sed -i 's|scalpel.conf|%_sysconfdir/&|' src/scalpel.h
chmod -x gpl.txt README Changelog src/*.h src/*.c
rm -f *.exe *.dll


install -pDm644 scalpel.conf %buildroot%_sysconfdir/scalpel.conf

# modify configuration to have some usable one out of box:

# everything is commented out within the stock file;
# this sed script uncomments common file extensions
sed -i -e "s/^#[ ]*$//;
          s/\t/        /g;
          s/^#   [ ]*\([a-z][a-z] \)/        \1/;
          s/^#   [ ]*\([a-z][a-z][a-z] \)/        \1/;
          s/^#   [ ]*\([a-z][a-z][a-z][a-z] \)/        \1/;
          s/^\(.*case[ ]*size\)/#\1/" %buildroot%_sysconfdir/scalpel.conf

# a few more more bits

cat %SOURCE1 >> %buildroot%_sysconfdir/scalpel.conf

%config(noreplace) %_sysconfdir/scalpel.conf
%doc Changelog README %name.conf


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin