pkcrack-1.2.2-r1.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="6"
  4. inherit toolchain-funcs
  5. DESCRIPTION="PkZip cipher breaker"
  6. HOMEPAGE="http://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack.html"
  7. SRC_URI="http://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack/${P}.tar.gz"
  8. LICENSE="pkcrack"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86"
  11. IUSE="test"
  12. DEPEND="test? ( app-arch/zip[crypt] )"
  13. RDEPEND="!<app-text/html-xml-utils-5.3"
  14. DOCS=(
  15. ../doc/KNOWN_BUGS
  16. ../doc/appnote.iz.txt
  17. ../doc/README.W32
  18. ../doc/pkzip.ps.gz
  19. ../doc/CHANGES
  20. ../doc/LIESMICH
  21. ../doc/README.html
  22. ../doc/README
  23. )
  24. S="${WORKDIR}/${P}/src"
  25. src_prepare() {
  26. default
  27. sed -i -e "s/^CC=.*/CC=$(tc-getCC)/" \
  28. -e "/^CFLAGS=.*/d" \
  29. -e "s/CFLAGS/LDFLAGS/" \
  30. Makefile
  31. sed -i -e "s:void main:int main:" *.c
  32. }
  33. src_test() {
  34. cd "${S}/../test"
  35. make CC="$(tc-getCC)" all
  36. }
  37. src_install() {
  38. einstalldocs
  39. dobin pkcrack zipdecrypt findkey makekey
  40. newbin extract "$PN-extract"
  41. }
  42. pkg_postinst() {
  43. ewarn "Due to file collision, extract utility was renamed to $PN-extract,"
  44. ewarn "see bug#247394"
  45. }