Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # $OpenBSD: Makefile,v 1.57 2017/02/28 12:47:56 benoit Exp $
  2. COMMENT-main= parallelized network logon cracker
  3. COMMENT-gui= GTK frontend for hydra
  4. VERSION= 8.4
  5. PKGNAME-main= hydra-${VERSION}
  6. PKGNAME-gui= hydra-gui-${VERSION}
  7. CATEGORIES= security
  8. GH_ACCOUNT = vanhauser-thc
  9. GH_PROJECT = thc-hydra
  10. GH_TAGNAME = v${VERSION}
  11. HOMEPAGE= https://thc.org/thc-hydra/
  12. # AGPLv3 (GNU Affero Public License)
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WANTLIB= c z
  15. PSEUDO_FLAVORS= no_x11
  16. FLAVOR?=
  17. MULTI_PACKAGES= -main
  18. CONFIGURE_STYLE=gnu
  19. USE_GMAKE= Yes
  20. NO_TEST= Yes
  21. MAKE_FLAGS= CC=${CC}
  22. CONFIGURE_ARGS = --with-ssl=prefix="/usr/include" \
  23. --with-ssl-lib=prefix="/usr/lib" \
  24. --prefix=${LOCALBASE}
  25. .if ${FLAVOR:Mno_x11}
  26. ALL_TARGET= hydra pw-inspector
  27. .else
  28. MULTI_PACKAGES+=-gui
  29. ALL_TARGET= all
  30. .endif
  31. LIB_DEPENDS-main= databases/mariadb,-main \
  32. databases/postgresql,-main \
  33. devel/libidn \
  34. devel/pcre \
  35. security/libssh
  36. RUN_DEPENDS-main=
  37. WANTLIB-main= ${WANTLIB} m crypto curses idn mysqlclient pcre pq ssh ssl
  38. LIB_DEPENDS-gui=x11/gtk+2
  39. RUN_DEPENDS-gui=${PKGPATH},-main
  40. WANTLIB-gui= X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama \
  41. Xrandr Xrender atk-1.0 cairo fontconfig freetype gdk-x11-2.0 \
  42. gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0 gtk-x11-2.0 \
  43. pango-1.0 pangocairo-1.0 pangoft2-1.0 intl ${WANTLIB}
  44. post-install:
  45. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hydra
  46. ${INSTALL_DATA} ${WRKSRC}/{README,LICENSE} ${PREFIX}/share/doc/hydra
  47. ${INSTALL_DATA} ${WRKSRC}/{README,LICENSE} ${PREFIX}/share/doc/hydra
  48. mv ${PREFIX}/etc/* ${PREFIX}/share/doc/hydra/ && rm -r ${PREFIX}/etc
  49. .include <bsd.port.mk>