Files
ports/security/hydra/Makefile
Fukang Chen f76aa00290 Mk/bsd.options.desc.mk: Add shared version control OPTIONS & descriptions
- Add CVS description
- Add DARCS description
- Add GIT description
- Add MERCURIAL description
- Add PERFORCE description
- Rename SVN to SUBVERSION

devel/anjuta:
    - Rename OPTION SVN to SUBVERSION
    - Sort OPTIONS_DEFINE and OPTIONS_DEFAULT
    - Change SUBVERSION_DESC to use the default description

devel/git:
    - Rename OPTION P4 to PERFORCE
    - Rename OPTION SVN to SUBVERSION
    - Change PERFORCE_DESC to use the default description

devel/ocaml-opam:
    - Rename OPTION HG to MERCURIAL
    - Sort OPTIONS_DEFINE and OPTIONS_DEFAULT
    - Change {DARCS,GIT,MERCURIAL}_DESC to use the default description

devel/thunar-vcs-plugin:
    - Rename OPTION SVN to SUBVERSION
    - Sort OPTIONS_DEFINE
    - Change GIT_DESC to use the default description

devel/viewvc-devel:
    - Rename OPTION SVN to SUBVERSION
    - Sort OPTIONS_DEFINE, OPTIONS_DEFAULT and OPTIONS_SINGLE

net-mgmt/observium:
    - Rename OPTION SVN to SUBVERSION

net-mgmt/rancid3:
    - Rename OPTION SVN to SUBVERSION
    - Sort OPTIONS_SINGLE_SCM
    - Change {CVS,GIT,SUBVERSION}_DESC to use the default description

ports-mgmt/portshaker:
    - Rename OPTION SVN to SUBVERSION
    - Rename HG to MERCURIAL
    - Sort OPTIONS_DEFINE
    - Change {GIT,MERCURIAL}_DESC to use the default description

security/hydra:
    - Rename OPTION SVN to SUBVERSION

security/medusa:
    - Rename OPTION SVN to SUBVERSION
    - Sort OPTIONS_DEFINE

shells/scponly:
    - Rename OPTION SVN to SUBVERSION
    - Sort OPTIONS_DEFINE
    - Typo fix in SVNSERVE_DESC

www/trac-devel:
    - Rename OPTION SVN to SUBVERSION
    - Sort OPTIONS_DEFINE, OPTIONS_DEFAULT and OPTIONS_MULTI_DATABASE
    - Change {GIT,SUBVERSION}_DESC to use the default description

Reviewed by:	koobs, adamw, dvl, garga, hannes_mehnert.org, rm, dbaio, romain
Approved by:	koobs (ports, mentor)
Differential Revision:	https://reviews.freebsd.org/D17459
MFH:		No (OPTION description updates)
2021-06-30 05:09:36 +00:00

66 lines
2.0 KiB
Makefile

# Created by: Laurent LEVIER <llevier@argosnet.com>
PORTNAME= hydra
DISTVERSIONPREFIX=v
DISTVERSION= 9.2
PORTREVISION= 1
CATEGORIES= security
MAINTAINER= rm@FreeBSD.org
COMMENT= Brute force attack utility working on multiple network services
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libidn.so:dns/libidn \
libpcre.so:devel/pcre \
libsasl2.so:security/cyrus-sasl2
USES= gmake localbase ssl
USE_GITHUB= yes
GH_ACCOUNT= vanhauser-thc
GH_PROJECT= thc-hydra
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ssl=${OPENSSLINC} \
--with-ssl-lib=${OPENSSLLIB}
PLIST_FILES= bin/hydra bin/pw-inspector bin/dpl4hydra.sh bin/hydra-wizard.sh \
man/man1/hydra.1.gz man/man1/pw-inspector.1.gz
OPTIONS_DEFINE= FIREBIRD SSH SUBVERSION X11
OPTIONS_DEFAULT=SSH
OPTIONS_EXCLUDE=NLS DOCS
FIREBIRD_USES= firebird
SUBVERSION_LIB_DEPENDS= libsvn_client-1.so:devel/subversion
SSH_LIB_DEPENDS= libssh.so.4:security/libssh
X11_USES= gettext gnome pkgconfig
X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
X11_USE= gnome=atk,cairo,gdkpixbuf2,glib20,gtk20,pango
X11_PLIST_FILES= bin/xhydra man/man1/xhydra.1.gz
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT:Mlibressl*}
IGNORE= detected LibreSSL (missing RSA_get0_key and others)
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|CC=gcc||; s|-O3|${CFLAGS}|;' \
${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.unix
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hydra ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/pw-inspector ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/dpl4hydra.sh ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/hydra-wizard.sh ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/hydra.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/pw-inspector.1 ${STAGEDIR}${MANPREFIX}/man/man1
post-install-X11-on:
${INSTALL_PROGRAM} ${WRKSRC}/hydra-gtk/src/xhydra ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xhydra.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.post.mk>