openbsd-ports/security/hydra/Makefile

70 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.30 2007/01/04 20:19:54 steven Exp $
COMMENT-main= "parallelized login hacker"
COMMENT-gui= "GTK frontend for hydra"
VERSION= 4.6
DISTNAME= hydra-4.6-src
PKGNAME-main= hydra-${VERSION}p3
PKGNAME-gui= hydra-gui-${VERSION}p6
CATEGORIES= security
HOMEPAGE= http://thc.segfault.net/thc-hydra/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m
MASTER_SITES= ${MASTER_SITE_PACKETSTORM:=groups/thc/}
PSEUDO_FLAVORS= no_x11
FLAVOR?=
MULTI_PACKAGES= -main
CONFIGURE_STYLE=gnu dest
USE_GMAKE= Yes
NO_REGRESS= Yes
.if ${FLAVOR:L:Mno_x11}
ALL_TARGET= hydra pw-inspector
INSTALL_TARGET= install
.else
USE_X11= Yes
MULTI_PACKAGES+=-gui
ALL_TARGET= all
INSTALL_TARGET= xinstall
MODULES= devel/gettext
post-configure:
cd ${WRKSRC}/hydra-gtk && ./configure
.endif
LIB_DEPENDS-main=
RUN_DEPENDS-main=
WANTLIB-main= ${WANTLIB} ssl crypto
LIB_DEPENDS-gui=gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
${MODGETTEXT_LIB_DEPENDS}
RUN_DEPENDS-gui=:hydra-${VERSION}*:security/hydra,-main \
${MODGETTEXT_RUN_DEPENDS}
WANTLIB-gui= ${WANTLIB} X11 Xext Xrender atk-1.0 freetype fontconfig z \
gmodule-2.0 gobject-2.0 glib-2.0 glitz png \
pango-1.0 pangocairo-1.0 cairo \
pangoft2-1.0
post-extract:
${CHMOD} -R u+w ${WRKDIST}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hydra
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/hydra
.include <bsd.port.mk>