diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-02-16 00:34:07 +0530 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-03-16 11:26:47 +0200 |
commit | 89a8a035076cc7ea38d3b3a3ecbbe10af1df438f (patch) | |
tree | cfe9b6997737b259ff1f0c13900f3c5785ea6431 /app-crypt | |
parent | dev-db/sqlmap: add 1.8.2 (diff) | |
download | gentoo-89a8a035076cc7ea38d3b3a3ecbbe10af1df438f.tar.gz gentoo-89a8a035076cc7ea38d3b3a3ecbbe10af1df438f.tar.bz2 gentoo-89a8a035076cc7ea38d3b3a3ecbbe10af1df438f.zip |
app-crypt/pkcrack: Fix return with no value, in function
And update EAPI 7 -> 8
Closes: https://bugs.gentoo.org/924227
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35352
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/pkcrack/files/pkcrack-1.2.2-gcc14-build.patch | 12 | ||||
-rw-r--r-- | app-crypt/pkcrack/pkcrack-1.2.2-r2.ebuild | 56 |
2 files changed, 68 insertions, 0 deletions
diff --git a/app-crypt/pkcrack/files/pkcrack-1.2.2-gcc14-build.patch b/app-crypt/pkcrack/files/pkcrack-1.2.2-gcc14-build.patch new file mode 100644 index 000000000000..2f37f1aab49b --- /dev/null +++ b/app-crypt/pkcrack/files/pkcrack-1.2.2-gcc14-build.patch @@ -0,0 +1,12 @@ +Bug: https://bugs.gentoo.org/924227 +--- a/src/zdmain.c ++++ b/src/zdmain.c +@@ -53,7 +53,7 @@ char *c; + break; + default: + fprintf( stderr, "Usage: %s {<password> | <key0> <key1> <key2>} <cryptedzipfile> <plainzipfile>\n", argv[0] ); +- return; ++ return 0; + } + + zipdecrypt( argv[argc-2], argv[argc-1], key0, key1, key2 ); diff --git a/app-crypt/pkcrack/pkcrack-1.2.2-r2.ebuild b/app-crypt/pkcrack/pkcrack-1.2.2-r2.ebuild new file mode 100644 index 000000000000..5136a4111629 --- /dev/null +++ b/app-crypt/pkcrack/pkcrack-1.2.2-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit toolchain-funcs + +DESCRIPTION="PkZip cipher breaker" +HOMEPAGE="https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack.html" +SRC_URI="https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack/${P}.tar.gz" + +LICENSE="pkcrack" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="!<app-text/html-xml-utils-5.3" +BDEPEND="test? ( app-arch/zip[crypt] )" + +DOCS=( + doc/KNOWN_BUGS + doc/appnote.iz.txt + doc/README.W32 + doc/pkzip.ps.gz + doc/CHANGES + doc/LIESMICH + doc/README.html + doc/README +) + +PATCHES=( + "${FILESDIR}/${P}-build.patch" + "${FILESDIR}/${P}-gcc14-build.patch" +) + +src_compile() { + cd src + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" all +} + +src_test() { + cd test + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" all +} + +src_install() { + einstalldocs + cd src + dobin pkcrack zipdecrypt findkey makekey + newbin extract "${PN}-extract" +} + +pkg_postinst() { + ewarn "Due to file collision, extract utility was renamed to ${PN}-extract," + ewarn "see bug#247394" +} |