blob: 2110dd82cbd22c5db37fdb9b054016b399bb85c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# $NetBSD: Makefile,v 1.3 2005/07/21 16:29:56 wiz Exp $
#
DISTNAME= ${PKGNAME}-src
PKGNAME= hydra-4.6
CATEGORIES= security
MASTER_SITES= http://www.thc.org/releases/
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.thc.org/thc-hydra/
COMMENT= Login password cracker
.include "../../mk/bsd.prefs.mk"
GNU_CONFIGURE= YES
BUILD_TARGET= all ssl
WRKSRC= ${WRKDIR}/${DISTNAME}
LICENSE+= hydra-license
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" \
-e "s|@PREFIX@|${PREFIX}|g" \
-e "s|uname|${UNAME}|g" \
-e "s|\./hydra|${PREFIX}/bin/hydra|g" \
-e "s|LIBS=-lm|LIBS=-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}
BUILDLINK_DEPENDS.libssh+= libssh-0.1
INSTALLATION_DIRS= bin
PKG_OPTIONS_VAR= PKG_OPTIONS.hydra
PKG_SUPPORTED_OPTIONS= gtkfe
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgtkfe)
.include "../../devel/pkg-config/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
post-configure:
cd ${WRKSRC}/hydra-gtk && \
${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
post-build:
cd ${WRKSRC}/hydra-gtk && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/hydra-gtk/src/xhydra ${PREFIX}/bin
PLIST_SRC+= ${PKGDIR}/PLIST.xhydra
.endif
.include "../../security/openssl/buildlink3.mk"
.include "../../security/libssh/buildlink3.mk"
pre-build:
@${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hydra ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/pw-inspector ${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"
|