blob: d964bb30725b2805cc85067edc91285d79426472 (
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
|
# $FreeBSD$
PORTNAME= webshag
PORTVERSION= 1.10
PORTREVISION= 1
CATEGORIES= security www
MASTER_SITES= http://www.scrt.ch/outils/webshag/
DISTNAME= ws110
MAINTAINER= clutton@zoho.com
COMMENT= Multi-threaded, multi-platform web server audit tool
LICENSE= GPLv3
USES= python:2.7 dos2unix
USE_PYTHON=distutils
PYSETUP= setup.linux.py
NO_WRKSUBDIR= yes
OPTIONS_DEFINE= NMAP WXGTK
OPTIONS_DEFAULT=NMAP
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNMAP}
BUILD_DEPENDS+= ${LOCALBASE}/bin/nmap:${PORTSDIR}/security/nmap
.endif
.if ${PORT_OPTIONS:MWXGTK}
USE_WX= 2.6+
WX_UNICODE= yes
WX_COMPS= python:run
.endif
post-patch:
@${MV} ${WRKSRC}/config ${WRKSRC}/etc
@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g' \
${WRKSRC}/webshag_cli.py
@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g' \
${WRKSRC}/webshag_gui.py
do-install:
.if ${PORT_OPTIONS:MWXGTK}
${INSTALL_SCRIPT} ${WRKSRC}/webshag_gui.py \
${STAGEDIR}${PREFIX}/bin/webshag_gui
.endif
${INSTALL_SCRIPT} ${WRKSRC}/webshag_cli.py \
${STAGEDIR}${PREFIX}/bin/webshag_cli
@${INSTALL_DATA} ${WRKSRC}/etc/webshag.conf ${STAGEDIR}${PREFIX}/etc
(cd ${WRKSRC}/database && ${COPYTREE_SHARE} . \
${STAGEDIR}${PREFIX}/share/webshag)
(cd ${WRKSRC}/webshag && ${COPYTREE_SHARE} . \
${STAGEDIR}${PYTHON_SITELIBDIR}/webshag)
.include <bsd.port.mk>
|