aboutsummaryrefslogtreecommitdiff
path: root/security/rcracki_mt/Makefile
blob: d6857f7a99f57c32322b3d3c3d47ddeab6480d0e (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
PORTNAME=	rcracki_mt
PORTVERSION=	0.7.0
CATEGORIES=	security
MASTER_SITES=	SF/rcracki/rcracki_mt/rcracki_mt_${PORTVERSION}
DISTNAME=	${PORTNAME}_${PORTVERSION}_src

MAINTAINER=	olivier@FreeBSD.org
COMMENT=	Rainbow table based crack tool
WWW=		https://www.freerainbowtables.com

LICENSE=	GPLv2

NOT_FOR_ARCHS=	aarch64 armv6 armv7 mips mips64 riscv64 sparc64
NOT_FOR_ARCHS_REASON=	cannot detect endianness

WRKSRC=		${WRKDIR}/${DISTNAME}/${PORTNAME}

USES=		7z gmake ssl

PLIST_FILES=	bin/${PORTNAME}
PORTDOCS=	ChangeLog.txt README.txt

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} \
		-e 's,CC = g++,CXX ?= g++,' \
		-e 's,CFLAGS =,CXXFLAGS +=,' \
		-e 's,CC,CXX,' \
		-e 's,CFLAGS,CXXFLAGS,' \
		-e "s|\(INCLUDES = .*\)|\1 -I${OPENSSLINC}|g" \
		-e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \
		${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>