Update to ophcrack-3.8.0.

This commit is contained in:
benoit 2020-01-16 07:40:29 +00:00
parent cb85479227
commit 54af6a484a
6 changed files with 41 additions and 55 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.16 2019/07/12 20:49:06 sthen Exp $
# $OpenBSD: Makefile,v 1.17 2020/01/16 07:40:29 benoit Exp $
COMMENT = password cracker based on rainbow tables
DISTNAME = ophcrack-3.6.1
DISTNAME = ophcrack-3.8.0
CATEGORIES = security
HOMEPAGE = http://ophcrack.sourceforge.net/
@ -30,21 +30,18 @@ FLAVORS = gui
FLAVOR ?=
.if ${FLAVOR:Mgui}
WANTLIB += ICE SM X11 Xext Xi Xinerama Xrender fontconfig
WANTLIB += freetype ${COMPILER_LIBCXX} QtGui>=8 QtCore>=7 qwt
WANTLIB += ${COMPILER_LIBCXX} GL Qt5Charts Qt5Core Qt5Gui Qt5Widgets
MODULES += x11/qt4
MODULES += x11/qt5
LIB_DEPENDS += x11/qt4 \
x11/qwt
CONFIGURE_ARGS += --enable-gui \
--with-libqt4=${MODQT_LIBDIR} \
--with-libqwt=${LOCALBASE} \
--enable-graph
CONFIGURE_ENV += QTDIR="${MODQT4_QTDIR}" \
LIB_DEPENDS += x11/qt5/qtcharts
CONFIGURE_ARGS += --enable-gui
CONFIGURE_ENV += QTDIR="${MODQT5_QTDIR}" \
CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include"
.else
CONFIGURE_ARGS = --disable-gui --disable-graph
CONFIGURE_ARGS = --disable-gui
.endif
NO_TEST = Yes

View File

@ -1,2 +1,2 @@
SHA256 (ophcrack-3.6.1.tar.bz2) = gt0WmetzQM6MeRN1jbKrQ0ZZ+K0KJ6uxhkZ2J6C4t5g=
SIZE (ophcrack-3.6.1.tar.bz2) = 296166
SHA256 (ophcrack-3.8.0.tar.bz2) = BIpt9XmDo6WjGsfE7BLfFqpJ5lKilnbZPU75WdUK7uA=
SIZE (ophcrack-3.8.0.tar.bz2) = 293033

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-configure,v 1.6 2013/06/07 10:03:27 benoit Exp $
--- configure.orig Tue Jun 4 09:42:47 2013
+++ configure Fri Jun 7 11:01:28 2013
@@ -6001,7 +6001,6 @@ else
esac
-$as_echo "#define malloc rpl_malloc" >>confdefs.h
fi

View File

@ -1,26 +0,0 @@
$OpenBSD: patch-src_bswap_h,v 1.2 2013/06/07 10:03:27 benoit Exp $
--- src/bswap.h.orig Tue Jun 4 09:42:47 2013
+++ src/bswap.h Fri Jun 7 11:01:28 2013
@@ -39,6 +39,7 @@
# include <libkern/OSByteOrder.h>
# define __bswap_16(x) OSSwapInt16(x)
# define __bswap_32(x) OSSwapInt32(x)
+# define __bswap_64(x) OSSwapInt64(x)
#elif HAVE_BYTESWAP_H
# include <byteswap.h>
#else
@@ -48,5 +49,14 @@
(((uint32_t)(x) & 0x00ff0000) >> 8) | \
(((uint32_t)(x) & 0x0000ff00) << 8) | \
(((uint32_t)(x) & 0x000000ff) << 24)))
+# define __bswap_64(x) \
+ ((uint64_t)((((uint64_t)(x) & 0xff00000000000000ULL) >> 56) | \
+ (((uint64_t)(x) & 0x00ff000000000000ULL) >> 40) | \
+ (((uint64_t)(x) & 0x0000ff0000000000ULL) >> 24) | \
+ (((uint64_t)(x) & 0x000000ff00000000ULL) >> 8) | \
+ (((uint64_t)(x) & 0x00000000ff000000ULL) << 8) | \
+ (((uint64_t)(x) & 0x0000000000ff0000ULL) << 24) | \
+ (((uint64_t)(x) & 0x000000000000ff00ULL) << 40) | \
+ (((uint64_t)(x) & 0x00000000000000ffULL) << 56)))
#endif
#endif

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-src_core_bswap_h,v 1.1 2020/01/16 07:40:29 benoit Exp $
--- src/core/bswap.h.orig Thu Apr 6 09:08:52 2017
+++ src/core/bswap.h Thu Apr 6 09:10:15 2017
@@ -39,6 +39,7 @@
# include <libkern/OSByteOrder.h>
# define __bswap_16(x) OSSwapInt16(x)
# define __bswap_32(x) OSSwapInt32(x)
+# define __bswap_64(x) OSSwapInt64(x)
#elif HAVE_BYTESWAP_H
# include <byteswap.h>
#else
@@ -48,5 +49,14 @@
(((uint32_t)(x) & 0x00ff0000) >> 8) | \
(((uint32_t)(x) & 0x0000ff00) << 8) | \
(((uint32_t)(x) & 0x000000ff) << 24)))
+# define __bswap_64(x) \
+ ((uint64_t)((((uint64_t)(x) & 0xff00000000000000ULL) >> 56) | \
+ (((uint64_t)(x) & 0x00ff000000000000ULL) >> 40) | \
+ (((uint64_t)(x) & 0x0000ff0000000000ULL) >> 24) | \
+ (((uint64_t)(x) & 0x000000ff00000000ULL) >> 8) | \
+ (((uint64_t)(x) & 0x00000000ff000000ULL) << 8) | \
+ (((uint64_t)(x) & 0x0000000000ff0000ULL) << 24) | \
+ (((uint64_t)(x) & 0x000000000000ff00ULL) << 40) | \
+ (((uint64_t)(x) & 0x00000000000000ffULL) << 56)))
#endif
#endif

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-src_misc_c,v 1.2 2013/06/07 10:03:27 benoit Exp $
--- src/misc.c.orig Tue Jun 4 09:42:47 2013
+++ src/misc.c Fri Jun 7 11:01:28 2013
$OpenBSD: patch-src_core_misc_c,v 1.1 2020/01/16 07:40:29 benoit Exp $
--- src/core/misc.c.orig Thu Mar 30 12:32:00 2017
+++ src/core/misc.c Fri Apr 28 12:51:21 2017
@@ -33,7 +33,7 @@
#include <string.h>
#include <stdio.h>