Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # $OpenBSD: Makefile,v 1.51 2016/09/01 10:53:27 jasper Exp $
  2. COMMENT = extremely fast password cracker
  3. DISTNAME = john-1.8.0
  4. REVISION = 0
  5. CATEGORIES = security
  6. HOMEPAGE = http://www.openwall.com/john/
  7. MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
  8. # GPLv2 & Public Domain
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB = c
  11. MASTER_SITES = ${HOMEPAGE}/j/
  12. WRKSRC = ${WRKDIST}/src
  13. MAKE_FLAGS = CC=${CC} AS=${CC} LD=${CC} \
  14. CFLAGS="${CFLAGS} -c" LDFLAGS="${LDFLAGS}" \
  15. OPT_NORMAL="" OPT_INLINE=""
  16. TEST_TARGET = check
  17. .if ${MACHINE_ARCH} == "i386"
  18. ALL_TARGET= openbsd-x86-any
  19. .elif ${MACHINE_ARCH} == "amd64"
  20. ALL_TARGET= openbsd-x86-64
  21. .elif ${MACHINE_ARCH} == "alpha"
  22. ALL_TARGET= openbsd-alpha
  23. .elif ${MACHINE_ARCH} == "powerpc"
  24. ALL_TARGET= openbsd-ppc32
  25. .elif ${MACHINE_ARCH} == "powerpc64"
  26. ALL_TARGET= openbsd-ppc64
  27. .elif ${MACHINE_ARCH} == "hppa"
  28. ALL_TARGET= openbsd-pa-risc
  29. .elif ${MACHINE_ARCH} == "sparc64"
  30. ALL_TARGET= openbsd-sparc64
  31. .else
  32. ALL_TARGET= generic
  33. .endif
  34. do-configure:
  35. ${SUBST_CMD} ${WRKSRC}/params.h
  36. do-install:
  37. @grep -h -v '^#!comment:' ${WRKDIST}/run/password.lst \
  38. /usr/share/dict/words | \
  39. ${WRKDIST}/run/unique ${WRKDIST}/run/words.lst
  40. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/john
  41. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/john
  42. ${INSTALL_DATA_DIR} ${PREFIX}/share/john
  43. ${INSTALL_PROGRAM} ${WRKDIST}/run/john ${PREFIX}/bin
  44. ${INSTALL_SCRIPT} ${WRKDIST}/run/mailer ${PREFIX}/bin
  45. @cd ${PREFIX}/bin && \
  46. ln -sf john unshadow && \
  47. ln -sf john unafs && \
  48. ln -sf john unique
  49. ${INSTALL_DATA} ${WRKDIST}/run/john.conf ${PREFIX}/share/examples/john
  50. ${INSTALL_DATA} ${WRKDIST}/doc/* ${PREFIX}/share/doc/john
  51. ${INSTALL_DATA} ${WRKDIST}/run/*.chr ${PREFIX}/share/john
  52. ${INSTALL_DATA} ${WRKDIST}/run/words.lst ${PREFIX}/share/john/password.lst
  53. .include <bsd.port.mk>