summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2011-03-04 03:41:03 +0000
committerMartin Wilke <miwi@FreeBSD.org>2011-03-04 03:41:03 +0000
commita99b3666c5092db4589ab1353b55b489e2a89a09 (patch)
treea7e461bb515b2352bc5e5b22d68ddcb902295056 /security
parent- Update to 4.4 (diff)
- Update to 6.1
PR: 154905 Submitted by: Ruslan Mahmatkhanov <cvs-src@yandex.ru> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=270229
Diffstat (limited to 'security')
-rw-r--r--security/hydra/Makefile22
-rw-r--r--security/hydra/distinfo4
-rw-r--r--security/hydra/files/patch-Makefile.am11
3 files changed, 18 insertions, 19 deletions
diff --git a/security/hydra/Makefile b/security/hydra/Makefile
index 6672154ee214..2bb934df05c5 100644
--- a/security/hydra/Makefile
+++ b/security/hydra/Makefile
@@ -7,10 +7,9 @@
#
PORTNAME= hydra
-PORTVERSION= 5.9
+PORTVERSION= 6.1
CATEGORIES= security
MASTER_SITES= http://freeworld.thc.org/releases/
-MASTER_SITE_SUBDIR= groups/thc
EXTRACT_SUFX= -src.tar.gz
MAINTAINER= llevier@argosnet.com
@@ -19,16 +18,17 @@ COMMENT= Brute force attack utility working on multiple network services
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
NO_LATEST_LINK= yes
-PLIST_FILES= bin/hydra bin/xhydra
+PLIST_FILES= bin/hydra
GNU_CONFIGURE= yes
USE_GMAKE= yes
-USE_GNOME= gtk20
USE_OPENSSL= yes
+WANT_GNOME= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
OPTIONS= FIREBIRD "Enable firebird support" off \
SSH "Enable ssh support" off \
- SVN "Enable subversion support" off
+ SVN "Enable subversion support" off \
+ X11 "Install xhydra" off
.include <bsd.port.pre.mk>
@@ -42,12 +42,22 @@ LIB_DEPENDS+= ssh.4:${PORTSDIR}/security/libssh
LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion
.endif
+.if defined(WITH_X11)
+USE_GNOME= gtk20
+PLIST_FILES+= bin/xhydra
+.else
+CONFIGURE_ARGS+= --disable-xhydra
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|CC = gcc||; \
s|-O2|${CFLAGS}|; s|md4\..||g' \
${WRKSRC}/Makefile.am
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/hydra ${WRKSRC}/hydra-gtk/src/xhydra ${PREFIX}/bin
+ @${INSTALL_PROGRAM} ${WRKSRC}/hydra ${PREFIX}/bin
+.if defined(WITH_X11)
+ @${INSTALL_PROGRAM} ${WRKSRC}/hydra-gtk/src/xhydra ${PREFIX}/bin
+.endif
.include <bsd.port.post.mk>
diff --git a/security/hydra/distinfo b/security/hydra/distinfo
index 5aebdb24ccdf..6576d1f14093 100644
--- a/security/hydra/distinfo
+++ b/security/hydra/distinfo
@@ -1,2 +1,2 @@
-SHA256 (hydra-5.9-src.tar.gz) = 66023f94460abe76e76c1c6b187d44e82bafafb4c517314261bbd34429f913a7
-SIZE (hydra-5.9-src.tar.gz) = 423995
+SHA256 (hydra-6.1-src.tar.gz) = 85fbcf53bc7d8ae99a8bd31dd09810abd9cf9397679a94aea52cd1b1c8e06ac0
+SIZE (hydra-6.1-src.tar.gz) = 432515
diff --git a/security/hydra/files/patch-Makefile.am b/security/hydra/files/patch-Makefile.am
deleted file mode 100644
index 7f0d9693e141..000000000000
--- a/security/hydra/files/patch-Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.am.orig 2010-09-29 15:19:43.000000000 +0400
-+++ Makefile.am 2010-10-24 22:35:49.000000000 +0400
-@@ -45,7 +45,7 @@
- @echo
-
- xhydra:
-- -cd hydra-gtk && ./make_xhydra.sh
-+ -cd hydra-gtk && sh make_xhydra.sh
-
- pw-inspector: pw-inspector.c
- -$(CC) $(OPTS) -o pw-inspector pw-inspector.c