File:  [cvs.NetBSD.org] / pkgsrc / security / hydra / Makefile
Revision 1.44: download - view: text, annotated - select for diffs
Sat Jan 26 21:38:46 2013 UTC (11 years, 10 months ago) by adam
Branches: MAIN
CVS tags: HEAD
Revbump after graphics/jpeg and textproc/icu

# $NetBSD: Makefile,v 1.44 2013/01/26 21:38:46 adam Exp $
#

DISTNAME=	${PKGNAME_NOREV}-src
PKGNAME=	hydra-5.4
PKGREVISION=	22
CATEGORIES=	security
MASTER_SITES=	http://freeworld.thc.org/releases/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://freeworld.thc.org/thc-hydra/
COMMENT=	Login password cracker
LICENSE=	hydra-license

.include "../../mk/bsd.prefs.mk"

USE_TOOLS+=	pkg-config
GNU_CONFIGURE=	YES
BUILD_TARGET=	all
WRKSRC=		${WRKDIR}/${DISTNAME}

SUBST_CLASSES+=		build
SUBST_STAGE.build=	post-patch
SUBST_FILES.build=	Makefile.am configure hydra-gtk/src/main.c
SUBST_SED.build=	-e "s|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g"
SUBST_SED.build+=	-e "s|@PREFIX@|${PREFIX}|g"
SUBST_SED.build+=	-e "s|uname|${UNAME}|g"
SUBST_SED.build+=	-e "s|\\./hydra|${PREFIX}/bin/hydra|g"
SUBST_SED.build+=	-e "s|LIBS=-lm|LIBS=-L${PREFIX}/lib -lm ${COMPILER_RPATH_FLAG}${PREFIX}/lib ${COMPILER_RPATH_FLAG}/usr/lib|g"
SUBST_MESSAGE.build=	Patching build files.

USE_OLD_DES_API=	YES
PLIST_SRC=		${WRKDIR}/.PLIST_SRC
CONFIGURE_ARGS+=	--prefix=${PREFIX:Q}
BUILDLINK_API_DEPENDS.libssh+=	libssh-0.11{,nb*}

INSTALLATION_DIRS=	bin

.include "options.mk"

.include "../../security/openssl/buildlink3.mk"
.include "../../security/libssh/buildlink3.mk"

pre-build:
	${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/hydra ${DESTDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/pw-inspector ${DESTDIR}${PREFIX}/bin

.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>