app-crypt/pkcrack - 1.2.2 (gentoo)

Search

Install

Install this version:

emerge -a =app-crypt/pkcrack-1.2.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-crypt/pkcrack-1.2.2

Or alternatively:

emerge --autounmask-write -a =app-crypt/pkcrack-1.2.2

Package Information

Description:
PkZip cipher breaker
Homepage:
https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack.html
License:
pkcrack

Ebuild Details

Version EAPI Keywords Slot
1.2.2 8 ~amd64 ~ppc ~x86 0
View Raw Ebuild
# 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 || die
	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" all
}

src_test() {
	cd test || die
	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" all
}

src_install() {
	einstalldocs
	cd src || die
	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"
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-crypt/pkcrack | euse -E <flag> -p app-crypt/pkcrack | euse -D <flag> -p app-crypt/pkcrack

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

!<app-text/html-xml-utils-5.3

BDEPEND

test? ( app-arch/zip[crypt] )

Manifest for 1.2.2

Type File Size Source URLs
DIST pkcrack-1.2.2.tar.gz 174208 bytes https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack/pkcrack-1.2.2.tar.gz