openbsd-ports/security/hydra/Makefile

80 lines
1.8 KiB
Makefile
Raw Normal View History

2013-03-11 07:35:43 -04:00
# $OpenBSD: Makefile,v 1.50 2013/03/11 11:41:25 espie Exp $
COMMENT-main= parallelized login hacker
COMMENT-gui= GTK frontend for hydra
VERSION= 7.1
DISTNAME= hydra-${VERSION}-src
2010-10-11 04:11:24 -04:00
PKGNAME-main= hydra-${VERSION}
PKGNAME-gui= hydra-gui-${VERSION}
CATEGORIES= security
REVISION-main = 0
2009-01-05 17:10:06 -05:00
HOMEPAGE= http://thc.org/thc-hydra/
# GPLv3 + restrictions in LICENCE.HYDRA
PERMIT_PACKAGE_CDROM= no charge
PERMIT_PACKAGE_FTP= Yes
2008-02-02 04:30:54 -05:00
WANTLIB= c m
MASTER_SITES = http://www.thc.org/releases/
MASTER_SITES += ${MASTER_SITE_PACKETSTORM:=groups/thc/}
PSEUDO_FLAVORS= no_x11
FLAVOR?=
2006-11-25 03:55:18 -05:00
MULTI_PACKAGES= -main
CONFIGURE_STYLE=gnu dest
2006-11-25 03:55:18 -05:00
USE_GMAKE= Yes
2013-03-11 07:35:43 -04:00
NO_TEST= Yes
MAKE_FLAGS= CC=${CC}
CFLAGS += -I${LOCALBASE}/include
.if ${FLAVOR:Mno_x11}
ALL_TARGET= hydra pw-inspector
do-install:
cd ${WRKBUILD}; $(INSTALL_PROGRAM) hydra pw-inspector $(PREFIX)/bin
.else
MULTI_PACKAGES+=-gui
ALL_TARGET= all
MODULES= devel/gettext
post-configure:
cd ${WRKSRC}/hydra-gtk && ./configure
.endif
LIB_DEPENDS-main= databases/mysql,-main \
databases/postgresql,-main \
devel/libidn \
devel/pcre \
security/libssh
2006-11-25 03:55:18 -05:00
RUN_DEPENDS-main=
WANTLIB-main= c crypto idn m mysqlclient pcre pq ssh ssl
2010-11-22 04:34:10 -05:00
LIB_DEPENDS-gui=x11/gtk+2 \
2006-11-25 03:55:18 -05:00
${MODGETTEXT_LIB_DEPENDS}
2010-11-22 04:34:10 -05:00
RUN_DEPENDS-gui=hydra-${VERSION}:security/hydra,-main \
2006-11-25 03:55:18 -05:00
${MODGETTEXT_RUN_DEPENDS}
WANTLIB-gui= ${WANTLIB} GL X11 Xcomposite Xcursor Xdamage Xfixes \
2008-02-02 04:30:54 -05:00
Xext Xi Xinerama Xrandr Xrender atk-1.0 freetype fontconfig \
2010-07-30 19:13:30 -04:00
gdk-x11-2.0 gdk_pixbuf-2.0 gtk-x11-2.0 \
2010-10-11 04:11:24 -04:00
gio-2.0 gmodule-2.0 gobject-2.0 glib-2.0 gthread-2.0 png \
2009-01-05 17:10:06 -05:00
pango-1.0 pangocairo-1.0 pixman-1 cairo z expat \
2010-07-30 19:13:30 -04:00
pangoft2-1.0 pthread pthread-stubs xcb xcb-render \
xcb-shm
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>