Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Package Retirement
b6b2a0f8a7 Retired EPEL branch. 2023-06-23 09:18:42 +02:00
6 changed files with 1 additions and 230 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
/hashcat-*.tar.xz

1
dead.package Normal file
View file

@ -0,0 +1 @@
Retired EPEL branch.

View file

@ -1,55 +0,0 @@
From 49d6ac344d249941a0592113259a2af82914e319 Mon Sep 17 00:00:00 2001
From: Vitaly Zaitsev <vitaly@easycoding.org>
Date: Wed, 17 Jun 2020 10:57:15 +0200
Subject: [PATCH] Fedora build patches.
---
src/Makefile | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/Makefile b/src/Makefile
index 64f54dbf6..c0d587b35 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -43,7 +43,7 @@ endif
## Makefile flags
##
-MAKEFLAGS += -l -j 8 -rR --no-print-directory
+MAKEFLAGS += -l -rR --no-print-directory
ifneq ($(findstring clean,$(MAKECMDGOALS)),)
MAKEFLAGS += -j 1
@@ -233,10 +233,7 @@ endif
endif
ifeq ($(DEBUG),0)
-CFLAGS += -O2
-ifneq ($(UNAME),Darwin)
-LFLAGS += -s
-endif
+CFLAGS += -DNDEBUG
else
ifeq ($(DEBUG),1)
ifneq ($(UNAME),Darwin)
@@ -505,7 +502,7 @@ endif
.PHONY: install
ifeq ($(SHARED),1)
-install: install_docs install_shared install_library install_library_dev install_tunings install_kernels install_modules install_hashcat
+install: install_shared install_library install_library_dev install_tunings install_kernels install_modules install_hashcat
else
install: install_docs install_shared install_tunings install_kernels install_modules install_hashcat
endif
@@ -578,7 +575,7 @@ install_kernels: install_shared
install_modules: install_shared modules
$(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)/modules
$(FIND) modules/ -mindepth 1 -type d -execdir $(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)/modules/{} \;
- $(FIND) modules/ -mindepth 1 -type f -execdir $(INSTALL) -m 644 {} $(DESTDIR)$(SHARED_FOLDER)/modules/{} \;
+ $(FIND) modules/ -mindepth 1 -type f -execdir $(INSTALL) -m 755 {} $(DESTDIR)$(SHARED_FOLDER)/modules/{} \;
.PHONY: install_library
install_library: $(HASHCAT_LIBRARY)
--
2.37.2

View file

@ -1,140 +0,0 @@
# hashcat require an ancient version of minizip.
# On Fedora we can use compatibility package, but
# on RHEL we must use bundled version.
%if 0%{?fedora}
%bcond_without zlib
%else
%bcond_with zlib
%endif
%global makeflags PREFIX=%{_prefix} LIBRARY_FOLDER=%{_libdir} SHARED_ROOT_FOLDER=%{_libdir} DOCUMENT_FOLDER=%{_docdir}/hashcat-doc SHARED=1 USE_SYSTEM_OPENCL=1 USE_SYSTEM_XXHASH=1 ENABLE_UNRAR=0
%if %{with zlib}
%global makeflags %(echo %{makeflags} USE_SYSTEM_ZLIB=1)
%else
%global makeflags %(echo %{makeflags} USE_SYSTEM_ZLIB=0)
%endif
Name: hashcat
Version: 6.2.6
Release: 1%{?dist}
License: MIT AND LicenseRef-Fedora-Public-Domain
URL: https://github.com/%{name}/%{name}
Summary: Advanced password recovery utility
# The official upstream tarball contains some non-free components.
# We cannot use it on Fedora for legal reasons.
# Use ./make_tarball.sh to generate a new stripped tarball.
Source0: %{name}-%{version}-clean.tar.xz
Source1: make_tarball.sh
Patch0: %{name}-build-fixes.patch
BuildRequires: opencl-headers
BuildRequires: xxhash-devel
BuildRequires: gcc
BuildRequires: make
%if %{with zlib}
BuildRequires: zlib-devel
BuildRequires: minizip-compat-devel
%else
Provides: bundled(zlib) = 1.2.11
Provides: bundled(minizip) = 1.2.11
%endif
%if 0%{?fedora}
Recommends: mesa-libOpenCL%{?_isa}
Recommends: pocl%{?_isa}
Recommends: %{name}-doc = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
# Upstream does not support Big Endian architectures.
ExcludeArch: ppc64 s390x
%description
Hashcat is the world's fastest and most advanced password recovery
utility, supporting five unique modes of attack for over 200
highly-optimized hashing algorithms. hashcat currently supports
CPUs, GPUs, and other hardware accelerators on Linux, Windows,
and Mac OS, and has facilities to help enable distributed password
cracking.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel
%{summary}.
%package doc
Summary: Documentation files for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
BuildArch: noarch
%description doc
%{summary}.
%prep
%autosetup -p1
rm -rf deps/{OpenCL-Headers,xxHash}
%if %{with zlib}
rm -rf deps/zlib
%endif
sed -e 's/\.\/hashcat/hashcat/' -i *.sh
chmod -x *.sh
rm -f modules/.lock
%build
%set_build_flags
%make_build %{makeflags}
%install
%make_install %{makeflags}
ln -s lib%{name}.so.%{version} %{buildroot}%{_libdir}/lib%{name}.so
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
install -m 0744 -p extra/tab_completion/hashcat.sh %{buildroot}%{_datadir}/bash-completion/completions/%{name}
%files
%license docs/license.txt
%doc README.md
%{_datadir}/bash-completion/
%{_libdir}/lib%{name}.so.%{version}
%{_libdir}/%{name}/
%{_bindir}/%{name}
%files devel
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%files doc
%doc docs/ charsets/ layouts/ masks/ rules/
%doc example.dict example*.sh
%changelog
* Fri Sep 02 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 6.2.6-1
- Updated to version 6.2.6.
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sun Nov 21 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 6.2.5-1
- Updated to version 6.2.5.
* Mon Aug 30 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 6.2.4-1
- Updated to version 6.2.4.
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sat Jul 17 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 6.2.3-1
- Updated to version 6.2.3.
* Sun Jun 13 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 6.2.2-1
- Updated to version 6.2.2.
* Sat May 15 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 6.2.1-1
- Updated to version 6.2.1.

View file

@ -1,33 +0,0 @@
#!/usr/bin/bash
set -e
NAME="hashcat"
VERSION="$1"
if [ -z "$VERSION" ]
then
echo "Usage: ./make_tarball.sh {version}"
exit 1
fi
TARBALL_DIR="$NAME-$VERSION"
TARBALL_ORIG="$NAME-$VERSION.tar.gz"
TARBALL_NEW="$NAME-$VERSION-clean.tar.xz"
echo "Downloading upstream tarball..."
wget "https://github.com/hashcat/hashcat/archive/v$VERSION/$TARBALL_ORIG" -O "$TARBALL_ORIG" 2>/dev/null
echo "Unpacking upstream tarball..."
tar -xf "$TARBALL_ORIG"
echo "Removing non-free components..."
rm -rf "$TARBALL_DIR/deps/unrar"
echo "Building a new tarball..."
tar -cJf "$TARBALL_NEW" "$TARBALL_DIR"
echo "Performing cleanup..."
rm -f "$TARBALL_ORIG"
rm -rf "$TARBALL_DIR"
echo "Done."

View file

@ -1 +0,0 @@
SHA512 (hashcat-6.2.6-clean.tar.xz) = 3c7bdf4209d28bf5bc62d43ea4bb44a158a0226769ec9e1e9b92571fdfd0f1f89ee581edddb6582491e5cc8f44becde13b9caf8a169ed766c79bc114dc204a9f