ports/58164: Fix security/hydra build on -CURRENT
Sergey A. Osokin
osa at FreeBSD.org
Sat Oct 18 21:00:18 UTC 2003
The following reply was made to PR ports/58164; it has been noted by GNATS.
From: "Sergey A. Osokin" <osa at FreeBSD.org>
To: Laurent LEVIER <llevier at argosnet.com>
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: ports/58164: Fix security/hydra build on -CURRENT
Date: Sun, 19 Oct 2003 00:53:52 +0400
--J9fO++IT6debZ01Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, Oct 18, 2003 at 10:01:11AM +0200, Laurent LEVIER wrote:
> At 23:41 17/10/2003, Sergey A. Osokin wrote:
> >On Fri, Oct 17, 2003 at 07:15:40PM +0200, Laurent LEVIER wrote:
> >>
> >> I am not familiar with FreeBSD interface. I feel this document is to
> >> declare a bug report on Hydra.
> >> BTW: I must update the port to have Hydra 2.4 that has been released
> >> recently.
> >>
> >> I just have a problem, I dont have a FreeBSD 5.x machine to be able to
> >> check/correct the problem.
> >>
> >> What happen in such cases?
> >
> >Just look at bento' build log:
> >http://bento.freebsd.org/errorlogs/i386-5-latest/hydra-2.2.log
>
> Ok, I understand the problem now.
>
> Patch looks correct and so patch proposal is approved.
So, I found another problems with your port.
It don't respect to ${CC}/${CFLAGS}/${PREFIX} flags.
Here is a patch, please review/approve.
--
Rgdz, /"\ ASCII RIBBON CAMPAIGN
Sergey Osokin aka oZZ, \ / AGAINST HTML MAIL
http://ozz.pp.ru/ X AND NEWS
/ \
--J9fO++IT6debZ01Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-hydra
Index: ports/security/hydra/Makefile
===================================================================
RCS file: /home/pcvs/ports/security/hydra/Makefile,v
retrieving revision 1.3
diff -u -u -r1.3 Makefile
--- ports/security/hydra/Makefile 16 Oct 2003 01:26:37 -0000 1.3
+++ ports/security/hydra/Makefile 18 Oct 2003 20:49:58 -0000
@@ -8,6 +8,7 @@
PORTNAME= hydra
PORTVERSION= 2.2
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.thc.org/releases/ \
${MASTER_SITE_PACKETSTORM}
@@ -16,17 +17,15 @@
MAINTAINER= llevier at argosnet.com
COMMENT= Bruce Force Attack Utility working on multiple network services
-.include <bsd.port.pre.mk>
-
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
-.if ${OSVERSION} >= 501000
-BROKEN= "Does not compile"
-.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|CC = gcc||; \
+ s|-O2|${CFLAGS}|' \
+ ${WRKSRC}/Makefile.am
-.if !target(post-install) && (${PORTNAME} == "hydra")
-post-install:
- @${STRIP_CMD} ${PREFIX}/bin/hydra
-.endif
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/hydra ${PREFIX}/bin
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--J9fO++IT6debZ01Z--
More information about the freebsd-ports-bugs
mailing list