- Replace FLAVOR with SUBPACKAGE
- Respect CFLAGS, INSTALL_STRIP, Makefile cleanup, etc. - Bump PKGNAME From Alexandre Anriot <aanriot@atlantilde.com> (new MAINTAINER)
This commit is contained in:
parent
12b950cecc
commit
2da6daeaf1
@ -1,51 +1,71 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2005/02/11 19:46:22 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2005/05/22 09:34:39 alek Exp $
|
||||
|
||||
COMMENT= "parallelized login hacker"
|
||||
COMMENT-gui= "GTK frontend for hydra"
|
||||
|
||||
VERSION= 4.6
|
||||
DISTNAME= hydra-4.6-src
|
||||
PKGNAME= ${DISTNAME:S/-src//}
|
||||
PKGNAME= hydra-${VERSION}p0
|
||||
PKGNAME-gui= hydra-gui-${VERSION}
|
||||
CATEGORIES= security
|
||||
|
||||
HOMEPAGE= http://www.thc.org/
|
||||
HOMEPAGE= http://thc.org/thc-hydra/
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}/releases/ \
|
||||
${MASTER_SITE_PACKETSTORM:=groups/thc/}
|
||||
MAINTAINER= Alexandre Anriot <aanriot@atlantilde.com>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c crypto m ssl
|
||||
WANTLIB= c m
|
||||
|
||||
NO_REGRESS= Yes
|
||||
MASTER_SITES= ${HOMEPAGE}/releases/ \
|
||||
${MASTER_SITE_PACKETSTORM:=groups/thc/}
|
||||
|
||||
CONFIGURE_STYLE= gnu dest
|
||||
PSEUDO_FLAVORS= no_x11
|
||||
FLAVOR?=
|
||||
|
||||
MULTI_PACKAGES=
|
||||
SUBPACKAGE?=
|
||||
|
||||
CONFIGURE_STYLE=gnu dest
|
||||
|
||||
USE_GMAKE= yes
|
||||
MAKE_FLAGS= CC="${CC}" OPTS="${CFLAGS}"
|
||||
|
||||
post-extract:
|
||||
@chmod -R u+w ${WRKDIST}
|
||||
|
||||
MAKE_FLAGS= CC="${CC}" OPTS="${CFLAGS}"
|
||||
FAKE_FLAGS= INSTALL="${WRKINST}${PREFIX}/bin"
|
||||
|
||||
FLAVORS= no_x11
|
||||
FLAVOR?=
|
||||
NO_REGRESS= Yes
|
||||
|
||||
.if ${FLAVOR:L:Mno_x11}
|
||||
ALL_TARGET= hydra pw-inspector
|
||||
INSTALL_TARGET= install
|
||||
.else
|
||||
USE_X11= Yes
|
||||
BUILD_DEPENDS= ::devel/pkgconfig
|
||||
|
||||
MULTI_PACKAGES+=-gui
|
||||
|
||||
ALL_TARGET= all
|
||||
LIB_DEPENDS+= gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2 pangox-1.0.0.0::devel/pango
|
||||
WANTLIB+= iconv intl X11 Xext Xft freetype Xrender Xinerama Xcursor \
|
||||
fontconfig gmodule-2.0.0.0 gobject-2.0.0.0 pangoxft-1.0.0.0 \
|
||||
glib-2.0.0.0 pango-1.0.0.0 atk-1.0.0.0
|
||||
INSTALL_TARGET= xinstall
|
||||
|
||||
.if !defined(PACKAGING) || !empty(SUBPACKAGE)
|
||||
MODULES= devel/gettext
|
||||
LIB_DEPENDS= gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2
|
||||
.endif
|
||||
|
||||
post-configure:
|
||||
cd ${WRKSRC}/hydra-gtk && ./configure
|
||||
.endif
|
||||
|
||||
.if defined(PACKAGING) && !empty(SUBPACKAGE)
|
||||
RUN_DEPENDS= :hydra-${VERSION}*:security/hydra
|
||||
WANTLIB+= X11 Xext Xft freetype Xrender Xinerama Xcursor \
|
||||
fontconfig gmodule-2.0.0.0 gobject-2.0.0.0 pangoxft-1.0.0.0 \
|
||||
glib-2.0.0.0 pango-1.0.0.0 atk-1.0.0.0 pangox-1.0.0.0
|
||||
.else
|
||||
WANTLIB+= ssl crypto
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
${CHMOD} -R u+w ${WRKDIST}
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hydra
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/hydra
|
||||
|
@ -1,36 +1,53 @@
|
||||
--- Makefile.am.orig Fri Jan 7 14:46:53 2005
|
||||
+++ Makefile.am Fri Feb 11 20:32:41 2005
|
||||
@@ -22,14 +22,12 @@ OBJ = hydra-vnc.o hydra-pcnfs.o hydra-re
|
||||
+++ Makefile.am Mon May 16 17:40:19 2005
|
||||
@@ -2,7 +2,7 @@
|
||||
# Makefile for Hydra - (c) 2001-2005 by van Hauser / THC <vh@thc.org>
|
||||
#
|
||||
|
||||
-OPTS=-I. -Wall -O2
|
||||
+OPTS=-I. $(CFLAGS)
|
||||
# -ggdb -pedantic
|
||||
LIBS=-lm
|
||||
DIR=/bin
|
||||
@@ -21,8 +21,8 @@ OBJ = hydra-vnc.o hydra-pcnfs.o hydra-re
|
||||
hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.o\
|
||||
hydra-teamspeak.o \
|
||||
crc32.o d3des.o md4.o hydra-mod.o hydra.o
|
||||
BIN = hydra
|
||||
-BIN = hydra
|
||||
-BINS = $(BIN) xhydra pw-inspector hydra.exe pw-inspector.exe
|
||||
+BINS = $(BIN) hydra-gtk/src/xhydra pw-inspector
|
||||
+BIN = hydra pw-inspector
|
||||
+BINS = xhydra
|
||||
|
||||
EXTRA_DIST = README README.arm README.palm CHANGES TODO INSTALL LICENSE.GNU LICENCE.HYDRA \
|
||||
hydra-mod.h hydra.h crc32.h d3des.h md4.h
|
||||
|
||||
all: pw-inspector hydra xhydra
|
||||
- @echo
|
||||
- @echo Now type "make install"
|
||||
@@ -32,13 +32,13 @@ all: pw-inspector hydra xhydra
|
||||
@echo Now type "make install"
|
||||
|
||||
hydra: $(OBJ)
|
||||
$(CC) $(OPTS) $(LIBS) -o $(BIN) $(OBJ) $(LIB) $(XLIBS) $(XLIBPATHS)
|
||||
@@ -38,7 +36,7 @@ hydra: $(OBJ)
|
||||
- $(CC) $(OPTS) $(LIBS) -o $(BIN) $(OBJ) $(LIB) $(XLIBS) $(XLIBPATHS)
|
||||
+ $(CC) $(OPTS) $(LIBS) -o hydra $(OBJ) $(LIB) $(XLIBS) $(XLIBPATHS)
|
||||
@echo
|
||||
@echo If men could get pregnant, abortion would be a sacrament
|
||||
@echo
|
||||
|
||||
xhydra:
|
||||
- -cd hydra-gtk && ./make_xhydra.sh
|
||||
+ -cd hydra-gtk && ./configure && $(MAKE)
|
||||
+ -cd hydra-gtk/src && $(MAKE)
|
||||
|
||||
pw-inspector: pw-inspector.c
|
||||
-$(CC) $(OPTS) -o pw-inspector pw-inspector.c
|
||||
@@ -51,7 +49,7 @@ strip: hydra
|
||||
@@ -49,9 +49,11 @@ pw-inspector: pw-inspector.c
|
||||
strip: hydra
|
||||
-$(STRIP) $(BINS) 2> /dev/null
|
||||
|
||||
install: strip
|
||||
-cp $(BINS) $(PREFIX)$(DIR) 2> /dev/null
|
||||
-install: strip
|
||||
- -cp $(BINS) $(PREFIX)$(DIR) 2> /dev/null
|
||||
- -chmod 755 $(PREFIX)$(DIR)/$(BIN) $(PREFIX)$(DIR)/pw-inspector $(PREFIX)$(DIR)/xhydra 2> /dev/null
|
||||
+ -chmod 755 $(PREFIX)$(DIR)/$(BIN) $(PREFIX)$(DIR)/pw-inspector $(PREFIX)$(DIR)/hydra-gtk/src/xhydra 2> /dev/null
|
||||
+install:
|
||||
+ $(BSD_INSTALL_PROGRAM) $(BIN) $(PREFIX)$(DIR) 2> /dev/null
|
||||
+
|
||||
+xinstall: install
|
||||
+ cd hydra-gtk/src && $(BSD_INSTALL_PROGRAM) $(BINS) $(PREFIX)$(DIR) 2> /dev/null
|
||||
|
||||
clean:
|
||||
rm -rf hydra pw-inspector xhydra pw-inspector.exe hydra.exe *.o core *~ Makefile.in Makefile dev_rfc hydra.restore arm/*.ipk arm/ipkg/usr/bin/* hydra-gtk/src/*.o hydra-gtk/src/xhydra hydra-gtk/stamp-h hydra-gtk/config.status hydra-gtk/errors hydra-gtk/config.log hydra-gtk/src/.deps hydra-gtk/src/Makefile hydra-gtk/Makefile
|
||||
|
@ -1,5 +1,6 @@
|
||||
$OpenBSD: patch-configure,v 1.4 2005/05/22 09:34:39 alek Exp $
|
||||
--- configure.orig Tue Feb 1 15:50:26 2005
|
||||
+++ configure Fri Feb 11 20:32:41 2005
|
||||
+++ configure Tue May 10 06:32:47 2005
|
||||
@@ -206,16 +206,9 @@ fi
|
||||
|
||||
echo
|
||||
|
@ -1,15 +1,17 @@
|
||||
Hydra is a multi-protocol, parallelized authentication brute forcer.
|
||||
|
||||
By assigning many parallel tasks, remote login brute forcing can be
|
||||
accelerated SIGNIFICANTLY, however it depends on the protocol.
|
||||
The fastest is generally POP3, then FTP, then Telnet, and the least
|
||||
IMAP.
|
||||
accelerated SIGNIFICANTLY, however it depends on the protocol. The
|
||||
fastest is generally POP3, then FTP, then Telnet, and the least IMAP.
|
||||
|
||||
Experiment with the task option (-t) to speed things up. The higher,
|
||||
the faster (but too high, and it disables the service). To prevent
|
||||
disabling you can now use the -g option for "slow-starts".
|
||||
Experiment with the task option (-t) to speed things up. The higher, the
|
||||
faster (but too high, and it disables the service). To prevent disabling
|
||||
you can now use the -g option for "slow-starts".
|
||||
|
||||
Currently this tool supports:
|
||||
TELNET, FTP, HTTP, HTTPS, HTTP-PROXY, LDAP, SMB, SMBNT, MS-SQL, MYSQL, REXEC,
|
||||
SOCKS5, VNC, POP3, IMAP, NNTP, PCNFS, ICQ, SAP/R3, Cisco auth, Cisco enable,
|
||||
Cisco AAA.
|
||||
TELNET, FTP, HTTP, HTTPS, HTTP-PROXY, LDAP, SMB, SMBNT, MS-SQL, MYSQL,
|
||||
REXEC, SOCKS5, VNC, POP3, IMAP, NNTP, PCNFS, ICQ, SAP/R3, Cisco auth,
|
||||
Cisco enable, Cisco AAA.
|
||||
|
||||
Flavors:
|
||||
* no_x11 - do not build GTK frontend.
|
||||
|
1
security/hydra/pkg/DESCR-gui
Normal file
1
security/hydra/pkg/DESCR-gui
Normal file
@ -0,0 +1 @@
|
||||
This package contains GTK frontend for hydra.
|
@ -1,2 +0,0 @@
|
||||
@comment $OpenBSD: PFRAG.no-no_x11,v 1.1 2005/02/11 19:46:22 sturm Exp $
|
||||
bin/xhydra
|
@ -1,6 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.5 2005/02/11 19:46:22 sturm Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.6 2005/05/22 09:34:39 alek Exp $
|
||||
bin/hydra
|
||||
bin/pw-inspector
|
||||
share/doc/hydra/
|
||||
share/doc/hydra/README
|
||||
!%%no_x11%%
|
||||
|
2
security/hydra/pkg/PLIST-gui
Normal file
2
security/hydra/pkg/PLIST-gui
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST-gui,v 1.1 2005/05/22 09:34:39 alek Exp $
|
||||
bin/xhydra
|
Loading…
Reference in New Issue
Block a user