diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-19 00:32:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-19 00:32:54 +0000 |
commit | 434fbe89e81a1fe06d92676be72ab7f862cc3f53 (patch) | |
tree | 7ed0f70fded2af7cbc43e42097f4cd2cebd8c845 /app-crypt/ophcrack | |
parent | cd0d9000770337b445051f1852fe3971ceb7a6e2 (diff) |
gentoo auto-resync : 19:03:2023 - 00:32:54
Diffstat (limited to 'app-crypt/ophcrack')
-rw-r--r-- | app-crypt/ophcrack/Manifest | 4 | ||||
-rw-r--r-- | app-crypt/ophcrack/files/ophcrack-3.8.0-buildsystem.patch | 223 | ||||
-rw-r--r-- | app-crypt/ophcrack/files/ophcrack-ar.patch | 13 | ||||
-rw-r--r-- | app-crypt/ophcrack/ophcrack-3.8.0-r1.ebuild (renamed from app-crypt/ophcrack/ophcrack-3.8.0.ebuild) | 35 |
4 files changed, 245 insertions, 30 deletions
diff --git a/app-crypt/ophcrack/Manifest b/app-crypt/ophcrack/Manifest index cf282784d886..3c05099fa764 100644 --- a/app-crypt/ophcrack/Manifest +++ b/app-crypt/ophcrack/Manifest @@ -1,4 +1,4 @@ -AUX ophcrack-ar.patch 242 BLAKE2B f268c2a0c0900c3ea6a3e4fc1c99530a090e413fbba9e4ff7c339ae6b5db49ad546eb58cd42a64f81d669c38ed9a4de25cfcfb29ee17af1c88b4372aee4fda51 SHA512 bb4f8154abe676ccec48536b50513b45253828334db040f28fe71e5b9d3d7abb6b34693ec234f10ce8c26592d07ccdd678a68b96b6a80ca9137c18a9e0598bfc +AUX ophcrack-3.8.0-buildsystem.patch 5021 BLAKE2B 4dd931a8329ac465302c30ab1da93035f9cd42a6d412ab470e1c4c54098206036256e18f02b30fd3b523821d43a0ee9ac3e55ed66a818171a94819f20b76e20a SHA512 61c576e1d26b103306c5e5c6dc6fa63f89ba5851740efb1d3810f986831f66ba49534f438be266d4ecb80aceafcc1938a4c8a19b6aae3245022dcfc6e2d79717 DIST ophcrack-3.8.0.tar.bz2 293033 BLAKE2B f20bf79d5cafffaab0667b073e8d9dbcfbae0a16f4139b6304c3f6fc80a24f6ca673db9cd53e28ff277ec35821539f3960265aa28467795e25c45049acca3f31 SHA512 c66276b72299744d3e0c9fc14220c7f568e383bd324c1ede228bda5d51da78db817388421c9f5f8cd2f18687e7e53cfb0c65bcc0354b3d55ac16324c61f62dbd -EBUILD ophcrack-3.8.0.ebuild 940 BLAKE2B 173c6245aef5259aeb626e821b0b7db9f3b6c3065fdad7121d5e3ccd2004002a12f670b1ff777894a7526904fcb34b08aaa674b06aaaea494bd8b5522d5e3b33 SHA512 84c8c3e292c4d8a788e852ca4401e394806b956eeb16673759a06a0a1caa250af411fbd31cd521960bdb3614e482589e5890d22141cf4eb62ad8ea371efe15df +EBUILD ophcrack-3.8.0-r1.ebuild 1004 BLAKE2B 5a0eb96580957c31a95c98d0c09a55521f79dbb15485592ae9a9d116da98b197fa4be51b41d5ac4ea6f57cd967f4236cb4dcf125652ec0d79dbd73df81b64757 SHA512 f0a268686d945b726cedcc1ec0d5da775966f0a7a42a1d04ede9c18ba4a97c2c2c05eea76fa5f4bb02e211ced583a1c0c0c1576cb66a1e80d248a3e169f04cd1 MISC metadata.xml 395 BLAKE2B b54400b556fc7e0e87577024a476478bdcd71c0dab543d34ba2bb068bde76325d8ce07837ab0c67f06188d08960beccb775a30ee8f1651dff51b2b74af3b4617 SHA512 2872a26affa99a8b92d595b8af9f949ded6f819192be088d686d89d97a0ca4a4bd569e033067dd500bbbf1967b563a8c14dea420672fcc662981b6c9509f1973 diff --git a/app-crypt/ophcrack/files/ophcrack-3.8.0-buildsystem.patch b/app-crypt/ophcrack/files/ophcrack-3.8.0-buildsystem.patch new file mode 100644 index 000000000000..fc4ec60c016c --- /dev/null +++ b/app-crypt/ophcrack/files/ophcrack-3.8.0-buildsystem.patch @@ -0,0 +1,223 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -35,7 +35,7 @@ + config \ + config.h.in \ + configure \ +- configure.in \ ++ configure.ac \ + COPYING \ + INSTALL \ + install-sh \ +@@ -82,13 +82,13 @@ + tar cfj $(distdir).tar.bz2 $(distdir) + rm -rf $(distdir) + +-# automatic re-running of configure if the configure.in file has changed +-configure: configure.in aclocal.m4 ++# automatic re-running of configure if the configure.ac file has changed ++configure: configure.ac aclocal.m4 + autoconf + + # autoheader might not change config.h.in, so touch a stamp file + config.h.in: stamp-h.in +-stamp-h.in: configure.in aclocal.m4 ++stamp-h.in: configure.ac aclocal.m4 + autoheader + echo timestamp > stamp-h.in + +--- a/configure.in ++++ b/configure.in +@@ -68,7 +68,7 @@ + AC_PROG_INSTALL + AC_PROG_LN_S + AC_PROG_MAKE_SET +-AC_PROG_RANLIB ++AC_CHECK_TOOL([AR], [ar]) + + if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -Wall -std=gnu9x -pedantic -I.." +@@ -167,55 +167,8 @@ + AC_CHECK_LIB([pthread], [pthread_mutex_init], [], [AC_MSG_ERROR([ophcrack requires libpthread.])]) + fi + +- +-AC_MSG_CHECKING(for libssl) +-with_ssl=no +-AC_ARG_WITH(libssl, AC_HELP_STRING(--with-libssl=DIR,use libssl in DIR), +-[ case "$withval" in +- no) +- AC_MSG_RESULT(no) +- ;; +- *) +- AC_MSG_RESULT(yes) +- with_ssl=$withval +- CFLAGS="$CFLAGS -I$with_ssl/include" +- CXXFLAGS="$CXXFLAGS -I$with_ssl/include" +- LIBS="$LIBS -L$with_ssl/lib -lssl -lcrypto" +- ;; +- esac ] +-) +- +-if test "x$with_ssl" = "xno"; then +- CHECK_SSL +-fi +- +-with_expat=no +-AC_ARG_WITH(libexpat, AC_HELP_STRING(--with-libexpat=DIR,use libexpat in DIR), +-[ AC_MSG_CHECKING(for libexpat) +- case "$withval" in +- no) +- AC_MSG_RESULT(no) +- ;; +- *) +- AC_MSG_RESULT(yes) +- with_expat=$withval +- if test "x$enable_win32" = "xyes"; then +- CFLAGS="$CFLAGS -I$with_expat/lib" +- CXXFLAGS="$CXXFLAGS -I$with_expat/lib" +- LIBS="$LIBS -L$with_expat" +- LIBS_END="$LIBS_END -lexpat" +- else +- CFLAGS="$CFLAGS -I$with_expat/include" +- CXXFLAGS="$CXXFLAGS -I$with_expat/include" +- LIBS="$LIBS -L$with_expat/lib -lexpat" +- fi +- ;; +- esac ] +-) +- +-if test "x$with_expat" = "xno"; then +- AC_CHECK_LIB([expat], [XML_ParserCreate], [], [AC_MSG_ERROR([ophcrack requires libexpat.])]) +-fi ++PKG_CHECK_MODULES([EXPAT], [expat]) ++PKG_CHECK_MODULES([CRYPTO], [libcrypto]) + + AC_CHECK_LIB([m], [sqrt], [], [AC_MSG_ERROR([ophcrack requires libmath.])]) + +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -20,9 +20,16 @@ + + CC = @CC@ + +-CPPFLAGS = @CPPFLAGS@ +-CFLAGS = @CFLAGS@ -Icore -Intproba +-LDFLAGS = @LDFLAGS@ @LIBS@ ++CPPFLAGS = @CPPFLAGS@ -Icore -Intproba ++CFLAGS = @CFLAGS@ ++LIBS = @LIBS@ ++LDFLAGS = @LDFLAGS@ ++ ++EXPAT_CFLAGS = @EXPAT_CFLAGS@ ++EXPAT_LIBS = @EXPAT_LIBS@ ++ ++CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ ++CRYPTO_LIBS = @CRYPTO_LIBS@ + + SUBDIRS = core ntproba samdump2 test + @HAVE_GUI_TRUE@SUBDIRS += gui +@@ -48,7 +55,7 @@ + ophcrack: gui/main.cpp core ntproba samdump2 + cp $< main.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c main.c -o main.o +- $(CC) main.o $(ARCHIVES) -o $@ $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) main.o $(ARCHIVES) -o $@ $(EXPAT_LIBS) $(CRYPTO_LIBS) $(LIBS) + rm main.c main.o + + gui: core ntproba samdump2 +--- a/src/common.mk.in ++++ b/src/common.mk.in +@@ -23,7 +23,14 @@ + + CFLAGS = @CFLAGS@ + CPPFLAGS = @CPPFLAGS@ +-LDFLAGS = @LDFLAGS@ @LIBS@ ++LDFLAGS = @LDFLAGS@ ++LIBS = @LIBS@ ++ ++EXPAT_CFLAGS = @EXPAT_CFLAGS@ ++EXPAT_LIBS = @EXPAT_LIBS@ ++ ++CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ ++CRYPTO_LIBS = @CRYPTO_LIBS@ + + HEADERS = $(wildcard *.h) + SOURCES = $(wildcard *.c) +@@ -32,11 +39,7 @@ + all: + + %.a: +- ar r $@ $^ +- $(RANLIB) $@ +- +-%.o: %.c +- $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ ++ $(AR) rcs $@ $^ + + clean_: + rm -f *.o *~ +--- a/src/core/Makefile.in ++++ b/src/core/Makefile.in +@@ -17,7 +17,7 @@ + + include ../common.mk + +-CFLAGS += -I../.. -I../samdump2 -I../ntproba ++CPPFLAGS += -I../.. -I../samdump2 -I../ntproba $(CRYPTO_CFLAGS) + + all: libophcrack.a + +--- a/src/gui/gui.pro.in ++++ b/src/gui/gui.pro.in +@@ -30,7 +30,7 @@ + ../ntproba/libntproba.a + + PRE_TARGETDEPS += $$ARCHIVES +-LIBS += $$ARCHIVES @LDFLAGS@ @LIBS@ ++LIBS += $$ARCHIVES @LDFLAGS@ @EXPAT_LIBS@ @CRYPTO_LIBS@ @LIBS@ + + QMAKE_CC = @CC@ + QMAKE_CXX = @CXX@ +--- a/src/ntproba/Makefile.in ++++ b/src/ntproba/Makefile.in +@@ -17,6 +17,8 @@ + + include ../common.mk + ++CPPFLAGS += $(EXPAT_CFLAGS) $(CRYPTO_CFLAGS) ++ + all: libntproba.a + + libntproba.a: $(OBJECTS) +--- a/src/samdump2/Makefile.in ++++ b/src/samdump2/Makefile.in +@@ -17,7 +17,7 @@ + + include ../common.mk + +-CFLAGS += -I../core ++CPPFLAGS += -I../core $(CRYPTO_CFLAGS) + + all: libsamdump2.a + +--- a/src/test/Makefile.in ++++ b/src/test/Makefile.in +@@ -17,7 +17,7 @@ + + include ../common.mk + +-CFLAGS += -I../.. -I../core -I../ntproba ++CPPFLAGS += -I../.. -I../core -I../ntproba + + ARCHIVES = \ + ../core/libophcrack.a \ +@@ -32,7 +32,7 @@ + %.a: + + test_%: test_%.o $(ARCHIVES) +- $(CC) $^ -o $@ $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(EXPAT_LIBS) $(CRYPTO_LIBS) $(LIBS) + + clean: clean_ + rm -f $(TARGETS) diff --git a/app-crypt/ophcrack/files/ophcrack-ar.patch b/app-crypt/ophcrack/files/ophcrack-ar.patch deleted file mode 100644 index 422c17398d20..000000000000 --- a/app-crypt/ophcrack/files/ophcrack-ar.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/common.mk.in b/src/common.mk.in -index 0f090a8..9c133e0 100644 ---- a/src/common.mk.in -+++ b/src/common.mk.in -@@ -32,7 +32,7 @@ OBJECTS = $(SOURCES:%.c=%.o) - all: - - %.a: -- ar r $@ $^ -+ $(AR) r $@ $^ - $(RANLIB) $@ - - %.o: %.c diff --git a/app-crypt/ophcrack/ophcrack-3.8.0.ebuild b/app-crypt/ophcrack/ophcrack-3.8.0-r1.ebuild index c74837410a94..2a8a1e16c775 100644 --- a/app-crypt/ophcrack/ophcrack-3.8.0.ebuild +++ b/app-crypt/ophcrack/ophcrack-3.8.0-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit desktop toolchain-funcs qmake-utils +inherit autotools desktop qmake-utils xdg DESCRIPTION="A time-memory-trade-off-cracker" HOMEPAGE="https://ophcrack.sourceforge.io/" @@ -12,15 +12,17 @@ SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${P}.tar.bz LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="debug qt5 +tables" +IUSE="gui +tables" DEPEND=" - dev-libs/openssl:0= + dev-libs/openssl:= dev-libs/expat net-libs/netwib - qt5? ( + gui? ( dev-qt/qtcharts:5 + dev-qt/qtcore:5 dev-qt/qtgui:5 + dev-qt/qtwidgets:5 )" RDEPEND=" ${DEPEND} @@ -29,22 +31,25 @@ BDEPEND=" app-arch/unzip virtual/pkgconfig" -PATCHES=( "${FILESDIR}"/ophcrack-ar.patch ) +PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch ) -src_configure() { - tc-export AR +src_prepare() { + default + eautoreconf +} +src_configure() { # bug #765229 - export PATH="$(qt5_get_bindir):${PATH}" + use gui && export PATH="$(qt5_get_bindir):${PATH}" - econf \ - $(use_enable debug) \ - $(use_enable qt5 gui) + econf $(use_enable gui) } src_install() { default - newicon src/gui/pixmaps/os.xpm ophcrack.xpm - make_desktop_entry "${PN}" OphCrack ophcrack + if use gui; then + newicon src/gui/pixmaps/os.xpm ophcrack.xpm + make_desktop_entry "${PN}" OphCrack ophcrack + fi } |