app-forensices/guymager: remove old

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-12-07 21:30:15 -05:00
parent e0489310f4
commit 73a85e6243
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
8 changed files with 0 additions and 275 deletions

View file

@ -1 +0,0 @@
DIST guymager-0.8.12.tar.gz 312174 BLAKE2B 2768f662e9881704b9a36988eaadac89114f6226af06e7541f1fdb86f36ca9c7de6ca032a82c5f26d9450eb77d7ba4ee6471f2c9c4d9b14bd7b8864ad20cfd96 SHA512 79131abc41fae197012fcb4c915ef739b3709e78024f72f68b00d33778bfa4fa36b87d1f64fbde0cb6f9dd992e3852e429031eabe9aa5ec1d9cef541f470ce7f

View file

@ -1,69 +0,0 @@
Fix for #897764 (ftbfs with GCC-8), until new version 0.8.9 is available
diff --git a/md5.cpp b/md5.cpp
index ba6c743..0bd3651 100644
--- a/md5.cpp
+++ b/md5.cpp
@@ -35,6 +35,7 @@
#include <stddef.h>
#include <string.h>
+#include <stdint.h>
#include "md5.h"
@@ -376,9 +377,7 @@ void MD5Append (t_pMD5Context pContext, const void *pBuffer, size_t Len)
if (Len >= 64)
{
#if !_STRING_ARCH_unaligned
- #define alignof(type) offsetof (struct { char c; type x; }, x)
- #define UNALIGNED_P(p) (((size_t) p) % alignof (uint32_t) != 0)
-
+ #define UNALIGNED_P(p) ((uintptr_t) (p) % alignof (uint32_t) != 0)
if (UNALIGNED_P (pBuffer))
{
while (Len > 64)
diff --git a/sha1.cpp b/sha1.cpp
index 3c5190b..df66e8d 100644
--- a/sha1.cpp
+++ b/sha1.cpp
@@ -34,6 +34,7 @@
#include <stddef.h>
#include <string.h>
+#include <stdint.h>
#include "sha1.h"
@@ -263,8 +264,7 @@ void SHA1Append (t_pSHA1Context pContext, const void *buffer, size_t len)
if (len >= 64)
{
#if !_STRING_ARCH_unaligned
- #define alignof(type) offsetof (struct { char c; type x; }, x)
- #define UNALIGNED_P(p) (((size_t) p) % alignof (uint32_t) != 0)
+ #define UNALIGNED_P(p) ((uintptr_t) (p) % alignof (uint32_t) != 0)
if (UNALIGNED_P (buffer))
while (len > 64)
{
diff --git a/sha256.cpp b/sha256.cpp
index 7b5135d..d193168 100644
--- a/sha256.cpp
+++ b/sha256.cpp
@@ -45,6 +45,7 @@
//#define SHA256_OLD
#include <stddef.h>
+#include <stdint.h>
#include "sha256.h"
#ifdef SHA256_OLD
@@ -812,8 +813,7 @@ void SHA256Append (t_pSHA256Context pContext, const void *buffer, size_t len)
if (len >= 64)
{
#if !_STRING_ARCH_unaligned
- #define alignof(type) offsetof (struct { char c; type x; }, x)
- #define UNALIGNED_P(p) (((size_t) p) % alignof (uint32) != 0)
+ #define UNALIGNED_P(p) ((uintptr_t) (p) % alignof (uint32_t) != 0)
if (UNALIGNED_P (buffer))
{
while (len > 64)

View file

@ -1,36 +0,0 @@
diff -urN guymager-0.8.7_p1.orig/config.cpp guymager-0.8.7_p1/config.cpp
--- guymager-0.8.7_p1.orig/config.cpp 2018-01-07 08:15:32.000000000 +0800
+++ guymager-0.8.7_p1/config.cpp 2018-01-07 08:21:27.801204343 +0800
@@ -272,7 +272,7 @@
{ "Encase5" , LIBEWF_FORMAT_ENCASE5},
{ "Encase6" , LIBEWF_FORMAT_ENCASE6},
{ "Smart" , LIBEWF_FORMAT_SMART },
- { "FTK" , LIBEWF_FORMAT_FTK },
+ { "FTK" , LIBEWF_FORMAT_FTK_IMAGER},
{ "Linen5" , LIBEWF_FORMAT_LINEN5 },
{ "Linen6" , LIBEWF_FORMAT_LINEN6 },
#if (LIBEWF_VERSION >= 20130416)
diff -urN guymager-0.8.7_p1.orig/file.cpp guymager-0.8.7_p1/file.cpp
--- guymager-0.8.7_p1.orig/file.cpp 2018-01-07 08:15:32.000000000 +0800
+++ guymager-0.8.7_p1/file.cpp 2018-01-07 08:33:32.557252999 +0800
@@ -76,9 +76,9 @@
case LIBEWF_FORMAT_ENCASE4: SubFormat="Encase4" ; break;
case LIBEWF_FORMAT_ENCASE5: SubFormat="Encase5" ; break;
case LIBEWF_FORMAT_ENCASE6: SubFormat="Encase6" ; break;
- case LIBEWF_FORMAT_FTK : SubFormat="FTK" ; break;
+ case LIBEWF_FORMAT_FTK_IMAGER : SubFormat="FTK" ; break;
case LIBEWF_FORMAT_SMART : SubFormat="Smart" ; break;
- case LIBEWF_FORMAT_LVF : SubFormat="LVF" ; break;
+ case LIBEWF_FORMAT_LOGICAL_ENCASE5 : SubFormat="LVF" ; break;
case LIBEWF_FORMAT_LINEN5 : SubFormat="Linen5" ; break;
case LIBEWF_FORMAT_LINEN6 : SubFormat="Linen6" ; break;
#if (LIBEWF_VERSION >= 20130416)
@@ -139,7 +139,7 @@
case LIBEWF_FORMAT_LINEN7 :
case LIBEWF_FORMAT_EWFX :
#endif
- case LIBEWF_FORMAT_FTK :
+ case LIBEWF_FORMAT_FTK_IMAGER :
case AEWF : Wild=".E??"; Human=".Exx"; break;
case LIBEWF_FORMAT_SMART : Wild=".s??"; Human=".sxx"; break;
default : CHK (ERROR_FILE_INVALID_EWF_FORMAT)

View file

@ -1,12 +0,0 @@
diff -ur a/guymager.pro b/guymager.pro
--- a/guymager.pro 2019-07-29 12:59:50.000000000 +0300
+++ b/guymager.pro 2020-02-26 07:46:45.930498523 +0300
@@ -198,7 +198,7 @@
}
}
}
-}
+} else {
LIBS += -lguytools
contains (USE_LIBEWF, 1) {
message ("Using libewf!")

View file

@ -1,33 +0,0 @@
--- a/fifo.h
+++ b/fifo.h
@@ -38,7 +38,7 @@
#ifndef _LIBEWF_H
#include <libewf.h>
- #if ((LIBEWF_VERSION != 20100226) && (LIBEWF_VERSION != 20080501) && (LIBEWF_VERSION != 20111015) && (LIBEWF_VERSION != 20130416))
+ #if ((LIBEWF_VERSION != 20100226) && (LIBEWF_VERSION != 20080501) && (LIBEWF_VERSION != 20111015) && (LIBEWF_VERSION != 20130416) && (LIBEWF_VERSION != 20140608))
#error "Please check EWF documentation for newer Encase formats and adjust following code"
#endif
--- a/dlgacquire.cpp
+++ b/dlgacquire.cpp
@@ -1245,7 +1245,7 @@
return;
}
SplitSize = NumValue * UnitIndexToMultiplier (DlgAcquireGetField(CFG_DLGACQUIRE_SPLITFILEUNIT)->pComboBox->currentIndex());
- #if ((LIBEWF_VERSION != 20100226) && (LIBEWF_VERSION != 20080501) && (LIBEWF_VERSION != 20111015) && (LIBEWF_VERSION != 20130416))
+ #if ((LIBEWF_VERSION != 20100226) && (LIBEWF_VERSION != 20080501) && (LIBEWF_VERSION != 20111015) && (LIBEWF_VERSION != 20130416) && (LIBEWF_VERSION != 20140608))
#error "Please check EWF documentation for newer Encase formats and adjust following code"
#endif
if (pOwn->pRadioButtonFormatEWF->isChecked())
--- a/main.cpp
+++ b/main.cpp
@@ -508,7 +508,7 @@
// Initialise libewf
// -----------------
- #if ((LIBEWF_VERSION != 20100226) && (LIBEWF_VERSION != 20080501) && (LIBEWF_VERSION != 20111015) && (LIBEWF_VERSION != 20130416))
+ #if ((LIBEWF_VERSION != 20100226) && (LIBEWF_VERSION != 20080501) && (LIBEWF_VERSION != 20111015) && (LIBEWF_VERSION != 20130416) && (LIBEWF_VERSION != 20140608))
#error "Please check EWF documentation for newer Encase formats and adjust following code"
#endif

View file

@ -1,18 +0,0 @@
--- guymager.pro.orig 2014-02-03 19:08:24.000000000 +0800
+++ guymager.pro 2014-09-30 09:10:20.000000000 +0800
@@ -144,11 +144,11 @@
QMAKE_LFLAGS_DEBUG += -ggdb -rdynamic # -rdynamic is necessary in order to have the backtrace handler in toolsignal show all information
QMAKE_LFLAGS_RELEASE += -ggdb -rdynamic # -rdynamic is necessary in order to have the backtrace handler in toolsignal show all information
-#LIBS += -lewf
-#LIBS += -lguytools
+LIBS += -lewf
+LIBS += -lguytools
#LIBS += /usr/local/lib/libewf.a
-LIBS += /usr/lib/libewf.a
-LIBS += /usr/lib/libguytools.a
+#LIBS += /usr/lib/libewf.a
+#LIBS += /usr/lib/libguytools.a
LIBS += -lz
LIBS += -ldl

View file

@ -1,93 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# TODO:
# broken with the latest libewf
# see: https://sourceforge.net/p/guymager/feature-requests/11/
EAPI=7
inherit desktop eutils qmake-utils xdg-utils
DESCRIPTION="Guymager is a fast and user friendly forensic imager."
HOMEPAGE="http://guymager.sourceforge.net/"
SRC_URI="mirror://sourceforge/guymager/guymager/LatestSource/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~x86"
LICENSE="GPL-2"
SLOT="0"
IUSE="debug hdparm policykit udisks ewf smart"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtdbus:5
dev-qt/qtwidgets:5
sys-block/parted
sys-libs/zlib
sys-process/procps
hdparm? ( sys-apps/hdparm )
udisks? ( sys-fs/udisks:* )
smart? ( sys-apps/smartmontools )
policykit? ( sys-auth/polkit )"
DEPEND="${RDEPEND}
ewf? ( app-forensics/libewf )
>=dev-libs/libguytools2-2.1.0:="
#PATCHES=(
# "${FILESDIR}"/profile.patch
#)
src_prepare() {
default
sed -e "s|^QMAKE_CXXFLAGS_RELEASE += -O3 -ggdb||" \
-i guymager.pro || die
lrelease guymager.pro
}
src_configure() {
eqmake5 DEFINES*="ENABLE_LIBEWF=$(usex ewf '1' '0')"
}
src_install() {
dobin guymager
doman manuals/*.1
newicon -s 128 guymager_128.png guymager.png
insinto /usr/share/pixmap
newins guymager_128.xpm guymager.xpm
if use policykit; then
insinto /usr/share/polkit-1/actions/
doins org.freedesktop.guymager.policy
make_wrapper "${PN}.pkexec" \
"pkexec \"/usr/bin/guymager\""
make_desktop_entry "${PN}.pkexec" \
"Guymager (root)" \
$PN "Qt;Utility;System"
fi
make_desktop_entry $PN \
"Guymager" \
$PN "Qt;Utility;System"
insinto /usr/share/guymager
doins guymager_*.ts
insinto /etc/guymager
doins guymager.cfg
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<use>
<flag name="smart">Install <pkg>sys-apps/smartmontools</pkg> and enable S.M.A.R.T. disk monitoring</flag>
<flag name="ewf">Include ewf library</flag>
<flag name="hdparm">Install <pkg>sys-apps/smartmontools</pkg> utility</flag>
</use>
</pkgmetadata>