blob: ca849b4345b6719888a88d21d8586f0526efaa9f (
plain) (
blame)
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
|
# New ports collection makefile for: ophcrack
# Date created: 14 Mar 2008
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ophcrack
PORTVERSION= 2.4.1
CATEGORIES= security
MASTER_SITES= SF
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} bkhive-${TOOLS_VER}${EXTRACT_SUFX} \
samdump2-${TOOLS_VER}${EXTRACT_SUFX}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Windows password cracker based on rainbow tables
USE_GNOME= gtk20
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
SUB_FILES+= pkg-message
PORTDOCS= *
MAN1= bkhive.1 samdump2.1
TOOLS_VER= 1.1.1
post-extract:
@${REINPLACE_CMD} -e '/^CFLAGS=/d' ${WRKSRC}/${CONFIGURE_SCRIPT}
# Do not install any Linux binaries: we build and install native ones;
# mute their banner as well in favor of our nice pkg-message
@${REINPLACE_CMD} -e 's/ install-exec-local// ; 605,617d' \
${WRKSRC}/Makefile.in
# Hint the tools about correct endianness
@${REINPLACE_CMD} -e '27s,^,#include <machine/endian.h>,' \
${WRKDIR}/bkhive-${TOOLS_VER}/bkhive.c
@${REINPLACE_CMD} -e '34s,^,#include <machine/endian.h>,' \
${WRKDIR}/samdump2-${TOOLS_VER}/samdump2.c
post-build:
# Build auxiliary tools (useful: e.g., samdump2 is called at runtime)
(cd ${WRKDIR}/bkhive-${TOOLS_VER} && ${CC} ${CFLAGS} -o bkhive \
hive.c bkhive.c)
(cd ${WRKDIR}/samdump2-${TOOLS_VER} && ${CC} ${CFLAGS} -o samdump2 \
hive.c samdump2.c -lssl)
post-install:
# Install auxiliary tools and their manpages
${INSTALL_PROGRAM} ${WRKDIR}/bkhive-${TOOLS_VER}/bkhive \
${WRKDIR}/samdump2-${TOOLS_VER}/samdump2 ${PREFIX}/bin
${INSTALL_MAN} ${WRKDIR}/bkhive-${TOOLS_VER}/bkhive.1 \
${WRKDIR}/samdump2-${TOOLS_VER}/samdump2.1 \
${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${DOCSDIR}
.endif
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>
|