summaryrefslogtreecommitdiff
path: root/security/spike-proxy/Makefile
blob: c7a83ce184c6bca41002dfaf2dcc820d84040846 (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
# Created by: Yonatan <Yonatan@xpert.com>
# $FreeBSD$

PORTNAME=	spike-proxy
PORTVERSION=	1.4.8
CATEGORIES=	security
MASTER_SITES=	http://www.immunitysec.com/downloads/
DISTNAME=	SP${PORTVERSION:tl:C/\.//g}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tool looking for vulnerabilities in web applications

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}openssl>=0:security/py-openssl

USES=		python shebangfix tar:tgz
SHEBANG_FILES=	*.py
NO_BUILD=	yes
NO_ARCH=	yes

WRKSRC=		${WRKDIR}/spkproxy

OPTIONS_DEFINE=	DOCS

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	@${RM} -r ${WRKSRC}/*.bak
	${CP} -Rp ${WRKSRC}/* ${STAGEDIR}${DATADIR}
	${SED} "s|DATADIR|${DATADIR}|" ${SCRIPTDIR}/spkproxy.sh > \
		${STAGEDIR}${PREFIX}/bin/spkproxy.sh
	@${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/spkproxy.sh

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} WHYGPL.txt TODO.txt SpikeUsage.txt \
		README.txt CHANGELOG.txt ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>