diff options
Diffstat (limited to 'app-crypt/pkcrack')
-rw-r--r-- | app-crypt/pkcrack/Manifest | 3 | ||||
-rw-r--r-- | app-crypt/pkcrack/metadata.xml | 11 | ||||
-rw-r--r-- | app-crypt/pkcrack/pkcrack-1.2.2-r1.ebuild | 55 |
3 files changed, 69 insertions, 0 deletions
diff --git a/app-crypt/pkcrack/Manifest b/app-crypt/pkcrack/Manifest new file mode 100644 index 000000000000..d3072f582553 --- /dev/null +++ b/app-crypt/pkcrack/Manifest @@ -0,0 +1,3 @@ +DIST pkcrack-1.2.2.tar.gz 174208 BLAKE2B fed476a9d681bb9e565d05ef636f58d6643c4f8897725c56b66e64123e9435f9bf28e550f0249794e81e9f968683ab81c19baa1ee51478e1b91509e8e318725a SHA512 5c64fb9ae09dedc70fb20cd689f432059fcd64f689072b529b4045c3241760fee273ee921da081bc08be2e0594d27101c5d89d99cb2b84e16f80c011419b7200 +EBUILD pkcrack-1.2.2-r1.ebuild 1108 BLAKE2B 4aea9ef44695b89bf44baa0a795689e479610a308e34ba7a92a8d6dadfaf90acd76c5a44fc39c06b414bf571be6c67f81ace4c2b0ec1436ef75852b8ab231ce2 SHA512 1dd51a17e71b6f47fa04561f1235bc5628a77132a88812283b26a51593d6048d68cda2ba139af2ed9f08f9f8bb2e041f3bf5c7beecb9da5f4a9aabcaa2b91f57 +MISC metadata.xml 370 BLAKE2B 1d584e6fa52911c3d0f099c44193eeb00261e2f46f99dd2924744e9f4ce4af84bddc72b85415f85e3ca5ad11612914bcc022e494b9c4c00a5e95f8c1b5f1d72d SHA512 39a268538a1a2d5932b5295c4727c8769e4648cb94905ccead6b3941a7e8752b3992403f7623497267334f697478dc0db355e42bf2857b415f8ae06baa99d492 diff --git a/app-crypt/pkcrack/metadata.xml b/app-crypt/pkcrack/metadata.xml new file mode 100644 index 000000000000..2507c03b02ab --- /dev/null +++ b/app-crypt/pkcrack/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>crypto@gentoo.org</email> + <name>Crypto</name> +</maintainer> +<longdescription> +pkcrack is a password cracking program for zip files. It works using a plain text cipher attack. +</longdescription> +</pkgmetadata> diff --git a/app-crypt/pkcrack/pkcrack-1.2.2-r1.ebuild b/app-crypt/pkcrack/pkcrack-1.2.2-r1.ebuild new file mode 100644 index 000000000000..251eb649d276 --- /dev/null +++ b/app-crypt/pkcrack/pkcrack-1.2.2-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +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" + +DEPEND="test? ( app-arch/zip[crypt] )" +RDEPEND="!<app-text/html-xml-utils-5.3" + +DOCS=( + ../doc/KNOWN_BUGS + ../doc/appnote.iz.txt + ../doc/README.W32 + ../doc/pkzip.ps.gz + ../doc/CHANGES + ../doc/LIESMICH + ../doc/README.html + ../doc/README +) + +S="${WORKDIR}/${P}/src" + +src_prepare() { + default + sed -i -e "s/^CC=.*/CC=$(tc-getCC)/" \ + -e "/^CFLAGS=.*/d" \ + -e "s/CFLAGS/LDFLAGS/" \ + Makefile + sed -i -e "s:void main:int main:" *.c +} + +src_test() { + cd "${S}/../test" + make CC="$(tc-getCC)" all +} + +src_install() { + einstalldocs + 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" +} |